
26 Feb
2009
26 Feb
'09
1:47 p.m.
On 18:01 Thu 26 Feb , Rohit Hagargundgi wrote:
Hi,
Jean-Christophe PLAGNIOL-VILLARD wrote:
#define ONENAND_BLOCK_SIZE 2048 +#define ONENAND_BOOTLOADER_SIZE 0x40000
why hardcoded value?
Is it possible to get image size instead of hard value. Then we can read exactly u-boot image size on boot up.
as point out Wolfgang you can use the MONITOR_LEN.
If you really need the u-boot.bin size you will need to built it first and then on the host calculate it and genereate a .h with its size.
But IMHO the MONITOR_LEN will give enough information evenif it's not the real size to copy u-boot in memory
Best Regards, J.