
Le Fri, 05 Aug 2011 11:37:05 +0200, Detlef Vollmann dv@vollmann.ch a écrit :
The (maximum) size of the image to load is hardcoded into at91bootstrap. For most boards (including at91sam9m10g45-ek) this is 0x33900 if loading from DataFlash and 0x40000 if loading from NAND.
So if you didn't modify your at91bootstrap, you should get the same problem on AT91SAM9M10G45-EK if booting from DataFlash.
Correct. The thing is that I only tested the AT91SAM9M10G45-EK support on Nandflash, as I haven't had the time to get the Dataflash support to work again in the current U-Boot.
I have a custom board similar to AT91SAM9M10G45-EK here which boots from Dataflash, but it uses an old 1.3.4 U-Boot (which I'd like to upgrade), for which the binary is only 152K, which is less than 0x33900. I'll try to get a modern U-Boot working with Dataflash support on AT91SAM9M10G45-EK, and this will require a small modification in AT91Bootstrap.
It is a bit amazing to see that the size of U-Boot has increased from 154912 bytes in version 1.3.4 to 233252 bytes in the current Git (and the latter has no support for Dataflash, while the former does).
Regards,
Thomas