This commit is contained in:
iceman1001 2018-01-21 18:34:54 +01:00
commit fe2f99190b
2 changed files with 62 additions and 29 deletions

View file

@ -73,7 +73,11 @@ tarbin: newtarbin client/tarbin armsrc/tarbin bootrom/tarbin
udev: udev:
sudo cp -rf driver/77-mm-usb-device-blacklist.rules /etc/udev/rules.d/77-mm-usb-device-blacklist.rules sudo cp -rf driver/77-mm-usb-device-blacklist.rules /etc/udev/rules.d/77-mm-usb-device-blacklist.rules
sudo udevadm control --reload-rules sudo udevadm control --reload-rules
ifneq ($(wildcard /etc/arch-release),) #If user is running ArchLinux
sudo usermod -aG uucp $(USER) #Use specific command and group
else
sudo adduser $(USER) dialout sudo adduser $(USER) dialout
endif
# easy printing of MAKE VARIABLES # easy printing of MAKE VARIABLES
print-%: ; @echo $* = $($*) print-%: ; @echo $* = $($*)

View file

@ -84,34 +84,63 @@ See https://github.com/Proxmark/proxmark3/wiki/Ubuntu%20Linux
A nice and cool install script made by @daveio is found here: A nice and cool install script made by @daveio is found here:
https://github.com/daveio/attacksurface/blob/master/proxmark3/pm3-setup.sh https://github.com/daveio/attacksurface/blob/master/proxmark3/pm3-setup.sh
I have also added this script to the fork. I have also added this script to the fork.
https://github.com/iceman1001/proxmark3/blob/master/install.sh https://github.com/iceman1001/proxmark3/blob/master/install.sh
- Run - Run
`sudo apt-get install p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget libncurses5-dev gcc-arm-none-eabi` `sudo apt-get install p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget libncurses5-dev gcc-arm-none-eabi`
- Clone iceman fork - Clone iceman fork
`git clone https://github.com/iceman1001/proxmark3.git` `git clone https://github.com/iceman1001/proxmark3.git`
- Get the latest commits - Get the latest commits
`git pull` `git pull`
- Install the blacklist rules and add user to dialout group (if you on a Linux/ubuntu/debian). If you do this one, you need to logout and login in again to make sure your rights got changed. - Install the blacklist rules and add user to dialout group (if you on a Linux/ubuntu/debian). If you do this one, you need to logout and login in again to make sure your rights got changed.
`make udev` `make udev`
- Clean and complete compilation - Clean and complete compilation
`make clean && make all` `make clean && make all`
- Flash the BOOTROM - Flash the BOOTROM
`client/flasher /dev/ttyACM0 -b bootrom/obj/bootrom.elf` `client/flasher /dev/ttyACM0 -b bootrom/obj/bootrom.elf`
- Flash the FULLIMAGE - Flash the FULLIMAGE
`client/flasher /dev/ttyACM0 armsrc/obj/fullimage.elf` `client/flasher /dev/ttyACM0 armsrc/obj/fullimage.elf`
- Change into the client folder - Change into the client folder
`cd client` `cd client`
- Run the client - Run the client
`./proxmark3 /dev/ttyACM0`
## Setup and build for ArchLinux
- Run
`sudo pacman -Sy base-devel p7zip libusb readline ncurses arm-none-eabi-newlib --needed`
`yaourt -S termcap`
- Clone iceman fork
`git clone https://github.com/iceman1001/proxmark3.git`
- Get the latest commits
`git pull`
- Install the blacklist rules and add user to dialout group (if you on a Linux/ubuntu/debian). If you do this one, you need to logout and login in again to make sure your rights got changed.
`make udev`
- Clean and complete compilation
`make clean && make all`
- Flash the BOOTROM
`client/flasher /dev/ttyACM0 -b bootrom/obj/bootrom.elf`
- Flash the FULLIMAGE
`client/flasher /dev/ttyACM0 armsrc/obj/fullimage.elf`
- Change into the client folder
`cd client`
- Run the client
`./proxmark3 /dev/ttyACM0` `./proxmark3 /dev/ttyACM0`
## Homebrew (Mac OS X) ## Homebrew (Mac OS X)
@ -154,13 +183,13 @@ Use the following list of packages required to setup the compile environment you
### 1. QT Open Source ### 1. QT Open Source
Download QT 5.6.1: http://download.qt.io/archive/qt/5.6/5.6.1-1/qt-opensource-windows-x86-mingw492-5.6.1-1.exe Download QT 5.6.1: http://download.qt.io/archive/qt/5.6/5.6.1-1/qt-opensource-windows-x86-mingw492-5.6.1-1.exe
Install to `C:\Qt` and choose the following components to be installed: Install to `C:\Qt` and choose the following components to be installed:
- QT - MinGW 32 bit - QT - MinGW 32 bit
- Tools - MinGW - Tools - MinGW
In your shell from MSYS (see below), make sure you set QTDIR to your QT installation and add its bin to your path as well: In your shell from MSYS (see below), make sure you set QTDIR to your QT installation and add its bin to your path as well:
`export QTDIR=/c/Qt/5.6/mingw49_32` `export QTDIR=/c/Qt/5.6/mingw49_32`
`export PATH=$PATH:$QTDIR/bin` `export PATH=$PATH:$QTDIR/bin`
### 2. MSYS ### 2. MSYS
@ -171,23 +200,23 @@ Download MSYS: http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe
Follow the installation procedure, you may want to install MSYS to `C:\Qt\msys` and when asked where is your MinGW installation and for its path answer the following: `c:/Qt/Tools/mingw492_32` Follow the installation procedure, you may want to install MSYS to `C:\Qt\msys` and when asked where is your MinGW installation and for its path answer the following: `c:/Qt/Tools/mingw492_32`
### 3. Readline ### 3. Readline
Download and unpack: https://sourceforge.net/projects/gnuwin32/files/readline/5.0-1/readline-5.0-1-bin.zip/download Download and unpack: https://sourceforge.net/projects/gnuwin32/files/readline/5.0-1/readline-5.0-1-bin.zip/download
`bin/*` to `C:\Qt\5.6\Tools\mingw492_32\bin` `bin/*` to `C:\Qt\5.6\Tools\mingw492_32\bin`
`include/*` to `C:\Qt\5.6\Tools\mingw492_32\include` `include/*` to `C:\Qt\5.6\Tools\mingw492_32\include`
`lib/*` to `C:\Qt\5.6\Tools\mingw492_32\lib` `lib/*` to `C:\Qt\5.6\Tools\mingw492_32\lib`
### 4. LibUSB ### 4. LibUSB
Download and unpack: https://sourceforge.net/projects/libusb-win32/files/latest/download?source=files Download and unpack: https://sourceforge.net/projects/libusb-win32/files/latest/download?source=files
`include/lusb0_usb.h` to `C:\Qt\5.6\Tools\mingw492_32\include` `include/lusb0_usb.h` to `C:\Qt\5.6\Tools\mingw492_32\include`
`lib/gcc/libusb.a` to `C:\Qt\5.6\Tools\mingw492_32\lib` `lib/gcc/libusb.a` to `C:\Qt\5.6\Tools\mingw492_32\lib`
### 5. DevkitPro ### 5. DevkitPro
Download and install: https://sourceforge.net/projects/devkitpro/files/latest/download?source=files Download and install: https://sourceforge.net/projects/devkitpro/files/latest/download?source=files
You only need devkitARM, nothing more (no extra lib or anything else) to compile the firmware (ARM) side. Assuming you installed it to `C:\devkitpro`, make sure you set the `DEVKITARM` environment variable to `/c/devkitPro/devkitARM` and add its bin to your PATH: You only need devkitARM, nothing more (no extra lib or anything else) to compile the firmware (ARM) side. Assuming you installed it to `C:\devkitpro`, make sure you set the `DEVKITARM` environment variable to `/c/devkitPro/devkitARM` and add its bin to your PATH:
`export DEVKITARM=/c/devkitPro/devkitARM` `export DEVKITARM=/c/devkitPro/devkitARM`
`export PATH=$PATH:$DEVKITARM/bin` `export PATH=$PATH:$DEVKITARM/bin`
### 6. Install Strawberry Perl ### 6. Install Strawberry Perl
@ -198,30 +227,30 @@ Download and install Git for Windows: https://git-scm.com/download/win
- Run minimal system: `C:\Qt\msys\msys.bat` - Run minimal system: `C:\Qt\msys\msys.bat`
- Set the environment: - Set the environment:
`export DEVKITARM=/c/devkitPro/devkitARM` `export DEVKITARM=/c/devkitPro/devkitARM`
`export PATH=$PATH:$DEVKITARM/bin` `export PATH=$PATH:$DEVKITARM/bin`
`export QTDIR=/c/Qt/5.6/mingw49_32` `export QTDIR=/c/Qt/5.6/mingw49_32`
`export PATH=$PATH:$QTDIR/bin` `export PATH=$PATH:$QTDIR/bin`
- Clone iceman fork - Clone iceman fork
`git clone https://github.com/iceman1001/proxmark3.git` `git clone https://github.com/iceman1001/proxmark3.git`
- Get the latest commits - Get the latest commits
`git pull` `git pull`
- CLEAN COMPILE - CLEAN COMPILE
`make clean && make all` `make clean && make all`
Assuming you have Proxmark3 Windows drivers installed you can run the Proxmark software where "X" is the com port number assigned to proxmark3 under Windows. Assuming you have Proxmark3 Windows drivers installed you can run the Proxmark software where "X" is the com port number assigned to proxmark3 under Windows.
- Flash the BOOTROM - Flash the BOOTROM
`client/flasher.exe comX -b bootrom/obj/bootrom.elf` `client/flasher.exe comX -b bootrom/obj/bootrom.elf`
- Flash the FULLIMAGE - Flash the FULLIMAGE
`client/flasher.exe comX armsrc/obj/fullimage.elf` `client/flasher.exe comX armsrc/obj/fullimage.elf`
- Change into the client folder - Change into the client folder
`cd client` `cd client`
- Run the client - Run the client
@ -232,7 +261,7 @@ The Proxmark 3 device is available for purchase (assembled and tested) from the
* http://proxmark3.tictail.com/ (For buyers in EU, most likely in Sweden) * http://proxmark3.tictail.com/ (For buyers in EU, most likely in Sweden)
* http://www.elechouse.com/ (new and revised hardware package 2015, located in China) * http://www.elechouse.com/ (new and revised hardware package 2015, located in China)
Enjoy! Enjoy!