UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor by_sauka1991
Visitor
8,648 Views
Registered: ‎08-31-2014

petalinux 2014.2 kernel panic

Jump to solution

Hi all! I'm trying to build PetaLinux (2014.2) with my own hardware platform and boot them from sd card. But always there is an error, that leads to "kernel panic".

I have extracted new Project from Petalinux BSP (for ZC706 board) with command petalinux-create -t project -s <path-to-BSP>. Then i have configured my hardware in XPS and maked "export hardware". Following up the instructions in "board bring up" document (UG980) and from this link (http://www.xilinx.com/support/answers/60973.html) i made the following:
- renamed file subsystems/linux/hw-description/system.hdf to .../system.hdf__
- run command: petalinux-config --get-hw-description -p <plnx-proj-root>
- copied files ps7_init.h and ps7_init.c to components/bootloaded/zynq_fsbl/ (As it says in http://www.xilinx.com/support/answers/60974.html)

Then I try to build petalinux. Everythings goes fine. But during the boot i get the following errors:
...
error: hwirq 0x2b is too large for GIC
...
ERROR: invalid interrupt number
....
Kernel panic - not syncing: Attempted to kill the idle task!


Complete log of booting looks like this:

[p.s. I have attached too my ps.dtsi and ps.dtsi files after doing --get-hw-description ]

...
boot Petalinux
Device: zynq_sdhci
Manufacturer ID: 3
OEM: 5344
Name: SD08G
Tran Speed: 25000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
reading image.ub
7115128 bytes read in 1198 ms (5.7 MiB/s)
## Loading kernel from FIT Image at 01000000 ...
Using 'conf@1' configuration
Trying 'kernel@1' kernel subimage
Description: PetaLinux Kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x010000f0
Data Size: 7095968 Bytes = 6.8 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00008000
Entry Point: 0x00008000
Hash algo: crc32
Hash value: f5cf0d0c
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 01000000 ...
Using 'conf@1' configuration
Trying 'fdt@1' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x016c4874
Data Size: 17862 Bytes = 17.4 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 9039ad40
Verifying Hash Integrity ... crc32+ OK
Booting using the fdt blob at 0x16c4874
Uncompressing Kernel Image ... OK
Loading Device Tree to 07ff8000, end 07fff5c5 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 3.14.2-xilinx (root@ubuntu) (gcc version 4.8.1 (Sourcery CodeBench Lite 2013.11-53) ) #6 SMP PREEMPT Fri Aug 29 08:58:09 PDT 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Xilinx-ZC706-2014.2
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @eefd2000 s10752 r8192 d13824 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624
Kernel command line: console=ttyPS0,115200 earlyprintk
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: 1023464K/1048576K available (4835K kernel code, 310K rwdata, 1776K rodata, 3646K init, 5337K bss, 25112K reserved, 270336K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc067cf7c (6612 kB)
.init : 0xc067d000 - 0xc0a0ca00 (3647 kB)
.data &colon; 0xc0a0e000 - 0xc0a5b8a8 ( 311 kB)
.bss : 0xc0a5b8b4 - 0xc0f91d88 (5338 kB)
Preemptible hierarchical RCU implementation.
RCU lockdep checking is enabled.
Dump stacks of tasks blocking RCU-preempt GP.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
GIC CPU mask not found - kernel will fail to boot.
GIC CPU mask not found - kernel will fail to boot.
ps7-slcr mapped to f0002000
zynq_clock_init: clkc starts at f0002100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 3298534883328ns
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at /opt/Petalinux/petalinux-v2014.2-final/components/linux-kernel/xlnx-3.14/kernel/irq/irqdomain.c:277 irq_domain_associate+0x44/0x18c()
error: hwirq 0x2b is too large for GIC
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.14.2-xilinx #6
[<c0015658>] (unwind_backtrace) from [<c00119b4>] (show_stack+0x10/0x14)
[<c00119b4>] (show_stack) from [<c0490688>] (dump_stack+0x8c/0xd0)
[<c0490688>] (dump_stack) from [<c002295c>] (warn_slowpath_common+0x60/0x84)
[<c002295c>] (warn_slowpath_common) from [<c00229ac>] (warn_slowpath_fmt+0x2c/0x3c)
[<c00229ac>] (warn_slowpath_fmt) from [<c006da74>] (irq_domain_associate+0x44/0x18c)
[<c006da74>] (irq_domain_associate) from [<c006e224>] (irq_create_mapping+0x138/0x1d8)
[<c006e224>] (irq_create_mapping) from [<c006e374>] (irq_create_of_mapping+0xb0/0x104)
[<c006e374>] (irq_create_of_mapping) from [<c03bed30>] (irq_of_parse_and_map+0x24/0x2c)
[<c03bed30>] (irq_of_parse_and_map) from [<c06976ac>] (ttc_timer_init+0x4c/0x3b0)
[<c06976ac>] (ttc_timer_init) from [<c0697588>] (clocksource_of_init+0x48/0x88)
[<c0697588>] (clocksource_of_init) from [<c0680e60>] (time_init+0x1c/0x30)
[<c0680e60>] (time_init) from [<c067d98c>] (start_kernel+0x1fc/0x380)
[<c067d98c>] (start_kernel) from [<00008074>] (0x8074)
---[ end trace 3406ff24bd97382e ]---
ERROR: invalid interrupt number
------------[ cut here ]------------
kernel BUG at /opt/Petalinux/petalinux-v2014.2-final/components/linux-kernel/xlnx-3.14/drivers/clocksource/cadence_ttc_timer.c:489!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.14.2-xilinx #6
task: c0a196b0 ti: c0a0e000 task.ti: c0a0e000
PC is at ttc_timer_init+0x5c/0x3b0
LR is at ttc_timer_init+0x5c/0x3b0
pc : [<c06976bc>] lr : [<c06976bc>] psr: 600001d3
sp : c0a0ff68 ip : 00000001 fp : 00000000
r10: c0f82b98 r9 : c0a163c0 r8 : 00000000
r7 : eefe71b4 r6 : c0a5b8c0 r5 : 00000001 r4 : f0004000
r3 : c0a196b0 r2 : 00000000 r1 : c0a0fe78 r0 : 0000001f
Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
Control: 18c5387d Table: 0000404a DAC: 00000015
Process swapper/0 (pid: 0, stack limit = 0xc0a0e240)
Stack: (0xc0a0ff68 to 0xc0a10000)
ff60: a00001d3 ffffffff c0a196b0 a00001d3 a00001d3 eefe71b4
ff80: 00000003 c0a5b8c0 ffffffff c06a49d8 c0a163c0 ef7fce00 00000000 c0697588
ffa0: 00000000 c06ab11c 00000001 00000001 c0a0e000 c0680e60 00000002 c067d98c
ffc0: ffffffff ffffffff c067d570 00000000 00000000 c06a49d8 18c5387d c0a1640c
ffe0: c06a49d4 c0a1adbc 0000406a 413fc090 00000000 00008074 00000000 00000000
[<c06976bc>] (ttc_timer_init) from [<c0697588>] (clocksource_of_init+0x48/0x88)
[<c0697588>] (clocksource_of_init) from [<c0680e60>] (time_init+0x1c/0x30)
[<c0680e60>] (time_init) from [<c067d98c>] (start_kernel+0x1fc/0x380)
[<c067d98c>] (start_kernel) from [<00008074>] (0x8074)
Code: e2508000 1a000002 e59f0310 ebf7de9c (e7f001f2)
---[ end trace 3406ff24bd97382f ]---
Kernel panic - not syncing: Attempted to kill the idle task!

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
13,305 Views
Registered: ‎12-17-2007

Re: petalinux 2014.2 kernel panic

Jump to solution
If you're using XPS, you'll need to use a compatible version of PetaLinux. For XPS versions up to 14.7, that's PetaLinux 2013.10.
-------------------------------------------
this space intentionally left blank

View solution in original post

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
8,622 Views
Registered: ‎12-17-2007

Re: petalinux 2014.2 kernel panic

Jump to solution
Is there anything in your regular DTS (not just the DTSI files)? Did you customize the Zynq PS in the Vivado customization GUI? This looks pretty basic.
-------------------------------------------
this space intentionally left blank
0 Kudos
Xilinx Employee
Xilinx Employee
8,621 Views
Registered: ‎12-17-2007

Re: petalinux 2014.2 kernel panic

Jump to solution
Ninja edit: Can you confirm if you are using Vivado or XPS? PetaLinux 2014.2 is only compatible with Vivado 2014.2.
-------------------------------------------
this space intentionally left blank
0 Kudos
Visitor by_sauka1991
Visitor
8,599 Views
Registered: ‎08-31-2014

Re: petalinux 2014.2 kernel panic

Jump to solution
Hi, tmcdowe! Thank you for reply. Yes, I'm using XPS, not Vivado (I didn't know that petalinux 2014.2 only compatible with Vivado 2014.2).
And using XPS I have only enabled ttc0 (ttc is required for petalinux as it says in board_bring_up document) in PS, all other hardware configuration is default.

p.s. unfortunately, I can't post my .dts file, but it is exactly the same as default one ( that was in my petalinux structure after creating project from zc706 bsp).
0 Kudos
Xilinx Employee
Xilinx Employee
13,306 Views
Registered: ‎12-17-2007

Re: petalinux 2014.2 kernel panic

Jump to solution
If you're using XPS, you'll need to use a compatible version of PetaLinux. For XPS versions up to 14.7, that's PetaLinux 2013.10.
-------------------------------------------
this space intentionally left blank

View solution in original post

0 Kudos
Visitor jeremie
Visitor
7,940 Views
Registered: ‎11-20-2014

Re: petalinux 2014.2 kernel panic

Jump to solution

Hello,

I have the same error, but i'm using PetaLinux 2014.2 with Vivado 2014.3.1

 

 

 

______________________

WARNING: CPU: 0 PID: 0 at /opt/pkg/petalinux-v2014.2-final/components/linux-kernel/xlnx-3.14/kernel/irq/irqdomain.c:277 irq_domain_associate+0x44/0x18c()
 error: hwirq 0x2b is too large for GIC

 

kernel BUG at /opt/pkg/petalinux-v2014.2-final/components/linux-kernel/xlnx-3.14/drivers/clocksource/cadence_ttc_timer.c:489!
 Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM

 

Kernel panic - not syncing: Attempted to kill the idle task!

 

____________

 

Thank you !

0 Kudos
Highlighted
Visitor jeremie
Visitor
7,931 Views
Registered: ‎11-20-2014

Re: petalinux 2014.2 kernel panic

Jump to solution

I tried to install Vivado 2014.2, and indeed, PetaLinux 2014.2 works with Vivado 2014.2 only.

 

I thought naively the following versions of Vivado would have worked fine.

That was my mistake.

0 Kudos