|
楼主 |
发表于 2004-5-22 00:04:20
|
显示全部楼层
感谢ksh大虾出手。眼前一亮,:-)。
我因为看到前面版主回caolingzhi的帖子,其中报的问题的表现差不多;
再加上不太了解有什么好的方法将输出信息重定向出来,以为这种问题很常见,所以只说了一下情况。
以下是重定向时盲输入的,请教有无更好的方法?
问题输出:
=====================================================
1. 我手头只有initrd.img,那个romfs-zmrx.img不知道啊。在哪儿?
=====================================================
=====================================================
2. skyeye.conf (用的halfyear给的)
----------
#skyeye config file sample
cpu: arm720t
mach: ep7312
#mem_num: 4
mem_bank: map=I, type=RW, addr=0x80000000, size=0x00010000
mem_bank: map=M, type=R, addr=0x0, size=0xC0000
mem_bank: map=M, type=R, addr=0xC0000, size=0x140000, file=initrd.img #, file=./romfs-zmrx.img
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x1000000
#lcd:state=on
#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet,
#hostip=192.168.111.1301
#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet, #hostip=192.168.177.131
=====================================================
=====================================================
3.先是for linux-2.4.13 patched for ep7312的输出:
-------------
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) target sim
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xe000 vma 0xc0028000
Loading section .text, size 0x10811c vma 0xc0036000
Loading section __ex_table, size 0x7c0 vma 0xc013e120
Loading section .data, size 0xa67b vma 0xc0140000
Start address 0xc0028000
Transfer rate: 9468600 bits in <1 sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux-2.4.13/vmlinux
Linux version 2.4.13-ac4-rmk1 ([email protected]) (gcc version 2.95.3 20010315 (release)) #7 Sat Mar 13 20:21:38 CST 2004
Processor: ARM ARM720T revision 0
Architecture: Cirrus Logic EDB7312 (EP7312 evaluation board)
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14612KB available (1056K code, 219K data, 56K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 9618kB/3206kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
cs89x0:cs89x0_probe(0x0)
PP_addr=0x0
eth0: incorrect signature 0x0
cs89x0: no cs8900 or cs8920 detected. Be sure to disable PnP with SETUP
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: FB0C0000-FB0BFFFF [VIRTUAL FB0C0000-FB0BFFFF] (RO)
Can't allocate major number 31 for Memory Technology Devices.
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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
Blkmem: bad access: block=2, count=2 (pos=800, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 2
EXT2-fs: unable to read superblock
Blkmem: bad access: block=0, count=2 (pos=400, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 0
romfs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 1f:00
Program received signal SIGINT, Interrupt.
0xc0040464 in panic (fmt=0xc01236fc "VFS: Unable to mount root fs on %s")
at panic.c:103
103 CHECK_EMERGENCY_SYNC
(SkyEye) bt
#0 0xc0040464 in panic (fmt=0xc01236fc "VFS: Unable to mount root fs on %s")
at panic.c:103
#1 0xc002c8b4 in mount_root () at super.c:1042
#2 0xc0036050 in prepare_namespace () at init/main.c:874
#3 0xc0036068 in init (unused=0xc01236fc) at init/main.c:908
(SkyEye) q
The program is running. Exit anyway? (y or n)
=====================================================
=====================================================
4.这里是for linux-2.4.18-rmk7的输出,我试着把, file=initrd.img 一句放到上面地址从0开始处,好象结果一样。
-------------
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"...
(no debugging symbols found)...
(SkyEye) target sim
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xb000 vma 0xc0028000
Loading section .text, size 0xbb898 vma 0xc0033000
Loading section __ex_table, size 0x6d8 vma 0xc00ee8a0
Loading section .data, size 0x961c vma 0xc00f0000
Start address 0xc0028000
Transfer rate: 6827104 bits in <1 sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux1/vmlinux
Linux version 2.4.18-rmk7 ([email protected]) (gcc version 2.95.3 20010315 (release)) #5 Sat Mar 13 09:08:00 CST 2004
CPU: ARM ARM720T revision 0
Machine: Cirrus Logic 7212/7312
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 13080KB available (750K code, 166K data, 44K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 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
ttyAM0 at I/O 0x100 (irq = 12) is a CLPS711x
ttyAM1 at I/O 0x1100 (irq = 2 is a CLPS711x
block: 64 slots per queue, batch=16
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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Freeing initrd memory: 2048K
Kernel panic: VFS: Unable to mount root fs on 01:00
Program received signal SIGINT, Interrupt.
0xc003ce2c in panic ()
(SkyEye) by
(SkyEye) bt
#0 0xc003ce2c in panic ()
#1 0xc002c53c in mount_root ()
#2 0xc0033138 in prepare_namespace ()
#3 0xc003322c in init ()
(SkyEye) q
The program is running. Exit anyway? (y or n)
===================================================== |
|