Changes between Version 10 and Version 11 of expansion/gw16146


Ignore:
Timestamp:
11/01/2021 07:27:20 PM (3 years ago)
Author:
Cale Collins
Comment:

commands to execute were commented out, output is left uncommented. This was totally backwards so I corrected it so the commands can be coppied and pasted

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16146

    v10 v11  
    400400 a. lsusb shows GW16046 on bus with VID:0x2beb and PID=0x0146
    401401{{{#!bash
    402 # lsusb -d 0x2beb:0x0146
    403 Bus 001 Device 003: ID 2beb:0146 
     402lsusb -d 0x2beb:0x0146
     403# Bus 001 Device 003: ID 2beb:0146 
    404404}}}
    405405 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)
    406406{{{#!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 $BUSNO
    409 3
     407BUSNO="$(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)"
     408echo $BUSNO
     409# 3
    410410}}}
    411411 c. Load the NRC7292 driver providing the SPI bus number from above (we use the BUSNO env var here):
    412412{{{#!bash
    413 # modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_bus_num=$BUSNO spi_polling_interval=5 hifspeed=30000000
     413modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_bus_num=$BUSNO # spi_polling_interval=5 hifspeed=30000000
    414414}}}
    415415  - after several seconds you should see a new wlan device under /sys/class/net
    416416 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)
    417417{{{#!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 $WLAN
    420 wlan0
     418WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "nrc80211" ]; then basename $i; fi; done)"
     419echo $WLAN
     420# wlan0
    421421}}}
    422422 e. bring up the interface (required for configuration below)
    423423{{{#!bash
    424 # ifconfig $WLAN up
     424ifconfig $WLAN up
    425425}}}
    426426