[Skyeye-developer] SkyEye NIC does not work in my kernel

Stanislav Meduna stano at meduna.org
Sun Jul 8 16:44:13 CST 2007


Hi,

I am trying to get the uClinux 20070130 running on skyeye 1.2.3
inclusive networking working. I got to the point where
the kernel boots and the basic applications work,
I have the tap0 interface, the kernel sees the uClinux's
SkyEye NE2k 'card', but there is no communication.
All I get is
  PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
  From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
  From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
  From 10.0.0.1 icmp_seq=4 Destination Host Unreachable

I tried the testsuite and the networking works - but
there is no SkyEye NE2k, but the 'normal' one. SkyEye
is the same, as is the skyeye.conf. I even tried
to compile a generic NE2k driver instead of
SkyEye's, no difference.

So the problem is in my kernel. How can I find the exact
kernel configuration of the kernel used in the
skyeye-testsuite-2.2/uClinux/at91/uclinux_rtl8019,
so I can compare them? Are there any debugging
possibilities in the sene2k and/or SkyEye
to check what part of the communication does
not work?


I have attached logs from both sessions. The relevant
differences are:

-Linux version 2.4.27-uc1 (skyeyeuser at debian) (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/)) #2 Tue Aug 9 18:45:41 CST 2005

+Linux version 2.4.32-uc0 (arm at armie) (gcc version 3.4.5) #19 Sat Jul 7
21:52:23 CEST 2007

-ne.c:v1.10 9/23/94 Donald Becker (becker at scyld.com)
-Last modified Nov 1, 2000 by Paul Gortmaker
-NE*000 ethercard probe at 0xfffa0000: 00 04 03 02 01 0f
-eth0: NE2000 found at 0xfffa0000, using IRQ 16.

+SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
+sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0


Thanks
-- 
                                    Stano
-------------- next part --------------
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0 
mach info: name at91, mach_init addr 0x80623c0
SKYEYE: use arm7100 mmu ops
big_endian is false.
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
uart_mod:0, desc_in:, desc_out:, converter:
Loaded ROM   ./romfs.img
exec file "linux-sene2k"'s format is elf32-little.
load section .init: addr = 0x01000000  size = 0x0000a000.
load section .text: addr = 0x0100a000  size = 0x000da7e0.
load section .data: addr = 0x010e6000  size = 0x0000a3ac.
not load section .bss: addr = 0x010f03c0  size = 0x00021570 .
not load section .comment: addr = 0x00000000  size = 0x000011b8 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x0003b3b2 .
not load section .debug_info: addr = 0x00000000  size = 0x00af574c .
not load section .debug_line: addr = 0x00000000  size = 0x00097928 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0000c609 .
not load section .debug_aranges: addr = 0x00000000  size = 0x000024f8 .
not load section .debug_str: addr = 0x00000000  size = 0x000240cf .
not load section .debug_frame: addr = 0x00000000  size = 0x00019424 .
not load section .debug_ranges: addr = 0x00000000  size = 0x000009c0 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.32-uc0 (arm at armie) (gcc version 3.4.5) #19 Sat Jul 7 21:52:23 CEST 2007
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... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2944KB available (873K code, 180K 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-14ED7FF [VIRTUAL 1400000-14ED7FF] (RO) <ROMFS>
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 1024)
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: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <davidm at snapgear.com>
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)
/> 
-------------- next part --------------
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0 
mach info: name at91, mach_init addr 0x80623c0
SKYEYE: use arm7100 mmu ops
big_endian is false.
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
uart_mod:0, desc_in:, desc_out:, converter:
Loaded ROM   ./romfs.img
exec file "linux"'s format is elf32-little.
load section .init: addr = 0x01000000  size = 0x0000b000.
load section .text: addr = 0x0100b000  size = 0x000e3920.
load section .data: addr = 0x010f0000  size = 0x0000a430.
not load section .bss: addr = 0x010fa440  size = 0x00022100 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.27-uc1 (skyeyeuser at debian) (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/)) #2 Tue Aug 9 18:45:41 CST 2005
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... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2900KB available (910K code, 183K data, 44K 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
ne.c:v1.10 9/23/94 Donald Becker (becker at scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0xfffa0000: 00 04 03 02 01 0f
eth0: NE2000 found at 0xfffa0000, using IRQ 16.
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1512BFF [VIRTUAL 1400000-1512BFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
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: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <davidm at snapgear.com>
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)
/> 
-------------- next part --------------
#skyeye config file sample
cpu: arm7tdmi

mach: at91

mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,  addr=0x01400000, size=0x00400000, file=./romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
#net: type=cs8900a, ethmod=tuntap, hostip=10.0.0.1
#dbct: state=on


More information about the Skyeye-developer mailing list