Hacker News new | ask | show | jobs
by 2RTZZSro 2973 days ago
What was the project for where you wrote code that self-detected its boot location?
1 comments

Well, a bootloader and the self-detection was useful for the bootloader self-update. The update bootloader would be copied in a different section and on reset would start and copy itself over the original bootloader section.

I also wanted to maintain full functionality even at shifted location in case the self-copy process somehow failed. Never did fail, at least to my knowledge.