Skip to content

Commit

Permalink
board: pluto: S23udc: Fix pluto's config.txt confusing
Browse files Browse the repository at this point in the history
Addresses analogdevicesinc/plutosdr-fw#89

Signed-off-by: Michael Hennerich <[email protected]>
  • Loading branch information
mhennerich authored and nunojsa committed Oct 10, 2023
1 parent d2bee15 commit 170bf9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion board/pluto/S23udc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIGFS=/sys/kernel/config/usb_gadget
GADGET=$CONFIGFS/composite_gadget
IIOD_OPTS="-D -n $ENDPOINTS -F /dev/iio_ffs"
UDC_HANDLE_SUSPEND=`fw_printenv -n udc_handle_suspend 2> /dev/null || echo 0`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo 0`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo rndis`

if [ "$USB_ETH_MODE" == "ncm" ]
then
Expand Down
2 changes: 1 addition & 1 deletion board/pluto/S40network
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ create_system_files () {

XO_CORRECTION=`fw_printenv -n xo_correction 2> /dev/null`
UDC_HANDLE_SUSPEND=`fw_printenv -n udc_handle_suspend 2> /dev/null || echo 0`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo 0`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo rndis`

### /etc/udhcpd.conf ###
echo "start $IPADDR_HOST" > $UDHCPD_CONF
Expand Down
2 changes: 1 addition & 1 deletion board/pluto/S45msd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ patch_html_page() {
FPGA=`grep hdl /opt/VERSIONS | cut -d ' ' -f 2`
ROOTFS=`grep buildroot /opt/VERSIONS | cut -d ' ' -f 2`
UBOOT=`cat /proc/cmdline | tr "=" "\n" | grep "U-Boot"`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo 0`
USB_ETH_MODE=`fw_printenv -n usb_ethernet_mode 2> /dev/null || echo rndis`
if [ "$USB_ETH_MODE" == "ncm" ]; then
NETWORKUSB="Communications Device Class – Network Control Model (CDC-NCM)"
elif [ "$USB_ETH_MODE" == "ecm" ]; then
Expand Down

0 comments on commit 170bf9c

Please sign in to comment.