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 2017-10-17 19:19:01

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

Un-bricking device with buspirate

In order to make things easier,  I thought of making a few sticky threads with the subject of "un-brick" with different tools.

The offical proxmark3 WIKI has two pages,

User @joanbono, who did a blog about un-bricking his proxmark3 easy.
https://joanbono.github.io/PoC/Flashing_Proxmark3.html

Offline

#2 2017-10-18 00:23:08

0xFFFF
Administrator
From: Vic - Australia
Registered: 2011-05-31
Posts: 632

Re: Un-bricking device with buspirate

Good idea.

Offline

#3 2018-06-07 17:19:13

Dmanufacturer
Contributor
Registered: 2017-08-15
Posts: 42

Re: Un-bricking device with buspirate

Offline

#4 2019-08-12 22:10:04

batman192
Contributor
Registered: 2019-07-16
Posts: 24

Re: Un-bricking device with buspirate

I put a step-by-step guide together which includes prep that needs to be done to the Bus Pirate beforehand: https://b4cktr4ck2.github.io/De-Brickify-Pm3-RDV2/

Hope it helps!

Last edited by batman192 (2019-08-12 22:14:23)

Offline

#5 2019-11-23 06:09:52

medtech1
Contributor
Registered: 2019-11-21
Posts: 4

Re: Un-bricking device with buspirate

batman192 wrote:

I put a step-by-step guide together which includes prep that needs to be done to the Bus Pirate beforehand: https://b4cktr4ck2.github.io/De-Brickify-Pm3-RDV2/

Hope it helps!


Heylo.. nice!  There is a broken link in your guide...   the firmware capable of supporting OpenOCD.  Any idea of the updated link?

Offline

#6 2019-11-23 23:38:19

batman192
Contributor
Registered: 2019-07-16
Posts: 24

Re: Un-bricking device with buspirate

medtech1 wrote:
batman192 wrote:

I put a step-by-step guide together which includes prep that needs to be done to the Bus Pirate beforehand: https://b4cktr4ck2.github.io/De-Brickify-Pm3-RDV2/

Hope it helps!


Heylo.. nice!  There is a broken link in your guide...   the firmware capable of supporting OpenOCD.  Any idea of the updated link?

Looks like they removed the file or the link was getting abused. Oh well. Apparently you can compile OpenOCD from source to work with Bus Pirate, here's a link to the guide on how to do so which also includes firmware: https://michaldemin.wordpress.com/2010/ … d-openocd/

Offline

#7 2019-11-28 05:11:18

medtech1
Contributor
Registered: 2019-11-21
Posts: 4

Re: Un-bricking device with buspirate

batman192 wrote:

Looks like they removed the file or the link was getting abused. Oh well. Apparently you can compile OpenOCD from source to work with Bus Pirate, here's a link to the guide on how to do so which also includes firmware: https://michaldemin.wordpress.com/2010/ … d-openocd/

Thanks.. that url is from 2010... there is so much old stuff out there.   

Will that work with the same bus pirate you have - Hardware: v3b? (Which is the same one I have as well)?  The url mentions the firmware they are showing is for v3? not v3b?

The Bus Pirate "world" is full of broken links, unfortunately. 

I'm confused as to the bus pirate firmware supporting Openocd. 

Does this require the MPLABX (compiling etc etc)? or can I just download the latest bus pirate firmware (which all of those appear to come with the v6.2, 6.3. etc hex firmware files) and update it from there?   

I'd give my left kneecap for up-to-date steps for this.

Given what the end goal is (unbricking), its obvious a good secondary goal to not brick your bus pirate, while trying to unbrick your proxmark.  smile

Offline

#8 2019-11-28 09:12:59

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

Re: Un-bricking device with buspirate

A document for the Proxmark3 part.
https://github.com/RfidResearchGroup/pr … g_notes.md

Offline

#9 2019-11-29 00:39:46

medtech1
Contributor
Registered: 2019-11-21
Posts: 4

Re: Un-bricking device with buspirate

Trying to flash the buspirate...  (failed)

(Ok.. I hope since this thread is a sticky it is ok to post this... apologize if not  )


I did the following steps

Cloned https://github.com/BusPirate/Bus_Pirate

Went to the bottom for this link:

Firmware Flashing

Refer to building-and-flashing-firmware to see how to build and flash this firmware.
(url: https://github.com/BusPirate/Bus_Pirate/blob/master/Documentation/building-and-flashing-firmware.md)

Installed XC16

Installed MPLAB-X

Followed the "Building" section.. MPLAB-X showed success:

BUILD SUCCESSFUL (total time: 15s)
Loading code from /root/bp-latest/Bus_Pirate/Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex...
Loading completed


Followed the flashing steps... with (failed):



root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware# ./pirate-loader_lnx --dev=/dev/ttyUSB0 --hex=../../Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: Linux
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [../../Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex]
Found 17866 words (53598 bytes)
Fixing bootloader/userprogram jumps
Opening serial device /dev/ttyUSB0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...OK

Device ID: PIC24FJ64GA002 [d4]
Bootloader version: 1,02
Erasing page 0, 0000...OK
Writing page 0 row 0, 0000...ERROR

Error updating firmware sad
root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware#


Now, I can't access BP, although it appears I can trigger the bootloader with jumper between PGC & PGD and from a terminal, the output for every keypress is "BL4"

I can also get a response from the bootloader :
root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware# ./pirate-loader_lnx --dev=/dev/ttyUSB0 --hello
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: Linux
+++++++++++++++++++++++++++++++++++++++++++

Opening serial device /dev/ttyUSB0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...OK

Device ID: PIC24FJ64GA002 [d4]
Bootloader version: 1,02
root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware#

I'm not sure what to do next  sad

Update: 

Ok.. from what others have responded when others had the same behavior after an update, I need to use a pickit.

It would be nice to know where I went wrong.


Update - Dec1 - Ok, after experimenting and success in  debricking two Proxmark3s with a PI, my next project debricking the BUS Pirate.  Once the proxmark3 forum issue is fixed  (errors when posting), I'll post all steps from start to end in using the Raspberry PI to unbrick the proxmark3s.

Update - Dec1b - Ok.. Bus Pirate de-bricked as well... much easier than I thought.

Last edited by medtech1 (2019-12-02 02:49:53)

Offline

Board footer

Powered by FluxBB