[embedded]Wrong of kernel while initialling the NAND flash
There is something wrong with the kernel while initialling the NAND flash.
brd: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronicss3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1878 at 0x00000eac0000
Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "uboot"
0x000000060000-0x000000080000 : "param"
uncorrectable error :
0x000000080000-0x000000580000 : "Kernel"
ftl_cs: FTL header not found.
0x000000580000-0x000040580000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated
to 0xfa80000
ftl_cs: FTL header not found.
0x000000000000-0x000040000000 : "nand"
mtd: partition "nand" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated
to 0x10000000
Problem 1: Beyond the end of device
Edit u-boot file in /arch/arm/mach-s3c2440/mach-mini2440.c
static struct mtd_partition mini2440_default_nand_part[] = { [0] = { .name = "uboot", .offset = 0, .size = 0x00060000, }, [1] = { .name = "param", .offset = 0x00060000, .size = 0x00020000, }, [2] = { .name = "Kernel", .offset = 0x00080000, .size = 0x00500000, }, [3] = { .name = "root", .offset = 0x00580000, .size = 256*1024*1024 - 0x580000, //1024*1024*1024 }, [4] = { .name = "nand", .offset = 0x00000000, .size = 256*1024*1024, //1024*1024*1024 } };
Problem 2:ftl_cs: FTL header not found.
make menuconfig
Device Drivers ->
Memory Technology Devices (MTD) ->
[]FTL (Flash Translation Layer) support
[]NFTL (NAND Flash Translation Layer) support
[]INFTL (Inverse NAND Flash Translation Layer) support
These three items must be unabled.
标签: embedded
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...
发表评论: