本文主要是介绍20240612在飞凌的OK3588-C开发板的linux系统下测试以太网,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
20240612在飞凌的OK3588-C开发板的linux系统下测试以太网
2024/6/12 17:56
欢迎您入坑飞凌的OK3588-C开发板,使用飞凌的预编译的固件:OK3588-linuxfs-img.tar.bz2
Z:\rockdev\update.img
tar jxvf OK3588-linuxfs-img.tar.bz2
首先,刷Android12的R4版本的预编译固件,确认ETH0和ETH1都可以上网的,硬件是好的!
然后刷linux R4/Buildroot的预编译固件。
root@ok3588:/etc#
root@ok3588:/etc# cd network/
root@ok3588:/etc/network#
root@ok3588:/etc/network# ls -l
total 24
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-post-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-pre-up.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-up.d
-rw-r--r-- 1 root root 130 Mar 9 2023 interfaces
-rwxr-xr-x 1 root root 846 Mar 9 2023 nfs_check
root@ok3588:/etc/network#
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.232
netmask 255.255.255.0
gateway 192.168.0.1
root@ok3588:/etc/network#
root@ok3588:/etc/network#
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338578 (330.6 KiB) TX bytes:338578 (330.6 KiB)
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig -a
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:98
can1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:99
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338578 (330.6 KiB) TX bytes:338578 (330.6 KiB)
root@ok3588:/etc/network#
root@ok3588:/etc/network#
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig eth1 up
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338578 (330.6 KiB) TX bytes:338578 (330.6 KiB)
root@ok3588:/etc/network#
root@ok3588:/etc/network#
1、配置ETH0的动态IP:
root@ok3588:/etc/network# vi interfaces
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#address 192.168.0.232
#netmask 255.255.255.0
#gateway 192.168.0.1
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
inet6 addr: fe80::30a3:a4ff:fe7f:2062/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3380 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:350915 (342.6 KiB) TX bytes:936 (936.0 B)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338578 (330.6 KiB) TX bytes:338578 (330.6 KiB)
root@ok3588:/etc/network#
简单点,直接重启了!
由于重启的时候udhcpc这个应用程序会获取动态IP地址。
因此,对于你想测试的网口:ETH0,请提前插入网线。
等系统启动完成之后,就不能动态获取IP地址了。或者你可能需要再次/手机执行udhcpc了!
Starting network: udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: no lease, failing
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1322 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:138447 (135.2 KiB) TX bytes:866 (866.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# udhcpc
udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.3.143, server 192.168.3.1
udhcpc: lease of 192.168.3.143 obtained from 192.168.3.1, lease time 86400
deleting routers
adding dns 192.168.3.1
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.143 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1413 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:148096 (144.6 KiB) TX bytes:1550 (1.5 KiB)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.703 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.424 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.401 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.554 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.508 ms
64 bytes from 192.168.3.85: icmp_seq=6 ttl=64 time=0.562 ms
64 bytes from 192.168.3.85: icmp_seq=7 ttl=64 time=0.486 ms
^C
--- 192.168.3.85 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6090ms
rtt min/avg/max/mdev = 0.401/0.519/0.703/0.093 ms
root@ok3588:/#
root@ok3588:/# ping www.baidu.com
PING www.a.shifen.com (183.2.172.42) 56(84) bytes of data.
64 bytes from www.baidu.com (183.2.172.42): icmp_seq=1 ttl=54 time=6.42 ms
64 bytes from www.baidu.com (183.2.172.42): icmp_seq=2 ttl=54 time=5.79 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 5.790/6.105/6.421/0.315 ms
root@ok3588:/#
2、配置ETH1的动态IP:
【由于eth1默认没有打开,必须重启了!】
root@ok3588:/etc/network# vi interfaces
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
#address 192.168.0.232
#netmask 255.255.255.0
#gateway 192.168.0.1
root@ok3588:/etc/network#
【强制打开EHT1也不行】
root@ok3588:/# ifconfig eth1 up
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.143 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4700 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:499150 (487.4 KiB) TX bytes:2944 (2.8 KiB)
Interrupt:86
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/#
root@ok3588:/# udhcpc
udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
【重启】
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
inet addr:192.168.3.252 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::30a3:a4ff:fe7f:2062/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10481 (10.2 KiB) TX bytes:2040 (1.9 KiB)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:118 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337438 (329.5 KiB) TX bytes:337438 (329.5 KiB)
root@ok3588:/#
root@ok3588:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.361 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.373 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.407 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.419 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.446 ms
^C
--- 192.168.3.85 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4042ms
rtt min/avg/max/mdev = 0.361/0.401/0.446/0.030 ms
root@ok3588:/# ping www.baidu.com
PING www.baidu.com (183.2.172.42) 56(84) bytes of data.
64 bytes from www.baidu.com (183.2.172.42): icmp_seq=1 ttl=49 time=6.87 ms
64 bytes from www.baidu.com (183.2.172.42): icmp_seq=2 ttl=49 time=6.77 ms
^C
--- www.baidu.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 6.766/6.819/6.873/0.053 ms
root@ok3588:/#
3、重新刷机,配置ETH0的静态IP:
配置IP
root@ok3588:/#
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338266 (330.3 KiB) TX bytes:338266 (330.3 KiB)
root@ok3588:/#
root@ok3588:/# cd /etc/network/
root@ok3588:/etc/network# ls -l
total 24
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-post-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-pre-up.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-up.d
-rw-r--r-- 1 root root 130 Mar 9 2023 interfaces
-rwxr-xr-x 1 root root 846 Mar 9 2023 nfs_check
root@ok3588:/etc/network#
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.232
netmask 255.255.255.0
gateway 192.168.0.1
root@ok3588:/etc/network# vi interfaces
root@ok3588:/etc/network#
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.3.232
netmask 255.255.255.0
gateway 192.168.3.1
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.0.232 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338266 (330.3 KiB) TX bytes:338266 (330.3 KiB)
root@ok3588:/etc/network#
重启之后即可PING通内网:
root@ok3588:/#
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.232 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20340 errors:0 dropped:26 overruns:0 frame:0
TX packets:4048 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2421227 (2.3 MiB) TX bytes:389672 (380.5 KiB)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame:0
TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338902 (330.9 KiB) TX bytes:338902 (330.9 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ping www.baidu.com
ping: www.baidu.com: Temporary failure in name resolution
root@ok3588:/#
root@ok3588:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.432 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.611 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.535 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.529 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.579 ms
64 bytes from 192.168.3.85: icmp_seq=6 ttl=64 time=0.584 ms
64 bytes from 192.168.3.85: icmp_seq=7 ttl=64 time=0.559 ms
64 bytes from 192.168.3.85: icmp_seq=8 ttl=64 time=0.478 ms
64 bytes from 192.168.3.85: icmp_seq=9 ttl=64 time=0.473 ms
64 bytes from 192.168.3.85: icmp_seq=10 ttl=64 time=0.476 ms
64 bytes from 192.168.3.85: icmp_seq=11 ttl=64 time=0.459 ms
64 bytes from 192.168.3.85: icmp_seq=12 ttl=64 time=0.580 ms
64 bytes from 192.168.3.85: icmp_seq=13 ttl=64 time=0.555 ms
64 bytes from 192.168.3.85: icmp_seq=14 ttl=64 time=0.466 ms
64 bytes from 192.168.3.85: icmp_seq=15 ttl=64 time=0.473 ms
64 bytes from 192.168.3.85: icmp_seq=16 ttl=64 time=0.382 ms
64 bytes from 192.168.3.85: icmp_seq=17 ttl=64 time=0.469 ms
64 bytes from 192.168.3.85: icmp_seq=18 ttl=64 time=0.514 ms
64 bytes from 192.168.3.85: icmp_seq=19 ttl=64 time=0.456 ms
64 bytes from 192.168.3.85: icmp_seq=20 ttl=64 time=0.505 ms
64 bytes from 192.168.3.85: icmp_seq=21 ttl=64 time=0.497 ms
64 bytes from 192.168.3.85: icmp_seq=22 ttl=64 time=0.494 ms
64 bytes from 192.168.3.85: icmp_seq=23 ttl=64 time=0.487 ms
64 bytes from 192.168.3.85: icmp_seq=24 ttl=64 time=0.554 ms
64 bytes from 192.168.3.85: icmp_seq=25 ttl=64 time=0.484 ms
^C
--- 192.168.3.85 ping statistics ---
25 packets transmitted, 25 received, 0% packet loss, time 24322ms
rtt min/avg/max/mdev = 0.382/0.505/0.611/0.053 ms
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# udhcpc
udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.3.143, server 192.168.3.1
udhcpc: lease of 192.168.3.143 obtained from 192.168.3.1, lease time 86400
deleting routers
adding dns 192.168.3.1
root@ok3588:/#
root@ok3588:/# ping www.baud.com
PING www.baud.com (172.67.197.254) 56(84) bytes of data.
64 bytes from www.baud.com (172.67.197.254): icmp_seq=1 ttl=55 time=189 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=2 ttl=55 time=192 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=3 ttl=55 time=189 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=4 ttl=55 time=188 ms
^C
--- www.baud.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 188.348/189.391/191.633/1.307 ms
root@ok3588:/#
4、配置ETH1的静态IP:
root@ok3588:/# cd /etc/network/
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.3.232
netmask 255.255.255.0
gateway 192.168.3.1
root@ok3588:/etc/network#
【不能将ETH0和ETH1配置在一起,否则只能够打开ETH0的!】
root@ok3588:/#
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.232 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20340 errors:0 dropped:26 overruns:0 frame:0
TX packets:4048 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2421227 (2.3 MiB) TX bytes:389672 (380.5 KiB)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame:0
TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338902 (330.9 KiB) TX bytes:338902 (330.9 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ping www.baidu.com
ping: www.baidu.com: Temporary failure in name resolution
root@ok3588:/#
root@ok3588:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.432 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.611 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.535 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.529 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.579 ms
64 bytes from 192.168.3.85: icmp_seq=6 ttl=64 time=0.584 ms
64 bytes from 192.168.3.85: icmp_seq=7 ttl=64 time=0.559 ms
64 bytes from 192.168.3.85: icmp_seq=8 ttl=64 time=0.478 ms
64 bytes from 192.168.3.85: icmp_seq=9 ttl=64 time=0.473 ms
64 bytes from 192.168.3.85: icmp_seq=10 ttl=64 time=0.476 ms
64 bytes from 192.168.3.85: icmp_seq=11 ttl=64 time=0.459 ms
64 bytes from 192.168.3.85: icmp_seq=12 ttl=64 time=0.580 ms
64 bytes from 192.168.3.85: icmp_seq=13 ttl=64 time=0.555 ms
64 bytes from 192.168.3.85: icmp_seq=14 ttl=64 time=0.466 ms
64 bytes from 192.168.3.85: icmp_seq=15 ttl=64 time=0.473 ms
64 bytes from 192.168.3.85: icmp_seq=16 ttl=64 time=0.382 ms
64 bytes from 192.168.3.85: icmp_seq=17 ttl=64 time=0.469 ms
64 bytes from 192.168.3.85: icmp_seq=18 ttl=64 time=0.514 ms
64 bytes from 192.168.3.85: icmp_seq=19 ttl=64 time=0.456 ms
64 bytes from 192.168.3.85: icmp_seq=20 ttl=64 time=0.505 ms
64 bytes from 192.168.3.85: icmp_seq=21 ttl=64 time=0.497 ms
64 bytes from 192.168.3.85: icmp_seq=22 ttl=64 time=0.494 ms
64 bytes from 192.168.3.85: icmp_seq=23 ttl=64 time=0.487 ms
64 bytes from 192.168.3.85: icmp_seq=24 ttl=64 time=0.554 ms
64 bytes from 192.168.3.85: icmp_seq=25 ttl=64 time=0.484 ms
^C
--- 192.168.3.85 ping statistics ---
25 packets transmitted, 25 received, 0% packet loss, time 24322ms
rtt min/avg/max/mdev = 0.382/0.505/0.611/0.053 ms
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# udhcpc
udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.3.143, server 192.168.3.1
udhcpc: lease of 192.168.3.143 obtained from 192.168.3.1, lease time 86400
deleting routers
adding dns 192.168.3.1
root@ok3588:/#
root@ok3588:/# ping www.baud.com
PING www.baud.com (172.67.197.254) 56(84) bytes of data.
64 bytes from www.baud.com (172.67.197.254): icmp_seq=1 ttl=55 time=189 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=2 ttl=55 time=192 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=3 ttl=55 time=189 ms
64 bytes from www.baud.com (172.67.197.254): icmp_seq=4 ttl=55 time=188 ms
^C
--- www.baud.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 188.348/189.391/191.633/1.307 ms
root@ok3588:/#
root@ok3588:/#
root@ok3588:/#
root@ok3588:/#
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# cd /etc/network/
root@ok3588:/etc/network# ls -l
total 24
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-post-down.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-pre-up.d
drwxr-xr-x 2 root root 4096 Mar 9 2023 if-up.d
-rw-r--r-- 1 root root 130 Jun 13 02:30 interfaces
-rwxr-xr-x 1 root root 846 Mar 9 2023 nfs_check
root@ok3588:/etc/network#
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.3.232
netmask 255.255.255.0
gateway 192.168.3.1
root@ok3588:/etc/network#
root@ok3588:/etc/network# vi interfaces
root@ok3588:/etc/network# cat interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.3.232
netmask 255.255.255.0
gateway 192.168.3.1
auto eth1
iface eht1 inet static
address 192.168.3.233
netmask 255.255.255.0
gateway 192.168.3.1
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.143 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23821 errors:0 dropped:26 overruns:0 frame:0
TX packets:4152 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2761851 (2.6 MiB) TX bytes:399920 (390.5 KiB)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:339486 (331.5 KiB) TX bytes:339486 (331.5 KiB)
root@ok3588:/etc/network#
root@ok3588:/etc/network# xkbcommon: ERROR: couldn't find a Compose file for locale "C" (mapped to "C")
qt.xkb.compose: failed to create compose table
root@ok3588:/etc/network#
root@ok3588:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet addr:192.168.3.143 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:23852 errors:0 dropped:26 overruns:0 frame:0
TX packets:4152 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2765021 (2.6 MiB) TX bytes:399920 (390.5 KiB)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:339486 (331.5 KiB) TX bytes:339486 (331.5 KiB)
root@ok3588:/etc/network#
重启之后就可以通ETH1了,但是不能PING百度。
udhcpc可能有BUG,不能为ETH1配置DNS!
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ifconfig
eth1 Link encap:Ethernet HWaddr 32:A3:A4:7F:20:62
inet addr:192.168.3.232 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::30a3:a4ff:fe7f:2062/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:75 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13540 (13.2 KiB) TX bytes:1454 (1.4 KiB)
Interrupt:88
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338422 (330.4 KiB) TX bytes:338422 (330.4 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ping www.baidu.com
ping: www.baidu.com: Temporary failure in name resolution
root@ok3588:/#
root@ok3588:/# udhcpc
udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
^C
root@ok3588:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.443 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.513 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.472 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.574 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.566 ms
64 bytes from 192.168.3.85: icmp_seq=6 ttl=64 time=0.569 ms
64 bytes from 192.168.3.85: icmp_seq=7 ttl=64 time=0.541 ms
64 bytes from 192.168.3.85: icmp_seq=8 ttl=64 time=0.553 ms
64 bytes from 192.168.3.85: icmp_seq=9 ttl=64 time=0.549 ms
64 bytes from 192.168.3.85: icmp_seq=10 ttl=64 time=0.556 ms
64 bytes from 192.168.3.85: icmp_seq=11 ttl=64 time=0.560 ms
64 bytes from 192.168.3.85: icmp_seq=12 ttl=64 time=0.472 ms
64 bytes from 192.168.3.85: icmp_seq=13 ttl=64 time=0.564 ms
64 bytes from 192.168.3.85: icmp_seq=14 ttl=64 time=0.472 ms
^C
--- 192.168.3.85 ping statistics ---
14 packets transmitted, 14 received, 0% packet loss, time 13173ms
rtt min/avg/max/mdev = 0.443/0.528/0.574/0.043 ms
root@ok3588:/#
配置DNS在/etc/resolv.conf文件中
https://www.cnblogs.com/ywfdyg/p/9362277.html
Linux系统下修改DNS地址的三种方法
上面是参考链接
【无效】
3.2.15 以太网配置
OK3588-C板载两个千兆网卡,插入网线连接网络的情况下,出厂时默认配置为动态IP。
创建一个eth0配置文件, 配置文件的路径为:/etc/network/interfaces.d/eth0,设置动态ip的配置文件
内容为
auto eth0
iface eth0 inet dhcp
设置静态配置ip,以下以eth0设置ip为192.168.0.232为例:
auto eth0
iface eth0 inet static
address 192.168.0.232
netmask 255.255.255.0
gateway 192.168.0.1
参数 含义
iface 用于指定需要固定 IP 的网卡
address 用于指定需要固定的 IP 地址
netmask 用于设置子网掩码
gateway 用于指定网关
设置完后使用sync文件同步指令,重启开发板或者重启服务,配置生效。
root@ok3588:~# ifdown –a
root@ok3588:~# ifup -a
参考资料:
这几个gpio口是用作什么功能的,开机指的是上电还是进入到系统呢
后续有控制需求吗,看起来是当电源控制脚
电源控制脚
https://blog.csdn.net/weixin_43245753/article/details/125380619?spm=1001.2014.3001.5502
Rockchip RK3588 kernel dts解析之regulator-fixed
启动LOG:
root@ok3588:/etc/network#
root@ok3588:/etc/network#
root@ok3588:/etc/network# reboot
root@ok3588:/etc/network# Stopping input-event-daemon:
input-event-daemon: Exiting...
done
Stopping dnsmasq: FAIL
Stopping vsftpd: stopped /usr/sbin/vsftpd (pid 1538)
OK
Stopping sshd: killall: sshd: no process killed
OK
Stopping pulseaudio: OK
stop finishedStopping lighttpd: OK
Stopping dropbear sshd: OK
stoping weston... done.
[02:12:57.782] caught signal 15
[02:12:57.782] destroy output while page flip pending
killall: rkaiq_3A_server: no process killed
Stopping network: [02:12:57.840] background surface gone
[02:12:57.842] event4 - adc-keys: device removed
[02:12:57.909] event0 - rk805 pwrkey: device removed
[02:12:57.962] event2 - headset-keys: device removed
[02:12:58.039] destroy output while page flip pending
[02:12:58.073] destroy output while page flip pending
[02:12:58.073] Output 'DSI-1' no heads left, disabling.
FAIL
Stopping bluetoothd: OK
Stopping iptables: OK
Stopping system message bus: done
Saving random seed: OK
/usr/bin/modetest
Stopping klogd: OK
Stopping syslogd: OK
umount: tmpfs busy - remounted read-only
umount: devtmpfs busy - remounted read-only
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
[ 543.522553] reboot: Restarting system
DDR Version V1.07 20220412
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-g5f53abfa1e-221223 #zzz (Dec 26 2022 - 09:10:09)
unknown raw ID 0 0 0
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
MMC: no card present
mmc_init: -123, time 2
spl: mmc init failed with error: -123
Trying to boot from MMC1
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(5ae6932916...) + OK
## Checking uboot 0x00200000 ... sha256(5ca6150e38...) + OK
## Checking fdt 0x00325ad0 ... sha256(6c1121228f...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK
## Checking optee 0x08400000 ... sha256(4ed9cd20b5...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 183.479 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-384-g45c8fcb44:derrick.huang
NOTICE: BL31: Built : 15:14:04, Jun 18 2022
INFO: ext 32k is not valid
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INFO: hdmirx_handler: dma not on, ret
I/TC:
I/TC: OP-TEE version: 3.13.0-645-g87d94c5ef8 #xb.wang (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #1 Tue Jun 14 10:44:31 CST 2022 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2017.09 (Dec 21 2023 - 09:45:34 +0800)
Model: Forlinx OK3588-C Board
PreSerial: 2, raw, 0xfeb50000
DRAM: 3.7 GiB
Sysmem: init
Relocation Offset: edb51000
Relocation fdt: eb9fa7a8 - eb9fecd8
CR: M/C/I
mmc@fe2c0000: 1, mmc@fe2e0000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
DM: v2
boot mode: normal
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 100000Hz
vsel-gpios- not found!
en-gpios- not found!
vdd_cpu_big0_s0 800000 uV
vsel-gpios- not found!
en-gpios- not found!
vdd_cpu_big1_s0 800000 uV
I2c1 speed: 100000Hz
vsel-gpios- not found!
en-gpios- not found!
vdd_npu_s0 800000 uV
spi2: RK806: 2
ON=0x00, OFF=0x00
vdd_gpu_s0 750000 uV
vdd_cpu_lit_s0 750000 uV
vdd_log_s0 750000 uV
vdd_vdenc_s0 init 750000 uV
vdd_ddr_s0 850000 uV
params load
normal mode
Writing to mmc(0)... done
get vp0 plane mask:0x5, primary id:2, cursor_plane:-1, from dts
get vp1 plane mask:0xa, primary id:3, cursor_plane:-1, from dts
get vp2 plane mask:0x140, primary id:8, cursor_plane:-1, from dts
get vp3 plane mask:0x280, primary id:9, cursor_plane:-1, from dts
Could not find baseparameter partition
Model: Forlinx OK3588 Board
Rockchip UBOOT DRM driver version: v1.0.1
vp0 have layer nr:2[0 2 ], primary plane: 2
vp1 have layer nr:2[1 3 ], primary plane: 3
vp2 have layer nr:2[6 8 ], primary plane: 8
vp3 have layer nr:2[7 9 ], primary plane: 9
Using display timing dts
dsi@fde20000: detailed mode clock 45000 kHz, flags[a]
H: 1024 1064 1112 1160
V: 0600 0640 0644 0692
bus_format: 100e
VOP update mode to: 1024x600p0, type: MIPI0 for VP2
rockchip_vop2_init:No hdmiphypll clk1 found, use system clk
VOP VP2 enable Esmart2[400x300->400x300@312x150] fmt[1] addr[0xedf58000]
final DSI-Link bandwidth: 293333 Kbps x 4
Using display timing dts
dsi@fde30000: detailed mode clock 45000 kHz, flags[a]
H: 1024 1064 1112 1160
V: 0600 0640 0644 0692
bus_format: 100e
VOP update mode to: 1024x600p0, type: MIPI1 for VP3
rockchip_vop2_init:No hdmiphypll clk1 found, use system clk
VOP VP3 enable Esmart3[400x300->400x300@312x150] fmt[1] addr[0xedf58000]
final DSI-Link bandwidth: 294113 Kbps x 4
hdmi@fde80000 disconnected
dp@fde60000 disconnected
CLK: (uboot. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
b0pll 24000 KHz
b1pll 24000 KHz
lpll 24000 KHz
v0pll 24000 KHz
aupll 786215 KHz
cpll 1500000 KHz
gpll 1188000 KHz
npll 850000 KHz
ppll 1100000 KHz
aclk_center_root 702000 KHz
pclk_center_root 100000 KHz
hclk_center_root 396000 KHz
aclk_center_low_root 500000 KHz
aclk_top_root 750000 KHz
pclk_top_root 100000 KHz
aclk_low_top_root 396000 KHz
Net: eth0: ethernet@fe1b0000, eth1: ethernet@fe1c0000
Hit key to stop autoboot('Spacebar'): 0
ANDROID: reboot reason: "(none)"
No valid android hdr
Android image load failed
Android boot failed, error -1.
## Booting FIT Image at 0xe97d7380 with size 0x02022400
Fdt Ramdisk skip relocation
## Loading kernel from FIT Image at e97d7380 ...
Using 'conf' configuration
optee api revision: 2.0
TEEC: Waring: Could not find security partition
## Verified-boot: 0
Trying 'kernel' kernel subimage
Description: unavailable
Type: Kernel Image
Compression: uncompressed
Data Start: 0xe9804580
Data Size: 33509888 Bytes = 32 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x00400000
Entry Point: 0x00400000
Hash algo: sha256
Hash value: 7a745a8596b0e031f974863553923c46b4ab7d47759e3503b6f02e02dc6947c2
Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at e97d7380 ...
Using 'conf' configuration
Trying 'fdt' fdt subimage
Description: unavailable
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0xe97d7b80
Data Size: 182711 Bytes = 178.4 KiB
Architecture: AArch64
Load Address: 0x0a100000
Hash algo: sha256
Hash value: 6a07c9cfc665b5797b3c30ec18492b2fb32507192c0055abdea88ea5bdd19f24
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x0a100000 to 0x0a100000
Booting using the fdt blob at 0x0a100000
Loading Kernel Image from 0xe9804580 to 0x00400000 ... OK
kernel loaded at 0x00400000, end = 0x023f5200
'reserved-memory' dma-trans@3c000000: addr=3c000000 size=4000000
'reserved-memory' cma: addr=10000000 size=10000000
Using Device Tree in place at 000000000a100000, end 000000000a12f9b6
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
Total: 1615.191 ms
Starting kernel ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
I/TC: Secondary CPU 4 initializing
I/TC: Secondary CPU 4 switching to normal world boot
I/TC: Secondary CPU 5 initializing
I/TC: Secondary CPU 5 switching to normal world boot
I/TC: Secondary CPU 6 initializing
I/TC: Secondary CPU 6 switching to normal world boot
I/TC: Secondary CPU 7 initializing
I/TC: Secondary CPU 7 switching to normal world boot
mount: mounting PARTLABEL=oem on /oem failed: No such file or directory
mount: mounting PARTLABEL=userdata on /userdata failed: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
/usr/bin/modetest
Populating /dev using udev: done
Initializing random number generator: OK
Saving random seed: OK
Will now mount all partitions in /etc/fstab
Note: Will skip fsck, remove /.skip_fsck to enable
Handling rootfs: /dev/mmcblk0p6 / ext4 rw,noauto 1
Handling oem: /dev/mmcblk0p7 /oem ext2 defaults 2
Mounting /dev/mmcblk0p7(ext2) on /oem
Handling userdata: /dev/mmcblk0p8 /userdata ext2 defaults 2
Mounting /dev/mmcblk0p8(ext2) on /userdata
Log saved to /tmp/mountall.log
Starting system message bus: done
Starting iptables: OK
Starting bluetoothd: OK
Starting network: udhcpc: started, v1.34.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: no lease, failing
FAIL
starting weston... done.
Starting dropbear sshd: OK
Starting lighttpd: OK
Starting matrix: /etc/init.d/S50matrix-browser: line 12: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory
Starting pulseaudio: W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
Date: 2024-06-13 CST
[02:13:17.267] weston 10.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: v0.3-8-g8cb8c2b72+
[02:13:17.267] Command line: /usr/bin/weston
[02:13:17.267] OS: Linux, 5.10.66, #1 SMP Thu Dec 21 10:25:21 CST 2023, aarch64
[02:13:17.267] Flight recorder: enabled
[02:13:17.267] warning: XDG_RUNTIME_DIR "/var/run" is not configured
correctly. Unix access mode must be 0700 (current mode is 0755),
and must be owned by the user UID 0 (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[02:13:17.269] Using config file '/etc/xdg/weston/weston.ini'
[02:13:17.269] Output repaint window is -1 ms maximum.
[02:13:17.270] Loading module '/usr/lib/libweston-10/drm-backend.so'
[02:13:17.273] initializing drm backend
[02:13:17.273] Entering mirror mode.
[02:13:17.273] Trying weston_launch launcher...
[02:13:17.273] could not get launcher fd from env
[02:13:17.273] Trying direct launcher...
[02:13:17.275] using /dev/dri/card0
[02:13:17.275] DRM: does not support atomic modesetting
[02:13:17.275] DRM: does not support GBM modifiers
[02:13:17.275] DRM: supports picture aspect ratio
[02:13:17.277] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[02:13:17.280] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
EGL_KHR_platform_gbm EGL_KHR_platform_wayland
EGL_EXT_platform_wayland
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '6'.
[02:13:17.294] EGL version: 1.4 Valhall-"g6p0-01eac0"
[02:13:17.294] EGL vendor: ARM
[02:13:17.294] EGL client APIs: OpenGL_ES
[02:13:17.294] EGL extensions: EGL_WL_bind_wayland_display
EGL_NV_context_priority_realtime EGL_KHR_partial_update
EGL_KHR_config_attribs EGL_KHR_image EGL_KHR_image_base
EGL_KHR_fence_sync EGL_KHR_wait_sync EGL_KHR_gl_colorspace
EGL_KHR_get_all_proc_addresses EGL_IMG_context_priority
EGL_KHR_no_config_context EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_yuv_surface
EGL_EXT_pixel_format_float EGL_ARM_pixmap_multisample_discard
EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image
EGL_KHR_create_context EGL_KHR_surfaceless_context
EGL_KHR_gl_texture_cubemap_image EGL_EXT_image_gl_colorspace
EGL_EXT_create_context_robustness
[02:13:17.294] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[02:13:17.295] EGL_KHR_surfaceless_context available
[02:13:17.311] GL version: OpenGL ES 3.2 v1.g6p0-01eac0.ba52c908d926792b8f5fe28f383a2b03
[02:13:17.311] GLSL version: OpenGL ES GLSL ES 3.20
[02:13:17.311] GL vendor: ARM
[02:13:17.311] GL renderer: Mali-LODX
[02:13:17.311] GL extensions: GL_ARM_rgba8 GL_ARM_mali_shader_binary
GL_OES_depth24 GL_OES_depth_texture
GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil
GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra
GL_OES_compressed_paletted_texture
GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives
GL_OES_EGL_image GL_OES_EGL_image_external
GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync
GL_OES_texture_npot GL_OES_vertex_half_float
GL_OES_required_internalformat GL_OES_vertex_array_object
GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888
GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV
GL_OES_fbo_render_mipmap GL_OES_element_index_uint
GL_EXT_shadow_samplers GL_OES_texture_compression_astc
GL_KHR_texture_compression_astc_ldr
GL_KHR_texture_compression_astc_hdr
GL_KHR_texture_compression_astc_sliced_3d
GL_EXT_texture_compression_astc_decode_mode
GL_EXT_texture_compression_astc_decode_mode_rgb9e5 GL_KHR_debug
GL_EXT_occlusion_query_boolean GL_EXT_disjoint_timer_query
GL_EXT_blend_minmax GL_EXT_discard_framebuffer
GL_OES_get_program_binary GL_OES_texture_3D
GL_EXT_texture_storage GL_EXT_multisampled_render_to_texture
GL_EXT_multisampled_render_to_texture2
GL_OES_surfaceless_context GL_OES_texture_stencil8
GL_EXT_shader_pixel_local_storage
GL_ARM_shader_framebuffer_fetch
GL_ARM_shader_framebuffer_fetch_depth_stencil
GL_ARM_mali_program_binary GL_EXT_sRGB
GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode
GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8
GL_KHR_blend_equation_advanced
GL_KHR_blend_equation_advanced_coherent
GL_OES_texture_storage_multisample_2d_array
GL_OES_shader_image_atomic GL_EXT_robustness
GL_EXT_draw_buffers_indexed GL_OES_draw_buffers_indexed
GL_EXT_texture_border_clamp GL_OES_texture_border_clamp
GL_EXT_texture_cube_map_array GL_OES_texture_cube_map_array
GL_OES_sample_variables GL_OES_sample_shading
GL_OES_shader_multisample_interpolation GL_EXT_shader_io_blocks
GL_OES_shader_io_blocks GL_EXT_tessellation_shader
GL_OES_tessellation_shader GL_EXT_primitive_bounding_box
GL_OES_primitive_bounding_box GL_EXT_geometry_shader
GL_OES_geometry_shader GL_ANDROID_extension_pack_es31a
GL_EXT_gpu_shader5 GL_OES_gpu_shader5 GL_EXT_texture_buffer
GL_OES_texture_buffer GL_EXT_copy_image GL_OES_copy_image
GL_EXT_shader_non_constant_global_initializers
GL_EXT_color_buffer_half_float GL_EXT_unpack_subimage
GL_EXT_color_buffer_float GL_EXT_float_blend GL_EXT_YUV_target
GL_OVR_multiview GL_OVR_multiview2
GL_OVR_multiview_multisampled_render_to_texture
GL_KHR_robustness GL_KHR_robust_buffer_access_behavior
GL_EXT_draw_elements_base_vertex
GL_OES_draw_elements_base_vertex GL_EXT_buffer_storage
GL_EXT_texture_filter_anisotropic GL_OES_texture_float_linear
GL_ARM_texture_unnormalized_coordinates
GL_EXT_shader_framebuffer_fetch
[02:13:17.394] GL ES 3.2 - renderer features:
read-back format: BGRA
wl_shm sub-image to texture: yes
EGL Wayland extension: yes
[02:13:17.394] couldn't fstat launcher tty: Bad file descriptor
[02:13:17.417] event4 - adc-keys: is tagged by udev as: Keyboard
[02:13:17.417] event4 - adc-keys: device is a keyboard
[02:13:17.418] event1 - rockchip,dp1 rockchip,dp1: is tagged by udev as: Switch
[02:13:17.472] event1 - not using input device '/dev/input/event1'
[02:13:17.475] event0 - rk805 pwrkey: is tagged by udev as: Keyboard
[02:13:17.475] event0 - rk805 pwrkey: device is a keyboard
[02:13:17.477] event5 - rockchip-hdmi0 rockchip-hdmi0: is tagged by udev as: Switch
[02:13:17.539] event5 - not using input device '/dev/input/event5'
[02:13:17.541] event2 - headset-keys: is tagged by udev as: Keyboard
[02:13:17.542] event2 - headset-keys: device is a keyboard
[02:13:17.545] event3 - rockchip-nau8822 Headset: is tagged by udev as: Switch
[02:13:17.582] event3 - not using input device '/dev/input/event3'
[02:13:17.635] libinput: configuring device "adc-keys".
[02:13:17.635] libinput: configuring device "rk805 pwrkey".
[02:13:17.635] libinput: configuring device "headset-keys".
[02:13:17.636] DRM: head 'HDMI-A-1' updated, connector 409 is disconnected.
[02:13:17.636] DRM: head 'HDMI-A-1' found, connector 409 is disconnected.
[02:13:17.637] DRM: head 'DSI-1' updated, connector 419 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[02:13:17.637] DRM: head 'DSI-1' found, connector 419 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[02:13:17.637] DRM: head 'DSI-2' updated, connector 422 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[02:13:17.638] DRM: head 'DSI-2' found, connector 422 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[02:13:17.638] DRM: head 'DP-1' updated, connector 425 is disconnected.
[02:13:17.639] DRM: head 'DP-1' found, connector 425 is disconnected.
[02:13:17.639] Registered plugin API 'weston_drm_output_api_v1' of size 24
[02:13:17.639] Color manager: no-op
[02:13:17.639] Output 'DSI-1' using color profile: built-in default sRGB SDR profile
[02:13:17.640] Chosen EGL config details: id: 9 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 0-1 type: win|pbf|swap_preserved vis_id: XRGB8888 (0x34325258)
[02:13:17.640] Output DSI-1 (crtc 102) video modes:
1024x600@56.1, preferred, current, 45.0 MHz
[02:13:17.640] associating input device event4 with output DSI-1 (none by udev)
[02:13:17.640] associating input device event0 with output DSI-1 (none by udev)
[02:13:17.640] associating input device event2 with output DSI-1 (none by udev)
[02:13:17.640] Output 'DSI-1' enabled with head(s) DSI-1
[02:13:17.640] Output 'DSI-2' using color profile: built-in default sRGB SDR profile
[02:13:17.640] Chosen EGL config details: id: 9 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 0-1 type: win|pbf|swap_preserved vis_id: XRGB8888 (0x34325258)
[02:13:17.640] Output DSI-2 (crtc 119) video modes:
1024x600@56.1, preferred, current, 45.0 MHz
[02:13:17.640] Output DSI-2 changed to mirror output
[02:13:17.641] Output 'DSI-2' enabled with head(s) DSI-2
[02:13:17.641] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: no
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[02:13:17.641] Loading module '/usr/lib/weston/desktop-shell.so'
[02:13:17.644] launching '/usr/libexec/weston-keyboard'
[02:13:17.646] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[02:13:17.646] launching '/usr/libexec/weston-desktop-shell'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
xkbcommon: ERROR: couldn't find a Compose file for locale "C" (mapped to "C")
could not create XKB compose table for locale 'C'. Disabiling compose
QStandardPaths: runtime directory '/var/run' is not a directory, but a symbolic link to a directory permissions 0755 owned by UID 0 GID 0
xkbcommon: ERROR: couldn't find a Compose file for locale "C" (mapped to "C")
could not create XKB compose table for locale 'C'. Disabiling compose
OK
Starting sshd: OK
Debug: configfs_init
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac1.gs0': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac2.gs0': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mtp.gs0': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/rndis.gs0': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/acm.gs6': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/hid.usb0': No such file or directory
Starting vsftpd: OK
Starting dnsmasq:
dnsmasq: unknown interface uap0
FAIL
Starting input-event-daemon: input-event-daemon: Start parsing /etc/input-event-daemon.conf...
input-event-daemon: Adding device: /dev/input/event0...
input-event-daemon: Adding device: /dev/input/event1...
input-event-daemon: Adding device: /dev/input/event2...
input-event-daemon: Adding device: /dev/input/event3...
input-event-daemon: Adding device: /dev/input/event4...
input-event-daemon: Adding device: /dev/input/event5...
input-event-daemon: Start listening on 6 devices...
done
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3506 (3.4 KiB) TX bytes:516 (516.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/# ifconfig
eth0 Link encap:Ethernet HWaddr 2A:6B:51:D8:65:03
inet6 addr: fe80::286b:51ff:fed8:6503/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7186 (7.0 KiB) TX bytes:586 (586.0 B)
Interrupt:86
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:337974 (330.0 KiB) TX bytes:337974 (330.0 KiB)
root@ok3588:/#
这篇关于20240612在飞凌的OK3588-C开发板的linux系统下测试以太网的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!