Error connecting to KCU105 Ethernet IP address using iio-oscilloscope using build pre-image 2019_R1

hi

I am using kcu105,fmcdaq2 , vivado 2018.3 and I am facing a problem connecting libiio library over Ethernet after programing the board with a built simpleImage.kcu105_fmcdaq2 from Linux kernal 2019_R1 which I think should be compatible with my board.

I was able to enter the serial port  see the ip address of the board which was 192.168.2.1 changed it to 192.168.2.2 :

then I configured my Linux Ethernet port to :

address = 192.168.2.1

mask = 255.255.255.0

gateway 192.168.2.1

that should connect the board to my pc over ethernet but when I ping the ip address I get nothing :

I used the iio_info -s command to check for context and this what I got :

Then I used 2018_r1_kcu105_fmcdaq2.zip I was able to ping the ip address over Ethernet :

I tried to use ssh -l root 192.168.2.2 then I got this error:

as for iio-oscilloscope and iio_info -s its still the same error .

thank you

Ahmed

Parents
  • 0
    •  Analog Employees 
    on Mar 1, 2021 12:03 PM 1 month ago

    Hi Ahmed,

    When you say "that should connect the board to my pc over ethernet" you mean through a router or with a direct connection?

    Sergiu

  • hi sergiu

    I mean DIRECT CONNECTION because I do not have access to a router.

    Ahmed

  • I used share to other computer and I gor this ip address 10.42.0.1 on host :

    programed board using  2018_r1_kcu105_fmcdaq2.zip  :

    changed ip address of ethernet :

    then I pinged it :

    tried to access ssh -l root 10.42.0.5 :

    as for iio_info -s "no contexts found :

    when I used linux 2019_R1  kcu105_fmcdaq2 image to program the board I was not able to even ping the ip address.

    Ahmed

  • +1
    •  Analog Employees 
    on Mar 1, 2021 9:17 PM 1 month ago in reply to D0AHMED11

    Autodiscovery (scanning) will not work unless avahi (zeroconf) is enabled on the board and host. Please try using the URI directly from iio_info like:

    iio_info -u ip:<IP of board>

    -Travis

  • hi travis this is output I got from iio_info -u ip: 10.42.0.10

    thanks

    Ahmed

  • hi Travis

    I tried running  iio_info -n 192.168.2.2 again in the serial port and this what i got :

    iio_info -n 192.168.2.2
    Library version: 0.8 (git tag: 1128c2d)
    Compiled with backends: local xml network usb serial
    IIO context created with network backend.
    Backend version: 0.8 (git tag: 1128c2d
    )
    Backend description string: 192.168.2.2 Linux buildroot 4.9.0-g87beab60b2b9 #163 Tue May 8 12:41:17 EEST 2018 microblaze
    IIO context has 4 devices:
            iio:device3: axi-ad9144-hpc (buffer capable)
                    13 channels found:
                            voltage0:  (output, index: 0, format: le:S16/16>>0)
                            3 channel-specific attributes found:
                                    attr 0: calibscale value: 1.000000
                                    attr 1: calibphase value: 0.000000
                                    attr 2: sampling_frequency value: 1000000000
                            voltage1:  (output, index: 1, format: le:S16/16>>0)
                            3 channel-specific attributes found:
                                    attr 0: calibphase value: 0.000000
                                    attr 1: calibscale value: 1.000000
                                    attr 2: sampling_frequency value: 1000000000
                            voltage2:  (output, index: 2, format: le:S16/16>>0)
                            3 channel-specific attributes found:
                                    attr 0: calibphase value: 0.000000
                                    attr 1: calibscale value: 1.000000
                                    attr 2: sampling_frequency value: 1000000000
                            voltage3:  (output, index: 3, format: le:S16/16>>0)
                            3 channel-specific attributes found:
                                    attr 0: calibphase value: 0.000000
                                    attr 1: calibscale value: 1.000000
                                    attr 2: sampling_frequency value: 1000000000
                            altvoltage3: 2B (output)
                            5 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: frequency value: 39993896
                                    attr 2: phase value: 0
                                    attr 3: scale value: 0.250000
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage5: 3B (output)
                            5 channel-specific attributes found:
                                    attr 0: phase value: 90000
                                    attr 1: scale value: 0.250000
                                    attr 2: raw value: 1
                                    attr 3: frequency value: 39993896
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage0: 1A (output)
                            5 channel-specific attributes found:
                                    attr 0: frequency value: 39993896
                                    attr 1: raw value: 1
                                    attr 2: phase value: 90000
                                    attr 3: scale value: 0.250000
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage6: 4A (output)
                            5 channel-specific attributes found:
                                    attr 0: scale value: 0.250000
                                    attr 1: phase value: 0
                                    attr 2: frequency value: 39993896
                                    attr 3: raw value: 1
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage7: 4B (output)
                            5 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: frequency value: 39993896
                                    attr 2: phase value: 0
                                    attr 3: scale value: 0.250000
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage1: 1B (output)
                            5 channel-specific attributes found:
                                    attr 0: phase value: 90000
                                    attr 1: scale value: 0.250000
                                    attr 2: raw value: 1
                                    attr 3: frequency value: 39993896
                                    attr 4: sampling_frequency value: 1000000000
                            altvoltage2: 2A (output)
                            5 channel-specific attributes found:
                                    attr 0: scale value: 0.250000
                                    attr 1: frequency value: 39993896
                                    attr 2: phase value: 0
                                    attr 3: raw value: 1
                                    attr 4: sampling_frequency value: 1000000000
                            temp0:  (input)
                            2 channel-specific attributes found:
                                    attr 0: calibbias value: 0
    Unable to read attribute input: Invalid argument
                            altvoltage4: 3A (output)
                            5 channel-specific attributes found:
                                    attr 0: frequency value: 39993896
                                    attr 1: phase value: 90000
                                    attr 2: raw value: 1
                                    attr 3: scale value: 0.250000
                                    attr 4: sampling_frequency value: 1000000000
                    1 debug attributes found:
                                    debug attr 0: direct_reg_access value: 0x0
            iio:device1: ad9523-1
                    8 channels found:
                            altvoltage7: CLKD_DAC_SYSREF (output)
                            3 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: frequency value: 7812500
                                    attr 2: phase value: 0.024543
                            altvoltage8: DAC_SYSREF (output)
                            3 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: frequency value: 7812500
                                    attr 2: phase value: 0.024543
                            altvoltage9: FMC_DAC_REF_CLK (output)
                            3 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: phase value: 1.570796
                                    attr 2: frequency value: 500000000
                            altvoltage13: ADC_CLK (output)
                            3 channel-specific attributes found:
                                    attr 0: phase value: 3.141592
                                    attr 1: frequency value: 1000000000
                                    attr 2: raw value: 1
                            altvoltage5: ADC_SYSREF (output)
                            3 channel-specific attributes found:
                                    attr 0: raw value: 1
                                    attr 1: frequency value: 31250000
                                    attr 2: phase value: 0.098174
                            altvoltage1: DAC_CLK (output)
                            3 channel-specific attributes found:
                                    attr 0: phase value: 3.141592
                                    attr 1: frequency value: 1000000000
                                    attr 2: raw value: 1
                            altvoltage4: ADC_CLK_FMC (output)
                            3 channel-specific attributes found:
                                    attr 0: frequency value: 500000000
                                    attr 1: phase value: 1.570796
                                    attr 2: raw value: 1
                            altvoltage6: CLKD_ADC_SYSREF (output)
                            3 channel-specific attributes found:
                                    attr 0: phase value: 0.024543
                                    attr 1: raw value: 1
                                    attr 2: frequency value: 7812500
                    10 device-specific attributes found:
                                    attr 0: pll2_reference_clk_present value: 1
    Unable to read attribute sync_dividers: Permission denied
                                    attr 2: pll1_reference_clk_test_present value: 0
                                    attr 3: pll2_locked value: 1
                                    attr 4: pll2_feedback_clk_present value: 0
                                    attr 5: pll1_locked value: 0
                                    attr 6: pll1_reference_clk_a_present value: 0
                                    attr 7: vcxo_clk_present value: 1
                                    attr 8: pll1_reference_clk_b_present value: 0
    Unable to read attribute store_eeprom: Permission denied
                    1 debug attributes found:
                                    debug attr 0: direct_reg_access value: 0x0
            iio:device2: axi-ad9680-hpc (buffer capable)
                    2 channels found:
                            voltage0:  (input, index: 0, format: le:S14/16>>0)
                            5 channel-specific attributes found:
                                    attr 0: test_mode value: off
                                    attr 1: test_mode_available value: off midscale_short pos_fullscale neg_fullscale checkerp
                                    attr 2: sampling_frequency value: 1000000000
                                    attr 3: scale value: 0.103759
                                    attr 4: scale_available value: 0.089111 0.096435 0.103759 0.111083 0.118408 0.125732
                            voltage1:  (input, index: 1, format: le:S14/16>>0)
                            5 channel-specific attributes found:
                                    attr 0: test_mode value: off
                                    attr 1: test_mode_available value: off midscale_short pos_fullscale neg_fullscale checkerp
                                    attr 2: sampling_frequency value: 1000000000
                                    attr 3: scale value: 0.103759
                                    attr 4: scale_available value: 0.089111 0.096435 0.103759 0.111083 0.118408 0.125732
                    2 debug attributes found:
                                    debug attr 0: pseudorandom_err_check value: CH0 : PN9 : Out of Sync : PN Error
    CH1 : PN9 : Out of Sync : PN Error
                                    debug attr 1: direct_reg_access value: 0x0
            iio:device0: ad7291
                    9 channels found:
                            voltage6:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 1469
                                    attr 1: scale value: 0.610351562
                            temp0:  (input)
                            3 channel-specific attributes found:
                                    attr 0: scale value: 250
                                    attr 1: raw value: 212
                                    attr 2: mean_raw value: 212
                            voltage3:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 1294
                                    attr 1: scale value: 0.610351562
                            voltage7:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2696
                                    attr 1: scale value: 0.610351562
                            voltage0:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2941
                                    attr 1: scale value: 0.610351562
                            voltage4:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2048
                                    attr 1: scale value: 0.610351562
                            voltage1:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2671
                                    attr 1: scale value: 0.610351562
                            voltage5:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2665
                                    attr 1: scale value: 0.610351562
                            voltage2:  (input)
                            2 channel-specific attributes found:
                                    attr 0: raw value: 2700
                                    attr 1: scale value: 0.610351562.

    but I still can not connect though iio-oscilloscope.

    Ahmed

  • +1
    •  Analog Employees 
    on Mar 2, 2021 6:02 PM 1 month ago in reply to D0AHMED11

    I'm very confused on what IP address you are using. If you are directly connected (no router or switch) you must be within the same subnet between devices. For example, if the board is 192.168.2.2. The connected NIC must be 192.168.2.X where X is not 2 or 0.

    -Travis

Reply Children