* [U-Boot] How to write jffs2 image to spi nor flash?
@ 2013-11-28 6:53 Axel Lin
2013-11-30 3:34 ` Axel Lin
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-11-28 6:53 UTC (permalink / raw)
To: u-boot
Hi list,
I use "sf erase" + "sf write" commands to write root image to spi nor flash.
It works for writing a ext2 image.
However, if I use the same commands to write a jffs2 image I got a lot
of "Magic bitmask 0x1985 not found at..." messages and
"jffs2: inflate returned -3".
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f780: 0x4bbb instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f784: 0x50f2 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f788: 0x4230 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f78c: 0x76ac instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f790: 0x439c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f794: 0xd9b9 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f798: 0x73d3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f79c: 0x5758 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f7a0: 0x1b47 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f7a4: 0xf908 instead
jffs2: Further such events for this erase block will not be printed
So how to correctly write a jffs2 image to spi nor flash in u-boot?
Thanks,
Axel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] How to write jffs2 image to spi nor flash?
2013-11-28 6:53 [U-Boot] How to write jffs2 image to spi nor flash? Axel Lin
@ 2013-11-30 3:34 ` Axel Lin
0 siblings, 0 replies; 2+ messages in thread
From: Axel Lin @ 2013-11-30 3:34 UTC (permalink / raw)
To: u-boot
2013/11/28 Axel Lin <axel.lin@ingics.com>:
> Hi list,
>
> I use "sf erase" + "sf write" commands to write root image to spi nor flash.
> It works for writing a ext2 image.
> However, if I use the same commands to write a jffs2 image I got a lot
> of "Magic bitmask 0x1985 not found at..." messages and
> "jffs2: inflate returned -3".
>
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f780: 0x4bbb instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f784: 0x50f2 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f788: 0x4230 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f78c: 0x76ac instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f790: 0x439c instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f794: 0xd9b9 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f798: 0x73d3 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f79c: 0x5758 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f7a0: 0x1b47 instead
> jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0012f7a4: 0xf908 instead
> jffs2: Further such events for this erase block will not be printed
>
> So how to correctly write a jffs2 image to spi nor flash in u-boot?
It's my fault.
Fix it by adding --pad=SIZE to mkfs.jffs2.
Regards,
Axel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-30 3:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 6:53 [U-Boot] How to write jffs2 image to spi nor flash? Axel Lin
2013-11-30 3:34 ` Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox