luhuashenhf 发表于 2006-5-7 21:08:21

初学者请教:run出错!请大家讨论!

***************************************************************
****                                                       ****
****   SkyEyeSimulator Ver 0.8.6 withGDB 5.3 Interface ****
****                                                       ****
***************************************************************
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.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) target sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x813ef78
SKYEYE: use arm7100 mmu ops
Loaded ROM ./boot.rom
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xdca80 vma 0x100a000
Loading section .data, size 0x9ce4 vma 0x10e8000
Start address 0x1000000
Transfer rate: 7879456 bits/sec.
(SkyEye) run
Starting program: /usr/src/uClinux-dist/linux-2.4.x/linux
Linux version 2.4.31-uc0 (root@localhost) (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/)) #7 日 5月 7 20:45:49 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... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2936KB available (882K 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-1402FFF (RO) <ROMFS>
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.
Kernel panic: No init found.Try passing init= option to kernel.

前面的都对吧。但是为什么找不到内核?
make dep
make linux
都成功了。
make romfs出错,一直没查出原因。
init 不是内核文件里的吗?应该和romfs文件没什么关系吧?
请指教!谢谢!

luhuashenhf 发表于 2006-5-8 11:08:23

Kernel panic: No init found. Try passing init= option to kernel.
这是什么意思?
:?:

ksh 发表于 2006-5-8 11:37:10

应该是文件系统的问题。你把你的romfs文件系统重新检查一下。。。。

luhuashenhf 发表于 2006-5-8 16:46:41

我在执行make romfs时出错了,以下是出错信息。不知是怎么回事。请指教!

make: Entering directory `/usr/src/uClinux-dist/user/boa'
for i in src ; do make -C $i romfs || exit ; done
make: Entering directory `/usr/src/uClinux-dist/user/boa/src'
romfs-inst.sh /bin/boa
cp: stat‘boa’失败: 没有那个文件或目录
make: *** Error 1
make: Leaving directory `/usr/src/uClinux-dist/user/boa/src'
make: *** Error 2
make: Leaving directory `/usr/src/uClinux-dist/user/boa'
make: *** Error 2
make: Leaving directory `/usr/src/uClinux-dist/user'
make: *** Error 1

lihengzk 发表于 2006-10-29 20:19:30

我也出现同样的问题
文件系统没有创建成功。
有那位大虾指导一下

lihengzk 发表于 2006-10-29 20:23:59

发表于: 2006年 05月08日 11:37    发表主题:       引用并回复
应该是文件系统的问题。你把你的romfs文件系统重新检查一下。。。。



想问问怎样检查文件系统是否正常!
页: [1]
查看完整版本: 初学者请教:run出错!请大家讨论!