- 积分
- 27
贡献146
飞刀36 FD
注册时间2023-3-2
在线时间4 小时
扫一扫,手机访问本帖
|
按照V2.3的底板单独做的底板,现在系统可以正常启动,但是网络设备找不到,不知道什么原因。麻烦大侠给看看!
1、执行ifconfig后,只显示eno2和lo
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1532
inet6 fe80::744b:a4ff:fe8d:3032 prefixlen 64 scopeid 0x20<link>
ether 76:4b:a4:8d:30:32 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 2448 (2.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 635 bytes 343897 (343.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 635 bytes 343897 (343.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2、按照手册,对eno0执行操作
root@forlinx:~# sudo ifconfig eth0 192.168.1.3
SIOCSIFADDR: No such device
eth0: ERROR while getting inte**ce flags: No such device
root@forlinx:~# I2fwd -c 0xf -n 1 -- -p 0xc -q 1 --no-mac-uodating
-bash: I2fwd: command not found
root@forlinx:~# cat /etc/network/inte**ces.d/eno0
auto eno0
iface eno0 inet static
address 192.168.110.232
netmask 255.255.255.0
gateway 192.168.110.1
broadcast 192.168.110.255
dns-nameservers 8.8.8.8
root@forlinx:~# ip addr flush dev eno0
root@forlinx:~# systemctl restart networking.service
[ 1571.685437] net eno0: could not attach to PHY
Job for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.
root@forlinx:~# systemctl status networking.service
● networking.service - Raise network inte**ces
Loaded: loaded (/lib/systemd/system/networking.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-09-06 11:44:11 CST; 31s ago
Docs: man:inte**ces(5)
Process: 1239 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 1236 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTE**CES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settl
Main PID: 1239 (code=exited, status=1/FAILURE)
Sep 06 11:44:10 forlinx systemd[1]: Starting Raise network inte**ces...
Sep 06 11:44:10 forlinx ifup[1239]: RTNETLINK answers: No such device
Sep 06 11:44:10 forlinx ifup[1239]: Failed to bring up eno0.
Sep 06 11:44:11 forlinx systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Sep 06 11:44:11 forlinx systemd[1]: networking.service: Failed with result 'exit-code'.
Sep 06 11:44:11 forlinx systemd[1]: Failed to start Raise network inte**ces.
root@forlinx:~#
3、根据1和2的打印信息,eno0的phy没有正常工作,我检查电路后,我的底板与v2.3的开发板硬件配置一样,无法确定是哪里出问题
|
|