Unable to create iiobuffer : No such device or address

Hi Support Team,

using latest Linux kernel and compiled Linux kernel error free. Was able boot along with hdl bit file.

While trying to capture ( KCU105 + FMCDAQ2 )  Analog using  IIO Oscilloscope following is the error I am getting.

Kindly help me fixing the same.

"Unable to create iiobuffer : No such device or address"

Regards,

C P U

Top Replies

Parents
  • Attached booting log FYI

    Log-cpu.txt
    Ramdisk addr 0x00000000,
    Compiled-in FDT at 8040ccd4
    Linux version 4.14.0-g6bf0dbc8a7cb-dirty (rtes@rtes-VirtualBox) (gcc version 7.3                                                                                        .1 20180425 (crosstool-NG 1.20.0)) #6 Wed Mar 20 09:52:01 IST 2019
    setup_cpuinfo: initialising
    setup_cpuinfo: Using full CPU PVR support
    wt_msr_noirq
    setup_memory: max_mapnr: 0x30000
    setup_memory: min_low_pfn: 0x80000
    setup_memory: max_low_pfn: 0xb0000
    setup_memory: max_pfn: 0xb0000
    Zone ranges:
      DMA      [mem 0x0000000080000000-0x00000000afffffff]
      Normal   empty
    Movable zone start for each node
    Early memory node ranges
      node   0: [mem 0x0000000080000000-0x00000000ffffefff]
    Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffefff]
    On node 0 totalpages: 196608
    free_area_init_node: node 0, pgdat 805b560c, node_mem_map 81000000
      DMA zone: 1536 pages used for memmap
      DMA zone: 0 pages reserved
      DMA zone: 196608 pages, LIFO batch:31
    pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    pcpu-alloc: [0] 0
    Built 1 zonelists, mobility grouping on.  Total pages: 195072
    Kernel command line: console=ttyUL0,115200
    PID hash table entries: 4096 (order: 2, 16384 bytes)
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 766476K/786432K available (4147K kernel code, 140K rwdata, 1488K rodata,                                                                                         6216K init, 98K bss, 19956K reserved, 0K cma-reserved)
    Kernel virtual memory layout:
      * 0xffffe000..0xfffff000  : fixmap
      * 0xffffe000..0xffffe000  : early ioremap
      * 0xb0000000..0xffffe000  : vmalloc & ioremap
    NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    irq-xilinx: /amba_pl/interrupt-controller@41200000: num_irq=16, edge=0x410
    /amba_pl/timer@41c00000: irq=1
    clocksource: xilinx_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_id                                                                                        le_ns: 19112604467 ns
    xilinx_timer_shutdown
    xilinx_timer_set_periodic
    sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
    Calibrating delay loop... 49.35 BogoMIPS (lpj=246784)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    devtmpfs: initialized
    random: get_random_u32 called from bucket_table_alloc+0x248/0x29c with crng_init                                                                                        =0
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                        2604462750000 ns
    futex hash table entries: 256 (order: -1, 3072 bytes)
    NET: Registered protocol family 16
    clocksource: Switched to clocksource xilinx_clocksource
    NET: Registered protocol family 2
    TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    UDP hash table entries: 512 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    random: fast init done
    Skipping unavailable RESET gpio -2 (reset)
    workingset: timestamp_bits=30 max_order=18 bucket_order=0
    jffs2: version 2.2. (NAND) (SUMMARY)  � 2001-2006 Red Hat, Inc.
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    io scheduler mq-deadline registered
    io scheduler kyber registered
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    40600000.serial: ttyUL0 at MMIO 0x40600000 (irq = 5, base_baud = 0) is a uartlit                                                                                        e
    console [ttyUL0] enabled
    brd: module loaded
    Xilinx SystemACE device driver, major=254
    libphy: Fixed MDIO Bus: probed
    xilinx_axienet 40e00000.ethernet: TX_CSUM 2
    xilinx_axienet 40e00000.ethernet: RX_CSUM 2
    libphy: Xilinx Axi Ethernet MDIO: probed
    i2c /dev entries driver
    i2c i2c-0: Added multiplexed i2c bus 1
    at24 2-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    i2c i2c-0: Added multiplexed i2c bus 2
    i2c i2c-0: Added multiplexed i2c bus 3
    i2c i2c-0: Added multiplexed i2c bus 4
    pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544
    ad9523 spi0.0: spi0.0 supply vcc not found, using dummy regulator
    ad9523 spi0.0: probed ad9523-1
    axi_adxcvr 44a50000.axi-ad9680-adxcvr: AXI-ADXCVR-RX (16.01.a) using GTH3 at 0x4                                                                                        4A50000 mapped to 0xb0190000. Number of lanes: 4.
    axi_adxcvr 44a60000.axi-ad9144-adxcvr: AXI-ADXCVR-TX (16.01.a) using GTH3 at 0x4                                                                                        4A60000 mapped to 0xb03b0000. Number of lanes: 4.
    NET: Registered protocol family 17
    ad9680 spi0.2: AD9680 PLL LOCKED
    cf_axi_adc 44a10000.axi-ad9680-hpc: ADI AIM (10.00.b) at 0x44A10000 mapped to 0x                                                                                        b03f0000, probed ADC AD9680 as MASTER
    cf_axi_dds 44a04000.axi-ad9144-hpc: Analog Devices CF_AXI_DDS_DDS MASTER (9.00.b                                                                                        ) at 0x44A04000 mapped to 0xb0410000, probed DDS AD9144
    Freeing unused kernel memory: 6216K
    This architecture does not have kernel memory protection.
    Starting logging: OK
    Starting network...
    Starting network...
    udhcpc (v1.23.1) started
    net eth0: Promiscuous mode disabled.
    net eth0: Promiscuous mode disabled.
    Sending discover...
    xilinx_axienet 40e00000.ethernet eth0: Link is Down
    xilinx_axienet 40e00000.ethernet eth0: Link is Up - 100Mbps/Full - flow control                                                                                         rx/tx
    Sending discover...
    Sending select for 192.168.1.72...
    Lease of 192.168.1.72 obtained, lease time 86400
    deleting routers
    adding dns 123.176.37.37
    adding dns 202.53.8.25
    Starting sshd: OK
    Starting IIO Server Daemon OK
    
    Welcome to Buildroot
    buildroot login: root
    Password:
    #
    #
    # ad9680 spi0.2: PLL LOCKED
    ad9680 spi0.2: PLL LOCKED
    random: crng init done
    
    # halt
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to all processes
    Requesting system halt
    reboot: System halted
    Machine halt...

  • 0
    •  Analog Employees 
    on Mar 26, 2019 7:42 AM in reply to CPU

    Are you running this IIO Oscilloscope on the target or on the host ?

    The boot log is a bit confusing.

    It shows the system halting.

  • 0
    •  Analog Employees 
    on Apr 2, 2019 2:34 AM in reply to CPU

    It's still not clear - did you update the out_altvoltage*_frequency attribute? The configuration of all the components, including the JESD transceivers should be also updated accordingly, so only directly writing to a couple of registers won't work.

    What exactly sampling rate do you need?

    Dragos

  • Hi Dragon,

    My  input RF signal  is 400MHz continuious pulse (  CW ) of tone frequently of 100KHz and sample rate is 100MSPS.

    Can you kindly provide details of registers to be modified from IIIO Oscilloscope.

    With Regards

    C P U

  • 0
    •  Analog Employees 
    on Apr 2, 2019 8:37 AM in reply to CPU

    Does that mean that your carrier frequency is 400 MHz? If this is the case, your sampling rate should be at least twice of this frequency.

    Dragos

  • Hi DragosB,

    Yes my carrier frequecy is 400 MHz.

    Using below kernel which is downloaded from binary of KCU105 + FMCDAQ2 

    Linux version 4.9.0-g87beab60b2b9 (dragos@debian) (gcc version 5.2.0 (crosstool-                                                                                        NG 1.20.0) ) #163 Tue May 8 12:41:17 EEST 2018

    and I have compiled system.top file using vivado 18.2 hdl . find the attached kenel and system.bit file

    I am unable to receive carrier frequency above 80MHz , even ADC is sampled @ 1000MSPS.

    Usingin IIO Oscilloscope to capture the RF input.

    With Regards,

    C P Ulinuxdaq2.zip

  • Hi DragonB,

    Can you provide me the github link for Linux version 4.9.0-g87beab60b2b9 source.

    This version is stable and no issues . I want source for modifing ad9860 settings at driver level.

    With Regards,

    C P Umashankar

