Have you figured out why the bootloader only works after a reset? I would expect it to run immediately after power on.
I experimented with avr_boot a while ago and only could get it to work if I put a small delay of 5ms at the beginning of the bootloader to let the SD card power up. I tried to do the same with your bootloader, but unfortunately the compiled binary is 2050 bytes (2 bytes too much 😡).
Have you figured out why the bootloader only works after a reset? I would expect it to run immediately after power on.
I experimented with avr_boot a while ago and only could get it to work if I put a small delay of 5ms at the beginning of the bootloader to let the SD card power up. I tried to do the same with your bootloader, but unfortunately the compiled binary is 2050 bytes (2 bytes too much 😡).