From c73cc293ad1e4ad1eeb3c778c6500dcb748fa1b5 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 6 Nov 2026 19:10:29 +0100 Subject: [PATCH] recovery: pad the AT91 bootrom to 0x102000 again caa76f57b ("Fix pm5 recovery image") also moved the AT91 pad from 0x00102000 to 0x00104000, but the AT91 boot area is 8 KB and the OS image starts at 0x102000. recovery.bin had every fullimage section 0x2000 too high and 0xFF at the OS entry, so a JTAG recovery would leave the bootrom in flash mode. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + recovery/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f1d1f1b6..125427a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Fixed `recovery.bin` on the AT91 platforms - the bootrom is padded to 0x102000 again, so the OS image is at its load address (@matrix) - Updated `/Getting_Started_With_PM5.md` (@innocentbystanderproxmark) - Fixed `hf seos pacs`/`write` - 2K3DES GET/UPDATE DATA no longer fails silently with exit 236; print APDU exchange errors, check DES-CMAC, decode SELECT `85` at its real length, and use short-form `85` when the cryptogram is under 128 bytes - Fixed client build with `-march=x86-64-v3` (CentOS/RHEL 10 default) - false `-Wstringop-overflow` in the EMV AID list table (@r3wretrhy) diff --git a/recovery/Makefile b/recovery/Makefile index d3f23ee19..6f77814e1 100644 --- a/recovery/Makefile +++ b/recovery/Makefile @@ -41,7 +41,7 @@ ifeq ($(PLATFORM),PM5) $(Q)$(CROSS_OBJCOPY) --gap-fill=0xff --pad-to 0x08004000 -O binary $^ $@ else $(info [=] GENB $@) - $(Q)$(CROSS_OBJCOPY) --gap-fill=0xff --pad-to 0x00104000 -O binary $^ $@ + $(Q)$(CROSS_OBJCOPY) --gap-fill=0xff --pad-to 0x00102000 -O binary $^ $@ endif fullimage.bin: ../armsrc/obj/fullimage.elf