cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
934 Views
Registered: ‎04-11-2018

zcu102 connected with TB-FMCH-DP3 Rev2 - kernel hung

Jump to solution

Hello,

 

I have zcu102 zynqmp board and the build system is yocto, with xilinx, petalinux and few other meta-layers.

My board boots up correctly but when I connect TB-FMCH-DP3 Rev2  to the board then the kernel hangs up just after it starts.

--------------------------------------------------

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0-xilinx-v2017.3 (oe-user@oe-host) (gcc version 7.2.0 (GCC) ) #1 SMP Tue Jun 12 12:25:04 CEST 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[ 0.000000] bootconsole [cdns0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 256 MiB at 0x00000000a0000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc87ff63000 s48152 r8192 d29672 u86016
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1098880
[ 0.000000] Kernel command line: earlycon clk_ignore_unused
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] software IO TLB [mem 0x79348000-0x7d348000] (64MB) mapped at [ffffffc079348000-ffffffc07d347fff]
[ 0.000000] Memory: 4018308K/4456448K available (9212K kernel code, 582K rwdata, 2764K rodata, 512K init, 395K bss, 175996K reserved, 262144K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008980000 ( 9216 KB)
[ 0.000000] .rodata : 0xffffff8008980000 - 0xffffff8008c40000 ( 2816 KB)
[ 0.000000] .init : 0xffffff8008c40000 - 0xffffff8008cc0000 ( 512 KB)
[ 0.000000] .data : 0xffffff8008cc0000 - 0xffffff8008d51a00 ( 583 KB)
[ 0.000000] .bss : 0xffffff8008d51a00 - 0xffffff8008db4634 ( 396 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf1dc00000 ( 476 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc880000000 ( 34816 MB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 99.99MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8dc196, max_idle_ns: 440795203664 ns
[ 0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511099ns
[ 0.008289] Console: colour dummy device 80x25
[ 0.012542] console [tty0] enabled
[ 0.015909] bootconsole [cdns0] disabled

----------------------------------------------------

When I remove the board, it boots up correctly again when there is only zynqmp board.

I do not understand this behaviour. I created few patch for the kernel, but when i try cleaning and building the kernel again, my patches are not taken although included in my meta-layer.

 

Please provide any solution or idea about the issue.

 

Regards,

Akanksha Singh

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
926 Views
Registered: ‎04-11-2018

Hello Florent,

Thank you for your message.

I am trying to flash my FPGA design generated bit file on zynqMP and check for transmission of data.

If I flash without .bit file I do not think I can see the desired output.

However I did make some changes in my design, and the kernel boots up now with FMCH board connected to the ZynqMP board. I had left few Input pins open which caused the error.

 

However I do have another problem now. While accessing the transmitter register for read and write operation. The offsetaddress for Tx subsystem is 0x0080040000 and high address is 0x008004_1FFF.

-------------------------------------------------------------------------------------------------

root@zcu102-zynqmp:~# devmem 0x008004008 32

0x91001260

root@zcu102-zynqmp:~# devmem 0x0080040020 32

[ 205.925527] Unhandled fault: synchronous external abort (0x92000010) at 0x0000007f930e1020

Bus error

root@zcu102-zynqmp:~# devmem 0x008004002 32

0x0001D280

root@zcu102-zynqmp:~# devmem 0x008004002 32 0x50

root@zcu102-zynqmp:~# devmem 0x008004002 32

0x00000050

--------------------------------------------------------------------------------------------------

 

Do you have any idea about this bus error ???

 

Regards,

Akanksha

 

View solution in original post

0 Kudos
5 Replies
Highlighted
Moderator
Moderator
892 Views
Registered: ‎12-04-2016

Hi Akanksha

 

Could you please let us know in which meta layer and how you are applying the kernel patches?

 

 

Best Regards

Shabbir

0 Kudos
Highlighted
880 Views
Registered: ‎04-11-2018

Here is my bblayer content.

----------------------------------------------------------------------

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
${TOPDIR}/../poky/meta \
${TOPDIR}/../poky/meta-poky \
${TOPDIR}/../poky/meta-yocto-bsp \
${TOPDIR}/../meta-xilinx/meta-xilinx-bsp \
${TOPDIR}/../meta-xilinx/meta-xilinx-contrib \
${TOPDIR}/../meta-qt5 \
${TOPDIR}/../meta-petalinux \
${TOPDIR}/../meta-openembedded/meta-python \
${TOPDIR}/../meta-openembedded/meta-filesystems \
${TOPDIR}/../meta-openembedded/meta-networking \
${TOPDIR}/../meta-openembedded/meta-oe \
${TOPDIR}/../meta-openembedded/meta-initramfs \
${TOPDIR}/../meta-openembedded/meta-multimedia \
${TOPDIR}/../meta-openembedded/meta-webserver \
${TOPDIR}/../meta-openembedded/meta-gnome \
${TOPDIR}/../meta-xilinx-tools \
${TOPDIR}/../meta-bios-xilinx \    -----------------------(this is my metalayer where i keep my patches)

 

-----------------------------------------------------------------------------------------------

 

akanksha@tobias-HP-Z220-CMT-Workstation:~/bios-xilinx/meta-bios-xilinx/recipes-bsp/recipes-kernel/linux/files$ ls
printk.patch
akanksha@tobias-HP-Z220-CMT-Workstation:~/bios-xilinx/meta-bios-xilinx/recipes-bsp/recipes-kernel/linux/files$ cd ..
akanksha@tobias-HP-Z220-CMT-Workstation:~/bios-xilinx/meta-bios-xilinx/recipes-bsp/recipes-kernel/linux$ ls
files linux-xlnx_2017.3_%.bbappend
akanksha@tobias-HP-Z220-CMT-Workstation:~/bios-xilinx/meta-bios-xilinx/recipes-bsp/recipes-kernel/linux$

 

2039 cd bios-xilinx
2040 source poky/oe-init-build-env
2041 bitbake -c cleanall virtual/kernel
2042 bitbake -f virtual/kernel
-----------------------------------------------------------------------------------------------

Board boots up fine when not connected with FMCH. But if I connect it hangs.

My patch reflected once among 10-15 times. I did a clean build and then again I do not see my patch.

 

Please give some ideas on debugging this issue.

 

Best Regards,

Akanksha Singh

 

 

0 Kudos
Highlighted
Moderator
Moderator
848 Views
Registered: ‎11-09-2015

HI akanksha.singh@harman.com,

 

I tried with the pre-build linux images from the wiki page with 2*TB-FMCH-DP3 Rev2 (one for each FMC connector) and the linux image does not hang.

 

Could you try to load linux without any bitstream?

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
927 Views
Registered: ‎04-11-2018

Hello Florent,

Thank you for your message.

I am trying to flash my FPGA design generated bit file on zynqMP and check for transmission of data.

If I flash without .bit file I do not think I can see the desired output.

However I did make some changes in my design, and the kernel boots up now with FMCH board connected to the ZynqMP board. I had left few Input pins open which caused the error.

 

However I do have another problem now. While accessing the transmitter register for read and write operation. The offsetaddress for Tx subsystem is 0x0080040000 and high address is 0x008004_1FFF.

-------------------------------------------------------------------------------------------------

root@zcu102-zynqmp:~# devmem 0x008004008 32

0x91001260

root@zcu102-zynqmp:~# devmem 0x0080040020 32

[ 205.925527] Unhandled fault: synchronous external abort (0x92000010) at 0x0000007f930e1020

Bus error

root@zcu102-zynqmp:~# devmem 0x008004002 32

0x0001D280

root@zcu102-zynqmp:~# devmem 0x008004002 32 0x50

root@zcu102-zynqmp:~# devmem 0x008004002 32

0x00000050

--------------------------------------------------------------------------------------------------

 

Do you have any idea about this bus error ???

 

Regards,

Akanksha

 

View solution in original post

0 Kudos
Highlighted
Moderator
Moderator
816 Views
Registered: ‎11-09-2015

Hello akanksha.singh@harman.com,

 

Good to know that this is fixed with the TB-FMCH-DP3.

 

For the new issue, could you mark this topic as solve (by marking a reply as accepted solution) and create a new one? It will help if other members have similar issues.

 

When creating your new topic, can you indicate what you are trying to access with devmem?

 

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos