AnsweredAssumed Answered

Kernel panic - not syncing: Attempted to kill init! on t1042 based board

Question asked by Chandra Shekhar on Jul 23, 2014
Latest reply on Jul 24, 2014 by Scott Wood

Hi Team,

We are booting linux kernel on our customised T1042 based board. We are seeing kernel crash at initialization. below is the log message,

 

 

bootm 0x3000000 0x7000000 0x5000000
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-3.8.13-rt9-QorIQ-SDK-T1040
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    4118920 Bytes = 3.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 07000000 ...
   Image Name:   fsl-image-core-t1042rdb-20140625
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    26491645 Bytes = 25.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 05000000
   Booting using the fdt blob at 0x5000000
   Uncompressing Kernel Image ... OK

image_setup_linux
   Loading Ramdisk to 2e6bc000, end 2ffffafd ... OK
   Loading Device Tree to 03fe2000, end 03ffef5a ... OK

SPAG : ft_cpu_setup, 642
Single Source Clock Configuration

fdt_portal,96, addr : 0xfffffff3

fdt_portal,96, addr : 0xfffffff3
Warning: MAC address for l2switch not found
Using T104x RDB machine description
Memory CAM mapping: 256/256/256 Mb, residual: 3328Mb
Linux version 3.8.13-rt9-QorIQ-SDK-T1040-BSP0.2 (asr907@asr907-ThinkStation-S20) (gcc version 4.7.3 (GCC) ) #1 SMP Thu Jun 26 03:41:01 IST 2014
Found initrd at 0xee6bc000:0xeffffafd
No /soc@ffb000000/qman@318000 property 'fsl,qman-fqd', using memblock_alloc(0000000000400000)
No /soc@ffb000000/qman@318000 property 'fsl,qman-pfdr', using memblock_alloc(0000000002000000)
Qman ver:0a01,03,01
No /soc@ffb000000/bman@31a000 property 'fsl,bman-fbpr', using memblock_alloc(0000000001000000)
Bman ver:0a02,02,01
pme: No /soc@ffb000000/pme@316000 property 'fsl,pme-pdsr', using memblock_alloc(0x0000000001000000)
pme: No /soc@ffb000000/pme@316000 property 'fsl,pme-sre', using memblock_alloc(0x0000000000a00000)
No USDPAA memory, no 'usdpaa_mem' bootarg
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
Freescale RCPM driver
T104x RDB board from Freescale Semiconductor
arch: exit
Zone ranges:
  DMA      [mem 0x00000000-0x2fffffff]
  Normal   empty
  HighMem  [mem 0x30000000-0xffffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0xffffffff]
MMU: Allocated 1088 bytes of context maps for 255 contexts
PERCPU: Embedded 8 pages/cpu @c2913000 s9024 r8192 d15552 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1040384
Kernel command line: ${bootargs} root /dev/ram0 rw console=ttyS0,9600
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: 3979328k/4194304k available (8464k kernel code, 214976k reserved, 316k data, 431k bss, 268k init)
Kernel virtual memory layout:
  * 0xfff5f000..0xfffff000  : fixmap
  * 0xffc00000..0xffe00000  : highmem PTEs
  * 0xffbfa000..0xffc00000  : early ioremap
  * 0xf1000000..0xffbfa000  : vmalloc & ioremap
Hierarchical RCU implementation.
        RCU debugfs-based tracing is enabled.
        RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffb040000, max 4 CPUs
mpic: ISU size: 512, shift: 9, mask: 1ff
mpic: Initializing for 512 sources
clocksource: timebase mult[10000000] shift[23] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
mpic: requesting IPIs...
e500 family performance monitor hardware support registered
smp_85xx_kick_cpu: timeout waiting for core 1 to ack
smp: failed starting cpu 1 (rc -2)
smp_85xx_kick_cpu: timeout waiting for core 2 to ack
smp: failed starting cpu 2 (rc -2)
smp_85xx_kick_cpu: timeout waiting for core 3 to ack
smp: failed starting cpu 3 (rc -2)
Brought up 1 CPUs
devtmpfs: initialized
NET: Registered protocol family 16

Found FSL PCI host bridge at 0x0000000ffb240000. Firmware bus number: 0->0
PCI host bridge /pcie@ffb240000 (primary) ranges:
MEM 0x0000000c00000000..0x0000000c0fffffff -> 0x00000000e0000000
  IO 0x0000000ff8000000..0x0000000ff800ffff -> 0x0000000000000000
/pcie@ffb240000: PCICSRBAR @ 0xff000000
/pcie@ffb240000: Setup 64-bit PCI DMA window
/pcie@ffb240000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.
/pcie@ffb240000: DMA window size is 0xe0000000
EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffb240000.pcie' (INTERRUPT)
MPC85xx_edac acquired irq 20 for PCI Err
MPC85xx_edac PCI err registered
Found FSL PCI host bridge at 0x0000000ffb250000. Firmware bus number: 0->9
PCI host bridge /pcie@ffb250000  ranges:
MEM 0x0000000c10000000..0x0000000c1fffffff -> 0x00000000e0000000
  IO 0x0000000ff8010000..0x0000000ff801ffff -> 0x0000000000000000
/pcie@ffb250000: PCICSRBAR @ 0xff000000
/pcie@ffb250000: Setup 64-bit PCI DMA window
/pcie@ffb250000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.
/pcie@ffb250000: DMA window size is 0xe0000000
EDAC PCI1: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffb250000.pcie' (INTERRUPT)
MPC85xx_edac acquired irq 21 for PCI Err
MPC85xx_edac PCI err registered
Found FSL PCI host bridge at 0x0000000ffb260000. Firmware bus number: 0->0
PCI host bridge /pcie@ffb260000  ranges:
MEM 0x0000000c20000000..0x0000000c2fffffff -> 0x00000000e0000000
  IO 0x0000000ff8020000..0x0000000ff802ffff -> 0x0000000000000000
