Post Go back to editing

Cannot open ad936x tab or advance tab with IIO Scope and Pluto on Linux

Thread Summary

The user encountered issues with the AD936x tab not showing up in IIO Oscilloscope on PopOS and Ubuntu. Compiling IIO Scope was necessary to get the AD936x tab to appear, but on PopOS, the compiled version crashes upon reopening. The user found that running the app-image release from GitHub works reliably without crashes on both OSes. The solution involves ensuring libad9361-iio and libosc.so are correctly installed and accessible.
AI Generated Content
Category: Software
Product Number: Pluto

Hello, I am trying to run IIO Oscilloscope on Linux but I am having difficulties gaining control of basic functionality in Linux, namely the ad936x tab is now showing up. My OS information below:

Linux pop-os 6.12.10-76061203-generic #202412060638~1751390742~22.04~79b9668 SMP PREEMPT_DYNAMIC Tue J x86_64 x86_64 x86_64 GNU/Linux

Only the "debug", "DMM" and "Data Manager" tab is available but not the usual ad9361 tab.

I am using the latest release here (v0.18-main) found in the osc-linux zip file

https://github.com/analogdevicesinc/iio-oscilloscope/releases/download/v0.18-main/osc-linux-x86_64-710df32.zip

Is a compilation still necessary in Linux for this release? If so, I even tried re-compiling everything following these instructions:

https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope#linux

https://wiki.analog.com/resources/tools-software/linux-software/libiio#how_to_build_it

The compilation seems to succeed and places osc in /usr/bin/osc. I run osc from the /build directory with the library path (LD_LIBRARY_PATH) included:

Log of the executable below:

/projects/oscope/build/iio-oscilloscope/build$ ./osc

(osc:3325604): Gtk-WARNING **: 15:49:16.206: Could not load image 'osc128.png': Failed to open file “./glade/osc128.png”: No such file or directory

(osc:3325604): Gtk-WARNING **: 15:49:16.229: Could not load image 'IIOlogo.png': Failed to open file “./glade/IIOlogo.png”: No such file or directory

(osc:3325604): Gtk-WARNING **: 15:49:16.229: Could not load image 'ADIlogo.png': Failed to open file “./glade/ADIlogo.png”: No such file or directory
Found plugin: Debug
Found plugin: FMCOMMS11
Found plugin: AD5628-1
Found plugin: Partial Reconfiguration
Found plugin: AD9371 Advanced
Found plugin: FMCADC3
Found plugin: AD6676
Found plugin: DAC Data Manager
Found plugin: LIDAR
Found plugin: CN0508
Found plugin: CN0357
Found plugin: ad9739a
Found plugin: FMComms6
Found plugin: FMComms5
Found plugin: XMW
Found plugin: DMM
Found plugin: CN0540
Could not find expected iio devices
Found plugin: ADRV9009
Found plugin: Motor Control
Found plugin: DAQ1/2/3
Found plugin: AD9371
Failed to load plugin "adrv9002.so"Found plugin: SCPI
Closing plugin: Debug
Closing plugin: DMM
Found plugin: Debug
Found plugin: FMCOMMS11
Found plugin: AD5628-1
Found plugin: Partial Reconfiguration
Found plugin: AD9371 Advanced
Found plugin: FMCADC3
Found plugin: AD6676
Found plugin: DAC Data Manager
Found plugin: LIDAR
Found plugin: CN0508
Found plugin: CN0357
Found plugin: ad9739a
Found plugin: FMComms6
Found plugin: FMComms5
Found plugin: XMW
Found plugin: DMM
Found plugin: CN0540
Could not find expected iio devices
Found plugin: ADRV9009
Found plugin: Motor Control
Found plugin: DAQ1/2/3
Found plugin: AD9371
Failed to load plugin "adrv9002.so"Found plugin: SCPI
Loaded plugin: DAC Data Manager

(osc:3325604): Gtk-WARNING **: 15:49:16.443: Could not load image 'ADIlogo.png': Failed to open file “./glade/ADIlogo.png”: No such file or directory

(osc:3325604): Gtk-WARNING **: 15:49:16.460: Content added to the action area of a dialog using header bars

(osc:3325604): Gtk-WARNING **: 15:49:16.460: Content added to the action area of a dialog using header bars
setting all off

Despite this, I still cannot get anything to appear for the ad936x tab. Here is the output of iio_info

