EDGE-Board wireless network card remote login, mount the driver and boot automatically

1. Hardware conditions:

1. Router (any one that can log in to the management page to view the ip of the device connected to it)

2. USB wireless network card:

1 Driver-free C 300M high speed RTL8192 https://item.taobao.com/item.htm?spm=a1z0d.6639537.1997196601.4.30ba7484JKnRrH&id=595761389125
2 USB150M RTL8188CU https://item.taobao.com/item.htm?spm=a1z09.2.0.0.1f1a2e8d3rWgyB&id=547851727508&_u=s1ild9ut9e0a
3 RTL8188CUS https://item.taobao.com/item.htm?spm=a1z09.2.0.0.1f1a2e8d3rWgyB&id=623834833211&_u=s1ild9ut8526

I am using 802.11n this 

 

 3. edgeboard FZ3A: with 18.04 system: go to the official website to download the image:

EdgeBoard Embedded AI Solution - Version 1.8.1 | Baidu AI Open Platform (baidu.com) https://ai.baidu.com/ai-doc/HWCE/Fkuqounlk

2. The program starts to run automatically and the driver is loaded (to solve the problem that ttyUSB and js0 cannot be recognized):

After burning, we configure the local network port ip as the same network segment as the default ip of the edgeboard. How to establish ssh login through MobaXterm_Personal_22.0 (I will not show this step), and put the following driver in the workspace directory: 

There should be everything that drives the game, and I didn't chat with me privately.

Then modify the /etc/rc.local file to realize the boot self-starting driver:

#!/bin/bash -e
echo "Edgeboard autostart script, Users can add autostart programs here "
chmod +x /root/workspace/driver/fpgadrv.ko
insmod /root/workspace/driver/fpgadrv.ko
chmod +x /root/workspace/driver/usbserial.ko
insmod /root/workspace/driver/usbserial.ko
chmod +x /root/workspace/driver/ch341.ko
insmod /root/workspace/driver/ch341.ko
chmod +x /root/workspace/driver/joydev.ko
insmod /root/workspace/driver/joydev.ko
#0. insmod fpgadrv
echo "0. install fpgadrv ..."

count=`/bin/lsmod | grep fpgadrv | grep -v "grep" | wc -l`
if [ $count -le 0 ]
then
        chmod +x /root/workspace/driver/fpgadrv.ko
        /sbin/insmod /root/workspace/driver/fpgadrv.ko
        echo "  FPGA driver install success."
else
        echo "  FPGA driver is already installed."
fi

echo "!!!! rc.local is ok ...."

3. Realize wireless remote login (computer and edgeboard together with the wlan of the same router)

1. Insert the network card into the edgeboard, and then connect the network card to the network. For the method, refer to the official website. I use the display to connect to the network:

EdgeBoard Embedded AI Solution - Ubuntu Instructions | Baidu AI Open Platform (baidu.com) https://ai.baidu.com/ai-doc/HWCE/fkuqqr0q1#wifi%E7%BD%91%E7%BB% 9C%E9%85%8D%E7%BD%AE

2. Use the router to view the edgeboard ip

Connect the computer to the wifi of the router, and then log in to the management interface of the router (there is an ip address behind each router, enter it in the browser, if you don’t remember the password, you can reset the router, and then Baidu how to configure the network).

Click to view home network status:

Click on Wireless Network Devices -> More :

 Click on the EdgeBoard-Wireless device to view its ip:

 3. Then just establish an ssh connection in the shh connection software: so far all the processes are over! ! !

4. Automatically connect to wifi when booting:

Add the following command to the /etc/rc.local file:

 

chmod +x /etc/init.d/network-manager
nmcli d wifi connect "61#4129" password "41294129"

At the same time, ensure that the permission of wifi is to allow all users to connect:

 

Guess you like

Origin blog.csdn.net/m0_58644391/article/details/124483708