AnsweredAssumed Answered

Kernel panic - not syncing: Attempted to kill init!

Question asked by Eugene Volkov on Apr 6, 2015
Latest reply on Apr 7, 2015 by Eugene Volkov

Hello!

I get error in kernel boot process. My custom board based on i.mx6 Solo and 256MB DDR3. I boot kernel from NFS server, in my virtual machine.

boot screen :

 

U-Boot 2014.04 (Apr 03 2015 - 20:43:35)

 

 

CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz

CPU:   Temperature 44 C, calibration data: 0x56f4c77d

Reset cause: POR

Board: MX6-Sabreauto revA

I2C:   ready

DRAM:  256 MiB

NAND:  256 MiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1

Display: HDMI (640x480)

In:    serial

Out:   serial

Err:   serial

mmc1 is current device

Net:   FEC [PRIME]

Normal Boot

Hit any key to stop autoboot:  0

mmc1 is current device

reading boot.scr

** Unable to read file boot.scr **

reading zImage

** Unable to read file zImage **

Booting from net ...

FEC Waiting for PHY auto negotiation to complete. done

Using FEC device

TFTP from server 192.168.0.100; our IP address is 192.168.0.102

Filename 'zImage'.

Load address: 0x12000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ############################################

         612.3 KiB/s

done

Bytes transferred = 5545424 (549dd0 hex)

Using FEC device

TFTP from server 192.168.0.100; our IP address is 192.168.0.102

Filename 'zImage-imx6dl-sabreauto.dtb'.

Load address: 0x18000000

Loading: #########

         596.7 KiB/s

done

Bytes transferred = 42222 (a4ee hex)

Kernel image @ 0x12000000 [ 0x000000 - 0x549dd0 ]

## Flattened Device Tree blob at 18000000

   Booting using the fdt blob at 0x18000000

   Using Device Tree in place at 18000000, end 1800d4ed

 

 

Starting kernel ...

 

 

Booting Linux on physical CPU 0x0

Linux version 3.10.53-1.1.0_ga+g496fbe0 (eugene@imx) (gcc version 4.8.2 (GCC) ) #1 SMP PREEMPT Mon Mar 23 00:47:52 EET 2                                      015

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

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

Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 DualLite/Solo SABRE Automotive Board

cma: CMA: failed to reserve 320 MiB

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @80f94000 s8960 r8192 d15616 u32768

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

Kernel command line: console=ttymxc0,115200 nosmp root=/dev/nfs ip={ipaddr} nfsroot=192.168.0.100:/home/eugene/my_sabree                                      _auto_base,v3,tcp video=mxcfb0:dev=hdmi,640x480M@60,if=RGB24 fbmem=10M fb0base=0x27b00000 vmalloc=400M

PID hash table entries: 1024 (order: 0, 4096 bytes)

Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

Memory: 256MB = 256MB total

