Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2020-11-07 20:00:47

dgood71
Contributor
Registered: 2020-11-05
Posts: 6

[Solved] Error flashing PM3 RDV2 using Ubuntu

I'm getting an error when I try to flash my generic PM3 V2 using Ubuntu.  I've just downloaded and installed Ubuntu and ran the updates as the documentation suggests.  I also followed the Ubuntu video instructions for installing the proxmark3 step by step.  Everything seems to go well until I attempt the flash.

Here's my makefile.platform:

# If you want to use it, copy this file as Makefile.platform and adjust it to your needs
# Run 'make PLATFORM=' to get an exhaustive list of possible parameters for this file.

#PLATFORM=PM3RDV4
PLATFORM=PM3OTHER
PLATFORM_SIZE=512
# If you want more than one PLATFORM_EXTRAS option, separate them by spaces:
#PLATFORM_EXTRAS=BTADDON
STANDALONE=HF_MSDSAL

I added the PLATFORM_SIZE=512 in the hopes that it might work, but it did not. I get the same flash error without that line.
And here's what I'm seeing when I try to flash:

doug@doug-Latitude-E5270:~/proxmark3$ pm3-flash-all
[=] Session log /home/doug/.proxmark3/logs/log_20201107.txt
[+] About to use the following files:
[+]    /usr/local/bin/../share/proxmark3/firmware/bootrom.elf
[+]    /usr/local/bin/../share/proxmark3/firmware/fullimage.elf
[+] Waiting for Proxmark3 to appear on /dev/ttyACM0
?  59 found
[+] Entering bootloader...
[+] (Press and release the button only to abort)
[+] Waiting for Proxmark3 to appear on /dev/ttyACM0
?  49 found
[!!] ? ====================== OBS ! ===========================================
[!!] ? Note: Your bootloader does not understand the new CMD_BL_VERSION command
[!!] ? It is recommended that you first update your bootloader alone,
[!!] ? reboot the Proxmark3 then only update the main firmware

[=] Available memory on this board: UNKNOWN

[!!] ? ====================== OBS ! ======================================
[!!] ? Note: Your bootloader does not understand the new CHIP_INFO command
[!!] ? It is recommended that you first update your bootloader alone,
[!!] ? reboot the Proxmark3 then only update the main firmware

[=] Permitted flash range: 0x00100000-0x00140000
[+] Loading ELF file /usr/local/bin/../share/proxmark3/firmware/bootrom.elf
[+] Loading usable ELF segments:
[+]    0: V 0x00100000 P 0x00100000 (0x00000200->0x00000200) [R X] @0x94
[+]    1: V 0x00200000 P 0x00100200 (0x00000d50->0x00000d50) [R X] @0x298

[+] Loading ELF file /usr/local/bin/../share/proxmark3/firmware/fullimage.elf
[+] Loading usable ELF segments:
[+]    0: V 0x00102000 P 0x00102000 (0x0003e768->0x0003e768) [R X] @0x94
[!!] ? Error: PHDR is not contained in Flash
[!!] ? Firmware probably too big for your device
[+] All done

Have a nice day!

I've followed all the instructions step by step and everything looks good as far as I can see, so I'm not sure what it going wrong.  The error message suggests flashing the bootloader alone, although I'm not sure how to do that.  Any ideas?   

And yes, I've compiled with PM3OTHER  as you can see in the makefile.platform.  Also tried make SKIPBT=1 and that made no difference.
I have a windows machine I can try using as well, although I need to run through the setup on that.  I was using Ubuntu because I was hoping it would make the process easier...

Thanks for any ideas....

Last edited by dgood71 (2020-11-07 21:16:50)

Offline

#2 2020-11-07 20:49:07

iceman
Administrator
Registered: 2013-04-25
Posts: 9,538
Website

Re: [Solved] Error flashing PM3 RDV2 using Ubuntu

flash bootrom first..

./pm3-flash-bootrom

Not sure how much memory a RDV2 has,  but it looks like you will need to make the image smaller first.

Offline

#3 2020-11-07 21:01:37

dgood71
Contributor
Registered: 2020-11-05
Posts: 6

Re: [Solved] Error flashing PM3 RDV2 using Ubuntu

The RDV2 is a 512 chip, which I verified by looking at the actual chip itself - assuming it's not a 256 marked as a 512, so I'm hoping I don't need to make the image smaller, but I guess I can try doing that.  I'll try the boot flash by itself to see whether that makes a difference.

Offline

#4 2020-11-07 21:14:22

dgood71
Contributor
Registered: 2020-11-05
Posts: 6

Re: [Solved] Error flashing PM3 RDV2 using Ubuntu

Flashing the boot rom by itself worked.  I then disconnected the PM3, reconnected it, and was then able to do the pm3-flash-fullimage which also worked.  I did not have to recompile to make the full image smaller.  So all is working now.  Thanks for your help!

Offline

#5 2020-11-07 21:21:45

iceman
Administrator
Registered: 2013-04-25
Posts: 9,538
Website

Re: [Solved] Error flashing PM3 RDV2 using Ubuntu

Awesome!

Offline

Board footer

Powered by FluxBB