Hello All,
I'm sorry for my poor English in advance.
My system is consist of Linux Kernel boot + UBI Root Filesystem in iMX28.
I'm using the NAND (K9F1G08U) and I downloaded kernel and UBI Root F/S into NAND with Mfgtools(v1.62)
It usually works OK.
But some NAND have 2 kinds of problem as below.
1. Kernel panic happen.
2. Booting Error happen.
/************ Here is writing into the NAND flash with Mfgtools like as below *****************/
flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2
kobs-ng init imx28_ivt_linux.sb
/usr/bin/ubiattach /dev/ubi_ctrl -m 1 -d 0
mknod class/ubi,ubi0,/dev/ubi0
/usr/bin/ubimkvol /dev/ubi0 -n 0 -N rootfs0 -m
mkdir -p /mnt/ubi0; mount -t ubifs ubi0_0 /mnt/ubi0
tar -jmxv -C /mnt/ubi0 rootfs.tar.bz2
umount /mnt/ubi0
/usr/bin/ubiattach /dev/ubi_ctrl -m 2
mknod class/ubi,ubi1,/dev/ubi1
/usr/bin/ubimkvol /dev/ubi1 -n 0 -N data -m
mkdir -p /mnt/ubi1; mount -t ubifs ubi1_0 /mnt/ubi
cp -f usbdisk.img /mnt/ubi1/.
umount /mnt/ubi1
/****************************************************************/
1. Kernel Panic
/*******************************************************************************************/
:
UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs1", error -19
VFS: Cannot open root device "ubi0:rootfs1" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 20480 mtdblock0 (driver?)
1f01 94208 mtdblock1 (driver?)
1f02 16384 mtdblock2 (driver?)
fe00 89528 ubiblka (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Backtrace:
[<c00324a8>] (dump_backtrace+0x0/0x114) from [<c03ca9f4>] (dump_stack+0x18/0x1c)
r7:c0029a24 r6:00008000 r5:c3048000 r4:c0740bb8
[<c03ca9dc>] (dump_stack+0x0/0x1c) from [<c03caa70>] (panic+0x78/0xf4)
[<c03ca9f8>] (panic+0x0/0xf4) from [<c000902c>] (mount_block_root+0x1d8/0x218)
r3:00000000 r2:00000001 r1:c3c23f78 r0:c047e0a5
[<c0008e54>] (mount_block_root+0x0/0x218) from [<c00091fc>] (prepare_namespace+0x94/0x1c4)
[<c0009168>] (prepare_namespace+0x0/0x1c4) from [<c00084f8>] (kernel_init+0x128/0x170)
r5:c00280c8 r4:c073fd00
[<c00083d0>] (kernel_init+0x0/0x170) from [<c004e570>] (do_exit+0x0/0x6dc)
r5:c00083d0 r4:00000000
/*******************************************************************************************/
I attached this kernel panic log( NandWritingUsingMfgtools_1.txt, Kernel_panic.txt)(nand_problem.zip)
NandWritingUsingMfgtools_1.txt : This is log when writing Kernel + UBI F/S in NAND using Mfgtools
Kernel_panic.txt : This is Kernel panic log.
2. BOOTING ERROR
/*******************************************************************************************/
HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLC
PowerPrep start initialize power...
Configured for 5v only power source. Battery powered operation disabled
LLLCFeb 7 201416:51:56
FRAC 0x92925552
memory type is DDR2
Wait for ddr ready 1power 0x00820710
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001
LLLLLLLFLCL0x8050100b
/*******************************************************************************************/
I attached this kernel panic log( NandWritingUsingMfgtools_2.txt, Booting_Error.txt)(nand_problem.zip)
NandWritingUsingMfgtools_2.txt : This is log when writing Kernel + UBI F/S in NAND using Mfgtools
Booting_Error.txt : This is Booting Error log.
Please help and give me any advices for this problems.
Thanks.
Original Attachment has been moved to: nand_problem.zip