wl_crystal 发表于 2006-1-18 22:09:56

[求助] 网卡起来了, 但ping不通,MAC 地址全是0

# ifconfig
eth0      Link encap:EthernetHWaddr 00:0C:29:2E:C8:5C
          inet addr:192.168.0.3Bcast:192.168.0.255Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:236 errors:0 dropped:0 overruns:0 frame:0
          TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:28896 (28.2 Kb)TX bytes:16388 (16.0 Kb)
          Interrupt:10 Base address:0x10a4

lo      Link encap:Local Loopback
          inet addr:127.0.0.1Mask:255.0.0.0
          UP LOOPBACK RUNNINGMTU:16436Metric:1
          RX packets:38744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38744 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2650698 (2.5 Mb)TX bytes:2650698 (2.5 Mb)

tap0      Link encap:EthernetHWaddr FE:FD:00:00:00:00
          inet addr:10.0.0.1Bcast:10.255.255.255Mask:255.0.0.0
          UP BROADCAST RUNNING NOARP MULTICASTMTU:1500Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)TX bytes:200 (200.0 b)
          Interrupt:5

# skyeye -e linux
skyeye: Command not found.
# ./skyeye -e linux
------------------------- SkyEye -V1.2 ---------------------------
Usage: SkyEye program
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file      the (ELF executable format)kernel file name.
-d                  in GDB Server mode (can be connected by GDB).
-c config-file      the skyeye configure file name.
-h                  This Help Display
-v                  This shows arch and cpu supported
------------------------------------------------------------------
debugmode= 0, filename = (null), server TCP port is 12345
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8072878
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
can't find device module: (null)
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./romfs.img
exec file "linux"'s format is elf32-little.
load section .init: addr = 0x01000000size = 0x0000a000.
load section .text: addr = 0x0100a000size = 0x000cffc0.
load section .data: addr = 0x010da000size = 0x00009154.
not load section .bss: addr = 0x010e3160size = 0x00022954 .
not load section .debug_abbrev: addr = 0x00000000size = 0x0003c105 .
not load section .debug_info: addr = 0x00000000size = 0x017c4c4d .
not load section .debug_line: addr = 0x00000000size = 0x002eb25a .
not load section .debug_pubnames: addr = 0x00000000size = 0x0000b97a .
not load section .debug_aranges: addr = 0x00000000size = 0x000023a0 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.20-uc0 ([email protected]) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #1 Áù 1ÔÂ 14 13:53:03 CST 2006
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2992KB available (831K code, 174K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1507BFF (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to
          ____ __
         /__| ||_|
    _   _| || | _ _____   ___
   | | | | || || |_ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <[email protected]>
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 10.0.0.2
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> /bin/ifconfig
eth0      Link encap:EthernetHWaddr 00:00:00:00:00:00
          inet addr:10.0.0.2Bcast:10.255.255.255Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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 iB)TX bytes:0 (0.0 iB)
          Interrupt:16
uclinux 和宿主机 互相ping不通, MAC地址比较奇怪,和配置文件中的不符

wl_crystal 发表于 2006-1-18 22:33:48

tap0 我是在宿主机上打开的
skyeye启动tap 总是显示 can't find device module: (null)

wl_crystal 发表于 2006-1-21 16:16:45

求助!

faif 发表于 2006-1-22 08:16:45

what is your linux image running on your skyeye emulator? did you use Linux kernel image and romfs from testsuite2.0?If you do, please give us details also with your skyeye.conf

The following wiki article should work:

http://skyeye.sourceforge.net/wiki/NetWorking
页: [1]
查看完整版本: [求助] 网卡起来了, 但ping不通,MAC 地址全是0