我用自己的u-boot和内核加ti论坛上搜到文件系统FlasherFS,在BBBlack开发板上可以跑起来,但是我看不到他动态分配的地址。是什么引起的,还是哪里出问题了?
启动log:
[ 2.259514] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 2.265901] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 2.275152] libphy: 4a101000.mdio: probed
[ 2.279365] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driv er SMSC LAN8710/LAN8720
[ 2.290715] Detected MACID = f4:5e:ab:64:34:0d
[ 2.300706] omap_rtc 44e3e000.rtc: setting system clock to 2014-02-17 19:04:4 6 UTC (1392663886)
[ 2.336006] EXT3-fs (mmcblk0p2): recovery required on readonly filesystem
[ 2.343301] EXT3-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.370333] kjournald starting. Commit interval 5 seconds
[ 2.380836] EXT3-fs (mmcblk0p2): recovery complete
[ 2.385855] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 2.393233] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 2.403402] devtmpfs: mounted
[ 2.407083] Freeing unused kernel memory: 376K (c07f0000 – c084e000)
INIT: version 2.88 booting
Starting udev
[ 2.993469] udev[701]: starting version 164
[ 7.490267] random: nonblocking pool is initialized
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or d irectory
bootlogd.
[ 8.391469] EXT3-fs (mmcblk0p2): using internal journal
Configuring network interfaces… [ 9.193776] net eth0: initializing cpsw ver sion 1.12 (0)
[ 9.280277] net eth0: phy found : id is : 0x7c0f1
[ 9.285338] libphy: PHY 4a101000.mdio:01 not found
[ 9.290394] net eth0: phy 4a101000.mdio:01 not found on slave 1
udhcpc (v1.20.2) started
Sending discover…
[ 12.390071] libphy: 4a101000.mdio:00 – Link is Up – 100/Full
Sending discover…
Sending discover…
No lease, failing
done.
INIT: Entering runlevel: 5
Starting syslogd/klogd: done
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org zyr-am335x ttyO0
Arago 2013.05 zyr-am335x ttyO0
我也可以ifconfig找到eth0:
eth0 Link encap:Ethernet HWaddr F4:5E:AB:64:34:0D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:139 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:44758 (43.7 KiB)
Interrupt:56
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
但是并没发现它分配的动态IP地址。
查看etc下的resolv.conf 里边也是空的。
使用udhcpc命令,一直是Sending Discover…
root@zyr-am335x:~# udhcpc -i eth0
udhcpc (v1.20.2) started
Sending discover…
Sending discover…
Sending discover…
Sending discover…
Sending discover…
Sending discover…
发生这种情况是什么造成的?
Jian Zhou:
请问您是在测试烧写么?是用USB模拟网卡么?