I have an iMX27 board on which I need to upload the barebox bootloader (on a NAND memory).
Right now, the procedure we're using is like this:
- load the bootloader (barebox) through JTAG, the barebox elf is started at 0xaf700000
- run the board, and stop barebox at the prompt
- upload barebox.ini through kermit (very slow)
- copy barebox.bin on /dev/self0
- reboot into the new barebox
We'd like the process to be quicker, and we tried:
- tftp: the elf barebox seems to reset the board just after having set up phy0... (the elf is the same as the bin, and the bin works correctly)
- copying from memory the running barebox. To do so, I defined a partition in /dev/mem which starts at 0xaf700000 and is 256k long, then I copied it to /dev/self0
This too doesn't work - Using the hex representation of barebox.bin and booting from there: after reset we get back to a frozen cpu
Is there any quicker way you're aware of? Of course I shouldn't change boot mode, I don't have access to those pins on the board, I should just find a better method.
Thank you in advance