pisdr-image icon indicating copy to clipboard operation
pisdr-image copied to clipboard

Upgrade GnuRadio to 3.10.2.0

Open andrewgreenberg opened this issue 2 years ago • 6 comments

pisdr ships with GnuRadio 3.9, but GnuRadio has been at version 3.10.2.0 since April 2022. 3.10 has a lot of really great core upgrades, it would be great to have a new pisdr build with the current stable version! Thanks!

andrewgreenberg avatar Feb 09 '23 03:02 andrewgreenberg

It looks like only one file is affected: pisdr-image/stage4/13-pisdr-gnuradio/01-run.sh

--branch maint-3.9 --> --branch maint-3.10

texadactyl avatar Feb 09 '23 15:02 texadactyl

There was an incomplete work-around here previously. Withdrawn because it was missing the cmake build steps.

texadactyl avatar Feb 09 '23 16:02 texadactyl

@texadactyl I'm confused by the steps suggested in your last post. It looks like they pull the latest GNURadio source but don't compile it. I would expect the volk_profile at the end to use the system installed 3.9 libraries. Indeed, running gnuradio-companion loads up 3.9.5.0-rc1 after these steps. Am I missing something?

aSmig avatar Feb 10 '23 19:02 aSmig

@aSmig Thanks, you are spot on. Doing too many things at the same time. The Python scripts are updated but the cmake steps need to be completed. Sorry for the distraction.

texadactyl avatar Feb 10 '23 19:02 texadactyl

Based on earlier notes from @texadactyl and various tips found elsewhere, I have 3.10 running on a PiSDR. The most important steps are below. However, it was a journey so these may not be complete instructions. Creating a swap file cuts compile time almost in half on my 8GB Pi 4. Start by logging into your Pi.

sudo -i
apt update
apt upgrade
apt install libclang-cpp11 liborc-0.4-dev-bin libxapian30 libspdlog-dev
dpkg -r python3-pygccxml
pip install pygccxml

fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

cd ~pi/PiSDR/Software/gnuradio
git remote set-branches --add origin maint-3.10
git fetch origin maint-3.10
git switch maint-3.10
git submodule update --init --recursive
mkdir -p build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
time ninja install
ldconfig
exit

volk_profile

cmake takes about 2 minutes ninja takes about 2 hours 15 minutes volk_profile takes about 5 minutes

aSmig avatar Feb 12 '23 01:02 aSmig

Hi,

Sorry for the delay. The Pi shortage has affected my ability to release new versions. I plan to release a new version with the latest software soon.

I believe it’s very difficult to compile GNURadio locally with the Pi. Even if successful, the out of tree modules and SDR drivers might also break. Therefore, a full district upgrade is necessary.

Best Regards, Luigi Cruz On Feb 11, 2023 at 10:46 PM -0300, Kenny @.***>, wrote:

Based on earlier notes from @texadactyl and various tips found elsewhere, I have 3.10 running on a PiSDR. The most important steps are below. However, it was a journey so these may not be complete instructions. Creating a swap file cuts compile time almost in half on my 8GB Pi 4. Start by logging into your Pi. sudo -i apt update apt upgrade apt install libclang-cpp11 liborc-0.4-dev-bin libxapian30 libspdlog-dev dpkg -r python3-pygccxml pip install pygccxml

fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile

cd PiSDR/Software/gnuradio git remote set-branches --add origin maint-3.10 git fetch origin maint-3.10 git switch maint-3.10 git submodule update --init --recursive mkdir -p build cd build cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. time ninja install ldconfig exit

volk_profile cmake takes about 2 minutes ninja takes about 2 hours 15 minutes volk_profile takes about 5 minutes — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

luigifcruz avatar Jun 25 '23 10:06 luigifcruz