板卡上有一路百兆以太网,PHY用的是DP83848。以太网时好时坏。好的时候启动脚本,这时候以太网可以正常使用:
Setting up networking on loopback device:
Setting up networking on eth0:
[ 5.613354] eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1)
[ 5.621820] ADDRCONF(NETDEV_UP): eth0: link is not ready
Adding static route for default gateway to 192.168.1.254:
Setting nameserver to 192.168.0.1 in /etc/resolv.conf:
Starting the port mapper:
Generating keys for the dropbear ssh server:
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
[ 6.177248] Boot process: boot process end!
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAglkB03QFLdPT9RXvvMTDHp1fsjUDt9Ey/OwjzAxQb0C4Q2knSwO84H4XC4e265RQexP01Ae3ipkWAF7tZKxJheOuIZGYPEzPIjJahB4JEx0vZOKUqcgF5qwj0pTeQwj8A0FxqLl33WM8+EG8vQtunnOhMWu4nhGu6SPLlTCWuGA8LDE= root@M6708
Fingerprint: md5 1e:d5:49:87:69:76:d7:e9:70:22:0e:a7:48:72:aa:60
Starting the dropbear ssh server:
Please set the system time using
date <mmddhhmnyyyy>
/sbin/hwclock -w
chown: changing ownership of `/home/user/.rhosts': Read-only file system
chown: changing ownership of `/home/user': Read-only file system
starting pid 2431, tty '': '/etc/rc.d/rc_mxc.S'
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
root filesystem built on Wed, 17 Dec 2014 09:42:42 +0800
Freescale Semiconductor, Inc.
M6708 login: [ 10.606940] PHY: 1:01 - Link is Up - 100/Full
[ 10.611408] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
而有时却会出现这种情况,显示找不到物理芯片PHY:
Setting up networking on loopback device:
Setting up networking on eth0:
[ 4.731179] eth0: no PHY, assuming direct connection to switch
[ 4.737021] PHY 0:00 not found
[ 4.740074] eth0: could not attach to PHY
SIOCSIFFLAGS: No such device
Adding static route for default gateway to 192.168.1.254:
SIOCADDRT: Network is unreachable
Setting nameserver to 192.168.0.1 in /etc/resolv.conf:
Starting the port mapper:
Generating keys for the dropbear ssh server:
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgm5B6TNKn3+dTvCIAgJE1prvD1Q1B+bjUr3IzMArHk6NsdPrMmbreV4DSelTuojgv8dmco6Cn62MkmyOhUr1fIQu6gl/WaeLrDMW757kHb3bTifREjtm1BF084t7b+kS+TQXRKgxRtgbuL+Qth+GUXsVQ6rXSaNC8/XZoed0w8gjM4M= root@M6708
Fingerprint: md5 b6:ff:76:b7:cc:19:12:4f:bd:65:22:bd:76:5e:a5:02
Starting the dropbear ssh server:
Please set the system time using
date <mmddhhmnyyyy>
/sbin/hwclock -w
[ 5.981308] Boot process: boot process end!
chown: changing ownership of `/home/user/.rhosts': Read-only file system
chown: changing ownership of `/home/user': Read-only file system
starting pid 2448, tty '': '/etc/rc.d/rc_mxc.S'
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
root filesystem built on Mon, 15 Dec 2014 10:16:30 +0800
Freescale Semiconductor, Inc.
M6708 login: root
Password:
这会是什么问题?硬件问题是不是可能性大些?板子上PHY的物理地址配置成了0x01,我注意到故障情况下显示PHY 0:00 not found,而正常情况下显示 eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1),难道是配置物理地址的电路虚焊导致的?
|