Hi to all AT91RM9200 experts!
As i am in deep trouble i kindly ask you for some help ...
On my board, everything is running perfect (u-boot, linux, application on top of linux). The only thing that troubles me is the bootstrap code boot.bin that resides on the external flash (at 0x1000 0000). This boot.bin refuses to unzip and load any other u-boot exept the one that was delivered with my demoboard (at91rm9200-EK). But i had to adapt the u-boot code so that it works with the new flash (AT49BV642D instead of AT49BV6416 as this part is obsolete).
So i took a look on the atmel cd that was delivered with the at91rm9200-EK. Found the boot.bin and the sourcecode for it in boot.gz (send those two files in the attachment for you). Strange thing is when i load the boot.bin from the cd together with the u-boot.bin on my demoboard it works. But if i compile the delivered sourcecode and take the compiled boot.bin, it doesnt work (just says "uncompressing image ..." and then nothing happens). The only changes to make it compilable were that i had to take away the option -mshort-load-bytes from the compiler and that i had to add .rodata.str1.4 in ld.script. So i did some kind of testing and found out that the program is able to read from flash but cannot write to SDRAM (i write 4 bytes at adress 0x21F0 0000 and immediately afterwards read these bytes - the first one is correct, the others not). SDRAM init looks ok for me.
For me it looks like just changing a few lines and everything would work perfect, but i'm very ashamed to say that i haven't a glue which ones.
There should be a newer version of boot.bin on the
I have to deliver my sourcecode to the customer next week so there is quite a time pressure
Please can you help me?!!!
thanks and kind regards Renate Lehotzki