IMX6ul boot fail: kernel panic -- not syncing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6ul boot fail: kernel panic -- not syncing

2,197 Views
zhanglutong
Contributor I

Hi Everyone,

I am struggling with this problem:

  • platform:

imx6ul boots from mmc controlled SD card.

  • Problem:

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

  • booting process

  • u-boot

U-Boot 2016.03-mys-6ulx+ga175019 (Oct 16 2019 - 05:24:34 -0400)

CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 105C) at 48C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C: ready
DRAM: 256 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc0 is current device
Net: FEC0
Error: FEC0 address not set.

Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6821384 bytes read in 1145 ms (5.7 MiB/s)
Booting from mmc ...
reading mys-imx6ul-14x14-evk.dtb
36856 bytes read in 26 ms (1.4 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x681608 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300bff7
Modify /soc/aips-bus@02100000/sim@0218c000:status disabled
ft_system_setup for mx6

  • kernel

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.1.15-1.2.0+g2345cf9 (luz211@CubeUbt14) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Wed Oct 16 05:19:41 EDT 2019
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
Reserved memory: failed to allocate memory for node 'linux,cma'
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @8fdd2000 s16908 r8192 d24052 u49152
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
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: 246720K/262144K available (8597K kernel code, 440K rwdata, 3020K rodata, 428K init, 443K bss, 15424K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0x90800000 - 0xff000000 (1768 MB)
lowmem : 0x80000000 - 0x90000000 ( 256 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80b608f0 (11619 kB)
.init : 0x80b61000 - 0x80bcc000 ( 428 kB)
.data : 0x80bcc000 - 0x80c3a0a0 ( 441 kB)
.bss : 0x80c3d000 - 0x80cabd40 ( 444 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
mxc_clocksource_init 24000000
Switching to timer-based delay loop, resolution 41ns
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80008280 - 0x800082d8
Brought up 1 CPUs
SMP: Total of 1 processors activated (48.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
failed to find ocotp node
failed to find ocotp node
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
mxs-dma 1804000.dma-apbh: initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA
media: Linux media interface: v0.10
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
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.20
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
Switched to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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.
imx rpmsg driver is registered.
imx_busfreq soc:busfreq: busfreq_probe failed to get busfreq clk for imx6ull/sl.
imx_busfreq: probe of soc:busfreq failed with error -22
Bus freq driver module loaded
futex hash table entries: 256 (order: 2, 16384 bytes)
VFS: Disk quotas dquot_6.6.0
VFS: 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.23)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight supply power not found, using dummy regulator
MIPI DSI driver module loaded
MIPI DSI driver module loaded
21c8000.lcdif supply lcd not found, using dummy regulator
mxsfb 21c8000.lcdif: failed to find mxc display driver
mxsfb 21c8000.lcdif: initialized
imx-sdma 20ec000.sdma: no event needs to be remapped
imx-sdma 20ec000.sdma: loaded firmware 3.3
imx-sdma 20ec000.sdma: initialized
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 232, base_baud = 5000000) is a IMX
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
flexcan 2090000.can: device registered (reg_base=92a10000, irq=28)
20b4000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 46:19:8c:57:05:2b
libphy: fec_enet_mii_bus: probed
fec 20b4000.ethernet eth0: registered PHC device 0
2188000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 12:30:a5:b4:16:4d
fec 2188000.ethernet eth1: registered PHC device 1
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
tp reset gpio=131
msg ft5x0x_i2c_rxdata i2c read error: -5
ft5x0x read ID error!
ft5x06_ts: probe of 1-0038 failed with error 161
ft5x0x_ts_init successful
input: iMX6UL TouchScreen Controller as /devices/platform/soc/2000000.aips-bus/2040000.tsc/input/input1
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
pxp-v4l2 pxp_v4l2: initialized
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
imx2-wdt 20bc000.wdog: use WDOG_B to reboot.
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2190000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
usb 1-1: new high-speed USB device number 2 using ci_hdrc
mmc0: host does not support reading read-only switch, assuming write-enable
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
Unhandled fault: external abort on non-linefetch (0x1008) at 0x92ac0fa8
pgd = 80004000
[92ac0fa8] *pgd=8c30f811, *pte=02140653, *ppte=02140453
Internal error: : 1008 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-1.2.0+g2345cf9 #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
task: 8c050000 ti: 8c054000 task.ti: 8c054000
PC is at caam_probe+0x134/0xf14
LR is at _raw_spin_unlock_irqrestore+0x28/0x54
pc : [<805f0d08>] lr : [<80835c20>] psr: a0000113
sp : 8c055e20 ip : 80862e24 fp : 00000000
r10: 80bc6824 r9 : 80bb9e3c r8 : 00000000
r7 : fffffdfb r6 : 80c1e390 r5 : 8fdef428 r4 : 8c21ea90
r3 : 92ac0000 r2 : 00000000 r1 : 60000113 r0 : 8fdef428
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c53c7d Table: 8000406a DAC: 00000015
Process swapper/0 (pid: 1, stack limit = 0x8c054210)
Stack: (0x8c055e20 to 0x8c056000)
5e20: 8c055e28 8c43fcd0 00000000 00000000 8c12f600 8c12f610 8c12dd70 80149a60
5e40: 00000001 80bb9e3c 8c12dd70 8c43fc30 00000000 8c12dd70 92ac0000 00000001
5e60: 8c43fcd0 80c92f18 8c12f610 80c1e390 fffffdfb 00000000 80bb9e3c 80bc6824
5e80: 00000000 8037ffe0 80c92f18 8c12f610 80c1e390 00000000 00000000 8037e87c
5ea0: 8c12f610 80c1e390 8c12f644 80bf7ec8 00000000 8037ea8c 00000000 80c1e390
5ec0: 8037ea00 8037cf08 8c03095c 8c122eb4 80c1e390 8c43ea80 00000000 8037e00c
5ee0: 80ac5428 80bd1820 8c4404c0 80c1e390 80bd1820 8c4404c0 80ba38b8 8037f08c
5f00: 80bd1820 80bd1820 8c4404c0 80009718 80bb9e18 80140f5c 00000000 8c031c00
5f20: 00000000 80bd9568 60000113 00000000 8fde0ff6 8fde0ff4 80862e24 8004d58c
5f40: 00000000 80aa6bc8 00000006 00000006 80bd9550 00000140 00000006 80c3d000
5f60: 00000140 00000006 80c3d000 80c3d000 80bb9e34 80b61dbc 00000006 00000006
5f80: 80b61594 80051c4c 00000000 8082ac8c 00000000 00000000 00000000 00000000
5fa0: 00000000 8082ac94 00000000 8000f528 00000000 00000000 00000000 00000000
5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[<805f0d08>] (caam_probe) from [<8037ffe0>] (platform_drv_probe+0x44/0xac)
[<8037ffe0>] (platform_drv_probe) from [<8037e87c>] (driver_probe_device+0x174/0x2b4)
[<8037e87c>] (driver_probe_device) from [<8037ea8c>] (__driver_attach+0x8c/0x90)
[<8037ea8c>] (__driver_attach) from [<8037cf08>] (bus_for_each_dev+0x68/0x9c)
[<8037cf08>] (bus_for_each_dev) from [<8037e00c>] (bus_add_driver+0x148/0x1f0)
[<8037e00c>] (bus_add_driver) from [<8037f08c>] (driver_register+0x78/0xf8)
[<8037f08c>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[<80009718>] (do_one_initcall) from [<80b61dbc>] (kernel_init_freeable+0x144/0x1e4)
[<80b61dbc>] (kernel_init_freeable) from [<8082ac94>] (kernel_init+0x8/0xe8)
[<8082ac94>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
Code: eb00891d e3500000 0a0002f0 e59d3038 (e5936fa8)
---[ end trace 3a57160d9653dcd3 ]---
mmc0: new high speed SDHC card at address 0007
mmcblk0: mmc0:0007 SL16G 14.4 GiB
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

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

The uboot, zImage, dtb and rootfs are built from a yocto distribution.

Can anyone help? Thanks

Labels (1)
2 Replies

1,851 Views
chris_f
Contributor V

I just had exactly the same kernel panic on an iMX6ULL. The cause for me was accidentally flashing the wrong DTB. I'd used the imx6ul version instead of the imx6ull version.

Tags (1)
0 Kudos

1,961 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Lutong,

Usually kernel panic is caused by memory errors so one can recheck it

with memory test

https://community.nxp.com/docs/DOC-105652 

 

Best regards