embeded/raspberry pi
uf2 - USB Flash Format
구차니
2021. 6. 23. 16:29
라즈베리 파이 pico 에서 uf2라는 포맷을 쓰길래 먼가해서 보는데
ELF는 확실히 아닌듯
$ file rp2-pico-latest.uf2 rp2-pico-latest.uf2: data $ readelf -a rp2-pico-latest.uf2 readelf: Error: Not an ELF file - it has the wrong magic bytes at the start |
[링크 : https://learn.adafruit.com/...circuit-python-circuitpython/uf2-bootloader-details]
picotool 이라는걸 이용해서 해당 바이너리의 정보를 얻을 수 있는 듯
[링크 : https://github.com/raspberrypi5/picotool]
[링크 : https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf]
The ELF file is converted to a UF2 with an internal SDK tool called elf2uf2, which is bootstrapped automatically as
part of the build process.