Reply Children
  • Hi DragonB,

    I trie with differnet branch as follows

    1. 2017_R1

    2. ad9694

    3. adi-4.9.0-V2

    4. adi-4.9.0 and

    5. master

    6. master-xilinx-2018.3. In none of the kernel I was able to capture.

    I am able to capture only in  Lnux version 4.9.0-g87beab60b2b9 branch.

    I searched for the preset branch . I could not get which brach it belongs to.

    I am running out of time. Since I need to finally flash to jffs filesystem and build a Linux Application. I need the source version to enable jffs. on KCU105. Kindly revert back.

    With Regards,

    C P U

  • 0
    •  Analog Employees 
    on Apr 4, 2019 4:46 PM in reply to CPU

    I've did a test using 2018_r2_kcu105_fmcdaq2.zip - I'm able to capture any frequency up to 500 MHz. What problems do you have using this version? We would rather fix the issues instead of pointing you to an older version.

    Thanks,
    Dragos

  • Hi DragosB,

    Thanks for the reply.

    I was able to capture upto 500MHz as per your comments. We had a issue with input source which I was using. That good all fine.

    But the kernel I am using is downloaded binary. With my System bit file and that works great.

    Now I want to linux on JFFS2 file system. I need reconfig the kernel i tryied different branch kernels but none of the kernel receives data like downloaded kernel. When I manual run iiod deamon I am getting the following error in linux console

    ========================================

    Starting IIO Daemon version 0.5
    New client connected from 192.168.1.100
    Client exited
    New client connected from 192.168.1.100
    New client connected from 192.168.1.100
    New client connected from 192.168.1.100
    New client connected from 192.168.1.100
    New client connected from 192.168.1.100
    R/W thread started for device axi-ad9680-hpc
    ERROR: Unable to create buffer
    Stopping R/W thread for device axi-ad9680-hpc

    ======================================

    Kindly guide which kernel branch I should use to have complete control on kernel source.

    With Regards,

    C P U

  • 0
    •  Analog Employees 
    on Apr 5, 2019 4:10 PM in reply to CPU

    We have also discovered some issues (the capture gets stuck after some time) on our 2018_R1 and 2018_R2 branches - we are investigating them. We will let you know when they are fixed.

    Thanks,
    Dragos

  • Hi Dragos,

    Thanks for the reply. Hope we get it resolved the issues at the earliest.

    With Regards,

    C P U