Post Go back to editing

ZC702+fmcomms4+ Petalinux

Category: Software
Product Number: fmcomms4
Software Version: Petalinux 2021.2
Error : Kernel panic while booting the zc702+fmcomms4

Project Using : zc702+fmcomms4 , vivado version : 2021.2 , Petalinux Version : 2021.2 , meta-adi : 2021.2

//////////////////////////////////////////////////////////////////////////////////////////////////

we Have a custom Design module which need to be implemented on pl part of zc702. we created a blocklevel design with our custom module along with ad9361 ip which was given in the hdl examples.after that we builed petalinux with the xsa generated vy vivado. in that we added two user yocto layers(meta-adi-core,meta-adi-xilinx). we added these two because we need to access the fmcomms4 with iio . we followed attached page to add those two layrs : https://ez.analog.com/linux-software-drivers/f/q-a/560187/libiio-in-petalinux-2021-1-for-zc706-adrv9371

by folowing this page we builded the petalinux. booted the board with sd card. the booting was stopped with kernel pani. go through the attached bootlog and give any suggestions regarding the error. if there any suggestion or references related to zc702+fmcomms4+petalinux. /////////////////////////////////////////////////////////////////////////////////

Our actual aim is : need to run an user application on petalinux running on ps that send some data to custom module present in the pl then the data from custom module needs to go out from pl to fmcomms4 connected to fmc lpc and then we need to analyse the analog signal which is transmitted by the fmcomms4.

//////////////////////////////////////////////////////////////////////////////////////////

any references related to this will help a lot plese share.

THANKYOU

U-Boot 2021.01 (Oct 12 2021 - 09:28:42 +0000)

CPU:   Zynq 7z020
Silicon: v3.1
Model: Xilinx Zynq ZC702
DRAM:  ECC disabled 1 GiB
Flash: 0 Bytes
NAND:  0 MiB
MMC:   mmc@e0100000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 7, interface rgmii-id

