你好,我换了一个官方的sdk,现在在uboot下可以ping通了,但在内核下ping不通,具体如下:
U-Boot# setenv ipaddr 192.172.1.8;setenv serverip 192.172.1.85;setenv gatewayip 192.172.1.1;ping 192.172.1.85;
link up on port 0, speed 100, full duplex
link up on port 1, speed 100, full duplex
Using cpsw device
host 192.172.1.85 is alive
可以看出rgmii2是绑定在port 1 上的,可以这样理解么??(因为用port 0 一直ping不通)
2. 以下是内核启动网卡相关的信息:
[ 10.821136] Detected MACID=68:c9:b:c6:af:5e
[ 10.826782] cpsw: Detected MACID = 68:c9:0b:c6:af:60
[ 10.834350] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 10.842163] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:27:44 UTC (946686464)
[ 13.164489] kjournald starting. Commit interval 5 seconds
[ 13.170318] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
[ 13.183502] EXT3-fs (mmcblk0p2): using internal journal
[ 13.188995] EXT3-fs (mmcblk0p2): recovery complete
[ 13.203735] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 13.211029] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 13.217803] Freeing init memory: 236K
[ 13.543518] FAT-fs (mmcblk0p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 13.565002] FAT-fs (mmcblk0p1): IO charset utf8 not found
mount: mounting /dev/mmcblk0p1 on /sddisk failed: Invalid argument
mount: mounting /dev/mmcblk0p2 on /sddisk failed: Device or resource busy
modprobe: chdir(3.2.0): No such file or directory
Try to bring net interface up ...
sh: 1: unknown operand
ifconfig eth0 hw ether 10:23:45:67:89:ab
[ 13.709899] net eth0: CPSW phy found : id is : 0x1410dd1
ifconfig eth0 192.168.1.6 netmask 255.255.255.0 up
add default gw 192.168.1.2
Done
[01/Jan/2000:00:27:47 +0000] boa: server version Boa/0.94.13
[01/Jan/2000:00:27:47 +0000] boa: server built Jun 5 2012 at 15:18:10.
[01/Jan/2000:00:27:47 +0000] boa: starting server pid=872, port 80
Segmentation fault
/etc/rc.d/init.d/leds: line 16: led-player: not found
Please press Enter to activate this console. [ 15.703002] PHY: 0:00 - Link is Up - 100/Full
可以看出找到了两个mac地址,那我应该用那一个呢??
3. 以下是ifconfig输出:
~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 10:23:45:67:89:AB
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING 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)
eth1 Link encap:Ethernet HWaddr 68:C9:0B:C6:AF:60
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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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
~ # ifconfig eth1 192.172.1.88
[ 202.582916] PHY 0:01 not found
~ # ifconfig eth1 up
~ # ifconfig eth1 192.172.1.88
~ # ping 192.172.1.85
PING 192.172.1.85 (192.172.1.85): 56 data bytes
^C
--- 192.172.1.85 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
请问如何处理??我觉得应该是用eth1去ping才能ping通,是这样么?? 谢谢
你好,我换了一个官方的sdk,现在在uboot下可以ping通了,但在内核下ping不通,具体如下:
U-Boot# setenv ipaddr 192.172.1.8;setenv serverip 192.172.1.85;setenv gatewayip 192.172.1.1;ping 192.172.1.85;
link up on port 0, speed 100, full duplex
link up on port 1, speed 100, full duplex
Using cpsw device
host 192.172.1.85 is alive
可以看出rgmii2是绑定在port 1 上的,可以这样理解么??(因为用port 0 一直ping不通)
2. 以下是内核启动网卡相关的信息:
[ 10.821136] Detected MACID=68:c9:b:c6:af:5e
[ 10.826782] cpsw: Detected MACID = 68:c9:0b:c6:af:60
[ 10.834350] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 10.842163] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:27:44 UTC (946686464)
[ 13.164489] kjournald starting. Commit interval 5 seconds
[ 13.170318] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
[ 13.183502] EXT3-fs (mmcblk0p2): using internal journal
[ 13.188995] EXT3-fs (mmcblk0p2): recovery complete
[ 13.203735] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 13.211029] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 13.217803] Freeing init memory: 236K
[ 13.543518] FAT-fs (mmcblk0p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 13.565002] FAT-fs (mmcblk0p1): IO charset utf8 not found
mount: mounting /dev/mmcblk0p1 on /sddisk failed: Invalid argument
mount: mounting /dev/mmcblk0p2 on /sddisk failed: Device or resource busy
modprobe: chdir(3.2.0): No such file or directory
Try to bring net interface up ...
sh: 1: unknown operand
ifconfig eth0 hw ether 10:23:45:67:89:ab
[ 13.709899] net eth0: CPSW phy found : id is : 0x1410dd1
ifconfig eth0 192.168.1.6 netmask 255.255.255.0 up
add default gw 192.168.1.2
Done
[01/Jan/2000:00:27:47 +0000] boa: server version Boa/0.94.13
[01/Jan/2000:00:27:47 +0000] boa: server built Jun 5 2012 at 15:18:10.
[01/Jan/2000:00:27:47 +0000] boa: starting server pid=872, port 80
Segmentation fault
/etc/rc.d/init.d/leds: line 16: led-player: not found
Please press Enter to activate this console. [ 15.703002] PHY: 0:00 - Link is Up - 100/Full
可以看出找到了两个mac地址,那我应该用那一个呢??
3. 以下是ifconfig输出:
~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 10:23:45:67:89:AB
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING 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)
eth1 Link encap:Ethernet HWaddr 68:C9:0B:C6:AF:60
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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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
~ # ifconfig eth1 192.172.1.88
[ 202.582916] PHY 0:01 not found
~ # ifconfig eth1 up
~ # ifconfig eth1 192.172.1.88
~ # ping 192.172.1.85
PING 192.172.1.85 (192.172.1.85): 56 data bytes
^C
--- 192.172.1.85 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
请问如何处理??我觉得应该是用eth1去ping才能ping通,是这样么?? 谢谢
举报