Proxmark / proxmark3

Proxmark 3
http://www.proxmark.org/
GNU General Public License v2.0
3.11k stars 903 forks source link

Compiling on RPi ARM fails #542

Closed magdesign closed 6 years ago

magdesign commented 6 years ago

Trying to compile proxmark3 on RaspberryPi3 on Debian Jessie, get following error:

https://gist.github.com/magdesign/05baa05c1b4c20258e42ac4aa0e25abf

Is there anything special I have to do to get it done on ARM?

iceman1001 commented 6 years ago

It would be a compiler directive #define which doesn't match Raspberry Jessie when decide which cpu op-codes to use. RPI3, is ARM isn't it? So it isn't linux but arm

pwpiwi commented 6 years ago

I don't think so. Obviously hardnested_bitarry_core.c still compiles. I would therefore assume it is @merlokk's modified dispatch functions in hardnested_bf_core.c?

iceman1001 commented 6 years ago

it compiles but it doesn't link? btw, I don't think you can run hardnested on RPi3.. to little memory. Will be interesting to hear if you manage to run it.

magdesign commented 6 years ago

I could not make it run so far on a RPi....Will try it with merlokk's version. For the moment using iceman's version on a Fedora notebook.

merlokk commented 6 years ago

may you check if this commit compiles? https://github.com/Proxmark/proxmark3/commit/91ca74f0ed2a6db99df87e7b318660f45b6858f9

merlokk commented 6 years ago

this lines can show this error https://github.com/Proxmark/proxmark3/blob/master/client/hardnested/hardnested_bf_core.c#L618

if the error shows) maybe it needs to add this ifdef https://github.com/Proxmark/proxmark3/blob/master/client/hardnested/hardnested_bf_core.c#L618 #if defined (__i386__) || defined (__x86_64__)