AnsweredAssumed Answered

Kernel for Zync zc702 board fails to boot (crash, hang)

Question asked by milosoftware on Nov 7, 2012
Latest reply on Jun 18, 2013 by larsc

I've compiled the ADI kernel, building the "xcomm_zynq" branch from "git://github.com/analogdevicesinc/linux.git"

 

When attempting to boot this kernel, I get the following output, and it hangs or crashes, please help:

 

U-Boot 2012.04.01-00304-g7639205-dirty (Nov 02 2012 - 15:05:09)

 

DRAM:  1 GiB

WARNING: Caches not enabled

MMC:   SDHCI: 0

Using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   zynq_gem

Hit any key to stop autoboot:  0

zynq-uboot> setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait

zynq-uboot> run sdboot

Copying Linux from SD to RAM...

Device: SDHCI

Manufacturer ID: 3

OEM: 5344

Name: SU08G

Tran Speed: 25000000

Rd Block Len: 512

SD version 2.0

High Capacity: Yes

Capacity: 7.4 GiB

Bus Width: 4-bit

reading uImage

 

2907704 bytes read

reading devicetree.dtb

 

16648 bytes read

## Booting kernel from Legacy Image at 000079c0 ...

   Image Name:   Linux-3.3.0-yocto-standard

   Created:      2012-11-06  14:54:18 UTC

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2907640 Bytes = 2.8 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x02a00000

   Loading Kernel Image ... OK

OK

   Loading Device Tree to 1fff8000, end 1ffff107 ... OK

 

Starting kernel ...

 

Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0

Linux version 3.3.0-yocto-standard (mike@paradigit) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Tue Nov 6 15:54:09 CET 2012

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Xilinx Zynq Platform, model: Xilinx Zynq ZC702

bootconsole [earlycon0] enabled

Memory policy: ECC disabled, Data cache writealloc

BUG: mapping for 0xf8f00000 at 0xfe00c000 out of vmalloc space

BUG: mapping for 0xe0001000 at 0xfe001000 out of vmalloc space

BUG: mapping for 0xffff1000 at 0xfe200000 out of vmalloc space

PERCPU: Embedded 7 pages/cpu @c123e000 s6400 r8192 d14080 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 256000

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait

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: 240MB 768MB = 1008MB total

Memory: 1012604k/1012604k available, 35972k reserved, 303104K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xee000000 - 0xfd000000   ( 240 MB)

    lowmem  : 0xc0000000 - 0xed800000   ( 728 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc04c2ee4   (4844 kB)

      .init : 0xc04c3000 - 0xc04e7900   ( 147 kB)

      .data : 0xc04e8000 - 0xc051fc80   ( 224 kB)

       .bss : 0xc051fca4 - 0xc0a283ab   (5154 kB)

Preemptible hierarchical RCU implementation.

        RCU lockdep checking is enabled.

        Verbose stalled-CPUs detection is disabled.

NR_IRQS:128

xlnx,ps7-ttc-1.00.a #0 at 0xee000000, irq=43

Console: colour dummy device 80x30

Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar

... MAX_LOCKDEP_SUBCLASSES:  8

... MAX_LOCK_DEPTH:          48

... MAX_LOCKDEP_KEYS:        8191

... CLASSHASH_SIZE:          4096

... MAX_LOCKDEP_ENTRIES:     16384

... MAX_LOCKDEP_CHAINS:      32768

... CHAINHASH_SIZE:          16384

memory used by lock dependency info: 3695 kB

per task-struct memory footprint: 1152 bytes

Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

smp_twd: clock not found: -2

Calibrating local timer... 399.24MHz.

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

Setting up static identity map for 0x35f7d0 - 0x35f804

CPU1: Booted secondary processor

CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

Brought up 2 CPUs

SMP: Total of 2 processors activated (3188.32 BogoMIPS).

devtmpfs: initialized

------------[ cut here ]------------

WARNING: at /home/mike/zynq/build/tmp-eglibc/work/zynq_zc702-oe-linux-gnueabi/linux-adi-3.6+git1+0f8dd21d5a75da378066468228eba

03333f2b4cf-r0/linux/arch/arm/mm/dma-mapping.c:198 consistent_init+0x70/0x104()

Modules linked in:

[<c0013004>] (unwind_backtrace+0x0/0xe0) from [<c001f3b8>] (warn_slowpath_common+0x4c/0x64)

[<c001f3b8>] (warn_slowpath_common+0x4c/0x64) from [<c001f3e8>] (warn_slowpath_null+0x18/0x1c)

[<c001f3e8>] (warn_slowpath_null+0x18/0x1c) from [<c04c5bcc>] (consistent_init+0x70/0x104)

[<c04c5bcc>] (consistent_init+0x70/0x104) from [<c0008594>] (do_one_initcall+0x90/0x164)

[<c0008594>] (do_one_initcall+0x90/0x164) from [<c04c3828>] (kernel_init+0x8c/0x12c)

[<c04c3828>] (kernel_init+0x8c/0x12c) from [<c000e470>] (kernel_thread_exit+0x0/0x8)

---[ end trace 1b75b31a2719ed1c ]---

------------[ cut here ]------------

WARNING: at /home/mike/zynq/build/tmp-eglibc/work/zynq_zc702-oe-linux-gnueabi/linux-adi-3.6+git1+0f8dd21d5a75da378066468228eba

03333f2b4cf-r0/linux/arch/arm/mm/dma-mapping.c:198 consistent_init+0x70/0x104()

Modules linked in:

[<c0013004>] (unwind_backtrace+0x0/0xe0) from [<c001f3b8>] (warn_slowpath_common+0x4c/0x64)

[<c001f3b8>] (warn_slowpath_common+0x4c/0x64) from [<c001f3e8>] (warn_slowpath_null+0x18/0x1c)

[<c001f3e8>] (warn_slowpath_null+0x18/0x1c) from [<c04c5bcc>] (consistent_init+0x70/0x104)

[<c04c5bcc>] (consistent_init+0x70/0x104) from [<c0008594>] (do_one_initcall+0x90/0x164)

[<c0008594>] (do_one_initcall+0x90/0x164) from [<c04c3828>] (kernel_init+0x8c/0x12c)

[<c04c3828>] (kernel_init+0x8c/0x12c) from [<c000e470>] (kernel_thread_exit+0x0/0x8)

---[ end trace 1b75b31a2719ed1d ]---

NET: Registered protocol family 16

L310 cache controller enabled

l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72360000, Cache size: 524288 B

registering platform device 'pl330' id 0

registering platform device 'arm-pmu' id 0

hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 4 bytes.

MIO pin 47 not assigned(00001220)

xslcr xslcr.0: at 0xF8000000 mapped to 0xEE008000

bio: create slab <bio-0> at 0

gpiochip_add: registered GPIOs 0 to 245 on device: xgpiops

xgpiops e000a000.gpio: gpio at 0xe000a000 mapped to 0xee00a000

Outcomes