QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3314|回复: 1

2.6.22挂载yaffs文件系统的问题

[复制链接]
发表于 2007-11-16 19:11:46 | 显示全部楼层 |阅读模式
最近在移植linux到三星的s3c2410上,不过死活不能加载根文件系统,网上的方法都试过了,好像都没有什么效果,希望大家给我一点建议,究竟是哪一部分出了问题?下面就是我的输出信息:

Bootloader Start 0x33E00000
Loading Linux kernel to 0x30008000... /
Uncompressing Linux....................................................... done, booting the kernel.
[ 0.000000] Linux version 2.6.22.12 (ubuntu@ubuntu-desktop) (gcc version 3.4.1) #6 Fri Nov 16 16:57:05 CST 2007
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] Machine: SMDK2410
[ 0.000000] ATAG_INITRD is deprecated; please update your bootloader.
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU S3C2410A (id 0x32410002)
[ 0.000000] S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
[ 0.000000] S3C24XX Clocks, (c) 2004 Simtec Electronics
[ 0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
[ 0.000000] CPU0: D VIVT write-back cache
[ 0.000000] CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
[ 0.000000] CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
[ 0.000000] Built 1 zonelists. Total pages: 16256
[ 0.000000] Kernel command line: noinitrd root=/dev/mtdblock2 rootfstype=yaffs console=ttySAC0,115200 init=/linuxrc mem=64M mtdparts=s3c2410-nand:128K(Bootloader)ro,1920K(Kernel)ro,30M(Rootfs),-(user)
[ 0.000000] irq: clearing pending ext status 00000100
[ 0.000000] irq: clearing subpending status 00000002
[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[ 0.000000] timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
[ 0.000000] Console: colour dummy device 80x30
[ 0.005000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.010000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.030000] Memory: 64MB = 64MB total
[ 0.035000] Memory: 63104KB available (1488K code, 217K data, 92K init)
[ 0.135000] Mount-cache hash table entries: 512
[ 0.140000] CPU: Testing write buffer coherency: ok
[ 0.160000] S3C2410 Power Management, (c) 2004 Simtec Electronics
[ 0.165000] S3C2410: Initialising architecture
[ 0.170000] S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
[ 0.175000] DMA channel 0 at c4800000, irq 33
[ 0.180000] DMA channel 1 at c4800040, irq 34
[ 0.185000] DMA channel 2 at c4800080, irq 35
[ 0.190000] DMA channel 3 at c48000c0, irq 36
[ 0.225000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.235000] yaffs Nov 16 2007 16:56:55 Installing.
[ 0.240000] io scheduler noop registered
[ 0.245000] io scheduler anticipatory registered (default)
[ 0.250000] io scheduler deadline registered
[ 0.255000] io scheduler cfq registered
[ 0.280000] Console: switching to colour frame buffer device 30x40
[ 0.290000] fb0: s3c2410fb frame buffer device
[ 1.705000] S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
[ 1.710000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 1.730000] s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
[ 1.735000] s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
[ 1.745000] s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
[ 1.780000] RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
[ 1.795000] loop: module loaded
[ 1.800000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[ 1.810000] s3c2410-nand s3c2410-nand: Tacls=1, 10ns Twrph0=4 40ns, Twrph1=1 10ns
[ 1.815000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
[ 1.820000] Scanning device for bad blocks
[ 2.080000] Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
[ 2.085000] 0x00000000-0x00020000 : "boot"
[ 2.090000] 0x00020000-0x00200000 : "kernel"
[ 2.100000] 0x00200000-0x02000000 : "rootfs"
[ 2.110000] 0x02000000-0x04000000 : "ext-fs3"
[ 2.115000] S3C24XX RTC, (c) 2004,2006 Simtec Electronics
[ 2.125000] s3c2410-i2c s3c2410-i2c: slave address 0x10
[ 2.130000] s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
[ 2.135000] s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
[ 2.150000] yaffs: dev is 32505858 name is "mtdblock2"
[ 2.155000] yaffs: passed flags ""
[ 2.160000] yaffs: Attempting MTD mount on 31.2, "mtdblock2"
[ 2.240000] VFS: Mounted root (yaffs filesystem) readonly.
[ 2.240000] Freeing init memory: 92K
[ 2.245000] Warning: unable to open an initial console.
[ 2.250000] Failed to execute /linuxrc. Attempting defaults...
[ 2.255000] Kernel panic - not syncing: No init found. Try passing init= option to kernel.  


yaffs文件系统是用最新的yaffs2源代码编译出来的mkyaffsimage工具生成的,里面放的是最新版busybox。大家觉得是哪一部分出了问题?bootloader?kernel?还是根文件系统?
发表于 2008-2-25 09:57:47 | 显示全部楼层

回复 #1 dorice 的帖子

请问你的问题解决了吗,我也遇到了同样的问题,我编译的kernel-2.6.22.6
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 00:33 , Processed in 0.046626 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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