Post Go back to editing

LO phase noise of FMCOMMS5

Hi,

I want to use an external LO for my FMCOMMS5, but before that I want to make sure that the phase noise of my LO is better than the default LO generated by the FMCOMMS5, specifically by the ADF5355BCPZ on board. I was wandering how to configure this device, from the sys/bus/iio/device/ folders I couldn't find a device called ADF5355BCPZ. If I took a measurement at J303 the frequency is fixed at 4.7G, regardless of the LO I set. I have unticked all clocks options in IIO OSc. (i.e. XO Disable use EXT RefCLK, Ext RX LO, Ext TX LO, RX Fastlock Pin Control, Tx Fastlock Pin Control) so shouldn't FMCOMMS5 enable ADF5355BCPZ automatically? Otherwise how the sampling clocks are getting from?

-Kelly

Parents
  • You need to use a dedicated devicetree for this use case. It should be on the SD card. Please see here:

    BOOT/zynq-zc706-adv7511-ad9361-fmcomms5-ext-lo-adf5355

    With this the ADF5355 should have it's own IIO device and you should be able to control it via libiio or from sysfs.

    The ADF5355 just feeds the EXTERNAL LO inputs, the sampling clocks are coming from a different clock source.

    -Michael

  • My FPGA is ZC702, so I cannot copy all files within the BOOT/zynq-zc706-adv7511-ad9361-fmcomms5-ext-lo-adf5355 folder otherwise the system will not boot. If I just replace the devicetree file then the system will boot and I can find ADF5355 from sysfs but the display is greenished. Any way to fix this? I'm not sure if there are other functions affected. The image I'm using is the latest 2019R2.

    -Kelly

  • ok - if you use ZC702 this won't work.

    Can you try attached dtb instead?

    zynq-zc702-adv7511-ad9361-fmcomms5-ext-lo-adf5355.zip

    Please let me know, if it worked...

    -Michael

  • Unfortunately the system is not booting up although I've renamed your files to devicetree.dtb and devicetree.dts. The attached is the default devicetree file. If I used the devicetree file from ZC706 folder the colour of my screen is like the photo attached, although ADF5355 is there.

    Kellydevicetree.zip

  • The issue is that my dtb was build from a different kernel.

    Try it with the uImage attached.uImage.zip

    -Michael

  • Still not working. Could you send me the whole zip file including everything needed, such as device tree files, boot.bin file, and bootgen_sysfiles.tgz. The attached is the debugging message I got from the FPGA uart port.

    
    U-Boot 2014.07-dirty (Nov 20 2014 - 17:07:55)
    
    Board:  Xilinx Zynq
    I2C:   ready
    DRAM:  ECC disabled 1 GiB
    MMC:   zynq_sdhci: 0
    SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB
    *** Warning - bad CRC, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   Gem.e000b000
    Hit any key to stop autoboot:  0
    Device: zynq_sdhci
    Manufacturer ID: 3
    OEM: 5344
    Name: SB16G
    Tran Speed: 50000000
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 14.8 GiB
    Bus Width: 4-bit
    reading uEnv.txt
    402 bytes read in 8 ms (48.8 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from SD ...
    Running uenvcmd ...
    Copying Linux from SD to RAM...
    reading uImage
    7479240 bytes read in 660 ms (10.8 MiB/s)
    reading devicetree.dtb
    28940 bytes read in 35 ms (806.6 KiB/s)
    reading uramdisk.image.gz
    ** Unable to read file uramdisk.image.gz **
    ## Booting kernel from Legacy Image at 03000000 ...
       Image Name:   Linux-5.10.0-19476-ga2894edd931a
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    7479176 Bytes = 7.1 MiB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 02a00000
       Booting using the fdt blob at 0x2a00000
       Loading Kernel Image ... OK
       Loading Device Tree to 1fff5000, end 1ffff10b ... OK
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 5.10.0-19476-ga2894edd931a (michael@mhenneri-D06) (arm-linux-gnuea                                                                                                                                                             bihf-gcc (GCC) 8.2.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #333 SMP PREEMPT Tu                                                                                                                                                             e Jun 28 13:54:18 CEST 2022
    CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    OF: fdt: Machine model: Xilinx Zynq ZC702
    OF: fdt: earlycon: stdout-path /amba@0/uart@E0001000 not found
    Memory policy: Data cache writealloc
    cma: Reserved 128 MiB at 0x38000000
    Zone ranges:
      Normal   [mem 0x0000000000000000-0x000000002fffffff]
      HighMem  [mem 0x0000000030000000-0x000000003fffffff]
    Movable zone start for each node
    Early memory node ranges
      node   0: [mem 0x0000000000000000-0x000000003fffffff]
    Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
    percpu: Embedded 15 pages/cpu s29900 r8192 d23348 u61440
    Built 1 zonelists, mobility grouping on.  Total pages: 260608
    Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlycon rootf                                                                                                                                                             stype=ext4 rootwait
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    mem auto-init: stack:off, heap alloc:off, heap free:off
    Memory: 887024K/1048576K available (10240K kernel code, 801K rwdata, 7460K rodat                                                                                                                                                             a, 1024K init, 491K bss, 30480K reserved, 131072K cma-reserved, 131072K highmem)
    rcu: Preemptible hierarchical RCU implementation.
    rcu:    RCU event tracing is enabled.
    rcu:    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
            Trampoline variant of Tasks RCU enabled.
    rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    efuse mapped to (ptrval)
    slcr mapped to (ptrval)
    L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C-310 erratum 769419 enabled
    L2C-310 enabling early BRESP for Cortex-A9
    L2C-310 full line of zeros enabled for Cortex-A9
    L2C-310 ID prefetch enabled, offset 1 lines
    L2C-310 dynamic clock gating enabled, standby mode enabled
    L2C-310 cache controller enabled, 8 ways, 512 kB
    L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
    random: get_random_bytes called from start_kernel+0x340/0x4d4 with crng_init=0
    zynq_clock_init: clkc starts at (ptrval)
    Zynq clock init
    sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
    clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025                                                                                                                                                             , max_idle_ns: 440795209040 ns
    Switching to timer-based delay loop, resolution 3ns
    clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 5375                                                                                                                                                             38477 ns
    timer #0 at (ptrval), irq=25
    Console: colour dummy device 80x30
    Calibrating delay loop (skipped), value calculated using timer frequency.. 666.6                                                                                                                                                             6 BogoMIPS (lpj=3333333)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    CPU: Testing write buffer coherency: ok
    CPU0: Spectre v2: using BPIALL workaround
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0x100000 - 0x100060
    rcu: Hierarchical SRCU implementation.
    smp: Bringing up secondary CPUs ...
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU1: Spectre v2: using BPIALL workaround
    smp: Brought up 1 node, 2 CPUs
    SMP: Total of 2 processors activated (1333.33 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                                                                                             2604462750000 ns
    futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    thermal_sys: Registered thermal governor 'step_wise'
    cpuidle: using governor ladder
    hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    hw-breakpoint: maximum watchpoint size is 4 bytes.
    zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0x(ptrval)
    e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 33, base_baud = 3125000) is a                                                                                                                                                              xuartps
    printk: console [ttyPS0] enabled
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    mc: Linux media interface: v0.10
    videodev: Linux video capture interface: v2.00
    jesd204: found 0 devices and 0 topologies
    FPGA manager framework
    Advanced Linux Sound Architecture Driver Initialized.
    clocksource: Switched to clocksource arm_global_timer
    NET: Registered protocol family 2
    tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
    TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
    TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
    TCP: Hash tables configured (established 8192 bind 8192)
    UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
    UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
    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.
    hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
    hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
    workingset: timestamp_bits=30 max_order=18 bucket_order=0
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    fuse: init (API version 7.32)
    bounce: pool size: 64 pages
    io scheduler mq-deadline registered
    io scheduler kyber registered
    zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
    dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
    dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Even                                                                                                                                                             ts-16
    brd: module loaded
    loop: module loaded
    Registered mathworks_ip class
    spi-nor spi1.0: SPI-NOR-UniqueID 100000236233810700330041230716805e
    spi-nor spi1.0: trying to lock already unlocked area
    spi-nor spi1.0: n25q128a11 (16384 Kbytes)
    5 fixed-partitions partitions found on MTD device spi1.0
    Creating 5 MTD partitions on "spi1.0":
    0x000000000000-0x000000500000 : "boot"
    0x000000500000-0x000000520000 : "bootenv"
    0x000000520000-0x000000540000 : "config"
    0x000000540000-0x000000fc0000 : "image"
    0x000000fc0000-0x000001000000 : "spare"
    MACsec IEEE 802.1AE
    libphy: Fixed MDIO Bus: probed
    tun: Universal TUN/TAP device driver, 1.6
    libphy: MACB_mii_bus: probed
    macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 36 (00                                                                                                                                                             :0a:35:07:8a:2e)
    usbcore: registered new interface driver asix
    usbcore: registered new interface driver ax88179_178a
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver net1080
    usbcore: registered new interface driver cdc_subset
    usbcore: registered new interface driver zaurus
    usbcore: registered new interface driver cdc_ncm
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver uas
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial support registered for generic
    usbcore: registered new interface driver ftdi_sio
    usbserial: USB Serial support registered for FTDI USB Serial Device
    usbcore: registered new interface driver upd78f0730
    usbserial: USB Serial support registered for upd78f0730
    ULPI transceiver vendor/product ID 0x0424/0x0007
    Found SMSC USB3320 ULPI transceiver.
    ULPI integrity check: passed.
    ci_hdrc ci_hdrc.0: EHCI Host Controller
    ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
    ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 5.10.0-19476-ga2894edd931a ehci_hcd
    usb usb1: SerialNumber: ci_hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    i2c /dev entries driver
    i2c i2c-0: Added multiplexed i2c bus 1
    adv7511 2-0039: supply avdd not found, using dummy regulator
    adv7511 2-0039: supply dvdd not found, using dummy regulator
    adv7511 2-0039: supply pvdd not found, using dummy regulator
    adv7511 2-0039: supply bgvdd not found, using dummy regulator
    adv7511 2-0039: supply dvdd-3v not found, using dummy regulator
    i2c i2c-0: Added multiplexed i2c bus 2
    i2c i2c-0: Added multiplexed i2c bus 3
    i2c i2c-0: Added multiplexed i2c bus 4
    rtc-pcf8563 5-0051: registered as rtc0
    rtc-pcf8563 5-0051: setting system clock to 1970-03-17T20:13:01 UTC (6552781)
    i2c i2c-0: Added multiplexed i2c bus 5
    at24 6-0050: supply vcc not found, using dummy regulator
    at24 6-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    i2c i2c-0: Added multiplexed i2c bus 6
    i2c i2c-0: Added multiplexed i2c bus 7
    i2c i2c-0: Added multiplexed i2c bus 8
    pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (1.1.1)
    gspca_main: v2.14.0 registered
    cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s
    Xilinx Zynq CpuIdle Driver started
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci-pltfm: SDHCI platform and OF driver helper
    ledtrig-cpu: registered to indicate activity on CPUs
    hid: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
    ad9361 spi0.0: ad9361_probe : enter (ad9361-2x)
    ad9361 spi0.0: No GPIOs defined for ext band ctrl
    ad9361 spi0.1: ad9361_probe : enter (ad9361)
    ad9361 spi0.1: No GPIOs defined for ext band ctrl
    adf5355 spi0.2: supply vcc not found, using dummy regulator
    mmc0: new high speed SDHC card at address e624
    mmcblk0: mmc0:e624 SB16G 14.8 GiB
    8<--- cut here ---
    Unhandled fault: imprecise external abort (0x406) at 0x00000000
     mmcblk0: p1 p2 p3
    pgd = (ptrval)
    [00000000] *pgd=00000000
    Internal error: : 406 [#1] PREEMPT SMP ARM
    Modules linked in:
    CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.0-19476-ga2894edd931a #333
    Hardware name: Xilinx Zynq Platform
    PC is at axi_sysid_probe+0x84/0x2ac
    LR is at __devm_ioremap+0x6c/0xa4
    pc : [<c08dba2c>]    lr : [<c03f45bc>]    psr: 80000013
    sp : c186fe20  ip : c1931db8  fp : c133a834
    r10: 00000000  r9 : c14b60a8  r8 : c209bc40
    r7 : c211e0c0  r6 : c1931c00  r5 : c1931c10  r4 : c102c724
    r3 : 00000000  r2 : 00000000  r1 : dec0de1c  r0 : f09e0000
    Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    Control: 18c5387d  Table: 0000404a  DAC: 00000051
    Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
    Stack: (0xc186fe20 to 0xc1870000)
    fe20: c133a834 c1931c10 c14e55cc c1931c10 00000000 c14b60a8 00000000 00000000
    fe40: c14b60a8 c04f5e60 c1931c10 c14e55cc c14e55d4 c04f3ee0 c1931c10 c14b60a8
    fe60: c14b60a8 c04f4428 00000000 00000124 c133a854 c04f4220 c1931c10 00000000
    fe80: c14b60a8 c04f4420 00000000 c14b60a8 c1931c10 c04f4480 c1932fb4 c1403ec8
    fea0: c14b60a8 c04f2230 00000124 c18e7f58 c1932fb4 eab189ee c1433f50 c14b60a8
    fec0: c211e100 c1433f50 00000000 c04f318c c11d5e8c c1403ec8 ffffe000 c14b60a8
    fee0: c1403ec8 ffffe000 c1326e6c c04f4cac c14c9000 c1403ec8 ffffe000 c010184c
    ff00: c18e55ce c013ab60 c1247300 c116fd00 00000000 00000006 00000006 c111b3a0
    ff20: 00000000 c1403ec8 c1125d04 c111b414 2e48e000 c18e55c6 00000000 eab189ee
    ff40: 00000000 00000007 c1247300 eab189ee c13469d0 c1247300 c14c9000 00000007
    usb 1-1: new high-speed USB device number 2 using ci_hdrc
    ff60: c18e5580 c1300fe0 00000006 00000006 00000000 c13003ec 00000000 c13003ec
    ff80: c0adbe08 00000000 c0adbe08 00000000 00000000 00000000 00000000 00000000
    ffa0: 00000000 c0adbe10 00000000 c0100148 00000000 00000000 00000000 00000000
    ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [<c08dba2c>] (axi_sysid_probe) from [<c04f5e60>] (platform_drv_probe+0x48/0x98)
    [<c04f5e60>] (platform_drv_probe) from [<c04f3ee0>] (really_probe+0x1e0/0x3b8)
    [<c04f3ee0>] (really_probe) from [<c04f4220>] (driver_probe_device+0x5c/0xb4)
    [<c04f4220>] (driver_probe_device) from [<c04f4420>] (device_driver_attach+0x58/                                                                                                                                                             0x60)
    [<c04f4420>] (device_driver_attach) from [<c04f4480>] (__driver_attach+0x58/0xcc                                                                                                                                                             )
    [<c04f4480>] (__driver_attach) from [<c04f2230>] (bus_for_each_dev+0x74/0xb4)
    [<c04f2230>] (bus_for_each_dev) from [<c04f318c>] (bus_add_driver+0xf4/0x1d8)
    [<c04f318c>] (bus_add_driver) from [<c04f4cac>] (driver_register+0x7c/0x114)
    [<c04f4cac>] (driver_register) from [<c010184c>] (do_one_initcall+0x7c/0x1cc)
    [<c010184c>] (do_one_initcall) from [<c1300fe0>] (kernel_init_freeable+0x174/0x1                                                                                                                                                             d8)
    [<c1300fe0>] (kernel_init_freeable) from [<c0adbe10>] (kernel_init+0x8/0x118)
    [<c0adbe10>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
    Exception stack(0xc186ffb0 to 0xc186fff8)
    ffa0:                                     00000000 00000000 00000000 00000000
    ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
    Code: 81a04000 8a00001b e5901000 f57ff04f (e5943000)
    ---[ end trace f2a3a0b3de36dd3c ]---
    Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
    CPU0: stopping
    CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D           5.10.0-19476-ga2894edd                                                                                                                                                             931a #333
    Hardware name: Xilinx Zynq Platform
    [<c010ddb4>] (unwind_backtrace) from [<c010a494>] (show_stack+0x10/0x14)
    [<c010a494>] (show_stack) from [<c0ace3d0>] (dump_stack+0xc8/0xdc)
    [<c0ace3d0>] (dump_stack) from [<c010c2bc>] (do_handle_IPI+0x120/0x148)
    [<c010c2bc>] (do_handle_IPI) from [<c010c2fc>] (ipi_handler+0x18/0x20)
    [<c010c2fc>] (ipi_handler) from [<c016bb54>] (handle_percpu_devid_irq+0x78/0x138                                                                                                                                                             )
    [<c016bb54>] (handle_percpu_devid_irq) from [<c0165c1c>] (generic_handle_irq+0x3                                                                                                                                                             4/0x44)
    [<c0165c1c>] (generic_handle_irq) from [<c01661e4>] (__handle_domain_irq+0x5c/0x                                                                                                                                                             b4)
    [<c01661e4>] (__handle_domain_irq) from [<c042604c>] (gic_handle_irq+0x80/0x94)
    [<c042604c>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0xa8)
    Exception stack(0xc1401ed0 to 0xc1401f18)
    1ec0:                                     00000000 00000000 2e47f000 ef7cc9c0
    1ee0: 00000001 00000000 c1449280 00000001 581fbb72 58568f70 ef7cbc18 00000000
    1f00: 0000000b c1401f20 c06e2ed0 c06e2ef0 60000013 ffffffff
    [<c0100b0c>] (__irq_svc) from [<c06e2ef0>] (cpuidle_enter_state+0x168/0x374)
    [<c06e2ef0>] (cpuidle_enter_state) from [<c06e314c>] (cpuidle_enter+0x3c/0x4c)
    [<c06e314c>] (cpuidle_enter) from [<c0147f90>] (do_idle+0x1fc/0x234)
    [<c0147f90>] (do_idle) from [<c01482bc>] (cpu_startup_entry+0x18/0x1c)
    [<c01482bc>] (cpu_startup_entry) from [<c1300dec>] (start_kernel+0x4a8/0x4d4)
    [<c1300dec>] (start_kernel) from [<00000000>] (0x0)
    ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b                                                                                                                                                              ]---
    
    

    -Kelly

Reply
  • Still not working. Could you send me the whole zip file including everything needed, such as device tree files, boot.bin file, and bootgen_sysfiles.tgz. The attached is the debugging message I got from the FPGA uart port.

    
    U-Boot 2014.07-dirty (Nov 20 2014 - 17:07:55)
    
    Board:  Xilinx Zynq
    I2C:   ready
    DRAM:  ECC disabled 1 GiB
    MMC:   zynq_sdhci: 0
    SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB
    *** Warning - bad CRC, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   Gem.e000b000
    Hit any key to stop autoboot:  0
    Device: zynq_sdhci
    Manufacturer ID: 3
    OEM: 5344
    Name: SB16G
    Tran Speed: 50000000
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 14.8 GiB
    Bus Width: 4-bit
    reading uEnv.txt
    402 bytes read in 8 ms (48.8 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from SD ...
    Running uenvcmd ...
    Copying Linux from SD to RAM...
    reading uImage
    7479240 bytes read in 660 ms (10.8 MiB/s)
    reading devicetree.dtb
    28940 bytes read in 35 ms (806.6 KiB/s)
    reading uramdisk.image.gz
    ** Unable to read file uramdisk.image.gz **
    ## Booting kernel from Legacy Image at 03000000 ...
       Image Name:   Linux-5.10.0-19476-ga2894edd931a
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    7479176 Bytes = 7.1 MiB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 02a00000
       Booting using the fdt blob at 0x2a00000
       Loading Kernel Image ... OK
       Loading Device Tree to 1fff5000, end 1ffff10b ... OK
    
    Starting kernel ...
    
    Booting Linux on physical CPU 0x0
    Linux version 5.10.0-19476-ga2894edd931a (michael@mhenneri-D06) (arm-linux-gnuea                                                                                                                                                             bihf-gcc (GCC) 8.2.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #333 SMP PREEMPT Tu                                                                                                                                                             e Jun 28 13:54:18 CEST 2022
    CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    OF: fdt: Machine model: Xilinx Zynq ZC702
    OF: fdt: earlycon: stdout-path /amba@0/uart@E0001000 not found
    Memory policy: Data cache writealloc
    cma: Reserved 128 MiB at 0x38000000
    Zone ranges:
      Normal   [mem 0x0000000000000000-0x000000002fffffff]
      HighMem  [mem 0x0000000030000000-0x000000003fffffff]
    Movable zone start for each node
    Early memory node ranges
      node   0: [mem 0x0000000000000000-0x000000003fffffff]
    Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
    percpu: Embedded 15 pages/cpu s29900 r8192 d23348 u61440
    Built 1 zonelists, mobility grouping on.  Total pages: 260608
    Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlycon rootf                                                                                                                                                             stype=ext4 rootwait
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    mem auto-init: stack:off, heap alloc:off, heap free:off
    Memory: 887024K/1048576K available (10240K kernel code, 801K rwdata, 7460K rodat                                                                                                                                                             a, 1024K init, 491K bss, 30480K reserved, 131072K cma-reserved, 131072K highmem)
    rcu: Preemptible hierarchical RCU implementation.
    rcu:    RCU event tracing is enabled.
    rcu:    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
            Trampoline variant of Tasks RCU enabled.
    rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    efuse mapped to (ptrval)
    slcr mapped to (ptrval)
    L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C-310 erratum 769419 enabled
    L2C-310 enabling early BRESP for Cortex-A9
    L2C-310 full line of zeros enabled for Cortex-A9
    L2C-310 ID prefetch enabled, offset 1 lines
    L2C-310 dynamic clock gating enabled, standby mode enabled
    L2C-310 cache controller enabled, 8 ways, 512 kB
    L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
    random: get_random_bytes called from start_kernel+0x340/0x4d4 with crng_init=0
    zynq_clock_init: clkc starts at (ptrval)
    Zynq clock init
    sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
    clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025                                                                                                                                                             , max_idle_ns: 440795209040 ns
    Switching to timer-based delay loop, resolution 3ns
    clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 5375                                                                                                                                                             38477 ns
    timer #0 at (ptrval), irq=25
    Console: colour dummy device 80x30
    Calibrating delay loop (skipped), value calculated using timer frequency.. 666.6                                                                                                                                                             6 BogoMIPS (lpj=3333333)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    CPU: Testing write buffer coherency: ok
    CPU0: Spectre v2: using BPIALL workaround
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0x100000 - 0x100060
    rcu: Hierarchical SRCU implementation.
    smp: Bringing up secondary CPUs ...
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    CPU1: Spectre v2: using BPIALL workaround
    smp: Brought up 1 node, 2 CPUs
    SMP: Total of 2 processors activated (1333.33 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                                                                                             2604462750000 ns
    futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    thermal_sys: Registered thermal governor 'step_wise'
    cpuidle: using governor ladder
    hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    hw-breakpoint: maximum watchpoint size is 4 bytes.
    zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0x(ptrval)
    e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 33, base_baud = 3125000) is a                                                                                                                                                              xuartps
    printk: console [ttyPS0] enabled
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    mc: Linux media interface: v0.10
    videodev: Linux video capture interface: v2.00
    jesd204: found 0 devices and 0 topologies
    FPGA manager framework
    Advanced Linux Sound Architecture Driver Initialized.
    clocksource: Switched to clocksource arm_global_timer
    NET: Registered protocol family 2
    tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
    TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
    TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
    TCP: Hash tables configured (established 8192 bind 8192)
    UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
    UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
    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.
    hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
    hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
    workingset: timestamp_bits=30 max_order=18 bucket_order=0
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    fuse: init (API version 7.32)
    bounce: pool size: 64 pages
    io scheduler mq-deadline registered
    io scheduler kyber registered
    zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
    dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
    dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Even                                                                                                                                                             ts-16
    brd: module loaded
    loop: module loaded
    Registered mathworks_ip class
    spi-nor spi1.0: SPI-NOR-UniqueID 100000236233810700330041230716805e
    spi-nor spi1.0: trying to lock already unlocked area
    spi-nor spi1.0: n25q128a11 (16384 Kbytes)
    5 fixed-partitions partitions found on MTD device spi1.0
    Creating 5 MTD partitions on "spi1.0":
    0x000000000000-0x000000500000 : "boot"
    0x000000500000-0x000000520000 : "bootenv"
    0x000000520000-0x000000540000 : "config"
    0x000000540000-0x000000fc0000 : "image"
    0x000000fc0000-0x000001000000 : "spare"
    MACsec IEEE 802.1AE
    libphy: Fixed MDIO Bus: probed
    tun: Universal TUN/TAP device driver, 1.6
    libphy: MACB_mii_bus: probed
    macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 36 (00                                                                                                                                                             :0a:35:07:8a:2e)
    usbcore: registered new interface driver asix
    usbcore: registered new interface driver ax88179_178a
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver net1080
    usbcore: registered new interface driver cdc_subset
    usbcore: registered new interface driver zaurus
    usbcore: registered new interface driver cdc_ncm
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver uas
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial support registered for generic
    usbcore: registered new interface driver ftdi_sio
    usbserial: USB Serial support registered for FTDI USB Serial Device
    usbcore: registered new interface driver upd78f0730
    usbserial: USB Serial support registered for upd78f0730
    ULPI transceiver vendor/product ID 0x0424/0x0007
    Found SMSC USB3320 ULPI transceiver.
    ULPI integrity check: passed.
    ci_hdrc ci_hdrc.0: EHCI Host Controller
    ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
    ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 5.10.0-19476-ga2894edd931a ehci_hcd
    usb usb1: SerialNumber: ci_hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    i2c /dev entries driver
    i2c i2c-0: Added multiplexed i2c bus 1
    adv7511 2-0039: supply avdd not found, using dummy regulator
    adv7511 2-0039: supply dvdd not found, using dummy regulator
    adv7511 2-0039: supply pvdd not found, using dummy regulator
    adv7511 2-0039: supply bgvdd not found, using dummy regulator
    adv7511 2-0039: supply dvdd-3v not found, using dummy regulator
    i2c i2c-0: Added multiplexed i2c bus 2
    i2c i2c-0: Added multiplexed i2c bus 3
    i2c i2c-0: Added multiplexed i2c bus 4
    rtc-pcf8563 5-0051: registered as rtc0
    rtc-pcf8563 5-0051: setting system clock to 1970-03-17T20:13:01 UTC (6552781)
    i2c i2c-0: Added multiplexed i2c bus 5
    at24 6-0050: supply vcc not found, using dummy regulator
    at24 6-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    i2c i2c-0: Added multiplexed i2c bus 6
    i2c i2c-0: Added multiplexed i2c bus 7
    i2c i2c-0: Added multiplexed i2c bus 8
    pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (1.1.1)
    gspca_main: v2.14.0 registered
    cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s
    Xilinx Zynq CpuIdle Driver started
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    sdhci-pltfm: SDHCI platform and OF driver helper
    ledtrig-cpu: registered to indicate activity on CPUs
    hid: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
    ad9361 spi0.0: ad9361_probe : enter (ad9361-2x)
    ad9361 spi0.0: No GPIOs defined for ext band ctrl
    ad9361 spi0.1: ad9361_probe : enter (ad9361)
    ad9361 spi0.1: No GPIOs defined for ext band ctrl
    adf5355 spi0.2: supply vcc not found, using dummy regulator
    mmc0: new high speed SDHC card at address e624
    mmcblk0: mmc0:e624 SB16G 14.8 GiB
    8<--- cut here ---
    Unhandled fault: imprecise external abort (0x406) at 0x00000000
     mmcblk0: p1 p2 p3
    pgd = (ptrval)
    [00000000] *pgd=00000000
    Internal error: : 406 [#1] PREEMPT SMP ARM
    Modules linked in:
    CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.0-19476-ga2894edd931a #333
    Hardware name: Xilinx Zynq Platform
    PC is at axi_sysid_probe+0x84/0x2ac
    LR is at __devm_ioremap+0x6c/0xa4
    pc : [<c08dba2c>]    lr : [<c03f45bc>]    psr: 80000013
    sp : c186fe20  ip : c1931db8  fp : c133a834
    r10: 00000000  r9 : c14b60a8  r8 : c209bc40
    r7 : c211e0c0  r6 : c1931c00  r5 : c1931c10  r4 : c102c724
    r3 : 00000000  r2 : 00000000  r1 : dec0de1c  r0 : f09e0000
    Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    Control: 18c5387d  Table: 0000404a  DAC: 00000051
    Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
    Stack: (0xc186fe20 to 0xc1870000)
    fe20: c133a834 c1931c10 c14e55cc c1931c10 00000000 c14b60a8 00000000 00000000
    fe40: c14b60a8 c04f5e60 c1931c10 c14e55cc c14e55d4 c04f3ee0 c1931c10 c14b60a8
    fe60: c14b60a8 c04f4428 00000000 00000124 c133a854 c04f4220 c1931c10 00000000
    fe80: c14b60a8 c04f4420 00000000 c14b60a8 c1931c10 c04f4480 c1932fb4 c1403ec8
    fea0: c14b60a8 c04f2230 00000124 c18e7f58 c1932fb4 eab189ee c1433f50 c14b60a8
    fec0: c211e100 c1433f50 00000000 c04f318c c11d5e8c c1403ec8 ffffe000 c14b60a8
    fee0: c1403ec8 ffffe000 c1326e6c c04f4cac c14c9000 c1403ec8 ffffe000 c010184c
    ff00: c18e55ce c013ab60 c1247300 c116fd00 00000000 00000006 00000006 c111b3a0
    ff20: 00000000 c1403ec8 c1125d04 c111b414 2e48e000 c18e55c6 00000000 eab189ee
    ff40: 00000000 00000007 c1247300 eab189ee c13469d0 c1247300 c14c9000 00000007
    usb 1-1: new high-speed USB device number 2 using ci_hdrc
    ff60: c18e5580 c1300fe0 00000006 00000006 00000000 c13003ec 00000000 c13003ec
    ff80: c0adbe08 00000000 c0adbe08 00000000 00000000 00000000 00000000 00000000
    ffa0: 00000000 c0adbe10 00000000 c0100148 00000000 00000000 00000000 00000000
    ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [<c08dba2c>] (axi_sysid_probe) from [<c04f5e60>] (platform_drv_probe+0x48/0x98)
    [<c04f5e60>] (platform_drv_probe) from [<c04f3ee0>] (really_probe+0x1e0/0x3b8)
    [<c04f3ee0>] (really_probe) from [<c04f4220>] (driver_probe_device+0x5c/0xb4)
    [<c04f4220>] (driver_probe_device) from [<c04f4420>] (device_driver_attach+0x58/                                                                                                                                                             0x60)
    [<c04f4420>] (device_driver_attach) from [<c04f4480>] (__driver_attach+0x58/0xcc                                                                                                                                                             )
    [<c04f4480>] (__driver_attach) from [<c04f2230>] (bus_for_each_dev+0x74/0xb4)
    [<c04f2230>] (bus_for_each_dev) from [<c04f318c>] (bus_add_driver+0xf4/0x1d8)
    [<c04f318c>] (bus_add_driver) from [<c04f4cac>] (driver_register+0x7c/0x114)
    [<c04f4cac>] (driver_register) from [<c010184c>] (do_one_initcall+0x7c/0x1cc)
    [<c010184c>] (do_one_initcall) from [<c1300fe0>] (kernel_init_freeable+0x174/0x1                                                                                                                                                             d8)
    [<c1300fe0>] (kernel_init_freeable) from [<c0adbe10>] (kernel_init+0x8/0x118)
    [<c0adbe10>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
    Exception stack(0xc186ffb0 to 0xc186fff8)
    ffa0:                                     00000000 00000000 00000000 00000000
    ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
    Code: 81a04000 8a00001b e5901000 f57ff04f (e5943000)
    ---[ end trace f2a3a0b3de36dd3c ]---
    Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
    CPU0: stopping
    CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D           5.10.0-19476-ga2894edd                                                                                                                                                             931a #333
    Hardware name: Xilinx Zynq Platform
    [<c010ddb4>] (unwind_backtrace) from [<c010a494>] (show_stack+0x10/0x14)
    [<c010a494>] (show_stack) from [<c0ace3d0>] (dump_stack+0xc8/0xdc)
    [<c0ace3d0>] (dump_stack) from [<c010c2bc>] (do_handle_IPI+0x120/0x148)
    [<c010c2bc>] (do_handle_IPI) from [<c010c2fc>] (ipi_handler+0x18/0x20)
    [<c010c2fc>] (ipi_handler) from [<c016bb54>] (handle_percpu_devid_irq+0x78/0x138                                                                                                                                                             )
    [<c016bb54>] (handle_percpu_devid_irq) from [<c0165c1c>] (generic_handle_irq+0x3                                                                                                                                                             4/0x44)
    [<c0165c1c>] (generic_handle_irq) from [<c01661e4>] (__handle_domain_irq+0x5c/0x                                                                                                                                                             b4)
    [<c01661e4>] (__handle_domain_irq) from [<c042604c>] (gic_handle_irq+0x80/0x94)
    [<c042604c>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0xa8)
    Exception stack(0xc1401ed0 to 0xc1401f18)
    1ec0:                                     00000000 00000000 2e47f000 ef7cc9c0
    1ee0: 00000001 00000000 c1449280 00000001 581fbb72 58568f70 ef7cbc18 00000000
    1f00: 0000000b c1401f20 c06e2ed0 c06e2ef0 60000013 ffffffff
    [<c0100b0c>] (__irq_svc) from [<c06e2ef0>] (cpuidle_enter_state+0x168/0x374)
    [<c06e2ef0>] (cpuidle_enter_state) from [<c06e314c>] (cpuidle_enter+0x3c/0x4c)
    [<c06e314c>] (cpuidle_enter) from [<c0147f90>] (do_idle+0x1fc/0x234)
    [<c0147f90>] (do_idle) from [<c01482bc>] (cpu_startup_entry+0x18/0x1c)
    [<c01482bc>] (cpu_startup_entry) from [<c1300dec>] (start_kernel+0x4a8/0x4d4)
    [<c1300dec>] (start_kernel) from [<00000000>] (0x0)
    ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b                                                                                                                                                              ]---
    
    

    -Kelly

Children