AnsweredAssumed Answered

imx6ull evk qspi nor file system JFFS2 crc error

Question asked by sergio d'orazio on Oct 22, 2019
Latest reply on Nov 13, 2019 by Victor Linnik

Hi,

My goal is to test file system JFFS2 on QuadSPI NOR.

First I have create a core-image-minimal file system from core-image-minimal.rootfs folder decomprimed after bitbake:

 

sudo mkfs.jffs2 -d core-image-minimal-imx6ull14x14evk.rootfs --eraseblock=0x10000 --pagesize=256 -o /rootfs-jffs2.img

 

After I have boot the board from SD and I have put rootfs-jffs2.img file in the partition /dev/MTD1 of quadspi nor:

 

root@imx6ull14x14evk:~# flash_erase -j /dev/mtd1 0 0

root@imx6ull14x14evk:~# flashcp -v /mnt/rootfs-jffs2.img /dev/mtd1

 

Now I have test file system jffs2:

 

root@imx6ull14x14evk:~# mount -t jffs2 mtd1 /media
root@imx6ull14x14evk:~# ls /media
bin dev home media proc sbin tmp var
boot etc lib mnt run sys usr

The file system is been write correctly on nor flash.

 

Now restart the board and start linux with rootfs from mtdblock1 but I have crc error during the boot. Follow the log:

 

VFS: Mounted root (jffs2 filesystem) on device 31:1.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
jffs2: Node CRC dc88a1a7 != calculated CRC ef5e90f6 for node at 007670d0
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

 

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

 

If I repeat the test I obtain other CRC values, timing access problem ?

Why when I start with SD I don't have problem ?

Have you any suggestion ?

Where is my error ?

Sergio.

 

 

 

Outcomes