Failed to find device: cf-ad9361-A

24 views (last 30 days)
gorkem gokturk
gorkem gokturk on 6 Jul 2021
Commented: gorkem gokturk on 12 Jul 2021
Hello,
I was trying to use R2020b, fmcomms5 and zc706 board with "Communication Toolbox Support Package for Xilinx Zynq-Based Radio".
At the beginning of the setup, I format the sd card and set the network as Toolbox requested.Then, plug sd in the board,
i'm having following error:
What could be the reason for this error ?
Thanks
  1 Comment
Martin Enderwitz
Martin Enderwitz on 7 Jul 2021
Edited: Martin Enderwitz on 7 Jul 2021
Hi,
This error suggests the libiio driver is unable to probe the AD9361 on the FMCOMMS5. This could be due to a bad connection between the FMCOMMS card and the ZC706, a faulty FMCOMMS5 card, a faulty FMC connector on the ZC706, etc.
To try and diagnose the problem further, could you please try the following:
  • Remove the FMCOMMS5 card from the ZC706
  • Reinsert the FMCOMMS5 card into the ZC706, ensuring it is fully inserted into the mezzanine connector and stable.
  • Run the following code in MATLAB:
rx = sdrrx('FMCOMMS5');
info(rx)
  • If that still fails, run the following and share the output for more detailed debugging:
sh = matlabshared.internal.remoteshell('192.168.3.2','root','root');
[stat, log] = sh.execute('dmesg')

Sign in to comment.

Answers (1)

