AnsweredAssumed Answered

P2020 Linux crash while booting

Question asked by aone wan on Apr 8, 2015
Latest reply on Apr 9, 2015 by Scott Wood

I got linux crash while kernel booting,the board is  custom according to P2020DS,  I used LTIB to compile the u-boot, uImage and rootFS according to P2020RDB.Thanks.

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

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.32.13

   Created:      2015-04-08   8:38:29 UTC

   Image Type:   PowerPC Linux Kernel Image (gzip compressed)

   Data Size:    1933527 Bytes =  1.8 MB

   Load Address: 00000000

   Entry Point:  00000000

   Verifying Checksum ... OK

## Loading init Ramdisk from Legacy Image at 02000000 ...

   Image Name:   uboot ext2 ramdisk rootfs

   Created:      2015-04-08   1:33:10 UTC

   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)

   Data Size:    6496718 Bytes =  6.2 MB

   Load Address: 00000000

   Entry Point:  00000000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 00c00000

   Booting using the fdt blob at 0xc00000

   Uncompressing Kernel Image ... OK

   Loading Ramdisk to 2f9cd000, end 2ffff1ce ... OK

Unable to update property :mac-address, err=FDT_ERR_BADPATH

Unable to update property :local-mac-address, err=FDT_ERR_BADPATH

WARNING: could not find 1588 compatible node fsl,gianfar-ptp-timer: FDT_ERR_NOTFOUND.

Using P2020 RDB machine description

Only using first contiguous memory region

Memory CAM mapping: 256/256/256 Mb, residual: 1280Mb

Linux version 2.6.32.13 (wanrenyong@localhost.localdomain) (gcc version 4.3.2 (GCC) ) #27 SMP Wed Apr 8 16:38:27 CST 2015

Found initrd at 0xef9cd000:0xeffff1ce

CPU maps initialized for 1 thread per core

bootconsole [udbg0] enabled

setup_arch: bootmem

mpc85xx_rdb_setup_arch()

MPC85xx RDB board from Freescale Semiconductor

arch: exit

Zone PFN ranges:

  DMA      0x00000000 -> 0x00030000

  Normal   0x00030000 -> 0x00030000

  HighMem  0x00030000 -> 0x00080000

Movable zone start PFN for each node

early_node_map[1] active PFN ranges

    0: 0x00000000 -> 0x00080000

MMU: Allocated 1088 bytes of context maps for 255 contexts

PERCPU: Embedded 8 pages/cpu @c1c13000 s12072 r8192 d12504 u65536

pcpu-alloc: s12072 r8192 d12504 u65536 alloc=16*4096

pcpu-alloc: [0] 0 [0] 1

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

Kernel command line: root=/dev/ram rw console=ttyS0,115200 ramdisk_size=200000

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: 2068076k/2097152k available (4024k kernel code, 28204k reserved, 196k data, 240k bss, 216k init)

Kernel virtual memory layout:

  * 0xfffe0000..0xfffff000  : fixmap

  * 0xff800000..0xffc00000  : highmem PTEs

  * 0xff7fe000..0xff800000  : early ioremap

  * 0xf1000000..0xff7fe000  : vmalloc & ioremap

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

NR_IRQS:512

mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe40000, max 2 CPUs

mpic: ISU size: 256, shift: 8, mask: ff

mpic: Initializing for 256 sources

clocksource: timebase mult[5000000] shift[22] registered

Console: colour dummy device 80x25

Mount-cache hash table entries: 512

ftrace: allocating 9366 entries in 28 pages

mpic: requesting IPIs ...

Processor 1 found.

Brought up 2 CPUs

            

bio: create slab <bio-0> at 0

SCSI subsystem initialized

Switching to clocksource timebase

Trying to unpack rootfs image as initramfs...

rootfs image is not initramfs (no cpio magic); looks like an initrd

Freeing initrd memory: 6344k freed

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

kernel BUG at mm/vmscan.c:2453!

Oops: Exception in kernel mode, sig: 5 [#1]

SMP NR_CPUS=2 P2020 RDB

Modules linked in:

NIP: c00c2ec4 LR: c00c2ea0 CTR: c0041460

REGS: ef455eb0 TRAP: 0700   Not tainted  (2.6.32.13)

MSR: 00029000 <EE,ME,CE>  CR: 22244044  XER: 20000000

TASK = ef458000[1] 'swapper' THREAD: ef454000 CPU: 0

GPR00: 00000001 ef455f60 ef458000 fffffdff ef4584f0 00000000 00000000 00000001

GPR08: ef454040 c0420000 c041d9c0 ef455f60 42244048 2cdb20e0 7ff90100 00000000

GPR16: 00000000 7ff8405c 7ff8405c 7ffb1268 00000000 00000000 00000000 00000000

GPR24: c03e0000 00000000 c03c86c8 c0420000 00000000 c04060a0 fffffdff ef455f60

NIP [c00c2ec4] kswapd_run+0x80/0xc4

LR [c00c2ea0] kswapd_run+0x5c/0xc4

Call Trace:

[ef455f60] [c00c2ea0] kswapd_run+0x5c/0xc4 (unreliable)

[ef455f80] [c03c86e8] kswapd_init+0x20/0x3c

[ef455f90] [c0001dd8] do_one_initcall+0x4c/0x224

[ef455fc0] [c03b8418] kernel_init+0x190/0x204

[ef455ff0] [c0011b18] kernel_thread+0x4c/0x68

Instruction dump:

7f86e378 4cc63182 4bfaba99 3800f000 7f830040 7c7e1b78 409d0038 3d20c042

907d0e54 8009dbe0 7c000034 5400d97e <0f000000> 3c60c037 7f84e378 386397ec

---[ end trace 31fd0ba7d8756001 ]---

Kernel panic - not syncing: Attempted to kill init!

Call Trace:

[ef455c60] [c000805c] show_stack+0x70/0x1e0 (unreliable)

[ef455cb0] [c030f05c] dump_stack+0x2c/0x44

[ef455cc0] [c030f114] panic+0xa0/0x190

[ef455d10] [c0050970] do_exit+0x508/0x668

[ef455d60] [c000edb0] kernel_bad_stack+0x0/0x68

[ef455d90] [c000f0a0] _exception+0x104/0x1b8

[ef455e80] [c000f788] program_check_exception+0xa4/0x5f0

[ef455ea0] [c00123b4] ret_from_except_full+0x0/0x4c

[ef455f60] [c00c2ea0] kswapd_run+0x5c/0xc4

[ef455f80] [c03c86e8] kswapd_init+0x20/0x3c

[ef455f90] [c0001dd8] do_one_initcall+0x4c/0x224

[ef455fc0] [c03b8418] kernel_init+0x190/0x204

[ef455ff0] [c0011b18] kernel_thread+0x4c/0x68

Rebooting in 180 seconds..

Outcomes