I'd like to replace the first stage bootloader in the nand flash on a sama5d36 based system running 4.1.0-linux4sam_5.1
and buildroot-2016.02
.
I can replace the kernel image with flashcp
just fine, but when I try it with the bootloader, flashcp
runs without errors, but the system doesn't boot afterwards, stays at the ROMBOOT
prompt.
buildroot:~# flashcp -v at91bootstrap.bin /dev/mtd0
Erasing block: 1/1 (100%)
Writing kb: 14/14 (100%)
Verifying kb: 14/14 (100%)
buildroot:~# reboot
[...]
Sent SIGKILL to all processes
Requesting system reboot
�RomBOOTRestarting system
Then I can write the same bootloader image with sam-ba
, and it will boot, so the image is good. How can it be flashed in Linux, without user intervention?