Fix pm5 recovery image

This commit is contained in:
Philippe Teuwen committed 2026-08-19 19:28:17 +02:00
1 parent 86dfdfff89
commit caa76f57b3
5 files changed
+13 -7

No files matched your search

@@ -171,7 +171,7 @@ If you own a Proxmark3 Easy with only 256KB, you can use a few definitions to he
First thing is of course to use the `PLATFORM=PM3GENERIC`. First thing is of course to use the `PLATFORM=PM3GENERIC`.
Adding `PLATFORM_SIZE=256` will provoke an error during compilation of the recovery image if your image is too big, so you can detect the problem before trying to flash the Proxmark3, e.g. Adding `PLATFORM_SIZE=256` will provoke an error during compilation of the recovery image if your image is too big, so you can detect the problem before trying to flash the Proxmark3, e.g.
``` ```
[=] GEN proxmark3_recovery.bin [=] GEN recovery.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Firmware image too large for your platform! 262768 > 262144 ERROR: Firmware image too large for your platform! 262768 > 262144
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+1 -1
View File
@@ -63,7 +63,7 @@ The recovery / firmware files will be copied to
/usr/local/share/proxmark3/firmware /usr/local/share/proxmark3/firmware
``` ```
* Proxmark3 firmware: `bootrom.elf`, `fullimage.elf`, `proxmark3_recovery.bin` (used for JTAG) * Proxmark3 firmware: `bootrom.elf`, `fullimage.elf`, `recovery.bin` (used for JTAG)
* SIM firmware: `sim014.bin`, `sim014.sha512.txt` * SIM firmware: `sim014.bin`, `sim014.sha512.txt`
+9 -3
View File
@@ -1,6 +1,6 @@
include ../common_arm/Makefile.common include ../common_arm/Makefile.common
INSTALLFW = proxmark3_recovery.bin INSTALLFW = recovery.bin
ifneq (,$(FWTAG)) ifneq (,$(FWTAG))
INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin)) INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin))
else else
@@ -24,13 +24,19 @@ all: $(BINS)
bootrom.bin: ../bootrom/obj/bootrom.elf bootrom.bin: ../bootrom/obj/bootrom.elf
$(info [=] GEN $@) $(info [=] GEN $@)
$(Q)$(CROSS_OBJCOPY) --gap-fill=0xff --pad-to 0x00102000 -O binary $^ $@ ifeq ($(PLATFORM),PM5)
$(info [=] GENA $@)
$(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 $^ $@
endif
fullimage.bin: ../armsrc/obj/fullimage.elf fullimage.bin: ../armsrc/obj/fullimage.elf
$(info [=] GEN $@) $(info [=] GEN $@)
$(Q)$(CROSS_OBJCOPY) --gap-fill=0xff -O binary $^ $@ $(Q)$(CROSS_OBJCOPY) --gap-fill=0xff -O binary $^ $@
proxmark3_recovery.bin: bootrom.bin fullimage.bin recovery.bin: bootrom.bin fullimage.bin
$(info [=] GEN $@) $(info [=] GEN $@)
$(Q)cat bootrom.bin fullimage.bin > $@ $(Q)cat bootrom.bin fullimage.bin > $@
@@ -1,6 +1,6 @@
CONFIG_GEN=general.cfg CONFIG_GEN=general.cfg
CONFIG_BOARD=board-at91sam7s.cfg CONFIG_BOARD=board-at91sam7s.cfg
IMAGE=../../recovery/proxmark3_recovery.bin IMAGE=../../recovery/recovery.bin
DUMP="dump_$(date +'%Y%m%d-%H%M%S').bin" DUMP="dump_$(date +'%Y%m%d-%H%M%S').bin"
# One can use openocd-provided interfaces or local interface files # One can use openocd-provided interfaces or local interface files
+1 -1
View File
@@ -311,7 +311,7 @@ while true; do
fi fi
if $TESTALL || $TESTRECOVERY; then if $TESTALL || $TESTRECOVERY; then
echo -e "\n${C_BLUE}Testing recovery:${C_NC}" echo -e "\n${C_BLUE}Testing recovery:${C_NC}"
if ! CheckFileExist "recovery image exists" "./recovery/proxmark3_recovery.bin"; then break; fi if ! CheckFileExist "recovery image exists" "./recovery/recovery.bin"; then break; fi
fi fi
if $TESTALL || $TESTFPGACOMPRESS; then if $TESTALL || $TESTFPGACOMPRESS; then