gorkem gokturk
gorkem gokturk on 7 Jul 2021
Edited: gorkem gokturk on 7 Jul 2021
Hello Martin,
Unfortunately it still fails. Here below the logs that you requested.
>> sh = matlabshared.internal.remoteshell('192.168.3.2','root','root');
[stat, log] = sh.execute('dmesg')
y
stat =
0
log =
'WARNING - POTENTIAL SECURITY BREACH!
The server's host key does not match the one PuTTY has
cached in the registry. This means that either the
server administrator has changed the host key, or you
have actually connected to another computer pretending
to be the server.
The new ssh-ed25519 key fingerprint is:
ssh-ed25519 255 0f:07:ff:bf:fa:80:61:bc:44:ac:fb:b4:1f:31:1e:4f
If you were expecting this change and trust the new key,
enter "y" to update PuTTY's cache and continue connecting.
If you want to carry on connecting but without updating
the cache, enter "n".
If you want to abandon the connection completely, press
Return to cancel. Pressing Return is the ONLY guaranteed
safe choice.
Update cached key? (y/n, Return cancels connection) [ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0-mathworks (osadiq@gla-osadiq-deb9-64) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP PREEMPT Wed Jan 22 18:54:50 GMT 2020
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Xilinx Zynq ZC706
[ 0.000000] earlycon: cdns0 at MMIO 0xe0001000 (options '115200n8')
[ 0.000000] bootconsole [cdns0] enabled
[ 0.000000] Reserved memory: created CMA memory pool at 0x30000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] free_area_init_node: node 0, pgdat c0b6bc80, node_mem_map ef7f7000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 14 pages/cpu @ef7c8000 s27916 r8192 d21236 u57344
[ 0.000000] pcpu-alloc: s27916 r8192 d21236 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: earlycon root=/dev/ram rw
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 746788K/1048576K available (6144K kernel code, 486K rwdata, 2364K rodata, 1024K init, 181K bss, 39644K reserved, 262144K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0700000 (7136 kB)
.init : 0xc0a00000 - 0xc0b00000 (1024 kB)
.data : 0xc0b00000 - 0xc0b79b88 ( 487 kB)
.bss : 0xc0b79b88 - 0xc0ba7364 ( 182 kB)\x009b88 - 0xc0ba7364 ( 182 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.\x002.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.\x002.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] efuse mapped to f0802000
[ 0.000000] slcr mapped to f0804000
[ 0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46460001
[ 0.000000] zynq_clock_init: clkc starts at f0804100
[ 0.000000] Zynq clock init
[ 0.000011] sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
[ 0.007786] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
[ 0.018719] Switching to timer-based delay loop, resolution 3ns
[ 0.024666] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[ 0.033603] timer #0 at f080c000, irq=17
[ 0.038184] Console: colour dummy device 80x30
[ 0.042429] console [tty0] enabled
[ 0.045779] bootconsole [cdns0] disabled
[ 0.049700] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
[ 0.049778] pid_max: default: 32768 minimum: 301
[ 0.049995] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.050048] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.050984] CPU: Testing write buffer coherency: ok
[ 0.051056] ftrace: allocating 23420 entries in 69 pages
[ 0.102998] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.103107] Setting up static identity map for 0x100000 - 0x100058
[ 0.268032] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.268158] Brought up 2 CPUs
[ 0.268207] SMP: Total of 2 processors activated (1333.33 BogoMIPS).
[ 0.268234] CPU: All CPU(s) started in SVC mode.
[ 0.269300] devtmpfs: initialized
[ 0.278908] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.279337] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.294067] pinctrl core: initialized pinctrl subsystem
[ 0.295477] NET: Registered protocol family 16
[ 0.297601] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.328094] cpuidle: using governor ladder
[ 0.341362] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.341406] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.341577] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
[ 0.342141] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[ 0.370458] SCSI subsystem initialized
[ 0.371335] usbcore: registered new interface driver usbfs
[ 0.371556] usbcore: registered new interface driver hub
[ 0.371791] usbcore: registered new device driver usb
[ 0.372660] media: Linux media interface: v0.10
[ 0.372858] Linux video capture interface: v2.00
[ 0.373111] pps_core: LinuxPPS API ver. 1 registered
[ 0.373167] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.373346] PTP clock support registered
[ 0.373593] EDAC MC: Ver: 3.0.0
[ 0.375076] Advanced Linux Sound Architecture Driver Initialized.
[ 0.376563] clocksource: Switched to clocksource arm_global_timer
[ 0.466965] NET: Registered protocol family 2
[ 0.467889] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.468059] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.468252] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.468375] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.468470] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.468753] NET: Registered protocol family 1
[ 0.469111] Trying to unpack rootfs image as initramfs...
[ 2.255283] Freeing initrd memory: 18996K (ded73000 - e0000000)
[ 2.255679] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 2.258137] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 2.259678] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 2.261133] bounce: pool size: 64 pages
[ 2.261191] io scheduler noop registered
[ 2.261241] io scheduler deadline registered
[ 2.261333] io scheduler cfq registered (default)
[ 2.267215] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 2.267286] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
\x006
[ 2.268382] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps
[ 2.906313] console [ttyPS0] enabled
[ 2.910822] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0873000
[ 2.918071] [drm] Initialized
[ 2.937952] brd: module loaded
[ 2.950727] loop: module loaded
[ 2.960039] m25p80 spi32765.0: found s25fl128s, expected n25q128a11
[ 2.966748] m25p80 spi32765.0: s25fl128s (32768 Kbytes)
[ 2.971989] 5 ofpart partitions found on MTD device spi32765.0
[ 2.977821] Creating 5 MTD partitions on "spi32765.0":
[ 2.982928] 0x000000000000-0x000000500000 : "boot"
[ 2.989541] 0x000000500000-0x000000520000 : "bootenv"
[ 2.996273] 0x000000520000-0x000000540000 : "config"
[ 3.002996] 0x000000540000-0x000000fc0000 : "image"
[ 3.009646] 0x000000fc0000-0x000002000000 : "spare"
[ 3.016993] libphy: Fixed MDIO Bus: probed
[ 3.022542] CAN device driver interface
[ 3.028062] libphy: MACB_mii_bus: probed
[ 4.147161] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 28 (00:0a:35:00:01:22)
[ 4.157043] Marvell 88E1116R e000b000.etherne:07: attached PHY driver [Marvell 88E1116R] (mii_bus:phy_addr=e000b000.etherne:07, irq=-1)
[ 4.170274] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.176944] usbcore: registered new interface driver usb-storage
[ 4.183090] usbcore: registered new interface driver usbserial
[ 4.189007] usbcore: registered new interface driver usbserial_generic
[ 4.195570] usbserial: USB Serial support registered for generic
[ 4.201630] usbcore: registered new interface driver ftdi_sio
[ 4.207436] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 4.215048] e0002000.usb supply vbus not found, using dummy regulator
[ 4.286628] ULPI transceiver vendor/product ID 0x0424/0x0007
[ 4.292248] Found SMSC USB3320 ULPI transceiver.
[ 4.296884] ULPI integrity check: passed.
[ 4.300872] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 4.305738] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 4.336588] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 4.343137] hub 1-0:1.0: USB hub found
[ 4.346931] hub 1-0:1.0: 1 port detected
[ 4.353244] mousedev: PS/2 mouse device common for all mice
[ 4.359246] i2c /dev entries driver
[ 4.368719] si570 1-005d: registered, current frequency 156250000 Hz
[ 4.375095] i2c i2c-0: Added multiplexed i2c bus 1
[ 4.380360] i2c i2c-0: Added multiplexed i2c bus 2
[ 4.387586] at24 3-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[ 4.394300] i2c i2c-0: Added multiplexed i2c bus 3
[ 4.399982] 4-0021 supply vcc not found, using dummy regulator
[ 4.408197] pca953x 4-0021: interrupt support not compiled in
[ 4.413959] i2c i2c-0: Added multiplexed i2c bus 4
[ 4.425715] rtc-pcf8563 5-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 4.433343] i2c i2c-0: Added multiplexed i2c bus 5
[ 4.439918] at24 6-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[ 4.446542] i2c i2c-0: Added multiplexed i2c bus 6
[ 4.451805] i2c i2c-0: Added multiplexed i2c bus 7
[ 4.457365] i2c i2c-0: Added multiplexed i2c bus 8
[ 4.462119] pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548
[ 4.471616] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f090a000 with timeout 10s
[ 4.480321] Xilinx Zynq CpuIdle Driver started
[ 4.485416] sdhci: Secure Digital Host Controller Interface driver
[ 4.491588] sdhci: Copyright(c) Pierre Ossman
[ 4.495901] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.556643] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA
[ 4.574531] ledtrig-cpu: registered to indicate activity on CPUs
[ 4.582769] hidraw: raw HID events driver (C) Jiri Kosina
[ 4.600358] usbcore: registered new interface driver usbhid
[ 4.605902] usbhid: USB HID core driver
[ 4.614588] ad9361 spi32766.0: ad9361_probe : enter (ad9361-2x)
[ 4.632319] random: fast init done
[ 4.637709] mmc0: new high speed SDHC card at address 0007
[ 4.644064] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
[ 4.651490] mmcblk0: p1 p2 p3
[ 4.654902] mmcblk0: p2 size 17620992 extends beyond EOD, truncated
[ 4.923027] ad9361 spi32766.0: ad9361_probe : AD936x Rev 2 successfully initialized
[ 4.930825] ad9361 spi32766.1: ad9361_probe : enter (ad9361)
[ 5.218167] ad9361 spi32766.1: ad9361_probe : AD936x Rev 2 successfully initialized
[ 5.246633] cf_axi_dds 79024000.cf-ad9361-dds-core-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (9.01.b) at 0x79024000 mapped to 0xf098d000, probed DDS AD9361
[ 5.272855] cf_axi_dds 79044000.cf-ad9361-dds-core-B: Analog Devices CF_AXI_DDS_DDS SLAVE (9.01.b) at 0x79044000 mapped to 0xf09ac000, probed DDS AD9361
[ 5.289532] NET: Registered protocol family 10
[ 5.305154] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 5.312168] NET: Registered protocol family 17
[ 5.316618] can: controller area network core (rev 20120528 abi 9)
[ 5.322843] NET: Registered protocol family 29
[ 5.327275] can: raw protocol (rev 20120528)
[ 5.331500] can: broadcast manager protocol (rev 20161123 t)
[ 5.337176] can: netlink gateway (rev 20130117) max_hops=1
[ 5.342873] Registering SWP/SWPB emulation handler
[ 6.391590] SAMPL CLK: 61440000 tuning: TX
[ 6.395652] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 6.400064] 0:# # # # # # # # # # # # # # # #
[ 6.404491] 1:# # # # # # # # # # # # # # # #
[ 6.408928] ad9361 spi32766.0: ad9361_dig_tune_delay: Tuning TX FAILED!
[ 6.416481] cf_axi_adc: probe of 79020000.cf-ad9361-A failed with error -5
[ 6.575448] SAMPL CLK: 30720000 tuning: RX
[ 6.579520] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 6.583915] 0:# # # # # # # # # # # # # # # #
[ 6.588342] 1:# # # # # # # # # # # # # # # #
[ 6.592776] ad9361 spi32766.1: ad9361_dig_tune_delay: Tuning RX FAILED!
[ 6.605705] cf_axi_adc 79040000.cf-ad9361-B: ADI AIM (10.01.b) at 0x79040000 mapped to 0xf09c8000, probed ADC AD9361 as SLAVE
[ 6.618604] rtc-pcf8563 5-0051: setting system clock to 2021-07-07 12:52:51 UTC (1625662371)
[ 6.628056] ALSA device list:
[ 6.630980] No soundcards found.
[ 6.637955] Freeing unused kernel memory: 1024K (c0a00000 - c0b00000)
[ 7.924124] input: gpio_keys as /devices/soc0/gpio_keys/input/input0
[ 7.932200] Registered mathworks_ip class
[ 7.965020] mwipcore 43c00000.mwipcore: Dev memory resource found at 43c00000 00010000.
[ 7.983768] mwipcore 43c00000.mwipcore: 'mwipcore' device not found, creating
[ 7.991450] mwipcore 43c00000.mwipcore: Char dev region registered: major num:242
[ 7.998983] mwipcore 43c00000.mwipcore: 'mwipcore' device created
[ 8.007889] mwipcore 43c50000.mwbypassrx: Dev memory resource found at 43c50000 00010000.
[ 8.016200] mwipcore 43c50000.mwbypassrx: 'mwbypassrx' device not found, creating
[ 8.033852] mwipcore 43c50000.mwbypassrx: Char dev region registered: major num:241
[ 8.041584] mwipcore 43c50000.mwbypassrx: 'mwbypassrx' device created
[ 8.049362] mwipcore 43c20000.mwbypasstx: Dev memory resource found at 43c20000 00010000.
[ 8.066788] mwipcore 43c20000.mwbypasstx: 'mwbypasstx' device not found, creating
[ 8.074283] mwipcore 43c20000.mwbypasstx: Char dev region registered: major num:240
[ 8.082869] mwipcore 43c20000.mwbypasstx: 'mwbypasstx' device created
[ 8.338349] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[ 8.447986] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.586856] macb e000b000.ethernet eth0: link up (1000/Full)
[ 11.592504] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.623879] random: crng init done
[ 18.353633] SAMPL CLK: 3000000 tuning: RX
[ 18.357630] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 18.362019] 0:# # # # # # # # # # # # # # # #
[ 18.366445] 1:# # # # # # # # # # # # # # # #
[ 18.370884] ad9361 spi32766.1: ad9361_dig_tune_delay: Tuning RX FAILED!
[ 18.744243] SAMPL CLK: 1000000 tuning: RX
[ 18.748241] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 18.752628] 0:# # # # # # # # # # # # # # # #
[ 18.757057] 1:# # # # # # # # # # # # # # # #
[ 18.761491] ad9361 spi32766.1: ad9361_dig_tune_delay: Tuning RX FAILED!
[ 19.063586] mwipcore 43c20000.mwbypasstx: [MMAP] size:10000 pgoff: 0
[ 19.070287] mwipcore 43c20000.mwbypasstx: Simple VMA close.
[ 19.248680] mwipcore 43c20000.mwbypasstx: [MMAP] size:10000 pgoff: 0
[ 19.255298] mwipcore 43c20000.mwbypasstx: Simple VMA close.
'
Thanks for help.
  2 Comments
