Can not get my root file system booted from NAND
Hi,
This is what I have given as bootargs... Kernel is working fine with filesystem if booted from pendrive /dev/sda1...
But as I want to make that work from NAND, where already uboot and uImage are located...
I used nand_erase and ubiformat to write ubi image on NAND...
But after applying this, on uboot
setenv console 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)'
setenv bootargs $(console) ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs fb=xgifb
nand read 0x1000000 0x100000 0x400000
bootm 0x1000000
I am getting like this,
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 1024 mtdblock0 (driver?)
1f01 4096 mtdblock1 (driver?)
1f02 1043456 mtdblock2 (driver?)
b300 7761920 mmcblk0 driver: mmcblk
b301 7759363 mmcblk0p1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c002db08>] (unwind_backtrace+0x0/0xe0) from [<c003d9f4>] (panic+0x64/0x138)
[<c003d9f4>] (panic+0x64/0x138) from [<c0008f44>] (mount_block_root+0x1d4/0x214)
[<c0008f44>] (mount_block_root+0x1d4/0x214) from [<c0009110>] (prepare_namespace+0x90/0x180)
[<c0009110>] (prepare_namespace+0x90/0x180) from [<c00088e4>] (kernel_init+0xe0/0x114)
[<c00088e4>] (kernel_init+0xe0/0x114) from [<c0029454>] (kernel_thread_exit+0x0/0x8)
|