Gr-osmosdr updated to 0.1.4.67.ac15e78


#1

Greetings,

Today I have updated the gr-osmosdr packages to the latest git snapshot, so that it now includes support for Red Pitaya SDR transceiver and the new gain modes for the Airspy. It’s API/ABI compatible with the previous package and so the other packages do not need upgrade for this reason.

Alex


#2

Thanks @csete. It looks like we need another big round of updates for recent release:

If I had to figure out the order of things to build to get the dependencies first:

  • add uhd ppa
  • already using bladerf from nuand ppa
  • update gnuradio
  • update gr-osmosdr
  • update umtrx
  • soapyuhd
  • soapybladerf
  • soapyosmo
  • soapyredpitaya
  • soapyaudio

Its quite the build matrix, so I was waiting to have some extra free time before going after it :slight_smile:


#3

Ok, go ahead. I’m hoping this will not affect existing gqrx packages, only the future builds.


#4

Sort-of… I think all of the shared libraries go into unique packages based off of their so version. That should just mean that GQRX pulls in the old libraries, and there wont be any ABI compatibility issues.

But I think what happens is that a hardware driver gets installed with the latest bin/ apps, latest library, and then also the slightly older library. Recently built apps use the newer library, but previously built apps use the older library. Problem is the older library for the hardware expects a different FPGA image or something vs the newer one.

I know its horrible, but the only sure way to have everything working is to carefully rebuild the dependency tree from bottom to top…

  • i have added the usrp ppa (this wont itself break anything, it only effects new builds)
  • latest umtrx is up - done
  • rebuilt soapy uhd - done
  • im backporting latest volk from xenial now (as I type this)
  • next is gnuradio from xenial backporting (i know trusty will fight me a little over wx at least)
  • then rebuild latest gr-osmosdr
  • then gqrx rebuild

#5

Update: volk and gnuradio 3.7.9 are up. Next on the list:

  • gr-iqbal
  • gr-fcdplus
  • gr-osmosdr

I forgot about the first two, gr-osmosdr depends on them


#6

@csete I was thinking. There has to be a more automated way to do this. Rebuilding packages because the dependencies have updated comes up a lot. Especially when the dependent projects have not changed.

The script should be simple to use like ubuntu’s backportpackage, but instead it would

  1. download a specified package from a specific PPA
  2. modify the changelog entry to bump the suffix (myriadrf1 -> myriadrf2)
  3. repackage and upload to the PPA

Ever heard of something like this? I was curious what you were using to automate/upload/script these builds. Or if you know of a smarter way to handle this.

If not, I wrote a PPA helper script in python that is specific to git projects with debian/ directories in them. It basically automates modifying the changelog, building with git-buildpackage, and uploading to a specified ppa. I can probably modify it for manually adding a debian/ directory, and then it can be used for this purpose. Also, I can share this script if you are interested.


#7

Hi Josh,

I don’t have any automated script and I don’t mind doing things manually since most of the time goes with waiting for a build to finish.

This current update is not good :frowning:

It seems we have got gsl2 now, which wants to uninstall the GSL that comes with Ubuntu. This in turn will remove applications that depend on it. I’m not just talking about gqrx but also for example inkscape.

IMO, if a new version of gnuradio requires adding new packages to the PPA, we should seriously consider whether we really want the upgrade. We can’t just randomly replace Ubuntu packages without consequences. Every time we add a new package that replaces a package in Ubuntu we increase the complexity and the risk of breaking the system.


#8

I also noted that the libvolk 1.2 package actually installs libvolk.so.1.1 - is that intentional?


#9

I assumed that gsl2 runtime would not conflict. But instead it looks like the libcblas sonames are the same, so the gsl2 is marked to conflict with the stock gsl packages. They probably could have been made to coexist. What a mess.

So I think I can delete gsl2 from the PPA and rebuilt gnuradio against the stock gsl. I have to check if gnuradio really needed newer gsl or this was just a change of package names in the build depends.

I’m not sure why its like that. Its backported from xenial. So if it gets fixed upstream I guess I will re-backport. In any case its not a problem as ffar as I can tell.


#10

Ok, understood.

It looks like GSL dependency only affects people who have the full gnuradio SDK installed, and those who only have gqrx + necessary runtime installed will not notice. So, it might not be as bad as I feared when I saw it.


#11

Well, still wasnt quite my intention. It should be fixed now. It looks like gnuradio builds fine against stock gsl. I just needed to adjust the build depends.


#12

That’s great news!


#13

Hi Josh,

Are you waiting for me to update the remaining packages (gr-iqbal, gr-fcdproplus and gr-osmosdr)? I can do that later today, I just need to know :slightly_smiling:

Alex


#14

Sorry for the delay. I wasn’t waiting for you to handle those packages (also I need to adjust the notification settings…). But if you are ready to handle them now, I would appreciate if you can update the others. Otherwise I can get around to it this weekend.


#15

Hi Josh,

No problem. I have updated the packages and will also make a new gqrx package.


#16

Awesome! At some point I should email the osmocom list about the updated packages.


#17

If you have a summary of the updates I could announce these in a short blog post that we can share via Twitter etc. also.


#18

For the most part

  • update to gr 3.7.9/volk 1.2
  • latest gr-osmosdr with redpitaya support
  • SoapyRedPitaya is up as well
  • UmTRX 1.0.8
  • Using UHD PPA
  • And of course rebuilding everything in order of dependence :slight_smile:

If its also of interest, I updated my PothosSDR environment for gr 3.7.9 as well. New binaries will be available pretty soon: https://github.com/pothosware/PothosSDR/wiki/GNURadio

@csete For kicks I added GQRX to the build. It builds with the following patch, but no idea if it works yet since the VM doesnt have any devices: https://github.com/pothosware/PothosSDR/blob/master/patches/gqrx_msvc_fixes.diff


#19

Hi Josh,

It’s quite amazing that you could build it on windows :slightly_smiling:

I have applied your patch and pushed it into my master. Thanks.

Alex