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.

nboot problem with bad blocks

On document "sprugi9.pdf", page 52 (A-6) it is described a method to load the kernel image from NAND and boot it within U-Boot. It seems to me that it does not work if the kernel is flashed on a bad block.

Suggested method for writing the kernel image on NAND is to use the "nand write" command. This means that if a bad block is encountered, it is skipped.

The problem is that the "nboot" command instead seems not to skip bad blocks. I've tried to flash a kernel image on a range of blocks comprising a bad block, and nboot failed to load it. Instead the kernel booted correctly if I used instead "nand read" to load the image from NAND.

So, "nboot 0x80700000 0 0x60000; bootm" should instead be  "nand read 0x80700000 0x600000 0x400000; bootm". Too bad that you must specify the max size of the kernel image (0x400000 in this example).