i.MX6ULL JFFS2 implementation on Yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6ULL JFFS2 implementation on Yocto

871 次查看
firtina_hg
Contributor II

Hi all,

 

I'm trying to implement JFFS2 file system on my Yocto based distro.I have a rootfs.jffs2 file which is produced by Yocto-bitbake, I need to use this file and need to activate it on the system/board.

 

The related flashing commands as follow:

<CMD state="Updater" type="push" body="$ flash_erase /dev/mtd4 0 0">Erasing rootfs partition</CMD>

<CMD state="Updater" type="push" body="send" file="files/exampleFile.rootfs.jffs2" ifdev="MX6ULL">Sending JFFS2 file</CMD>

<CMD state="Updater" type="push" body="$ nandwrite -p /dev/mtd4 -p $FILE">Flashing File</CMD>

 

Basically, first the system flash are resetting,  then sending file to the nand and it is writing to nand flash.

 

After making flash operation, I changed u-boot parameters as follow:

setenv bootargs rootfstype=jffs2 root=/dev/mtdblock4 rw mtdparts=gpmi-nand:5m(boot),1m(env),10m(kernel),1m(dtb),-(rootfs) ,

 

After system rebooting, the jffs2 gives errors at kernel as follow :

jffs2: Node at 0x0001fb58 with length 0x000009e4 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001fb5c: 0x09e4 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001fb60: 0xd997 instead

.......................................................................................................................

jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x05aa0024: 0x0583 instead
jffs2: Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:4.
devtmpfs: mounted
Freeing unused kernel memory: 444K (80af9000 - 80b68000)
INIT: version 2.88 booting
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

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

, The system gives file system was created with the wrong erase size, what does that mean? I didn't append any erase size related parameter. If it is needed, where should I use this parameter?

 

Thanks for any suggestion.

 

0 项奖励
回复
1 回复

832 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using?

0 项奖励
回复