Memory: 245896k/245896k available, 16248k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0x90800000 - 0xff000000   (1768 MB)

    lowmem  : 0x80000000 - 0x90000000   ( 256 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .text : 0x80008000 - 0x80c71754   (12710 kB)

      .init : 0x80c72000 - 0x80cbe300   ( 305 kB)

      .data : 0x80cc0000 - 0x80d178c0   ( 351 kB)

       .bss : 0x80d178c0 - 0x80d809ac   ( 421 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Preemptible hierarchical RCU implementation.

        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.

NR_IRQS:16 nr_irqs:16 16

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32050000, Cache size: 524288 B

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

CPU identified as i.MX6DL, silicon rev 1.1

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

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

Setting up static identity map for 0x80685698 - 0x806856f0

Brought up 1 CPUs

SMP: Total of 1 processors activated (1581.05 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

pinctrl core: initialized pinctrl subsystem

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: failed to allocate 256 KiB pool for atomic coherent allocation

Use WDOG1 as reset source

syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered

vdd1p1: 800 <--> 1375 mV at 1125 mV

vdd3p0: 2800 <--> 3150 mV at 3000 mV

vdd2p5: 2000 <--> 2750 mV at 2425 mV

cpu: 725 <--> 1450 mV at 1150 mV

vddpu: 725 <--> 1450 mV

vddsoc: 725 <--> 1450 mV at 1175 mV

syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered

syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered

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

hw-breakpoint: maximum watchpoint size is 4 bytes.

imx6dl-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver

bio: create slab <bio-0> at 0

mxs-dma 110000.dma-apbh: initialized

cs42888_supply: 3300 mV

vio1: 3300 mV

vio2: 3300 mV

vd: 3300 mV

va: 5000 mV

platform usb_h1_vbus.26: Driver reg-fixed-voltage requests probe deferral

platform usb_otg_vbus.27: Driver reg-fixed-voltage requests probe deferral

3P3V: 3300 mV

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

pca953x 1-0030: failed reading register

pca953x: probe of 1-0030 failed with error -5

pca953x 1-0032: failed reading register

pca953x: probe of 1-0032 failed with error -5

pca953x 1-0034: failed reading register

pca953x: probe of 1-0034 failed with error -5

i2c i2c-1: IMX I2C adapter registered

Linux video capture interface: v2.00

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

PTP clock support registered

imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Initialized.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

pureg-dummy: no parameters

Switching to clocksource mxc_timer1

cfg80211: Calling CRDA to update world regulatory domain

NET: Registered protocol family 2

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP: reno registered

UDP hash table entries: 256 (order: 1, 8192 bytes)

UDP-Lite hash table entries: 256 (order: 1, 8192 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.

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

Bus freq driver module loaded

futex hash table entries: 256 (order: 2, 16384 bytes)

VFS: Disk quotas dquot_6.5.2

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

fuse init (API version 7.22)

msgmni has been set to 480

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

imx-weim 21b8000.weim: WEIM driver registered.

MIPI DSI driver module loaded

mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0x1a:0xa0:0xc1

fbcvt: 640x480@60: CVT Name - .307M3

mxc_sdc_fb fb.19: registered mxc display driver hdmi

mxc_sdc_fb fb.19: Unable to allocate framebuffer memory

detected fb_set_par error, error code: -12

mxc_sdc_fb fb.19: Error fb_set_var ret:-12

mxc_sdc_fb: probe of fb.19 failed with error -12

imx_epdc_fb: probe of 20f4000.epdc failed with error -12

imx-sdma 20ec000.sdma: no iram assigned, using external mem

imx-sdma 20ec000.sdma: initialisation failed with -12

imx-sdma: probe of 20ec000.sdma failed with error -12

pfuze100-regulator 0-0008: unrecognized pfuze chip ID!

pfuze100-regulator: probe of 0-0008 failed with error -5

Serial: IMX driver

2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

console [ttymxc0] enabled

serial: Freescale lpuart driver

imx sema4 driver is registered.

[drm] Initialized drm 1.1.0 20060810

[drm] Initialized vivante 1.0.0 20120216 on minor 0

brd: module loaded

loop: module loaded

CAN device driver interface

Unable to handle kernel NULL pointer dereference at virtual address 00000000

pgd = 80004000

[00000000] *pgd=00000000

Internal error: Oops: 5 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.53-1.1.0_ga+g496fbe0 #1

task: 8c05a000 ti: 8c05c000 task.ti: 8c05c000

PC is at bitmap_clear+0xa4/0xc4

LR is at __arm_dma_free.isra.19+0xd0/0x210

pc : [<8027dc10>]    lr : [<80017c00>]    psr: 20000193

sp : 8c05ddf0  ip : ffffffff  fp : 00000000

r10: 00010000  r9 : 00000000  r8 : 80d81000

r7 : fffffff0  r6 : 00000010  r5 : 00000000  r4 : ffffffff

r3 : 00000010  r2 : 0000ffff  r1 : 00000000  r0 : 00000000

Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c53c7d  Table: 1000404a  DAC: 00000015

Process swapper/0 (pid: 1, stack limit = 0x8c05c238)

Stack: (0x8c05ddf0 to 0x8c05e000)

dde0:                                     80000113 000effff 00000000 80ccce18

de00: 00000647 00000000 803acef0 0000065f 80ccce30 8c29d000 00000001 8c29d4e4

de20: 00001020 0000101c 0000100c 00000000 80ccce30 803ad144 00000000 80120394

de40: 8c0d0810 8c29d4c0 80d5ec18 8c0d0800 80d6e92c 80cf4520 8c243c40 00000001

de60: 00000001 00000000 8c0d1d40 00000000 8c0d0810 80d6c590 8c0d0810 00000000

de80: 80cf4480 00000000 80ca0778 80caff6c 00000000 80313334 8031331c 80312130

dea0: 8c0d0810 80cf4480 8c0d0844 00000000 80d178c0 8031233c 00000000 80cf4480

dec0: 803122b0 80310634 8c02e55c 8c0d20b4 80cf4480 8c264c80 80ce84c0 803118dc

dee0: 80bcf54c 80cf4480 00000006 80cf4480 00000006 80d178c0 80d178c0 80312918

df00: 00000000 80cbafa0 00000006 80008704 00000103 80047e94 80caff44 8c05c010

df20: 80bd5260 80c3c5e8 00000006 00000006 80047700 80047758 00000000 80cbafa0

df40: 00000006 80d178c0 80d178c0 80c724dc 00000103 80caff6c 80caff60 80c72be0

df60: 00000006 00000006 80c724dc f339368e 7bb94f8e 73f95fcc 8c05df9c 00000000

df80: 80679540 00000000 00000000 00000000 00000000 00000000 00000000 80679548

dfa0: 8c05c000 00000000 80679540 8000e118 00000000 00000000 00000000 00000000

dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 737d6fdd 3339b7ee

[<8027dc10>] (bitmap_clear+0xa4/0xc4) from [<00000647>] (0x647)

Code: 10822003 1202201f 10633002 11e02314 (e5903000)

---[ end trace 476985b9f3760c44 ]---

note: swapper/0[1] exited with preempt_count 1

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

 

 

i see that CMA:  320 MiB but size my DDR - 256 MB. Цhere can I change this value?

Unable to allocate framebuffer memory     - again a problem with the placement of memory. I set in netargs  fbmem=10M, but this not affect.

Outcomes