Skip to content

Gentoo Linux

Fl0-0 edited this page Feb 2, 2019 · 6 revisions

Table of Contents

Preparing Proxmark3 Software

Open a terminal: Konsole (KDE) / Terminal (GNOME) Download (and install) git, p7zip, and components essential to build the Proxmark from 
source:

 sudo emerge git p7zip make gcc readline dev-libs/libusb perl wget dev-qt/qt-meta:4 sys-apps/pcsc-lite

Plug in the Proxmark3

Insert the Proxmark and check “dmesg”, you will get one of the following outputs that will affect the next few steps.

HID device

[ 5414.961137] usb 2-2.2: new full speed USB device number 11 using uhci_hcd

May  3 15:53:43 proxtest mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.2"
[ 5422.297626] generic-usb 0003:9AC4:4B8F.0008: hiddev0,hidraw2: 
USB HID v1.00 Device [ProxMark-3 RFID Instrument] on usb-0000:02:00.0-2.2/input0
Jump to Reflashing Proxmark3

CDC device

[10416.461687] usb 2-1.2: new full-speed USB device number 12 using ehci_hcd
[10416.555093] usb 2-1.2: New USB device found, idVendor=2d2d, idProduct=504d
[10416.555105] usb 2-1.2: New USB device strings: Mfr=1, Product=0, SerialNumber=0
[10416.555111] usb 2-1.2: Manufacturer: proxmark.org
[10416.555814] cdc_acm 2-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[10416.555871] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
Jump to Driver Installation.

Reflashing Proxmark3

Check out the latest revision of the Proxmark project:

 git clone https://github.com/Proxmark/proxmark3.git

Get devkitARM release 41 from SourceForge (choose either the 64/32 –bit depending on your architecture, it is assumed you know how to check and recognize your architecture):

Extract the contents of the .tar.bz2:
 tar jxvf devkitARM_r41-<arch>-linux.tar.bz2

Create a directory for the arm dev kit:

 sudo mkdir –p /opt/devkitpro/

Move the ARM developer kit to the newly created directory:

 sudo  mv devkitARM   
/opt/devkitpro/

Add the appropriate environment variable:

 export   
PATH=${PATH}:/opt/devkitpro/devkitARM/bin/

Add the environment variable to your profile:

echo   
'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/ ' >> ~/.bashrc
Enter the newer proxmark repository (proxmark3) and issue the “make” command; To compile the bootrom, OS and software. Use the older version of the flasher to update the proxmark:
 cd client/hid-flasher
 make
 ./flasher -b ../../bootrom/obj/bootrom.elf
 ./flasher ../../armsrc/obj/fullimage.elf

 cd ../..

You can now skip forward to DRIVER INSTALLATION!

Driver Installation

Get devkitARM release 41 from SourceForge (choose either the 64/32 –bit depending on your architecture, it is assumed you know how to check and recognize your architecture):

Extract the contents of the .tar.bz2:
 tar jxvf devkitARM_r41-<arch>-linux.tar.bz2

Create a directory for the arm dev kit:

 sudo mkdir –p /opt/devkitpro/

Move the ARM developer kit to the newly created directory:

 sudo mv  devkitARM 
  /opt/devkitpro/

Add the appropriate environment variable:

export 
 PATH=${PATH}:/opt/devkitpro/devkitARM/bin/
Add the environment variable to your profile:
echo 
 'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/ ' >> ~/.bashrc
Check out the latest revision of the Proxmark project (if you have not already downloaded it):
 git clone https://github.com/Proxmark/proxmark3.git

Enter the repository “cd proxmark3”, and enter the “make” command, to compile everything.