QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1410|回复: 3

uClinux boot一半就不动了,romfs出问题,求救

[复制链接]
发表于 2004-10-30 22:24:42 | 显示全部楼层 |阅读模式
我的uclinux和romfs都是使用tpu做好的版本,其中romfs我是这样做的:
#genromfs -d romfs -f romfs.img
这样,这个romfs.img足足有8M,使用超级终端将kernel和romfs.img下载到开发板并boot,提示如下:

blob> boot

Starting kernel ...

Uncompressing Linux..................................... done, booting the kern.
Linux version 2.4.19-uc1 (root@zxw) (gcc version 2.95.3 20010315 (release)(Cold4
Processor: Samsung S3C44B0 revision 1
Architecture: mba-44b0
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0 console=ttyS0 init=/linuxrc
Console: colour dummy device 80x30
Calibrating delay loop... 30.82 BogoMIPS
Memory: 16MB = 16MB total
Memory: 2624KB available (969K code, 230K 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
Initializing RT netlink socket
Starting kswapd
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
slram: not enough parameters.
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
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 8036 blocks [1 disk] into ram disk... swapper: allocation of 1!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
swapper: allocation of 1 pages failed!
Kernel panic: Out of memory and no killable processes...

这里停住了……

请问,这是什么原因?romfs.img是这样做的吗?我试过用uClinux-disk-0408来做的,但每次make romfs时都提示BusyBox错误,所以我想先用tpu的试试。谢谢。

如果我只xdownload kernel的话:
blob> boot

Starting kernel ...

Uncompressing Linux..................................... done, booting the kern.
Linux version 2.4.19-uc1 (root@zxw) (gcc version 2.95.3 20010315 (release)(Cold4
Processor: Samsung S3C44B0 revision 1
Architecture: mba-44b0
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0 console=ttyS0 init=/linuxrc
Console: colour dummy device 80x30
Calibrating delay loop... 30.82 BogoMIPS
Memory: 16MB = 16MB total
Memory: 2624KB available (969K code, 230K 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)
Mount-cache hash table entries: 512 (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
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
slram: not enough parameters.
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
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Freeing initrd memory: 12288K
Kernel panic: VFS: Unable to mount root fs on 01:00

这是不是说明uClinux这一块已经做好了,启动不了就是romfs的问题?谢谢!
发表于 2004-10-31 18:11:18 | 显示全部楼层
可能是文件系统映象的问题
回复

使用道具 举报

 楼主| 发表于 2004-11-1 12:57:38 | 显示全部楼层
谢谢!
我后来从新用uClinux disk生成了另一个romfs image,xdownload后提示:
Uncompressing Linux...................................... done, booting the ker.
Linux version 2.4.19-uc1 (root@zxw) (gcc version 2.95.3 20010315 (release)(Cold4
Processor: Samsung S3C44B0 revision 1
Architecture: mba-44b0
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0 console=ttyS0 init=/linuxrc
Console: colour dummy device 80x30
Calibrating delay loop... 30.82 BogoMIPS
Memory: 16MB = 16MB total
Memory: 2608KB available (985K code, 226K data, 60K 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
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
slram: not enough parameters.
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
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 637 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 12288K
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 60K
Warning: unable to open an initial console.
Kernel panic: Attempted to kill init!

这个console是怎么启动的?
回复

使用道具 举报

发表于 2004-11-1 20:04:14 | 显示全部楼层
这个好像是你的busybox有问题:(
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-22 08:03 , Processed in 0.092290 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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