iio_info
iio_info version: 0.25 (git tag:v0.25)
Libiio version: 0.25 (git tag: v0.25) backends: local xml ip usb
IIO context created with local backend.
Backend version: 0.25 (git tag: v0.25)
Backend description string: Linux pop-os 6.12.10-76061203-generic #202412060638~1751390742~22.04~79b9668 SMP PREEMPT_DYNAMIC Tue J x86_64
IIO context has 2 attributes:
	local,kernel: 6.12.10-76061203-generic
	uri: local:
IIO context has 14 devices:
	hwmon0: AC
		0 channels found:
		No trigger on this device
	hwmon1: acpi_fan
		1 channels found:
			fan1:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 2369
		No trigger on this device
	hwmon10: coretemp
		25 channels found:
			temp46:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 44
				attr  4: max value: 105000
			temp42:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 56000
				attr  3: label value: Core 40
				attr  4: max value: 105000
			temp26:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 24
				attr  4: max value: 105000
			temp17:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 15
				attr  4: max value: 105000
			temp10:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 8
				attr  4: max value: 105000
			temp35:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 33
				attr  4: max value: 105000
			temp37:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 35
				attr  4: max value: 105000
			temp30:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 28
				attr  4: max value: 105000
			temp34:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 52000
				attr  3: label value: Core 32
				attr  4: max value: 105000
			temp14:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 12
				attr  4: max value: 105000
			temp12:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 10
				attr  4: max value: 105000
			temp15:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 13
				attr  4: max value: 105000
			temp36:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 52000
				attr  3: label value: Core 34
				attr  4: max value: 105000
			temp40:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 38
				attr  4: max value: 105000
			temp6:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 4
				attr  4: max value: 105000
			temp22:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 20
				attr  4: max value: 105000
			temp16:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 14
				attr  4: max value: 105000
			temp2:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 52000
				attr  3: label value: Core 0
				attr  4: max value: 105000
			temp13:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 11
				attr  4: max value: 105000
			temp18:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 16
				attr  4: max value: 105000
			temp11:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 52000
				attr  3: label value: Core 9
				attr  4: max value: 105000
			temp38:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 36
				attr  4: max value: 105000
			temp39:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 52000
				attr  3: label value: Core 37
				attr  4: max value: 105000
			temp1:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 56000
				attr  3: label value: Package id 0
				attr  4: max value: 105000
			temp41:  (input)
			5 channel-specific attributes found:
				attr  0: crit value: 105000
				attr  1: crit_alarm value: 0
				attr  2: input value: 54000
				attr  3: label value: Core 39
				attr  4: max value: 105000
		No trigger on this device
	hwmon11: iwlwifi_1
		1 channels found:
			temp1:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 47000
		No trigger on this device
	hwmon2: acpi_fan
		1 channels found:
			fan1:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 0
		No trigger on this device
	hwmon3: acpitz
		1 channels found:
			temp1:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 56000
		No trigger on this device
	hwmon4: BAT0
		2 channels found:
			in0:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 17671
			curr1:  (input)
			1 channel-specific attributes found:
				attr  0: input value: 0
		No trigger on this device
	hwmon5: nvme
		3 channels found:
			temp2:  (input)
			4 channel-specific attributes found:
				attr  0: input value: 35850
				attr  1: label value: Sensor 1
				attr  2: max value: 65261850
				attr  3: min value: -273150
			temp3:  (input)
			4 channel-specific attributes found:
				attr  0: input value: 36850
				attr  1: label value: Sensor 2
				attr  2: max value: 65261850
				attr  3: min value: -273150
			temp1:  (input)
			6 channel-specific attributes found:
				attr  0: alarm value: 0
				attr  1: crit value: 84850
				attr  2: input value: 35850
				attr  3: label value: Composite
				attr  4: max value: 81850
				attr  5: min value: -273150
		No trigger on this device
	hwmon6: nvme
		2 channels found:
			temp2:  (input)
			4 channel-specific attributes found:
				attr  0: input value: 32850
				attr  1: label value: Sensor 1
				attr  2: max value: 65261850
				attr  3: min value: -273150
			temp1:  (input)
			6 channel-specific attributes found:
				attr  0: alarm value: 0
				attr  1: crit value: 84850
				attr  2: input value: 32850
				attr  3: label value: Composite
				attr  4: max value: 82850
				attr  5: min value: -150
		No trigger on this device
	hwmon7: system76
		6 channels found:
			fan1:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 2369
				attr  1: label value: CPU fan
			temp1:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 56000
				attr  1: label value: CPU temperature
			pwm1:  (input)
			2 channel-specific attributes found:
				attr  0: enable value: 2
				attr  1: pwm1 value: 0
			pwm2:  (input)
			2 channel-specific attributes found:
				attr  0: enable value: 2
				attr  1: pwm2 value: 0
			fan2:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 0
				attr  1: label value: GPU fan
			temp2:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 48000
				attr  1: label value: GPU temperature
		No trigger on this device
	hwmon8: hidpp_battery_0
		0 channels found:
		No trigger on this device
	hwmon9: spd5118
		1 channels found:
			temp1:  (input)
			10 channel-specific attributes found:
				attr  0: crit value: 85000
				attr  1: crit_alarm value: 0
				attr  2: enable value: 1
				attr  3: input value: 49000
				attr  4: lcrit value: 0
				attr  5: lcrit_alarm value: 0
				attr  6: max value: 55000
				attr  7: max_alarm ERROR: No such device or address (6)
				attr  8: min value: 0
				attr  9: min_alarm value: 0
		No trigger on this device
	iio:device0: prox (buffer capable)
		1 channels found:
			proximity:  (input, index: 0, format: le:s8/32>>0)
			5 channel-specific attributes found:
				attr  0: hysteresis ERROR: Invalid argument (22)
				attr  1: offset value: 0
				attr  2: raw value: 1
				attr  3: sampling_frequency value: 10.000000
				attr  4: scale value: 
		1 device-specific attributes found:
				attr  0: waiting_for_supplier value: 0
		2 buffer-specific attributes found:
				attr  0: data_available value: 0
				attr  1: direction value: in
		Current trigger: trigger0(prox-dev0)
	trigger0: prox-dev0
		0 channels found:
		No trigger on this device

