ha7ilm / csdr

A simple DSP library and command-line tool for Software Defined Radio.
523 stars 171 forks source link

Compiling on RPi - armv6 #28

Open ghost opened 7 years ago

ghost commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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.