主题 : 2.6.24 移植 不能找到NAND 分区求助。 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 2063
精华: 0
发帖: 9
金钱: 90 两
威望: 27 点
综合积分: 18 分
注册时间: 2008-10-23
最后登录: 2011-06-01
楼主  发表于: 2008-11-13 16:10

 2.6.24 移植 不能找到NAND 分区求助。

我按照kasim 的 帖子做的,下载到开发板后启动,总是不能找到mtb分区,不知道是什么原因呢。
日志如下:

io scheduler deadline registered (default)

Console: switching to colour frame buffer device 133x43

fb0: s3c2410fb frame buffer device

GPIO L3 bus interface for S3C2440, installed

s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440

s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440

s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440

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

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit

)

s3c2410_nand_update_chip: chip c3ef94b8: 9

usbmon: debugfs is not available

usbcore: registered new interface driver libusual

s3c2410_udc: debugfs dir creation failed -19

s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes

ether gadget: using random self ethernet address

ether gadget: using random host ethernet address

usb0: Ethernet Gadget, version: May Day 2005

正常情况,这儿应该要打印出分区的信息的。



希望[url=profile.php?action=show&uid=27]kasim[/url] 大大 能给予指点。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-11-13 16:26
你需要在内核命令行上指定MTD的分区表,格式如下:
mtdparts=qq2440-nand:0x00030000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d2c000(rootfs)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 2063
精华: 0
发帖: 9
金钱: 90 两
威望: 27 点
综合积分: 18 分
注册时间: 2008-10-23
最后登录: 2011-06-01
2楼  发表于: 2008-11-13 17:52
按照 您说的做了 ,我是按照2.6.13的分区 改的(2.6.13 启动是正常的 ,bios是vivi) .
2.6.13 定义是这样的
    [0] = {
        .name    = "vivi",
        .size    = 0x00030000,
        .offset    = 0,
    },   
    [1] = {
        .name    = "kernel",
        .offset = 0x00050000,
        .size    = 0x00200000,
    },
    [2] = {
        .name    = "rootfs",
        .offset = 0x00250000,
        .size    = 0x03dac000,
    }

内核参数我是这样加的 mtdparts=qq2440-nand:0x00050000(vivi),0x00200000(kernel),-(rootfs)








但是现在出现了这个错误哈

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)

Please append a correct "root=" boot option; here are the available partitions:

1f00        320 mtdblock0 (driver?)

1f01      2048 mtdblock1 (driver?)

1f02      63168 mtdblock2 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-11-13 18:13
抱歉,忘了说了,这个内核不支持Yaffs,如果你用的是这种类型的文件系统image,需要自己加补丁
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 2063
精华: 0
发帖: 9
金钱: 90 两
威望: 27 点
综合积分: 18 分
注册时间: 2008-10-23
最后登录: 2011-06-01
4楼  发表于: 2008-11-14 09:23
哦,谢谢,我试试看