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.

U-Boot: load kernel from JFFS2/UBI image

Hi,

First a little bit of explanation: we use a 128 MB NAND device as our main storage, and we've had many problems related to the use of non NAND aware filesystems, and verified that JFFS2 protects us from most of the possible pitfalls due to NAND 'peculiarities'. Currently, we write our kernel and bootloader images onto raw flash, but we are worried that this might cause use problems in the future due to bit-flips and bad blocks that may appear during the product's lifetime.

During our research, we've run across information that led us o believe that it is possible to put at least the kernel image over a JFFS2 ou UBI system, and load this from NAND to RAM, using U-Boot. I've checked, and our U-Boot version was modified so that all the '.jffs2' commands for the NAND subsystem are equivalent to the common NAND commands (i.e. 'nand read.jffs2' is the same as 'nand read').

Is it possible to do such a thing?

Just to clarify, I do no want to use a JFFS2 image as rootfs, I want to put the kernel itself on a JFFS2 or UBI image, so that i have some guarantee that bit-flips and badblocks will be handled.

We are using U-Boot-2013.01.01-amsdk-06.00.00.

Regards,

Guilherme