Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on RPI Zero #42

Open
melther opened this issue Mar 23, 2019 · 5 comments
Open

Install on RPI Zero #42

melther opened this issue Mar 23, 2019 · 5 comments
Labels

Comments

@melther
Copy link

melther commented Mar 23, 2019

Hello all
I try to install on RPI zero (not a programmer I just follow instruction !)
All seems go ok but when launch i get : Illegal instruction error

I need to configure "NEON" ? but how ?

Thank you

@ha7ilm ha7ilm added the bug label Mar 25, 2019
@ha7ilm
Copy link
Owner

ha7ilm commented Mar 25, 2019

Edit PARAMS_NEON in the Makefile.

@melther
Copy link
Author

melther commented Mar 25, 2019

Ok, but how ?

@ha7ilm
Copy link
Owner

ha7ilm commented Apr 8, 2019

Currently different compile flags are needed for different architectures. This is not nice, and should be fixed (when I'll have time, but not very soon).

@fallenangel3k
Copy link

took me 2 days digging google & co. change Makefile as followed, the it will run on RPi Zero:

PARAMS_NEON = -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mtune=arm1176jzf-s

#tnx Jan Szumiec for the Raspberry Pi support
PARAMS_RASPI = -mfloat-abi=hard -mcpu=arm1176jzf-s -mfpu=vfp -funsafe-math-optimizations -Wformat=0

PARAMS_ARM = $(if $(call cpufeature,ARMv6,dummy-text),$(PARAMS_RASPI),$(PARAMS_NEON))

@mwshafer
Copy link

mwshafer commented May 17, 2024

I'm trying to get this to work on an RPI5, using the following Makefile updates:

PARAMS_NEON = -mfloat-abi=hard -march=armv8-a -mtune=cortex-a76 -mfpu=auto -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS
#tnx Jan Szumiec for the Raspberry Pi support
PARAMS_RASPI = -mfloat-abi=hard -mcpu=cortext-a76 -mfpu=vfp -funsafe-math-optimizations -Wformat=0
PARAMS_ARM = $(if $(call cpufeature,BCM2712,dummy-text),$(PARAMS_RASPI),$(PARAMS_NEON))

But I am getting the following output:

NOTE: you may have to manually edit Makefile to optimize for your CPU (especially if you compile on ARM, please edit PARAMS_NEON).
Auto-detected optimization parameters: -mfloat-abi=hard -march=armv8-a -mtune=cortex-a76 -mfpu=auto -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS

rm -f dumpvect*.vect
gcc -std=gnu99 -O3 -ffast-math -fdump-tree-vect-details -dumpbase dumpvect -mfloat-abi=hard -march=armv8-a -mtune=cortex-a76 -mfpu=auto -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS fft_fftw.c libcsdr_wrapper.c  -g -lm -lrt -lfftw3f -DUSE_FFTW -DLIBCSDR_GPL -DUSE_IMA_ADPCM -Wno-unused-result -fpic -shared -Wl,-soname,libcsdr.so.0.15 -o libcsdr.so.0.15
gcc: error: unrecognized command-line option '-mfloat-abi=hard'
gcc: error: unrecognized command-line option '-mfpu=auto'
gcc: error: unrecognized command-line option '-mvectorize-with-neon-quad'
make: *** [Makefile:56: libcsdr.so] Error 1

I'm hesitant to start messing with the NEON parameters since I'm not sure which I can just remove. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants