2) When there is a problem with the OS startup, you can use the following method to
modify the value of log level, to print more log information to the serial port display,
which is convenient for debugging
root@orangepi:~# sed -i "s/verbosity=1/verbosity=7/" /boot/orangepiEnv.txt
root@orangepi:~# sed -i "s/console=both/console=serial/" /boot/orangepiEnv.txt
3) The above commands are actually to set the variables in /boot/orangepiEnv.txt.
After setting, you can open /boot/orangepiEnv.txt to check
root@orangepi:~# cat /boot/orangepiEnv.txt
verbosity=7
bootlogo=false
console=serial
4) Then restart the development board, the output information of the kernel will be
printed to the serial port for output
3.8. Ethernet port test
1) First insert the network cable into the Ethernet interface of the development board,
and ensure that the network is unblocked
2) After the OS starts, it will automatically assign an IP address to the Ethernet card
through DHCP
3) The command to view the IP address is as follows
root@orangepi:~# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.47 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e56:c34d:62f0:8d6e prefixlen 64 scopeid 0x20<link>
ether 02:81:3e:a8:58:d8 txqueuelen 1000 (Ethernet)
RX packets 2165 bytes 177198 (177.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 312 bytes 40435 (40.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 39
4) The command to test network connectivity is as follows
root@orangepi:~# ping www.baidu.com -I eth0
PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of
data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms