|
楼主 |
发表于 2004-7-5 09:53:16
|
显示全部楼层
在这里先谢谢版主了,
lsmod 是在linux中还是在skyeye uclinxu中运行啊两种结果我多显示一下
linux 中的
[root@linux-hetec skyeye]# lsmod
Module Size Used by Not tainted
tun 5696 0
soundcore 6532 0 (autoclean)
agpgart 43072 2 (autoclean)
nfsd 79920 8 (autoclean)
lockd 58064 1 (autoclean) [nfsd]
sunrpc 79324 1 (autoclean) [nfsd lockd]
autofs 13348 0 (autoclean) (unused)
8139too 17704 1
mii 2156 0 [8139too]
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14936 1 [iptable_filter]
microcode 4668 0 (autoclean)
mousedev 5524 0 (unused)
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
ehci-hcd 17480 0 (unused)
usb-uhci 26188 0 (unused)
usbcore 77024 1 [hid ehci-hcd usb-uhci]
ext3 70368 1
jbd 52212 1 [ext3]
/////////////////////////////////////////////////////
在skyeye uclinux 中我把busybox中的 lsmod 编译进去
运行有错误,Function not implemented
//////////////////////////////
[root@linux-hetec skyeye]# skyeye linux
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
***************************************************************
************ SkyEye is Simulator based on GDB *************
***************************************************************
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) tar s
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x813da8c
nic[0] info: state=1, ethmod num=1, mac addr=0:5:3:2:1:f, hostip=192.168.168.11
nic_init_begin
tapif_init begin
tapif_init: fd 6
tapif_init: system("ifconfig tap0 inet 192.168.168.11");
tapif_init end
nic_init_end
SKYEYE: use arm7100 mmu ops
Loaded ROM ./romfs.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xc8cb0 vma 0x100a000
Loading section .data, size 0x88cc vma 0x10d4000
Start address 0x1000000
Transfer rate: 7187424 bits in <1 sec.
(SkyEye) run
Starting program: /home/houen/Desktop/skyeye/linux
Linux version 2.4.20-uc0 (root@linux-hetec) (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/)) #65 一 7月 5 09:04:41 CST 2004
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: 3016KB available (803K 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-15007FF [VIRTUAL 1400000-15007FF] (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
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)
/> ping 192.168.168.11
PING 192.168.168.11 (192.168.168.11): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.168.11 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 192.168.168.11 64 chars, ret=-1 |
|