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.
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.
Pages: 1
Ok so I got the p3 and tried with Make had a few errors
came here and saw the post on the armdevkit
Tried that.
I am on a Debian Based System, BackTrack 4
When I go to the dir I get this:
bt4:~/proxmark3/linux/proxmark3-read-only# make
make -C bootrom all
make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
make[1]: arm-eabi-gcc: Command not found
make[1]: *** [obj/version.o] Error 127
make[1]: Leaving directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
make: *** [bootrom/all] Error 2
Offline
An Update:
In my ~/.bashrc file i have these lines
export ARMLIB=/root/gnuarm/lib/gcc/arm-elf/4.3.3/interwork
export PATH=${PATH}:/root/gnuarm/bin/
export DEVKITPRO=/opt/devkitpro/
export DEVKITARM=$DEVKITPRO/devkitARM
Offline
Are you sure you have arm-eabi-gcc in /root/gnuarm/bin instead of $DEVKITPRO/devkitARM/bin ?
Offline
yah I am
@bt4:/opt/devkitpro# locate arm-eabi-gcc
/opt/devkitpro/devkitARM/bin/arm-eabi-gcc
/opt/devkitpro/devkitARM/bin/arm-eabi-gcc-4.4.3
/opt/devkitpro/devkitARM/bin/arm-eabi-gccbug
/opt/devkitpro/devkitARM/man/man1/arm-eabi-gcc.1
/root/gnuarm/bin/arm-eabi-gcc
But still I get
make
make -C bootrom all
make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [obj/version.o] Error 1
make[1]: Leaving directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
make: *** [bootrom/all] Error 2
Ideas?
Offline
Are you sure your /root/gnuarm/bin/arm-eabi-gcc version is not broken?
I'd execute manually this command line:
/root/gnuarm/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
and/or
$DEVKITARM/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
To check whether or not, at least one of them work.
you could also run the same command line using strace/ltrace (probably with the -f option) to see where it's failing exactly.
Offline
good call
bad outcome tho
root@bt4:/opt/devkitpro# /root/gnuarm/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: version.c: No such file or directory
arm-eabi-gcc: no input files
root@bt4:/opt/devkitpro# $DEVKITARM/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: version.c: No such file or directory
arm-eabi-gcc: no input files
root@bt4:/opt/devkitpro#
Offline
It seems you don't really understand what you're doing [1]. Are you a developer/programmer? I would suggest you use whatever binary has been released for the Summer 2009 release.
[1] Hint from what you copied/pasted above:
make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
Offline
no sorry i am not a dev or programmer. just starting out trying to understand this.
Thanks for the tips
Offline
I am a programmer , and I still had to change arm-eabi-gcc to arm-elf-gcc in the Makefile. Worked fine after that.
Why the change to eabi? The included auto-building tools script that downloads and builds all the GNU tools seems to build only arm-elf-gcc.
Offline
Thank you so much for your reply
here is my problem in the makefile I dont see it?
include common/Makefile.common
all clean: %: bootrom/% armsrc/% client/%
bootrom/%: FORCE
$(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
armsrc/%: FORCE
$(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
client/%: FORCE
$(MAKE) -C client $(patsubst client/%,%,$@)
FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
.PHONY: all clean help _test flash-bootrom flash-os flash-fpga flash-both flash-all FORCE
help:
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
@echo Possible targets:
@echo + all - Make bootrom, armsrc and the OS-specific host directory
@echo + flash-bootrom - Make bootrom and flash it
@echo + flash-os - Make armsrc and flash os
@echo + flash-fpga - Make armsrc and flash fpga
@echo + flash-both - Make armsrc and flash os and fpga image
@echo + flash-all - Make bootrom and armsrc and flash bootrom, os and fpga image
@echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
$(FLASH_TOOL) -b $(subst /,$(PATHSEP),$<)
flash-os: armsrc/obj/osimage.elf $(FLASH_TOOL)
$(FLASH_TOOL) $(subst /,$(PATHSEP),$<)
flash-fpga: armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
$(FLASH_TOOL) $(subst /,$(PATHSEP),$<)
flash-both: armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
$(FLASH_TOOL) $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
flash-all: bootrom/obj/bootrom.elf armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
$(FLASH_TOOL) -b $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))
# Dummy target to test for GNU make availability
_test:
I dont see where to change it. Can you tell me where please?
Thank you
Offline
Pages: 1