QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1149|回复: 3

请教网络问题

[复制链接]
发表于 2006-4-6 14:15:52 | 显示全部楼层 |阅读模式
环境:
fedora 4
skyeye-v1 1.2.0_RC6
uclinux-dist-20030522
skyeye.conf如下:
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=./boot.rom
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: state=on, type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.2

现象如下:
[root@kma-linux uClinux-dist]# ../binary/skyeye -e linux-2.4.x/linux
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8062d84
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.2
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./boot.rom
exec file "linux-2.4.x/linux"'s format is elf32-little.
load section .init: addr = 0x01000000  size = 0x0000a000.
load section .text: addr = 0x0100a000  size = 0x000ac810.
load section .data: addr = 0x010b8000  size = 0x00007984.
not load section .bss: addr = 0x010bf9a0  size = 0x00021494 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x00031ca0 .
not load section .debug_info: addr = 0x00000000  size = 0x013a553f .
not load section .debug_line: addr = 0x00000000  size = 0x00276ff6 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0000a121 .
not load section .debug_aranges: addr = 0x00000000  size = 0x00001e90 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.20-uc0 (root@kma-linux) (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/)) #4 Wed Apr 5 18:33:50 CST 2006Processor: 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: 3140KB available (690K code, 169K 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-14B43FF [VIRTUAL 1400000-14B43FF] (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: Unknown error 30
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Unknown error 30
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)
/> ifconfig
eth0      Link encap:Ethernet  HWaddr 02:00:00:10:00:00
          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:100
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
          Interrupt:16

/> ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2): 56 data bytes
ping: sendto: Unknown error 22
ping: wrote 10.0.0.2 64 chars, ret=-1
 楼主| 发表于 2006-4-6 14:16:35 | 显示全部楼层
谢谢.
回复

使用道具 举报

 楼主| 发表于 2006-4-7 09:12:30 | 显示全部楼层
看来只能去买开发板了,呵呵.
回复

使用道具 举报

 楼主| 发表于 2006-4-7 13:38:45 | 显示全部楼层
uClinux起来以后,在主机上发现多了个tap0的网卡,网址就是刚刚在uClinux上设置的.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 22:32 , Processed in 0.087742 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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