20240612在飞凌的OK3588-C开发板的linux系统下测试以太网

2024-06-12 21:12

本文主要是介绍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系统下测试以太网的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1055349

相关文章

不懂推荐算法也能设计推荐系统

本文以商业化应用推荐为例,告诉我们不懂推荐算法的产品,也能从产品侧出发, 设计出一款不错的推荐系统。 相信很多新手产品,看到算法二字,多是懵圈的。 什么排序算法、最短路径等都是相对传统的算法(注:传统是指科班出身的产品都会接触过)。但对于推荐算法,多数产品对着网上搜到的资源,都会无从下手。特别当某些推荐算法 和 “AI”扯上关系后,更是加大了理解的难度。 但,不了解推荐算法,就无法做推荐系

性能测试介绍

性能测试是一种测试方法,旨在评估系统、应用程序或组件在现实场景中的性能表现和可靠性。它通常用于衡量系统在不同负载条件下的响应时间、吞吐量、资源利用率、稳定性和可扩展性等关键指标。 为什么要进行性能测试 通过性能测试,可以确定系统是否能够满足预期的性能要求,找出性能瓶颈和潜在的问题,并进行优化和调整。 发现性能瓶颈:性能测试可以帮助发现系统的性能瓶颈,即系统在高负载或高并发情况下可能出现的问题

基于人工智能的图像分类系统

目录 引言项目背景环境准备 硬件要求软件安装与配置系统设计 系统架构关键技术代码示例 数据预处理模型训练模型预测应用场景结论 1. 引言 图像分类是计算机视觉中的一个重要任务,目标是自动识别图像中的对象类别。通过卷积神经网络(CNN)等深度学习技术,我们可以构建高效的图像分类系统,广泛应用于自动驾驶、医疗影像诊断、监控分析等领域。本文将介绍如何构建一个基于人工智能的图像分类系统,包括环境

水位雨量在线监测系统概述及应用介绍

在当今社会,随着科技的飞速发展,各种智能监测系统已成为保障公共安全、促进资源管理和环境保护的重要工具。其中,水位雨量在线监测系统作为自然灾害预警、水资源管理及水利工程运行的关键技术,其重要性不言而喻。 一、水位雨量在线监测系统的基本原理 水位雨量在线监测系统主要由数据采集单元、数据传输网络、数据处理中心及用户终端四大部分构成,形成了一个完整的闭环系统。 数据采集单元:这是系统的“眼睛”,

字节面试 | 如何测试RocketMQ、RocketMQ?

字节面试:RocketMQ是怎么测试的呢? 答: 首先保证消息的消费正确、设计逆向用例,在验证消息内容为空等情况时的消费正确性; 推送大批量MQ,通过Admin控制台查看MQ消费的情况,是否出现消费假死、TPS是否正常等等问题。(上述都是临场发挥,但是RocketMQ真正的测试点,还真的需要探讨) 01 先了解RocketMQ 作为测试也是要简单了解RocketMQ。简单来说,就是一个分

linux-基础知识3

打包和压缩 zip 安装zip软件包 yum -y install zip unzip 压缩打包命令: zip -q -r -d -u 压缩包文件名 目录和文件名列表 -q:不显示命令执行过程-r:递归处理,打包各级子目录和文件-u:把文件增加/替换到压缩包中-d:从压缩包中删除指定的文件 解压:unzip 压缩包名 打包文件 把压缩包从服务器下载到本地 把压缩包上传到服务器(zip

嵌入式QT开发:构建高效智能的嵌入式系统

摘要: 本文深入探讨了嵌入式 QT 相关的各个方面。从 QT 框架的基础架构和核心概念出发,详细阐述了其在嵌入式环境中的优势与特点。文中分析了嵌入式 QT 的开发环境搭建过程,包括交叉编译工具链的配置等关键步骤。进一步探讨了嵌入式 QT 的界面设计与开发,涵盖了从基本控件的使用到复杂界面布局的构建。同时也深入研究了信号与槽机制在嵌入式系统中的应用,以及嵌入式 QT 与硬件设备的交互,包括输入输出设

JAVA智听未来一站式有声阅读平台听书系统小程序源码

智听未来,一站式有声阅读平台听书系统 🌟 开篇:遇见未来,从“智听”开始 在这个快节奏的时代,你是否渴望在忙碌的间隙,找到一片属于自己的宁静角落?是否梦想着能随时随地,沉浸在知识的海洋,或是故事的奇幻世界里?今天,就让我带你一起探索“智听未来”——这一站式有声阅读平台听书系统,它正悄悄改变着我们的阅读方式,让未来触手可及! 📚 第一站:海量资源,应有尽有 走进“智听

Linux 网络编程 --- 应用层

一、自定义协议和序列化反序列化 代码: 序列化反序列化实现网络版本计算器 二、HTTP协议 1、谈两个简单的预备知识 https://www.baidu.com/ --- 域名 --- 域名解析 --- IP地址 http的端口号为80端口,https的端口号为443 url为统一资源定位符。CSDNhttps://mp.csdn.net/mp_blog/creation/editor