LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2633|回复: 3

移植linux 2.6.14到s3c2410上面出现的问题

[复制链接]
发表于 2008-1-17 13:09:09 | 显示全部楼层 |阅读模式
RAMDISK:incomplete write (-28 != 32768) 8388608
RAMDISK:ran out of compressed data
invalid compressed format (err=1)
VFS:Cannot open root device "<NULL>" or unknown-block(0,0)
please append a correct "root=" boot option

kernel panic -not syncing:VFS: Unable to mount root fs on unknown-block(0,0)
 楼主| 发表于 2008-1-17 13:13:55 | 显示全部楼层
请各位帮忙看看
已经在make menuconfig中把ramdisk size配置成8192了.
但是还是有这个错误报出

我的板子是友善之臂 sbc-2410x
nand:64M

kernel是修改过支持nand flash的.
bootloader是uboot 1.4
kernel是从nand flash启动

谢谢各位帮忙看看,这个地方耗了好几天了,实在找不出原因了.google了很几十页也没看到正确答案.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-17 13:36:03 | 显示全部楼层
不好意思,应该把全部的信息贴出来,很抱歉

sbc2410=> tftp 0x30008000 zImage
TFTP from server 192.168.1.115; our IP address is 192.168.1.128
Filename 'zImage'.
Load address: 0x30008000
Loading: #################################################################
         #################################################################
         ###############################################
done
Bytes transferred = 905920 (dd2c0 hex)
sbc2410=> tftp 0x30800000 ramdisk.image.gz
TFTP from server 192.168.1.115; our IP address is 192.168.1.128
Filename 'ramdisk.image.gz'.
Load address: 0x30800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################################
done
Bytes transferred = 3843418 (3aa55a hex)
sbc2410=> go 30008000
## Starting application at 0x30008000 ...
Uncompressing Linux............................................................ done, booting the kernel.
Linux version 2.6.14.1 (root@localhost.localdomain) (gcc version 3.4.1) #9 Thu Jan 15 23:34:53 CST 2009
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: "console=ttySAC0 initrd=0x30800000,0x300000 root=/dev/ram0 init=/linuxrc"
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 59904KB available (1481K code, 308K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
softlockup thread 0 started up.
Freeing initrd memory: 3072K
NET: Registered protocol family 16
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4980000
s3c2410-nand: timing: Tacls 10ns, Twrph0 30ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00100000 : "bootloader"
0x00100000-0x00400000 : "kernel"
0x00400000-0x02c00000 : "root"
0x02d00000-0x03c00000 : "user"
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768) 8388608
RAMDISK: ran out of compressed data
invalid compressed format (err=1)
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-21 16:18:25 | 显示全部楼层
结贴:
错误原因
1.ramdisk是3.7M,cmdline中是0x300000,只有3M.所以这里有问题
2.uboot里面的bootargs应该和kernel里面的cmdline一致
uboot :console=ttySAC0 initrd=0x30800000,0x800000 root=/dev/ram0 init=/linuxrc
kernel:initrd=0x30800000,0x800000 root=/dev/ram0 init=/linuxrc rw console=ttySAC0,115200

修改以后,kernel启动,文件系统挂载.
回复 支持 反对

使用道具 举报

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

本版积分规则

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