KEMBAR78
plutoSDR Ubuntu Programa - Propio | PDF | Computers
0% found this document useful (0 votes)
83 views2 pages

plutoSDR Ubuntu Programa - Propio

The document discusses setting up a Linaro toolchain and cross-compiling programs for an ARM system. It provides instructions for installing the Linaro GCC cross-compiler, setting the PATH, and cross-compiling several programs including PlutoSDR stream and dump1090 before copying them over to the target ARM system.

Uploaded by

madferitdboy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

plutoSDR Ubuntu Programa - Propio

The document discusses setting up a Linaro toolchain and cross-compiling programs for an ARM system. It provides instructions for installing the Linaro GCC cross-compiler, setting the PATH, and cross-compiling several programs including PlutoSDR stream and dump1090 before copying them over to the target ARM system.

Uploaded by

madferitdboy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

fw_setenv attr_name compatible

fw_setenv attr_val ad9361


fw_setenv compatible ad9361
fw_setenv mode 2r2t
reboot

fw_printenv mode
fw_printenv attr_name
fw_printenv attr_val
fw_printenv compatible

sudo apt install build-essential


sudo apt-get install lib32z1-dev

cd /usr/local/bin
sudo wget http://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-
linux-gnueabihf/gcc-linaro-7.2.1-2017.11-i686_arm-linux-gnueabihf.tar.xz
sudo tar -xf gcc-linaro-7.2.1-2017.11-i686_arm-linux-gnueabihf.tar.xz
export PATH=$PATH:/usr/local/bin/gcc-linaro-7.2.1-2017.11-i686_arm-linux-
gnueabihf/bin

export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
usr/bin:/sbin:/bin:/usr/games:/usr/local/games

arm-linux-gnueabihf-gcc --version

vim ~/.bashrc
arm-linux-gnueabihf-gcc -mfloat-abi=hard --sysroot=./pluto-0.37.sysroot -std=gnu99
-g -o pluto_stream ad9361-iiostream.c -lpthread -liio -lm -Wall -Wextra

arm-linux-gnueabihf-gcc -mfloat-abi=hard --sysroot=$HOME/staging -std=gnu99 -g -o


pluto_stream ad9361-iiostream.c -lpthread -liio -lm -Wall -Wextra

### ejemplo de pdf de presentacion con xilling pero lo he modificado para que sea
con linaro
git clone https://github.com/PlutoSDR/dump1090
cd dump1090
CC=arm-linux-gnueabihf-gcc CFLAGS=--sysroot=../pluto-0.37.sysroot LDFLAGS=--
sysroot=../pluto-0.37.sysroot make
arm-linux-gnueabihf-gcc --sysroot=../pluto-0.37.sysroot -c dump1090.c
arm-linux-gnueabihf-gcc --sysroot=../pluto-0.37.sysroot -c anet.c
arm-linux-gnueabihf-gcc -g -o dump1090 dump1090.o anet.o --sysroot=./pluto-
0.37.sysroot -liio -lpthread -lm -lad9363
file dump1090

##otra opcion con el programa gcc


gcc -m32 prog.c -o prog -march=armv7l

scp pluto_stream root@192.168.2.1:/tmp/

ssh root@192.168.2.1

ssh -t root@192.168.2.1 /tmp/pluto_stream


export PATH=$PATH:/tmp/pluto_stream

chmod +x pluto_stream

ldd pluto_stream

uname -m

# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/lib

You might also like