Hi

I'm trying to boot a Zedboard using a 'core-image-minimal' filesystem in flash 
using Yocto 2.1.

Using JFFS2, the kernel boots and mounts the filesystem with no issues.

Using UBIFS, the kernel boots but the mount fails with the error shown below. I 
can, however, mount the same filesystem directly with no issues from the 
command line. It is only when trying to do this at boot-time that I see 
problems.

In both cases I added an additional MTD partition to use for testing after the 
4 defined in the original DTB. The fact that the JFFS2 filesystem works in this 
test partition suggests it is OK.

UBIFS worked for me on a previous version (1.7.1) although I had to disable 
compression in the UBIFS image file.

All the logs and information are below. I'd be grateful to know if anyone else 
has managed to boot a system using UBIFS with this version of the meta-xilinx 
kernel etc. or if anyone has any ideas what could be going wrong?

Thanks in advance
Simon Goda


kernel version:
4.4.0-xilinx

kernel boot params:
console=ttyPS0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:test rw rootwait 
earlyprintk

MTD partitions:
dev:    size   erasesize  name
mtd0: 00100000 00010000 "qspi-fsbl-uboot"
mtd1: 00500000 00010000 "qspi-linux"
mtd2: 00020000 00010000 "qspi-device-tree"
mtd3: 005e0000 00010000 "qspi-rootfs"
mtd4: 00400000 00010000 "qspi-bitstream"
mtd5: 01000000 00010000 "qspi-test"


Error from serial:
[    1.299518] VFS: Cannot open root device "ubi0:test" or unknown-block(0,0): 
error -19
[    1.307335] Please append a correct "root=" boot option; here are the 
available partitions:
[    1.315669] 0100           32768 ram0  (driver?)
[    1.320223] 0101           32768 ram1 
[    1.320236] mmc0: new high speed SDHC card at address e624
[    1.329272]  (driver?)
[    1.330804] mmcblk0: mmc0:e624 SS08G 7.40 GiB
[    1.336256] 0102           32768 ram2 
[    1.336298]  mmcblk0: p1 p2
[    1.342519]  (driver?)
[    1.345075] 0103           32768 ram3  (driver?)
[    1.349649] 1f00            1024 mtdblock0  (driver?)
[    1.354676] 1f01            5120 mtdblock1  (driver?)
[    1.359712] 1f02             128 mtdblock2  (driver?)
[    1.364764] 1f03            6016 mtdblock3  (driver?)
[    1.369780] 1f04            4096 mtdblock4  (driver?)
[    1.374832] 1f05           16384 mtdblock5  (driver?)
[    1.379847] b300         7761920 mmcblk0  driver: mmcblk
[    1.385167]   b301           16384 mmcblk0p1 4975795e-01
[    1.390437]   b302         2306054 mmcblk0p2 4975795e-02
[    1.395732] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)
[    1.403979] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.0-xilinx #1
[    1.410396] Hardware name: Xilinx Zynq Platform
[    1.414943] [<c001663c>] (unwind_backtrace) from [<c0013018>] 
(show_stack+0x10/0x14)
[    1.422649] [<c0013018>] (show_stack) from [<c020f724>] 
(dump_stack+0x88/0xc8)
[    1.429850] [<c020f724>] (dump_stack) from [<c00aa3a8>] (panic+0xa0/0x204)
[    1.436715] [<c00aa3a8>] (panic) from [<c0647234>] 
(mount_block_root+0x194/0x230)
[    1.444174] [<c0647234>] (mount_block_root) from [<c0647588>] 
(prepare_namespace+0xa8/0x1d8)
[    1.452592] [<c0647588>] (prepare_namespace) from [<c0646e70>] 
(kernel_init_freeable+0x1e4/0x1f4)
[    1.461448] [<c0646e70>] (kernel_init_freeable) from [<c049814c>] 
(kernel_init+0x8/0xe8)
[    1.469518] [<c049814c>] (kernel_init) from [<c000f678>] 
(ret_from_fork+0x14/0x3c)
[    1.477064] CPU1: stopping
[    1.479755] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.0-xilinx #1
[    1.486173] Hardware name: Xilinx Zynq Platform
[    1.490705] [<c001663c>] (unwind_backtrace) from [<c0013018>] 
(show_stack+0x10/0x14)
[    1.498423] [<c0013018>] (show_stack) from [<c020f724>] 
(dump_stack+0x88/0xc8)
[    1.505625] [<c020f724>] (dump_stack) from [<c0014d90>] 
(ipi_cpu_stop+0x58/0x68)
[    1.513002] [<c0014d90>] (ipi_cpu_stop) from [<c00154f8>] 
(handle_IPI+0x88/0xb0)
[    1.520380] [<c00154f8>] (handle_IPI) from [<c000946c>] 
(gic_handle_irq+0x84/0x88)
[    1.527931] [<c000946c>] (gic_handle_irq) from [<c0013ad4>] 
(__irq_svc+0x54/0x90)
[    1.535390] Exception stack(0xdf469f60 to 0xdf469fa8)
[    1.540432] 9f60: 00000001 c05a24b0 00000001 1f561000 dfbe5618 00000000 
57c1d5b2 00000000
[    1.548591] 9f80: 579e983a 00000000 00000000 c06884fc 00000018 df469fb0 
c005a2fc c0356748
[    1.556743] 9fa0: 20000013 ffffffff
[    1.560232] [<c0013ad4>] (__irq_svc) from [<c0356748>] 
(cpuidle_enter_state+0x17c/0x2b4)
[    1.568304] [<c0356748>] (cpuidle_enter_state) from [<c005a5b8>] 
(cpu_startup_entry+0x190/0x274)
[    1.577061] [<c005a5b8>] (cpu_startup_entry) from [<0000950c>] (0x950c)
[    1.583658] ---[ end Kernel panic - not syncing: VFS: Unable to mount root 
fs on unknown-block(0,0)
-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to