Martin Enderwitz
Martin Enderwitz on 7 Jul 2021
Thanks for providing the dmesg output.
Of note are the occurrences of messages such as this:
[ 18.744243] SAMPL CLK: 1000000 tuning: RX
[ 18.748241] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 18.752628] 0:# # # # # # # # # # # # # # # #
[ 18.757057] 1:# # # # # # # # # # # # # # # #
[ 18.761491] ad9361 spi32766.1: ad9361_dig_tune_delay: Tuning RX FAILED!
These messages indicate failures tuning the Tx/Rx front-end filters of one (or both) of the AD9361s on the FMCOMMS5. These failures are occurring at multiple different clock rates (1MHz, 30.72MHz, 61.44MHz), which suggests it may not related to the FPGA timing.
I have been unable to reproduce this issue with any of our own FMCOMMS5 hardware and the R2020b version of this support package. I would recommend the following:
  • Reformat your SD card and rerun the setup wizard from the beginning. If you still see the same failures then;
  • Reach out via the Analog Devices EngineerZone community forums for additional support in identifying the root cause of your issue, which may be related to this specific hardware.
gorkem gokturk
gorkem gokturk on 12 Jul 2021
Hi Martin,
As i understood, ZC706 board may have trouble. I'm going to try renew the ZC706 board and try it again.
Thanks for support.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!