1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00
Files
xburst-tools/qiboot/src/cpu/s3c2442/nand_read.c
Dmitry Kurochkin 0ca1d89412 Bad magic when booting from NAND
Qi fails to boot from NAND. Qi booting from SD goes fine. Booting NAND
from NOR works as well.

I have found the problem. The error was because we check if the
current block is bad or the next one is bad. And skip the current
block even if only the next one is bad. This way we skip good block
before a bad one.

This patch fixes the bug.

Signed-off-by: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
2009-05-07 00:27:20 -05:00

3.6 KiB