AnsweredAssumed Answered

Problem booting and mounting a jffs2 partition

Question asked by Igor Soares Nunes on Dec 21, 2017
Latest reply on Jan 9, 2018 by Igor Soares Nunes

Hi all, 

 

I am currently working on a ls1043ardb board, trying to flash and boot a jffs2 filesystem mounted on nand. Everything works fine if my filesystem is stored on a scard using ext2 (even if bootloader+kernel resides on nand). But if I try to mount a jffs2 partition on nand I have a kernel panic.

 

My bootcmd and bootarg:

bootcmd=nboot 82000000 0 180000; bootm

bootargs=root=/dev/mtdblock3 rootfstype=jffs2 rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 rootdelay=1 mem=400M mtdparts=7e800000.flash:0x160000(nand_uboot),0x20000(nand_fman),0x680000(nand_kernel),400m(nand_fs)

Here is the kernel boot log:

4.172652] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[ 4.180555] Please append a correct "root=" boot option; here are the available partitions:
[ 4.188905] 0100 262144 ram0 (driver?)
[ 4.193521] 0101 262144 ram1 (driver?)
[ 4.198129] 0102 262144 ram2 (driver?)
[ 4.202742] 0103 262144 ram3 (driver?)
[ 4.207351] 0104 262144 ram4 (driver?)
[ 4.211959] 0105 262144 ram5 (driver?)
[ 4.216572] 0106 262144 ram6 (driver?)
[ 4.221180] 0107 262144 ram7 (driver?)
[ 4.225793] 0108 262144 ram8 (driver?)
[ 4.230401] 0109 262144 ram9 (driver?)
[ 4.235014] 010a 262144 ram10 (driver?)
[ 4.239710] 010b 262144 ram11 (driver?)
[ 4.244410] 010c 262144 ram12 (driver?)
[ 4.249104] 010d 262144 ram13 (driver?)
[ 4.253803] 010e 262144 ram14 (driver?)
[ 4.258499] 010f 262144 ram15 (driver?)
[ 4.263201] 1f00 1408 mtdblock0 (driver?)
[ 4.268243] 1f01 128 mtdblock1 (driver?)
[ 4.273290] 1f02 6656 mtdblock2 (driver?)
[ 4.278332] 1f03 409600 mtdblock3 (driver?)
[ 4.283379] 1f04 16384 mtdblock4 (driver?)
[ 4.288423] b300 7782400 mmcblk0 driver: mmcblk
[ 4.293730] b301 7781376 mmcblk0p1 000a89a0-01
[ 4.299031] VFS: Unable to mount root fs on unknown-block(31,3)
[ 4.304944] User configuration error - no valid root filesystem found
[ 4.311373] Kernel panic - not syncing: Invalid configuration from end user prevents continuing

 

I followed the instructions available on QorIQ SDK 2.0 Documentation for mounting a jffs2 filesystem on nand (section 8.8.2).

 

An interesting point is: on a scenario where an ext2 partition is mounted on sdcard, there is no jffs2 "type" option when I try to mount a partition on mtdblock3. Probably, there is no driver available for jffs2 (modprobe jffs2 does not work either).

 

I have already tried to use different recipes to compile (mfg,core,full) but none of them had the jffs2 driver.

 

Any hints about what could be happening here?

 

Regards,

 

Igor

Outcomes