Warning: ethernet@e000b000 (eth0) using random MAC address - 4a:01:4b:06:7f:b9
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2710 bytes read in 17 ms (155.3 KiB/s)
## Executing script at 03000000
Trying to load boot images from mmc0
7758240 bytes read in 446 ms (16.6 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf-system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x10000100
     Data Size:    7722224 Bytes = 7.4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00200000
     Entry Point:  0x00200000
     Hash algo:    sha256
     Hash value:   e7e5df98916c70e5f774e0677b850a4981e62f24556c9828d67b37175973a27e
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf-system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'fdt-system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x1075d6fc
     Data Size:    34112 Bytes = 33.3 KiB
     Architecture: ARM
     Hash algo:    sha256
     Hash value:   88417a82ef21180c901bb6a72ad193c308b8c01eb0c77071bb7ebdd0620acdad
   Verifying Hash Integrity ... sha256+ OK
   Booting using the fdt blob at 0x1075d6fc
   Loading Kernel Image
   Loading Device Tree to 2fff4000, end 2ffff53f ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 5.10.0-xilinx-v2021.2 (oe-user@oe-host) (arm-xilinx-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Tue Oct 10 13:10:16 UTC 2023
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
earlycon: cdns0 at MMIO 0xe0001000 (options '115200n8')
printk: bootconsole [cdns0] enabled
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 s30028 r8192 d23220 u61440
Built 1 zonelists, mobility grouping on.  Total pages: 260416
Kernel command line: console=ttyPS0,115200 earlycon root=/dev/mmcblk0p2 rw 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: 884948K/1048576K available (11264K kernel code, 826K rwdata, 7652K rodata, 1024K init, 491K bss, 32556K 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+0x33c/0x4ec 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: 537538477 ns
timer #0 at (ptrval), irq=25
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 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: 19112604462750000 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
sysfs: cannot create duplicate filename '/bus/platform/devices/41600000.i2c'
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-xilinx-v2021.2 #1
Hardware name: Xilinx Zynq Platform
[<c010d964>] (unwind_backtrace) from [<c010a090>] (show_stack+0x10/0x14)
[<c010a090>] (show_stack) from [<c0b62764>] (dump_stack+0xc0/0xd4)
[<c0b62764>] (dump_stack) from [<c02d3b2c>] (sysfs_warn_dup+0x54/0x60)
[<c02d3b2c>] (sysfs_warn_dup) from [<c02d3e4c>] (sysfs_do_create_link_sd+0xdc/0xe0)
[<c02d3e4c>] (sysfs_do_create_link_sd) from [<c0543414>] (bus_add_device+0x60/0xf0)
[<c0543414>] (bus_add_device) from [<c053f224>] (device_add+0x2a0/0x790)
[<c053f224>] (device_add) from [<c07ad6e0>] (of_platform_device_create_pdata+0x94/0xc4)
[<c07ad6e0>] (of_platform_device_create_pdata) from [<c07ad8c4>] (of_platform_bus_create+0x1a8/0x39c)
[<c07ad8c4>] (of_platform_bus_create) from [<c07ad910>] (of_platform_bus_create+0x1f4/0x39c)
[<c07ad910>] (of_platform_bus_create) from [<c07adc24>] (of_platform_populate+0x70/0xd4)
[<c07adc24>] (of_platform_populate) from [<c14094fc>] (zynq_init_machine+0x13c/0x14c)
[<c14094fc>] (zynq_init_machine) from [<c1403598>] (customize_machine+0x20/0x30)
[<c1403598>] (customize_machine) from [<c0101824>] (do_one_initcall+0x50/0x1c0)
[<c0101824>] (do_one_initcall) from [<c140105c>] (kernel_init_freeable+0x1d8/0x23c)
[<c140105c>] (kernel_init_freeable) from [<c0b7071c>] (kernel_init+0x8/0x118)
[<c0b7071c>] (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
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 = 34, base_baud = 3125000) is a xuartps
printk: console [ttyPS0] enabled
printk: console [ttyPS0] enabled
printk: bootconsole [cdns0] disabled
printk: bootconsole [cdns0] disabled
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=14 max_order=18 bucket_order=4
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
8<--- cut here ---
Unhandled fault: imprecise external abort (0x406) at 0x00000000
pgd = (ptrval)
[00000000] *pgd=00000000
Internal error: : 406 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-xilinx-v2021.2 #1
Hardware name: Xilinx Zynq Platform
PC is at axi_clkgen_probe+0xe8/0x440
LR is at clk_enable+0x2c/0x34
pc : [<c04a5e08>]    lr : [<c049d7c0>]    psr: 60000013
sp : c186fdd0  ip : c186d940  fp : c1376e78
r10: c186e000  r9 : c1947810  r8 : c1947800
r7 : 00000000  r6 : 00000000  r5 : c1ab3ac0  r4 : c1ab2a40
r3 : dec0de1c  r2 : 00000000  r1 : a0000013  r0 : 00000000
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: (0xc186fdd0 to 0xc1870000)
fdc0:                                     c15eba6c c02d100c 00000001 00000000
fde0: c1946160 c02d0b78 00000000 c1ab5e70 c1ab5f20 c1946160 00000000 c02d2c6c
fe00: 00000000 00000004 c1ab5f20 c0b8e757 c1310868 00000000 c1947810 c1533b28
fe20: 00000000 c15eba6c c1533b28 00000000 c1376e78 c05464a4 c1947810 00000000
fe40: c15eba74 c05443cc 00000000 c1947810 c1533b28 c1947854 c1533b28 00000000
fe60: c143c834 c15cf000 c1376e78 c0544a88 c1947810 00000000 c1947854 c0544d6c
fe80: 00000000 c1533b28 c1947810 c186e000 00000000 c0544df4 00000000 c1533b28
fea0: c0544d74 c05423f4 c143c834 c18e9f58 c193e834 c0b8e757 c1533b28 c1533b28
fec0: c1ab3b00 00000000 c1538e58 c054371c c126b63c c141bb5c c1533b28 c1533b28
fee0: 00000000 c141bb6c ffffe000 c0545644 c186e000 c15cf000 c141bb6c c0101824
ff00: c18eeb33 00000000 c18eeb32 c013cb00 c129b3ac 0000012c 00000000 00000000
ff20: c14003e0 c186e000 00000006 00000006 00000000 c18eeb36 00000000 c0b8e757
ff40: c18eeb00 0000012c 00000007 c0b8e757 c1448368 00000007 c18eeb00 0000012c
ff60: c143c854 c140105c 00000006 00000006 00000000 c14003e0 00000000 c14003e0
ff80: 00000000 00000000 c0b70714 00000000 00000000 00000000 00000000 00000000
ffa0: 00000000 c0b7071c 00000000 c0100148 00000000 00000000 00000000 00000000
ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[<c04a5e08>] (axi_clkgen_probe) from [<c05464a4>] (platform_drv_probe+0x48/0x98)
[<c05464a4>] (platform_drv_probe) from [<c05443cc>] (really_probe+0xf0/0x4b0)
[<c05443cc>] (really_probe) from [<c0544a88>] (driver_probe_device+0x5c/0xb4)
[<c0544a88>] (driver_probe_device) from [<c0544d6c>] (device_driver_attach+0xa8/0xb0)
[<c0544d6c>] (device_driver_attach) from [<c0544df4>] (__driver_attach+0x80/0x110)
[<c0544df4>] (__driver_attach) from [<c05423f4>] (bus_for_each_dev+0x78/0xb8)
[<c05423f4>] (bus_for_each_dev) from [<c054371c>] (bus_add_driver+0xf4/0x1dc)
[<c054371c>] (bus_add_driver) from [<c0545644>] (driver_register+0x88/0x118)
[<c0545644>] (driver_register) from [<c0101824>] (do_one_initcall+0x50/0x1c0)
[<c0101824>] (do_one_initcall) from [<c140105c>] (kernel_init_freeable+0x1d8/0x23c)
[<c140105c>] (kernel_init_freeable) from [<c0b7071c>] (kernel_init+0x8/0x118)
[<c0b7071c>] (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: 1a000071 e5953000 e5933000 f57ff04f (e5853010) 
---[ end trace 0b0add115376a1e8 ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.10.0-xilinx-v2021.2 #1
Hardware name: Xilinx Zynq Platform
[<c010d964>] (unwind_backtrace) from [<c010a090>] (show_stack+0x10/0x14)
[<c010a090>] (show_stack) from [<c0b62764>] (dump_stack+0xc0/0xd4)
[<c0b62764>] (dump_stack) from [<c010be78>] (do_handle_IPI+0x120/0x148)
[<c010be78>] (do_handle_IPI) from [<c010beb8>] (ipi_handler+0x18/0x20)
[<c010beb8>] (ipi_handler) from [<c0170800>] (handle_percpu_devid_irq+0x78/0x150)
[<c0170800>] (handle_percpu_devid_irq) from [<c016aaf4>] (__handle_domain_irq+0x7c/0xd0)
[<c016aaf4>] (__handle_domain_irq) from [<c046bda0>] (gic_handle_irq+0x80/0x94)
[<c046bda0>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xc188df60 to 0xc188dfa8)
df60: 00000000 00000764 ef6d3204 c01171a0 c188c000 00000001 c1503f10 c1503f50
df80: 00000000 c144ec50 c188c000 00000000 c189e044 c188dfb0 c010756c c0107570
dfa0: 60000013 ffffffff
[<c0100b0c>] (__irq_svc) from [<c0107570>] (arch_cpu_idle+0x38/0x3c)
[<c0107570>] (arch_cpu_idle) from [<c014b588>] (do_idle+0x1f8/0x288)
[<c014b588>] (do_idle) from [<c014b908>] (cpu_startup_entry+0x18/0x1c)
[<c014b908>] (cpu_startup_entry) from [<0010156c>] (0x10156c)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---