|
达人帮忙看看这个问题如何解决? 我在内核中加入了支持yaffs2的选项后,启动信息如下:
加入支持yaffs2的2.6启动不了,提示:unable to mount devfs, err: -2,请问如何解决?
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001c0000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux.............................................................. done, booti.
Linux version 2.6.14 ([email protected]) (gcc version 3.4.1) #1 Fri Aug 18 21:18:29 6
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 200.000 MHz, memory 100.000 MHz, peripheral 50.000 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: noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000007
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
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: 62848KB available (1581K code, 284K data, 92K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
softlockup thread 0 started up.
NET: Registered protocol family 16
S3C2410: Initialising architecture
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
yaffs Aug 18 2006 21:15:37 Installing.
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
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 4096K size 1024 blocksize
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4980000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "loader"
0x00020000-0x00030000 : "param"
0x00030000-0x001f0000 : "kernel"
0x00200000-0x00400000 : "root"
0x00400000-0x03ef8000 : "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
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
end_request: I/O error, dev mtdblock3, sector 0
romfs: unable to read superblock
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
**>> Erasure failed 2
**>> Block 2 retired
**>> Erasure failed 4
**>> Block 4 retired
**>> Erasure failed 5
**>> Block 5 retired
**>> Erasure failed 6
**>> Block 6 retired
<<<<<<<<<<省略部分>>>>>>>>>>>>
**>> Erasure failed 115
**>> Block 115 retired
VFS: Mounted root (yaffs filesystem) readonly.
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 92K
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
请问这个问题如何解决? 我是按照一篇文章做的,内核配置按照2.6.14对 smdk_2410的默认配置加上yaffs2文件系统的支持,
进入Device Drivers->Memory Technology Devices(MTD)目录,配置界面如下:
Memory Technology Device (MTD) support
[ ] Debugging │ │
[ ] MTD concatenating support │ │ MTD partitioning support │ │
[ ] RedBoot partition table parsing │ │
[ ] Command line partition table parsing │ │
[ ] ARM Firmware Suite partition parsing │ │
--- User Modules And Translation Layers │ │ Direct char device access to MTD devices │ │ Caching block device access to MTD devices │ │
[ ] FTL (Flash Translation Layer) support │ │
[ ] NFTL (NAND Flash Translation Layer) support │ │
[ ] INFTL (Inverse NAND Flash Translation Layer) support │ │
RAM/ROM/Flash chip drivers ---> │ │
Mapping drivers for chip access ---> │ │
Self-contained MTD device drivers ---> │ │
NAND Flash Device Drivers ---> │ │
进入NAND Flash Device Drivers目录,配置界面如下: NAND Device Support │ │
[ ] Verify NAND page writes │ │ NAND Flash support for S3C2410/S3C2440 SoC │ │ S3C2410 NAND driver debug │ │
[ ] S3C2410 NAND Hardware ECC │ │
[ ] DiskOnChip 2000, Millennium and Millennium Plus (NAND reimplement│ │
[ ] Support for NAND Flash Simulator │ │
回到File systems->Miscellaneous filesystems目录,配置信息如下: YAFFS2 file system support │ │
--- 512 byte / page devices │ │ Lets Yaffs do its own ECC │ │ Use the same ecc byte order as Steven Hill's nand_ecc.c │ │
--- 2048 byte (or larger) / page devices │ │ Autoselect yaffs2 format │ │ Disable lazy loading │ │ Turn off wide tnodes │ │ Turn off debug chunk erase check │ │ Cache short names in RAM
加上了devfs的选项,
/proc file system support │ │ /dev file system support (OBSOLETE) │ │ Automatically mount at boot │ │ Debug devfs │ │ Virtual memory file system support (former shm fs) │ │
[ ] Relayfs file system support
我的文件系统是使用cramfs的,是这个原因吗? 网上有帖子说出现这个错误是由于 "root=" 参数加得不对引起的.但是我不知道具体怎样操作,是不是要用busybox重新制作一个合适的文件系统?还有一个问题,启动配置的文件/etc/lilo.conf 是不是在制作文件系统的时候进行设置的? 恳请达人指教! |
|