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

Compiling on RPi - armv6 #28

Open
ghost opened this issue Jun 30, 2017 · 2 comments
Open

Compiling on RPi - armv6 #28

ghost opened this issue Jun 30, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 30, 2017

Hi,

i'm trying to compile on an old RPi with armv6. Tried with the flags below but still getting an Illegal Instruction on nmux. Any clues?

PARAMS_NEON = -mfloat-abi=hard -march=armv6 -mtune=arm6 -mfpu=neon -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS

Thanks in advance
Dominic

root@pi:~/csdr# rtl_sdr -s 250000 -f 145525000 -p 0 -g 5 -| nmux --bufsize 65536 --bufcnt 763 --port 4951
nmux: listening on 127.0.0.1:4951
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
Sampling at 250000 S/s.
Tuned to 145525000 Hz.
Tuner gain set to 3.70 dB.
Reading samples in async mode...
Signal caught, exiting!
Short write, samples lost, exiting!
User cancel, exiting...
Illegal instruction


root@pi:~/csdr# nmux --bufsize 65536 --port 4951 --address 127.0.0.1
nmux: listening on 127.0.0.1:4951
Illegal instruction


root@pi:~/csdr# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7
Hardware	: BCM2835
Revision	: 000f
@krjones
Copy link

krjones commented Aug 5, 2017

I tried with "-march=armv6 -mtune=cortex-a53", but no love here.

Did you have any luck?

UPDATE
Actually, I forgot to do sudo make install. Once I did that, nmux and csdr worked.

** Update 2 **
So it compiled but it it still gives me the same "illegal instruction" error.
nmux -p 4951 -a 192.168.132
nmux: listening on 192.168.0.132:4951
Illegal instruction

@naorunaoru
Copy link

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

No NEON extensions on this CPU.

It works, but runs very slow on my RPi1.

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

No branches or pull requests

2 participants