nanovna-v2 / NanoVNA2-firmware

Firmware for NanoVNA V2
https://nanorfe.com/nanovna-v2.html
215 stars 85 forks source link

Cross compiling on a Raspberry Pi... #63

Open dl9sec opened 3 years ago

dl9sec commented 3 years ago

Hi,

building the stuff on a Raspberry Pi 3 "Buster" works very well. I don't use the toolchain from the Raspbian repo (2018-q2), but a more recent (9-2020-q1-update) and well working precompiled toolchain from https://github.com/vanbwodonk/gcc-arm-embedded-build-armhf. I used the following lines to install the toolchain:

wget https://github.com/vanbwodonk/gcc-arm-embedded-build-armhf/releases/download/9-2019-q4-major/gcc-arm-none-eabi-9-2020-q1-update-armv7l-linux.tar.bz2 tar -xvf gcc-arm-none-eabi-9-2020-q1-update-armv7l-linux.tar.bz2 sudo cp -r gcc-arm-none-eabi-9-2020-q1-update/* /usr/local/ sudo rm -r gcc-arm-none-eabi-9-2020-q1-update

Additionally I added the following line at the end of ~/.profile:

PATH=/usr/local/usr/local/arm-none-eabi/bin:$PATH

My first build attempt works well without errors, but the firmware doesn't run ("white-screen"). So I had to do a

git reset --hard

at "/NanoVNA-V2-firmware" to align the sources.

Hope this helps if someone want to cross compile on a RasPi...

Regards, Thorsten