|
Hi, everyone! I found a little bug in at91bootstrap (v1.16). After bootstrap compilation its size (4 bytes) stored at the offset 0x14 from bootstrap image beginning. This size is calculated incorrectly. For example value in file 0x00200ED0, real value 0x00000ED0. When you use SAM-BA for bootstrap uploading, problem fixed automatically, because "Send boot file" script in SAM-BA rewrite bootstrap size value automatically. But when I try to rewrite bootstrap manually (from u-boot) to the DataFlash, device will not boot. When I try to rewrite bootstrap manually (from u-boot) to NandFlash, device will boot correctly (i don't no why).
Problem in thе file /Bootstrap-v1.16/crt0_gnu.S: .word _edata /* Size of the image for SAM-BA */
After compillation _edata= bootstrap_real_size+ 0x200000;
I change this string to: .word 0x00001000 /* Size of the image for SAM-BA */
And device is beginning to load correctly.
I use angstrom-2009.X-test-20091214-armv5te-linux-gnueabi-toolchain-qte-4.6.0-i686 toolchain + at91sam9260ek evolution board.
|