What am I doing wrong? Advice much appreciated. Thanks

  • Hello,

    Did you install the Pluto drivers?

    Regards,

    Stanca

  • Connected context looks like the host PC and not the target system with a AD936X. Point it to Pluto's uri.

    -Travis

  • I also tried a manual IP for an ADRV9361 device and it did not work either.

    I ended up doing a rebuild of everything but also included this optional step here:

    After rebuilding IIO-Scope it gets placed in /usr/local/bin/osc and it seems to work. I can also run the app-image off of the github release too (osc-linux-x86_64-710df32.zip)

    Another problem I found was that on different machine re-attempting the re-build steps, osc gets installed but it is missing a library location

    ldd /usr/local/bin/osc

    linux-vdso.so.1 (0x000075ec570a1000)
    libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x000075ec56800000)
    libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x000075ec5704b000)
    libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x000075ec567a0000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x000075ec56666000)
    libiio.so.0 => /lib/x86_64-linux-gnu/libiio.so.0 (0x000075ec57029000)
    libosc.so.0 => not found

    when I add libosc.so on the path:

    export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

    I can run osc (which runs from /usr/local/bin) and see devices and connect. However, running osc a second time results in a crash:

    IIO-Oscilloscope Crash Info
    
    PID: 3580424
    Signal No: 11
    Signal String: Segmentation fault
    Error No: -12102
    Error String: Unknown error -12102
    Time Stamp: Tue Sep 9 10:48:21 2025
    
    IIO-Oscilloscope Backtrace
    osc(obtainBacktrace+0x61)[0x5d55e7430f11]
    /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7e9698042520]
    /lib/x86_64-linux-gnu/libc.so.6(+0x198962)[0x7e9698198962]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_find_attr+0x57)[0x7e9698e3e197]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_attr_write_raw+0x17)[0x7e9698e3e2a7]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_attr_write_all+0xc1)[0x7e9698e3f151]
    /usr/local/lib/libosc.so.0(update_from_ini+0xfb)[0x7e9698449a5b]
    /usr/local/lib/osc//fmcomms2_adv.so(+0x6552)[0x7e968379a552]
    /usr/local/lib/libosc.so.0(+0x1affb)[0x7e969842affb]
    /usr/local/lib/libosc.so.0(load_default_profile+0x93)[0x7e969842b243]
    osc(main+0x137)[0x5d55e7430d07]
    /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7e9698029d90]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7e9698029e40]
    osc(_start+0x25)[0x5d55e7430de5]
    
    

    Not sure why this is happening on this particular machine despite trying to replicate the same build steps from the other PC.

    In the mean-time, I will be running the app-image release since that seems to work reliably without crashing and is able to discover/connect to all the devices without issues after compiling IIO-Scope. I don't know compiling IIO Scope was necessary for the latest app-image to work (the release notes seem to suggest compilation was not necessary for osc-linux-x86_64-710df32.zip)

  • I also tried a manual IP for an ADRV9361 device and it did not work either.

    Can you expand on what you did?

    Another problem I found was that on different machine re-attempting the re-build steps, osc gets installed but it is missing a library location

    What OS are you using?

    -Travis

  • Can you expand on what you did?

    For specifying the IP manually with the ADRV9361 (instead of using the discover/scan feature) I did the following:

    The device is discover-able

    As stated in my previous post, a compilation of IIO Scope was necessary to get access to all the tabs (ie: AD936x and AD936X Advanced). The same missing-tabs problem occurs when connecting to the Pluto. Compiling IIO Scope seems to create all the necessary shared objects (ie: libad9361-iio.so, libosc.so) and adds them to the path. 

    What OS are you using?

    I'm trying two different OS/machines and getting different results

    Ubuntu 

    Linux 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

    I was able to get this to work after compiling IIO Scope. Can run IIO Scope from /usr/bin/osc or from the stand-alone release tag app-image off of github. A compilation was still necessary to get the app-image IIO Scope tabs to all show up.

    PopOS 

    Linux pop-os 6.12.10-76061203-generic #202412060638~1751390742~22.04~79b9668 SMP PREEMPT_DYNAMIC Tue J x86_64 x86_64 x86_64 GNU/Linux

    Despite compiling IIO Scope with the same steps on Ubuntu, I was only able to get the app-image IIO Scope to work. /usr/bin/osc does not load properly due to missing libraries that do not get added correctly

    osc: error while loading shared libraries: libosc.so.0

    If i add the output of my build to the path such that libosc.so is visible, IIO Scope /usr/bin/osc can only run once and re-opening it causes a crash (see previous post for crash details)

    In the mean-time I will be using the IIO Scope app-image release on PopOS.

  • So yes you need libad9361-iio to use the AD936x tabs.

    In regards with installing from source. The make install command isn't perfect. It really depends on you end target and pathing.

    Where "make install" put libosc.so? is it on your path?

    -Travis

  • It looks to me it gets placed in

    /usr/local/lib

    I did an md5sum comparison and it matches the build output. When adding this to the path it works, running OSC will work.

    export LD_LIBRARY_PATH=/usr/local/lib

    But it will crash when trying to run it again after closing it. 

    IIO-Oscilloscope Crash Info
    
    PID: 650089
    Signal No: 11
    Signal String: Segmentation fault
    Error No: -14319
    Error String: Unknown error -14319
    Time Stamp: Thu Sep 11 15:13:27 2025
    
    IIO-Oscilloscope Backtrace
    osc(obtainBacktrace+0x61)[0x5865ebac9f11]
    /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x726fd4e42520]
    /lib/x86_64-linux-gnu/libc.so.6(+0x198962)[0x726fd4f98962]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_find_attr+0x57)[0x726fd5b2a197]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_attr_write_raw+0x17)[0x726fd5b2a2a7]
    /lib/x86_64-linux-gnu/libiio.so.0(iio_channel_attr_write_all+0xc1)[0x726fd5b2b151]
    /usr/local/lib/libosc.so.0(update_from_ini+0xfb)[0x726fd5b03a5b]
    /usr/local/lib/osc//fmcomms2_adv.so(+0x6552)[0x726fcc0ec552]
    /usr/local/lib/libosc.so.0(+0x1affb)[0x726fd5ae4ffb]
    /usr/local/lib/libosc.so.0(load_default_profile+0x93)[0x726fd5ae5243]
    osc(main+0x137)[0x5865ebac9d07]
    /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x726fd4e29d90]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x726fd4e29e40]
    osc(_start+0x25)[0x5865ebac9de5]
    

    Despite all this, I can just run the image-app from the git release and it works fine. I'm OK marking this as "resolved" despite this strange build hiccup since I have a way around this issue. But any further advice on this would be helpful.

    Thanks

    Before You Switch


    Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.