Hello,
I am using the SD card flashing tool v. 6.1 on a custom board with a DM368. Whenever I try to boot from an SD card, if there is a bad block in NAND in the area that the kernel gets written to, everything fails because the kernel doesn't get completely written. I see no code in sdcard_flash .c to skip bad blocks, even though they are marked during the erase. Also, in sdboot_flash_cfg.h I see the following code:
#define KERNEL_FLASH 0x400000
#define ROOTFS_FLASH 0x600000
and
#define KERNEL_SIZE (3*MB)
#define ROOTFS_SIZE (4*MB)
So it seems like the ROOTFS will be stepping on the KERNEL. Am I missing something?