
Dear Rohit Hagargundgi,
In message 49A645E0.9060608@samsung.com you wrote:
Currently OneNAND initial program loader (ipl) reads only block 0. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read 256KB.
What if there is a board that enables additional features and the size grows above 256 kB?
#include <linux/mtd/onenand_regs.h>
#define ONENAND_BLOCK_SIZE 2048 +#define ONENAND_BOOTLOADER_SIZE 0x40000
Why do we need a new #define here. CONFIG_SYS_MONITOR_LEN already contains the U-Boot image size, and is configurable for each board.
Please drop this #define here and substitute ONENAND_BOOTLOADER_SIZE by CONFIG_SYS_MONITOR_LEN in the rest of the patch.
Thanks.
Best regards,
Wolfgang Denk