Changes between Version 10 and Version 11 of expansion/gw16146
- Timestamp:
- 11/01/2021 07:27:20 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
expansion/gw16146
v10 v11 400 400 a. lsusb shows GW16046 on bus with VID:0x2beb and PID=0x0146 401 401 {{{#!bash 402 #lsusb -d 0x2beb:0x0146403 Bus 001 Device 003: ID 2beb:0146402 lsusb -d 0x2beb:0x0146 403 # Bus 001 Device 003: ID 2beb:0146 404 404 }}} 405 405 b. Obtain the SPI bus number created by the spi-ft232h driver which has bound to the GW16046 via VID/PID (Note that we save this in the BUSNO env variable which will be used below) 406 406 {{{#!bash 407 #BUSNO="$(for i in $(ls /sys/class/spi_master/); do if [ "$(basename $(readlink /sys/class/spi_master/$i/device))" == "spi-ft232h.0" ]; then echo $i | sed 's/[^0-9]*//g'; fi; done)"408 #echo $BUSNO409 3407 BUSNO="$(for i in $(ls /sys/class/spi_master/); do if [ "$(basename $(readlink /sys/class/spi_master/$i/device))" == "spi-ft232h.0" ]; then echo $i | sed 's/[^0-9]*//g'; fi; done)" 408 echo $BUSNO 409 # 3 410 410 }}} 411 411 c. Load the NRC7292 driver providing the SPI bus number from above (we use the BUSNO env var here): 412 412 {{{#!bash 413 # modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_bus_num=$BUSNOspi_polling_interval=5 hifspeed=30000000413 modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_bus_num=$BUSNO # spi_polling_interval=5 hifspeed=30000000 414 414 }}} 415 415 - after several seconds you should see a new wlan device under /sys/class/net 416 416 d. obtain the wlan device that is bound to the driver (note it takes several seconds after loading the driver module for the device to get registered due to firmware loading and timing) (Note that we save this in the WLAN env variable which will be used below) 417 417 {{{#!bash 418 #WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "nrc80211" ]; then basename $i; fi; done)"419 #echo $WLAN420 wlan0418 WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "nrc80211" ]; then basename $i; fi; done)" 419 echo $WLAN 420 # wlan0 421 421 }}} 422 422 e. bring up the interface (required for configuration below) 423 423 {{{#!bash 424 #ifconfig $WLAN up424 ifconfig $WLAN up 425 425 }}} 426 426