Stock U-Boot reads ht_recover_fw.conf from the SD card at every boot (format reverse-engineered from the binary). The installer runs from a temporary rootfs while the original APP is intact, dumps the full 8 MiB to the card, then installs and restores the stock rootfs; ENV is written last so every earlier step is restartable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>