From 33b48ae2056a1d9fbfc801994e614f8c8cb06899 Mon Sep 17 00:00:00 2001 From: scott4290 <scott3091@gmail.com> Date: Sun, 11 Jul 2021 16:17:51 -0400 Subject: [PATCH] Update flash.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a suggested step to point the user in the right direction. [+] Loading usable ELF segments: [+] 0: V 0x00102000 P 0x00102000 (0x00040888->0x00040888) [R X] @0x94 [!!] 🚨 Error: PHDR is not contained in Flash [!!] 🚨 Firmware probably too big for your device [=] The flashing procedure failed, follow the suggested steps! [+] All done --- client/src/flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/flash.c b/client/src/flash.c index 2f5f037c3..6bca04d43 100644 --- a/client/src/flash.c +++ b/client/src/flash.c @@ -123,7 +123,8 @@ static int build_segs_from_phdrs(flash_file_t *ctx, FILE *fd, Elf32_Phdr *phdrs, if (paddr < FLASH_START || (paddr + filesz) > flash_end) { PrintAndLogEx(ERR, "Error: PHDR is not contained in Flash"); if ((paddr + filesz) > flash_end) { - PrintAndLogEx(ERR, "Firmware probably too big for your device"); + PrintAndLogEx(ERR, "Firmware is probably too big for your device"); + PrintAndLogEx(ERR, "See README.md for information on compiling for platforms with 256KB of flash memory"); } return PM3_EFILE; }