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

Upgrade GnuRadio to 3.10.2.0 #92

Open
andrewgreenberg opened this issue Feb 9, 2023 · 6 comments
Open

Upgrade GnuRadio to 3.10.2.0 #92

andrewgreenberg opened this issue Feb 9, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@andrewgreenberg
Copy link

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 andrewgreenberg added the enhancement New feature or request label Feb 9, 2023
@texadactyl
Copy link

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
Copy link

texadactyl commented Feb 9, 2023

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

@aSmig
Copy link

aSmig commented Feb 10, 2023

@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?

@texadactyl
Copy link

@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.

@aSmig
Copy link

aSmig commented Feb 12, 2023

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

@luigifcruz
Copy link
Owner

luigifcruz commented Jun 25, 2023 via email

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

No branches or pull requests

4 participants