This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Flashing JFFS2 Partition

Hello,

I'm having some trouble flashing a JFFS2 rootfs to a DM368 evaluation board. Upon boot, the kernel is complaining about ECC errors.

The JFFS2 image was built with the following params:

--eraseblock=0x20000 --pagesize=0x800 --pad --little-endian --no-cleanmarkers

It was flashed with the following command (transfered via loady):

nand write.jffs2 0x80700000 0x800000 0x3c0000

Attached is my boot log:

5340.eccerror.log

 

I'm not sure what I'm missing. Are my mkfs.jffs2 params incorrect? FYI, this is a LeopardBoard DM368 dev unit.

  • So, when you use --pad you're saying "just pad to the end of one erase block" which isn't the same as "pad to the size of my partition".  Try doing this, in U-Boot:

    mw.b 0x80700000 0xff 0x3c0000

    loady ....

    nand write.jffs2 0x80700000 0x800000 0x3c0000

    And see if that helps.  This can be shortened / replicated by passing --pad=0x3c0000 to mkfs.jffs2