QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2728|回复: 12

Skyeye1.2.8运行Linux2.6.14正常,但是ping不通主机

[复制链接]
发表于 2009-8-31 00:31:40 | 显示全部楼层 |阅读模式
Skyeye1.2.8运行Linux2.6.14正常,但是ping不通主机,CS8900网卡安装也正常,Ifconfig 显示都很正常,在Skyeye环境中,eth0的IP地址为:10.0.0.2,在宿主机的一端,eth0的IP地址为:10.0.0.9,出现的TAP0,IP地址为:10.0.0.1,一切似乎都很正常,skyeye也能ping通自己:10.0.0.2,但就是ping不通10.0.0.1,请各位分析一下原因,谢谢
 楼主| 发表于 2009-8-31 09:24:03 | 显示全部楼层

以下是Skyeye的配置文件

# skyeye config file for S3C2410X

cpu: arm920t
mach: s3c2410x

# physical memory
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00800000
mem_bank: map=M, type=RW, addr=0xc0800000, size=0x00800000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x01000000

# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000

mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1, state=on


lcd: type=s3c2410x, mod=gtk
#dbct:state=on
回复

使用道具 举报

 楼主| 发表于 2009-8-31 09:25:04 | 显示全部楼层

以下是Skyeye的运行情况

[root@localhost EXEC]# skyeye -e vmlinux
Your elf file is little endian.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x807c440
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
exec file "vmlinux"'s format is elf32-little.
load section .init: addr = 0xc0008000  size = 0x00017000.
load section .text: addr = 0xc001f000  size = 0x0017a3b4.
not load section .pci_fixup: addr = 0xc01993b4  size = 0x00000000 .
not load section __ksymtab: addr = 0xc01993b4  size = 0x00000000 .
not load section __ksymtab_gpl: addr = 0xc01993b4  size = 0x00000000 .
not load section __kcrctab: addr = 0xc01993b4  size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0xc01993b4  size = 0x00000000 .
load section __param: addr = 0xc01993b4  size = 0x0000026c.
load section .data: addr = 0xc019a000  size = 0x0002ff30.
not load section .bss: addr = 0xc01c9f40  size = 0x000158f8 .
not load section .comment: addr = 0x00000000  size = 0x00001cd4 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
Linux version 2.6.14 ([email protected]) (gcc version 3.4.1) #1 Mon Aug 31 09:13:12 CST 2009
CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown)
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 62.400 MHz, memory 62.400 MHz, peripheral 62.400 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: mem=32M console=ttySAC0 root=/dev/ram initrd=0xc0800000,0x00800000 ramdisk_size=8192
PID hash table entries: 256 (order: 8, 4096 bytes)
timer tcon=00000000, tcnt cb1f, tcfg 00000200,00000000, usec 0000189e
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 22272KB available (1513K code, 278K data, 92K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
softlockup thread 0 started up.
Freeing initrd memory: 8192K
NET: Registered protocol family 16
S3C2410: Initialising architecture
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev D at 0xe0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 92K
init started:  BusyBox v1.4.1 (2007-02-10 01:19:06 CST) multi-call binary
Starting pid 16, console /dev/console: '/etc/init.d/rcS'
mkdir: cannot create directory '/var/tmp': Read-only file system
mkdir: cannot create directory '/var/log': Read-only file system
mkdir: cannot create directory '/var/run': Read-only file system
mkdir: cannot create directory '/var/lock': Read-only file system
Welcome to
     _      _____      __   __    _      _
    /     /  __     /  _/    | |    |_|
   / _    | |  | |  / /   /  | |     _ ____  _   _  _  _
  / /_   | |__| | / /  _/   | |    | |  _ | | | | / /
/ /___  | |__  | |       | || |___ | | |_| | |_| |/   
/_/     _| |   _|_|       |_||_____||_|_| |_|____|_/_/
            
ARMLinux for Skyeye:
For further information please check:
http://www.skyeye.org/



BusyBox v1.4.1 (2007-02-10 01:19:06 CST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/ash: can't access tty; job control turned off
/ $ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:0A:5B
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.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)
          Interrupt:53 Base address:0x300

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
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/ $ ping -c 2 10.0.0.2
PING 10.0.0.2 (10.0.0.2): 56 data bytes
64 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.0 ms

--- 10.0.0.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
/ $ ping -c 1 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 56 data bytes

--- 10.0.0.1 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
/ $
回复

使用道具 举报

 楼主| 发表于 2009-8-31 09:25:55 | 显示全部楼层

以下是宿主机的运行情况

[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:AB:45:C4
          inet addr:10.0.0.9  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:7573 (7.3 Kb)  TX bytes:420 (420.0 b)
          Interrupt:10 Base address:0xa000

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:18502 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18502 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1264892 (1.2 Mb)  TX bytes:1264892 (1.2 Mb)

tap0      Link encap:Ethernet  HWaddr 00:FF:6E:C2:FE:BB
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:140 (140.0 b)  TX bytes:42 (42.0 b)

[root@localhost root]# ping -c 2 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.039 ms

--- 10.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1014ms
rtt min/avg/max/mdev = 0.039/0.042/0.045/0.003 ms
[root@localhost root]# ping -c 2 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
From 10.0.0.9 icmp_seq=1 Destination Host Unreachable
From 10.0.0.9 icmp_seq=2 Destination Host Unreachable

--- 10.0.0.2 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1015ms
, pipe 2
[root@localhost root]#
回复

使用道具 举报

 楼主| 发表于 2009-8-31 09:28:09 | 显示全部楼层

网卡驱动安装正常

可以ping通自己,为什么就是不能Ping通主机,主机也不能ping通skyeye?请各位给分析一下原因,先行谢过!
回复

使用道具 举报

 楼主| 发表于 2009-8-31 09:53:14 | 显示全部楼层

在skyeye端ping 10.0.0.1时,宿主机有反应,详情如下:

/ $ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:0A:5B
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.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)
          Interrupt:53 Base address:0x300

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
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/ $ ping -c 1 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 56 data bytes

==========以下是宿主机器的情况================
[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:AB:45:C4
          inet addr:10.0.0.9  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12259 (11.9 Kb)  TX bytes:1500 (1.4 Kb)
          Interrupt:10 Base address:0xa000

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:31205 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31205 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2136443 (2.0 Mb)  TX bytes:2136443 (2.0 Mb)

tap0      Link encap:Ethernet  HWaddr 00:FF:76:8F:3C:92
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.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:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost root]# tcpdump -i tap0
tcpdump: listening on tap0
09:45:24.222413 arp who-has 10.0.0.1 tell 10.0.0.2
09:45:24.222454 arp reply 10.0.0.1 is-at 0:ff:76:8f:3c:92
09:45:24.226999 10.0.0.2 > 10.0.0.1: icmp: echo request (DF)
回复

使用道具 举报

 楼主| 发表于 2009-8-31 09:54:36 | 显示全部楼层

宿主机似乎收到了来自skyeye的ping的数据包

同时也回复了skyeye的数据包,不知为什么skyeye不能收到?
回复

使用道具 举报

 楼主| 发表于 2009-8-31 15:20:00 | 显示全部楼层

晕倒,多执行几次ifconfig eth0 down up就可以,实在不能想通

回复

使用道具 举报

 楼主| 发表于 2009-8-31 15:43:46 | 显示全部楼层

总结一下,skyeye运行起来后,

最好把宿主机的网卡重新down和up一下,这样,就肯定可以ping通双方了
回复

使用道具 举报

 楼主| 发表于 2009-8-31 15:45:16 | 显示全部楼层

呵呵

自问自答呀,呵呵
回复

使用道具 举报

发表于 2009-8-31 16:42:28 | 显示全部楼层

传说中的 RPWT ?
回复

使用道具 举报

 楼主| 发表于 2009-9-1 14:11:53 | 显示全部楼层
原帖由 jiangtao9999 于 2009-8-31 16:42 发表

传说中的 RPWT ?

可见细节非常关键!

RPWT?是什么意思?
回复

使用道具 举报

发表于 2009-9-3 09:57:08 | 显示全部楼层
恩,应该cs8900网卡模拟可能还有一些小的bug。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 08:02 , Processed in 0.041747 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表