TI中文支持网
TI专业的中文技术问题搜集分享网站

NAND flash issue

您好,

我最近更換NAND flash,但碰到以下的問題,請問該怎麼解決?謝謝!!

U-Boot 2010.06 (Aug 30 2017 – 15:04:29) DM385_IPNC_3.50.00

NAND device: Manufacturer ID: 0x98, Chip ID: 0xf1 (Toshiba NAND 128MiB 3,3V 8-bit)

NAND read: device 0 offset 0x20000, size 0x1e000
122880 bytes read: OK

U-Boot 2010.06 (Aug 30 2017 – 15:04:50) DM385_IPNC_3.50.00

NAND device: Manufacturer ID: 0x98, Chip ID: 0xf1 (Toshiba NAND 128MiB 3,3V 8-bit)

Data (writethrough) Cache is ON

Loading from NAND 128MiB 3,3V 8-bit, offset 0x280000
Image Name: Linux-2.6.37_CARDVR_3.50.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1763972 Bytes = 1.7 MiB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80007fc0 …
Image Name: Linux-2.6.37_CARDVR_3.50.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1763972 Bytes = 1.7 MiB
Load Address: 80008000
Entry Point: 80008000
OK
OK

Starting kernel …

Uncompressing Linux… done, booting the kernel.
Trying to install type control for IRQ375
Trying to set irq flags for IRQ375
omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
omap_voltage_late_init: Voltage driver support not added
UBIFS error (pid 1): ubifs_decompress: cannot decompress 2865 bytes, compressor lzo, error -22
UBIFS error (pid 1): read_block: bad data node (block 114, inode 3914)
UBIFS error (pid 1): do_readpage: cannot read page 114 of inode 3914, error -22
UBIFS error (pid 1): ubifs_decompress: cannot decompress 2865 bytes, compressor lzo, error -22
UBIFS error (pid 1): read_block: bad data node (block 114, inode 3914)
UBIFS error (pid 1): do_readpage: cannot read page 114 of inode 3914, error -22
Kernel panic – not syncing: Attempted to kill init!
Backtrace:
[<c0041f70>] (dump_backtrace+0x0/0x110) from [<c02730cc>] (dump_stack+0x18/0x1c)
r6:c6826000 r5:00000007 r4:c0391b58 r3:60000113
[<c02730b4>] (dump_stack+0x0/0x1c) from [<c027312c>] (panic+0x5c/0x178)
[<c02730d0>] (panic+0x0/0x178) from [<c0068858>] (do_exit+0x68/0x5d0)
r3:c0370084 r2:c6829e18 r1:00000001 r0:c030e26b
r7:c682a000
[<c00687f0>] (do_exit+0x0/0x5d0) from [<c0069070>] (do_group_exit+0x84/0xb4)
r7:c682a000
[<c0068fec>] (do_group_exit+0x0/0xb4) from [<c0072f3c>] (get_signal_to_deliver+0x2d0/0x304)
r4:01060013 r3:20000113
[<c0072c6c>] (get_signal_to_deliver+0x0/0x304) from [<c0040f9c>] (do_signal+0x70/0x5f4)
[<c0040f2c>] (do_signal+0x0/0x5f4) from [<c0041ac4>] (do_notify_resume+0x20/0x64)
[<c0041aa4>] (do_notify_resume+0x0/0x64) from [<c003e418>] (work_pending+0x24/0x28)
r4:ffffffff r3:00000000

Best Regards,

Byron

Chris Meng:

Byron,

你新换的nand和之前使用的nand最大的区别是什么?

报错在ubifs文件系统,请问你的文件系统是如果烧写到nand,是在uboot里烧写的么?

Byron Tien:

回复 Chris Meng:

您好,

1>之前的flash是Spansion

Page size : (2048+64) bytes

Block size : (128K+4K) bytes

Total : (2048+64) bytes * 64 pages * 1024 blocks

現在是 Toshiba flash

Page size : (2048+128) bytes

Block size : (128K+8K) bytes

Total : (2048+128) bytes * 64 pages * 1024 blocks

2>我是從 SD卡開機將image燒寫進NAND flash.

ubifs機制有問題,是否在製作mkfs.ubifs與ubinize時參數有誤呢?

Best Regards,

Byron

Chris Meng:

回复 Byron Tien:

Byron.

比较看最大的区别是每个page的spare size,一个是64 bytes,一个是128 bytes。我们的uboot应该用都是BCH8。

还是不理解你是如何从SD卡烧写nand的。是从SD卡启动,然后在uboot里面读取uboot/uImage/ubifs文件系统,然后烧写到nand?

Byron Tien:

回复 Chris Meng:

您好,

1>BCH8是指什麼??以現在toshiba該怎麼改寫?

2>是的SD卡開機後,uboot裡讀取文件系統,將其燒寫入NAND.

Best Regards,

Byron

Chris Meng:

回复 Byron Tien:

Byron,

请参考下面的信息:

http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide#NAND_ECC_algorithm_selection

赞(0)
未经允许不得转载:TI中文支持网 » NAND flash issue
分享到: 更多 (0)