Fix pm5 recovery image
This commit is contained in:
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`.
|
||||
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
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ The recovery / firmware files will be copied to
|
||||
/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`
|
||||
|
||||
|
||||
|
||||
+9
-3
@@ -1,6 +1,6 @@
|
||||
include ../common_arm/Makefile.common
|
||||
|
||||
INSTALLFW = proxmark3_recovery.bin
|
||||
INSTALLFW = recovery.bin
|
||||
ifneq (,$(FWTAG))
|
||||
INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin))
|
||||
else
|
||||
@@ -24,13 +24,19 @@ all: $(BINS)
|
||||
|
||||
bootrom.bin: ../bootrom/obj/bootrom.elf
|
||||
$(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
|
||||
$(info [=] GEN $@)
|
||||
$(Q)$(CROSS_OBJCOPY) --gap-fill=0xff -O binary $^ $@
|
||||
|
||||
proxmark3_recovery.bin: bootrom.bin fullimage.bin
|
||||
recovery.bin: bootrom.bin fullimage.bin
|
||||
$(info [=] GEN $@)
|
||||
$(Q)cat bootrom.bin fullimage.bin > $@
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
CONFIG_GEN=general.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"
|
||||
|
||||
# One can use openocd-provided interfaces or local interface files
|
||||
|
||||
+1
-1
@@ -311,7 +311,7 @@ while true; do
|
||||
fi
|
||||
if $TESTALL || $TESTRECOVERY; then
|
||||
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
|
||||
if $TESTALL || $TESTFPGACOMPRESS; then
|
||||
|
||||
Reference in new issue
Block a user