Tool/software: Linux
Hello,
I have issue with am37x, when using jffs binary from vendor (prebuilt binaries provided), and programming it into flash, there is no error, and everything works well.
The jffs binary size is ~178Mbyte.
Then I extract the provided tar.gz file, and create jffs from the extracted folder:
mkfs.jffs2 -n -r rfs -e 128 -o rootfs.jffs2
Then I get a lot of error in the 2nd and 3rd boot (the 1st boot is clean):
...
Empty flash at 0x0000fffc ends at 0x00010000
Empty flash at 0x0002fffc ends at 0x00030000
.......................................
Empty flash at 0x042cfff4 ends at 0x042d0000
.....
BCH decoding failed
Empty flash at 0x042fdc9c ends at 0x042fe000
BCH decoding failed
BCH decoding failed....
BCH decoding failed
BCH decoding failed
BCH decoding failed
I then created it as following:
sudo mkfs.jffs2 --root=rootfs --output=emac-oe-rootfs.jffs2 --eraseblock=0x20000 --little-endian --no-cleanmarkers
And now I don't get any more "Empty flash at..." messages, but still see the "BCH decoding failed"
This is how I program to flash:
setenv rf_get_fs tftpboot 0x81600000 am37x-05.02.00.00-fs.jffs2
setenv rf_er_fs nand erase 780000
setenv rf_blank_ram_fs mw.b 0x81600000 0xff 0xB000000
setenv rf_wr_fs nandecc bch4_sw\; nand write.i 0x81600000 780000 AE02800
setenv rf_fs run rf_blank_ram_fs\; run rf_er_fs\; run rf_get_fs\; run rf_wr_fs
>run rf_fs
Another thing I've noticed is that the size of my jffs is smaller then the prebuilt jffs.
I would appreciate any idea concerning the following error.
I made a lot of trials, but still get this error.
I suspect it is related to its size, but I have no idea yet why it is hapenning.
Is it related to the content of the filesystem, to the size of it ? or to the way I create jffs image from the filesystem ?
Is this issue related to wrong arguments in mkfs.jffs ?
Thank you,
Ran