QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1621|回复: 2

SkyEye+uCLinux,怎么把网络跑起来?

[复制链接]
发表于 2006-10-24 16:54:26 | 显示全部楼层 |阅读模式
我在vmware中安装了Redhat Enterpirse Linux 4。
使用SkyEye-1.2-RC8。编译成功。
使用uCLinux-dist-20030522,编译成功。
使用root用户执行insmod /lib/modules/2.6.95.EL/kernel/drivers/net/tun.ko,成功。
在uClinux-dist目录下执行../skyeye-v1/binary/skyeye -e linux-2.4.x/linux,配置文件内容如下:
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=images/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
lcd: state=on
net: state=on, mac=0:4:3:2:1:f, ethmod=tun, hostip=192.168.61.15
运行结果如下:
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8065420
can't find device module: (null)
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=192.168.61.15
can't find device module: (null)

SKYEYE: use arm7100 mmu ops
Loaded ROM   images/romfs.img
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 = 0x000c8360.
load section .data: addr = 0x010d4000  size = 0x00008768.
not load section .bss: addr = 0x010dc780  size = 0x000222b0 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x0003abca .
not load section .debug_info: addr = 0x00000000  size = 0x01730ec8 .
not load section .debug_line: addr = 0x00000000  size = 0x002e6e26 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0000b61c .
not load section .debug_aranges: addr = 0x00000000  size = 0x00002300 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.20-uc0 (s980724@s980724linux) (gcc version 2.95.3 20010315 (release)) #1 鈭?10#1 鈭?10??20 15:33:10 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: 3020KB available (800K code, 177K 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-1465BFF [VIRTUAL 1400000-1465BFF] (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
Command: mount -t ext2 /dev/ram0 /var
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/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>
黑体标明出错地方。
我应该怎么做呢?
发表于 2006-11-8 15:56:42 | 显示全部楼层
我照你的方法运行了下,结果居然没有错,可我不知道该怎么验证上网功能!
高手帮帮忙吧
回复

使用道具 举报

发表于 2006-11-9 21:40:49 | 显示全部楼层
需要附加uclinux4skyeye
然后按它上面的说明来做,就可以了
但是我又碰到一个问题:

主机系统能够PING到虚拟系统,但虚拟系统却不能PING到主机系统!

这是为什么阿?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 18:38 , Processed in 0.041129 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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