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 2014-04-01 13:34:28

hheile
Contributor
Registered: 2014-03-03
Posts: 35

Problems using gitclone version on 12.04 ubuntu

hello forums,

i decided to use my ubuntu to play around with the proxmark.
but i cant got it compiled and running, so i need some help.
what have i done so far:
apt-get update
apt-get upgrade
apt-get dist-upgrade

uname -a gives me:
3.11.0-18-generic #32~precise1-Ubuntu SMP Thu Feb 20 17:54:21 UTC 2014 i686 i686 i386 GNU/Linux

lsb_release -a gives me:
lsb_release -a
LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:    precise

so: what i have done next:
sudo -i
cd /tmp
mkdir clone
cd clone
apt-get install git-core
git clone https://github.com/Proxmark/proxmark3
downloaded devkitARM_r41-x86_64-linux.tar.bz2 to /tmp
tar jxvf devkitARM_r41-x86_64-linux.tar.bz2
mkdir /opt/devkitpro
mv devkitARM /opt/devkitpro/
export PATH=${PATH}:/opt/devkitpro/devkitARM/bin/
echo 'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/' >> ~/.bashrc
. ~/.bashrc
sudo adduser myuser dialout
sudo nano /etc/udev/rules.d/77-mm-usb-device-blacklist.rules
added the following to the file:
# proxmark3 - http://www.proxmark.org/
ATTRS{idVendor}=="2d2d" ATTRS{idProduct}=="504d", ENV{ID_MM_DEVICE_IGNORE}="1"
reload the rules with
sudo udevadm control --reload-rules

so, when i plug in my device and use lsusb i checkt the vendor and product-id, they are correct:
lsusb
Bus 003 Device 007: ID 2d2d:504d
(and some others)

dmesg gives me:
[ 1159.038966] usb 3-1.2: new full-speed USB device number 5 using xhci_hcd
[ 1159.057222] usb 3-1.2: New USB device found, idVendor=2d2d, idProduct=504d
[ 1159.057225] usb 3-1.2: New USB device strings: Mfr=1, Product=0, SerialNumber=0
[ 1159.057227] usb 3-1.2: Manufacturer: proxmark.org
[ 1159.057397] usb 3-1.2: ep 0x83 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 1159.425436] cdc_acm 3-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[ 1159.425457] cdc_acm 3-1.2:1.0: ttyACM0: USB ACM device
[ 1159.426542] usbcore: registered new interface driver cdc_acm
[ 1159.426544] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

okay this seems all right

now, lets go forward:
apt-get install lsb libusb-dev libreadline-dev libreadline6 libqt4-dev

export DEVKITPRO=/opt/devkitpro/ (see above this is the folder where i moved it before)
export DEVKITARM=$DEVKITPRO/devkitARM
export PATH=${PATH}:${DEVKITARM}/bin

changed to directory /tmp/clone/proxmark3
make

and:

boom:
make
make -C bootrom all
make[1]: Entering directory `/tmp/clone/proxmark3/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
svn: Path '..' ends in '..', which is unsupported for this operation
svn: warning: '..' is not a working copy
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=c99 -I. -Os -mthumb -mthumb-interwork -o obj/version.o version.c
/opt/devkitpro//devkitARM/bin/arm-none-eabi-gcc: 6: /opt/devkitpro//devkitARM/bin/arm-none-eabi-gcc: Syntax error: ")" unexpected
make[1]: *** [obj/version.o] Error 2
make[1]: Leaving directory `/tmp/clone/proxmark3/bootrom'
make: *** [bootrom/all] Error 2

so my idea was to create a new howto for linux so that everyone can do it from scratch without my issues.

thanks for your help

hheile

Offline

Board footer

Powered by FluxBB