forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
The first batch of Metro M4's didn't have protected bootloaders. A number of people had their bootloaders damaged by some stray writes. We protected against this in the next batch by turning on BOOTPROT. But it would be good to know what bad code was writing to the bootloader block.
Here is a damaged bootloader, courtesy @jerryneedell:
UF2 Bootloader v2.0.0-adafruit.4 SFHWRO
Model: Metro M4 Express
Board-ID: SAMD51J19A-Metro-v0
Compare with the original:
https://github.com/adafruit/uf2-samd21/releases/download/v2.0.0-adafruit.4/bootloader-metro_m4-v2.0.0-adafruit.4.bin
First 7 or 8 bytes have been zero'd, and at least the 512th byte has been zero'd (there are adjacent zeros, so can't tell). Those are the only changes.
Discussed in discord #circuitpython 4/24/2018