|
Hi,
I'm having problems trying to wean myself off the very useful sam-ba.exe and TCL scripts. I'm using the at91sam9g45 dev board and I've got the bootloader, u-boot and linux running.
My first problem (or more likely mis-understanding) starts with the at91bootloader. I can write the bootloader to nand flash using sam-ba GUI->Nandflash tab->"Send Boot file" script, which writes the binary to nandflash at offset 0x0. The bootloader starts and loads u-boot and everything works fine. If i try to do the same thing within sam-ba GUI->Send File and use an offset address of 0x0 it successfully writes the flash (based on the logs) but the board doesn't boot (no print outs what-so-ever).
I've used this case as i think its similar to what i'm trying to do within linux, which is re-writing the first MTD partition with the exact same boot loader file (to be able to upgrade the boot without using sam-ba).
I've been reading through this forum and the only thing i could see that seems relevant is possibly I'm missing arm interupt vectors needed or some length parameter thats not actually present in the bootloader binary file itself, but is put in there by the sam-ba script "Send Boot file". This would explain why there are two methods for writing a file to flash, one for boot sectors and one for normal files.
Has anyone had any experience with writing the bootloader back the nandflash or could point me in the direction of documentation/resources that might help.
p.s. I've tried padding the bootloader and a number of other obvious things with no avail.
Thanks in advance.
|