Hi TI,
I'm working with a am335X and a NAND flash of 1GB.
I'm try to flash an UBIFS root file system, using u-boot, from a SD card to the NAND flash but the kernel isn't able to detect the rootfs partition.
The UBI image file that I need to copy is in the boot(FAT) partition of the SD card, I hope this not cause the whole problem.
This is the error from the kernel:
[ 1.988948] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 2.001853] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[ 2.009879] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[ 2.018391] Please append a correct "root=" boot option; here are the available partitions:
[ 2.027268] b300 3694592 mmcblk0 driver: mmcblk
[ 2.032910] b310 16384 mmcblk0boot1 (driver?)
[ 2.038525] b308 16384 mmcblk0boot0 (driver?)
[ 2.044163] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
MTD info:
device nand0 <omap2-nand.0>, # parts = 8
#: name size offset mask_flags
0: SPL 0x00080000 0x00000000 0
1: SPL.backup1 0x00080000 0x00080000 0
2: SPL.backup2 0x00080000 0x00100000 0
3: SPL.backup3 0x00080000 0x00180000 0
4: u-boot 0x00180000 0x00200000 0
5: u-boot-env 0x00080000 0x00380000 0
6: kernel 0x00c00000 0x00400000 0
7: rootfs 0x3f000000 0x01000000 0
active partition: nand0,0 - (SPL) 0x00080000 @ 0x00000000
defaults:mtdids : nand0=omap2-nand.0
mtdparts: mtdparts=omap2-nand.0:512k(SPL),512k(SPL.backup1),512k(SPL.backup2),512k(SPL.backup3),1536k(u-boot),512k(u-boot-env),12288k(kernel),-(rootfs)
environment
nandroot=ubi0:rootfs rw ubi.mtd=7,4096
nandrootfstype=ubifs rootwait=1
nandargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${nandroot} noinitrd rootfstype=${nandrootfstype} ip=${ip_method}
u-boot command for copy
nand erase 1000000 4000000
fatload mmc 0 81000000 ubi.img;
nand write 81000000 1000000 3A80000
saveenv
NAND INFO
Device 0: nand0, sector size 512 KiB
Page size 4096 b
OOB size 224 b
Erase size 524288 b
CREATE UBI IMG
sudo mkfs.ubifs -r filesystem/ -F -o ubifs.img -m 4096 -e 516096 -c 2000
ubinize -o ubi.img -m 4096 -p 512KiB -s 4096 -O 4096 ubinize.cfg
After a lot of test i'm still not able to figure out of this problem. Could anyone help me, please?
Regards,
Mauro