The load driver

For ease of operation, copy it to\project\release\nvr\i2m\common\glibc\8.2.1\wifi\configs, compile it and package it on the board.
Or copy the three drivers generated by Ethernet Bridging to /config/wifi directory:

Before loading the WIFI driver, we need to reset the WIFI chip:

# echo ON > /dev/wifi_reset
# echo OFF > /dev/wifi_reset

After the reset is complete, execute the script ssw01binit.sh to load the driver:

# insmod /config/wifi/llc.ko
# insmod /config/wifi/stp.ko
# insmod /config/wifi/bridge.ko
# /config/wifi/ssw01bInit.sh

After the driver is loaded, you can see the device node wlan0:

# ifconfig wlan0 up
# ifconfig wlan0

Add environment variables:

# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/lib:/config/wifi

Configure the bridge:

# ifconfig p2p0 up
# ifconfig wlan0 0.0.0.0
# ifconfig p2p0 0.0.0.0
# brctl addbr br0
# brctl addif br0 wlan0
# brctl addif br0 p2p0
# ifconfig br0 up
文档更新时间: 2021-03-18 10:01   作者:Aeeditor