QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2946|回复: 1

如何将romfs根文件系统挂载到我的nand flash上呢

[复制链接]
发表于 2006-9-30 22:13:24 | 显示全部楼层 |阅读模式
我使用的是深圳优龙公司的开发板 FS44B0XII
该开发板拥有
2M nor flash   Start Addr:0x0000,0000    nGCS0
16M nand flash Start Addr:0x0200,0000 nGCS1
8M sdram Start Addr: 0x0C00,0000 nGCS6

开发板的说明书上给出的例子是将uclinux的内核映象zImage安装在nor flash的0x0001,0000处,将romfs安装在0x0010,0000处,然后启动的时候,将zImage解压到sdram的0x0c30,0000处,然后开始执行.最后挂载romfs文件系统.

但我现在由于需要一个更大的romfs,所以希望可以将其安装的nand flash上.
我试了很多方法,但都会提示无法找到根文件系统:
启动过程附后:

请问内核如何定位根文件系统的位置?具体该如何配置?

请大家不吝赐教
[code:1][color=darkred]Run program from 0xC300000
Set boot params = root=/dev/rom0 console=ttyS0,115200
Uncompressing Linux............................................................. done, booting the kernel.

Linux version 2.4.24-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/)) #5 四 9月 28 22:59:39 CST 2006

Processor: Samsung S3C44B0X revision 0

Architecture: S3C44B0X

On node 0 totalpages: 2048

zone(0): 0 pages.

zone(1): 2048 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/rom0 console=ttyS0,115200

Console: colour dummy device 80x30

Calibrating delay loop... 30.31 BogoMIPS

Memory: 8MB = 8MB total

Memory: 6004KB available (1671K code, 304K data, 72K init)

Dentry cache hash table entries: 1024 (order: 1, 8192 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: 2048 (order: 1, 8192 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

devfs: v1.12c (20020818) Richard Gooch ([email protected])

devfs: boot_options: 0x0

NTFS driver v1.1.22 [Flags: R/O]

LCD buffer : 0c2e0000

fbcon_setup: No support for fontwidth 8

fbcon_setup: type 0 (aux 0, depth 0) not supported

Console: switching to colour frame buffer device 80x30

err=0

pty: 256 Unix98 ptys configured

ads7843_ts initialized

ttyS00 at I/O 0x1d00000 (irq = 3) is a S3C44B0

ttyS01 at I/O 0x1d04000 (irq = 2) is a S3C44B0

ne.c:v1.10 9/23/94 Donald Becker ([email protected])

Last modified Nov 1, 2000 by Paul Gortmaker

NE*000 ethercard probe at 0x6000000:NE2000 driver modified by antisle, Http://www.uCdragon.com

00 49 34 00 00 00

eth0: NE2000 found at 0x6000000, using IRQ 24

Blkmem copyright 1998,1999 D. Jeff Dionne

Blkmem copyright 1998 Kenneth Albanowski

Blkmem 1 disk images:

0: 2300000-22FFFFF [VIRTUAL 2300000-22FFFFF] (RO)

RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize

loop: loaded (max 8 devices)

Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4

ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx

SCSI subsystem driver Revision: 1.00

NAND device: Manufacturer ID: 0xec, Chip ID: 0x73 (Samsung NAND 16MiB 3,3V)

Using static partition definition

Creating 4 MTD partitions on "NAND 16MiB 3,3V":

0x00000000-0x00030000 : "boot"

0x00030000-0x00200000 : "kernel"

0x00200000-0x00800000 : "rootfs"

0x00800000-0x01000000 : "ext-fs1"

No NAND device found!!!

usb.c: registered new driver usbdevfs

usb.c: registered new driver hub

sl811.c: v0.30 : Sl811 USB Host Controller Alternate Driver

usb.c: new USB bus registered, assigned bus number 1

sl811.c: USB SL811 at a000000,a000001, IRQ 21

hub.c: USB hub found

hub.c: 1 port detected

usb.c: registered new driver hid

hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[email protected]>

hid-core.c: USB HID support drivers

ov511.c: Error: /proc/video/ does not exist

usb.c: registered new driver ov511

ov511.c: v1.63 for Linux 2.4 : ov511 USB Camera Driver

Initializing USB Mass Storage driver...

usb.c: registered new driver usb-storage

USB Mass Storage support registered.

Linux video capture interface: v1.00

mice: PS/2 mouse device common for all mice

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP, IGMP

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 512 bind 512)

NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com

Blkmem: bad access: block=2, count=2 (pos=800, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 2

EXT2-fs: unable to read superblock

cramfs: wrong magic

Blkmem: bad access: block=0, count=1 (pos=200, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 0

FAT: unable to read boot sector

Blkmem: bad access: block=0, count=1 (pos=200, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 0

FAT: unable to read boot sector

Blkmem: bad access: block=64, count=2 (pos=8400, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 64

isofs_read_super: bread failed, dev=1f:00, iso_blknum=16, block=32

Blkmem: bad access: block=0, count=1 (pos=200, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 0

NTFS: Reading super block failed

yaffs: dev is 7936 name is "1f:00"

Blkmem: bad access: block=0, count=2 (pos=400, len=0)

end_request: I/O error, dev 1f:00 (Blkmem), sector 0

romfs: unable to read superblock

Kernel panic: VFS: Unable to mount root fs on 1f:00[/color][/code:1]
 楼主| 发表于 2006-10-1 21:28:53 | 显示全部楼层
请问是否romfs不支持nand flash?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-22 17:31 , Processed in 0.085875 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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