/pcie@ffb260000: PCICSRBAR @ 0xff000000
/pcie@ffb260000: Setup 64-bit PCI DMA window
/pcie@ffb260000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.
/pcie@ffb260000: DMA window size is 0xe0000000
EDAC PCI2: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffb260000.pcie' (INTERRUPT)
MPC85xx_edac acquired irq 22 for PCI Err
MPC85xx_edac PCI err registered
Found FSL PCI host bridge at 0x0000000ffb270000. Firmware bus number: 0->0
PCI host bridge /pcie@ffb270000  ranges:
MEM 0x0000000c30000000..0x0000000c3fffffff -> 0x00000000e0000000
  IO 0x0000000ff8030000..0x0000000ff803ffff -> 0x0000000000000000
/pcie@ffb270000: PCICSRBAR @ 0xff000000
/pcie@ffb270000: Setup 64-bit PCI DMA window
/pcie@ffb270000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.
/pcie@ffb270000: DMA window size is 0xe0000000
EDAC PCI3: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffb270000.pcie' (INTERRUPT)
MPC85xx_edac acquired irq 23 for PCI Err
MPC85xx_edac PCI err registered
software IO TLB [mem 0x03ff4000-0x07ff4000] (64MB) mapped at [c3ff4000-c7ff3fff]
PCI: Probing PCI hardware
fsl-pci ffb240000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc0fffffff] (bus address [0xe0000000-0xefffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
fsl-pci ffb250000.pcie: PCI host bridge to bus 0001:02
pci_bus 0001:02: root bus resource [io  0x60000-0x6ffff] (bus address [0x0000-0xffff])
pci_bus 0001:02: root bus resource [mem 0xc10000000-0xc1fffffff] (bus address [0xe0000000-0xefffffff])
pci_bus 0001:02: root bus resource [bus 02-ff]

.

.

.

after some more messages

.

.

.

.

bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Bman err interrupt handler present
Bman portal initialised, cpu 0
Bman portal initialised, cpu 1
Bman portal initialised, cpu 2
Bman portal initialised, cpu 3
Bman portals initialised
Qman err interrupt handler present
Qman portal initialised, cpu 0
Qman portal initialised, cpu 1
Qman portal initialised, cpu 2
Qman portal initialised, cpu 3
Qman portals initialised
Bman: BPID allocator includes range 32:32
Qman: FQID allocator includes range 256:512
Qman: FQID allocator includes range 32768:32768
Qman: CGRID allocator includes range 0:256
Qman: pool channel allocator includes range 1025:15
Switching to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
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.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 25872k freed
fsl-ifc ffb124000.localbus: Freescale Integrated Flash Controller
audit: initializing netlink socket (disabled)
type=2000 audit(1.724:1): initialized
bounce pool size: 64 pages
HugeTLB registered 1 MB page size, pre-allocated 0 pages
HugeTLB registered 4 MB page size, pre-allocated 0 pages
HugeTLB registered 16 MB page size, pre-allocated 0 pages
HugeTLB registered 64 MB page size, pre-allocated 0 pages
HugeTLB registered 256 MB page size, pre-allocated 0 pages
HugeTLB registered 1 GB page size, pre-allocated 0 pages
Machine check in kernel mode.
Caused by (from MCSR=8000): Load Error Report
Oops: Machine check, sig: 7 [#1]
SMP NR_CPUS=8 T104x RDB
Modules linked in:
NIP: c024b950 LR: c01802d8 CTR: 00000000
REGS: ee6a7f10 TRAP: 0204   Not tainted  (3.8.13-rt9-QorIQ-SDK-T1040-BSP0.2)
MSR: 00029002 <CE,EE,ME>  CR: 84000048  XER: 00000000
TASK = e80669b0[1] 'swapper/0' THREAD: e8076000 CPU: 0
GPR00: c01802b8 e8077ea0 e80669b0 00000000 0000000f e8007fb8 e80b1340 00000001
GPR08: f11ed52c f11ed000 00000000 c08809c0 44000022 00000000 c0002670 00000000
GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000dd
GPR24: c0890000 c0890000 00000000 c0816bbc e8076000 c08b0000 00000000 c08b2c7c
NIP [c024b950] zlib_inflateReset+0x40/0x90
LR [c01802d8] cramfs_uncompress_init+0x78/0xa0
Call Trace:
[e8077ea0] [c01802b8] cramfs_uncompress_init+0x58/0xa0 (unreliable)
[e8077ec0] [c0816bcc] init_cramfs_fs+0x10/0x4c
[e8077ed0] [c00020a8] do_one_initcall+0x148/0x1b0
[e8077f00] [c08018e8] kernel_init_freeable+0x12c/0x1e4
[e8077f30] [c0002684] kernel_init+0x14/0x110
[e8077f40] [c000f648] ret_from_kernel_thread+0x64/0x6c
Instruction dump:
41de0070 39400000 38e00001 9149001c 3909052c 90e30028 91430014 91430008
91430018 38600000 91490000 91490004 <80c90020> 9149000c 91490034 7ce73030
---[ end trace 47406ac656220eeb ]---

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

Rebooting in 180 seconds..      

 

 

Are we missing some configuration/parameter passing from u-boot?  On further debug found that it is crashing while executing  below statement from "lib/zlib_inflate/inflate.c"

state->wsize = 1U << state->wbits;

 

Any suggestions for the above failure?

 

Regards,

Chandra

Outcomes