AnsweredAssumed Answered

Kernel panic issue imx6ull

Question asked by Deepanraj Anbarasan on Feb 8, 2020
Latest reply on Feb 12, 2020 by igorpadykov

Hi ,

 

We are porting kernel 4.14.98_2.2.0 for our custom board. Below is the debug log.

 

Starting kernel ...

 

Booting Linux on physical CPU 0x0
Linux version 4.14.98 (deepanr@deepanr) (gcc version 7.3.0 (GCC)) #17 SMP PREEMPT Sat Feb 8 11:58:27 IST 2020
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Freescale i.MX6 ULL Board
Memory policy: Data cache writealloc
OF: reserved mem: failed to allocate memory for node 'linux,cma'
percpu: Embedded 16 pages/cpu @8fdd2000 s35532 r8192 d21812 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttymxc4,115200 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs coherent_pool=2M mtdparts=gpmi-nand:10m(boot),16m(kernel),16m(dt)
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: 244292K/262144K available (9216K kernel code, 599K rwdata, 2940K rodata, 1024K init, 439K bss, 17852K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0x90800000 - 0xff800000   (1776 MB)
    lowmem  : 0x80000000 - 0x90000000   ( 256 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80a00000   (10208 kB)
      .init : 0x80e00000 - 0x80f00000   (1024 kB)
      .data : 0x80f00000 - 0x80f95e80   ( 600 kB)
       .bss : 0x80f97000 - 0x81004ea0   ( 440 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.
        Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
Switching to timer-based delay loop, resolution 333ns
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
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
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (6.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x114/0x23c with crng_init=0
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
futex hash table entries: 256 (order: 2, 16384 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 2048 KiB pool for atomic coherent allocations
cpuidle: using governor menu
vdd3p0: supplied by regulator-dummy
cpu: supplied by regulator-dummy
vddsoc: supplied by regulator-dummy
******* syscon_regmap_lookup_by_compatible ******
******* syscon_regmap_lookup_by_compatible ******
********* imx6_pm_common_init **********
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at arch/arm/mach-imx/pm-imx6.c:1256 imx6_pm_common_init+0x44/0x4a8
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.98 #17
Hardware name: Freescale i.MX6 UL/ULL (Device Tree)
[<8010ed24>] (unwind_backtrace) from [<8010b490>] (show_stack+0x10/0x14)
[<8010b490>] (show_stack) from [<8097ff24>] (dump_stack+0x78/0x8c)
[<8097ff24>] (dump_stack) from [<8012dae4>] (__warn+0xe8/0x100)
[<8012dae4>] (__warn) from [<8012dbac>] (warn_slowpath_null+0x20/0x28)
[<8012dbac>] (warn_slowpath_null) from [<80e0cc2c>] (imx6_pm_common_init+0x44/0x4a8)
[<80e0cc2c>] (imx6_pm_common_init) from [<80e0d4b4>] (imx6ul_pm_init+0x18/0x68)
[<80e0d4b4>] (imx6ul_pm_init) from [<80e0c090>] (imx6ul_init_machine+0xfc/0x1c8)
[<80e0c090>] (imx6ul_init_machine) from [<80e034d8>] (customize_machine+0x20/0x30)
[<80e034d8>] (customize_machine) from [<80101a3c>] (do_one_initcall+0x44/0x168)
[<80101a3c>] (do_one_initcall) from [<80e00dac>] (kernel_init_freeable+0x144/0x1d0)
[<80e00dac>] (kernel_init_freeable) from [<80993934>] (kernel_init+0x8/0x114)
[<80993934>] (kernel_init) from [<80107a68>] (ret_from_fork+0x14/0x2c)
---[ end trace 5bf68315a2a2c428 ]---
********* imx6q_suspend_init *********
********* imx6_pm_common_init 1**********
******* syscon_regmap_lookup_by_compatible ******

 

Board Info:
        BSP Version     : iW-PRFYC-SC-01-R2.0-REL1.0-Linux4.14.98
        SOM Version     : iW-PRFYC-AP-01-R2.x
        CPU Unique ID   : 0x421519d263e17965

 

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
******* syscon_regmap_lookup_by_compatible ******
imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
imx rpmsg driver is registered.
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, using PIO instead.
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
Bluetooth: Core ver 2.22
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
clocksource: Switched to clocksource mxc_timer1
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
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.
Bus freq driver module loaded
workingset: timestamp_bits=30 max_order=16 bucket_order=0
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.26)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
imx-weim 21b8000.weim: Driver registered.
imx-sdma 20ec000.sdma: Falling back to user helper
mxs-dma 1804000.dma-apbh: initialized
pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze3000 found.
21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 55, base_baud = 5000000) is a IMX
console [ttymxc4] enabled
imx-rng 2284000.rngb: iMX RNG Registered.
imx sema4 driver is registered.
[drm] Initialized vivante 1.0.0 20120216 for platform:Vivante GCCore on minor 0
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
nand: device found, Manufacturer ID: 0x98, Chip ID: 0xdc
nand: Toshiba NAND 512MiB 3,3V 8-bit
nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 128
gpmi-nand 1806000.gpmi-nand: use legacy bch geometry
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: bad block at 0x000014880000
nand_read_bbt: bad block at 0x000014900000
nand_read_bbt: bad block at 0x000018000000
nand_read_bbt: bad block at 0x000018040000
4 cmdlinepart partitions found on MTD device gpmi-nand
Creating 4 MTD partitions on "gpmi-nand":
0x000000000000-0x000000a00000 : "boot"
0x000000a00000-0x000001a00000 : "kernel"
0x000001a00000-0x000002a00000 : "dtb"
0x000002a00000-0x000020000000 : "rootfs"
gpmi-nand 1806000.gpmi-nand: driver registered.
libphy: Fixed MDIO Bus: probed
CAN device driver interface
usbcore: registered new interface driver kaweth
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
random: fast init done
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver r8152
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
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
usbmisc_imx 2184800.usbmisc: 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp 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
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 bcm203x
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
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
vf610-adc 2198000.adc: 2198000.adc supply vref not found, using dummy regulator
NET: Registered protocol family 26
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
lib80211: common routines for IEEE802.11 drivers
Key type dns_resolver registered
Failed to disable 900MHz OPP
imx6_set_int_mem_clk_lpm

 

Unable to handle kernel NULL pointer dereference at virtual address 00000064
pgd = 80004000
[00000064] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.98 #17
Hardware name: Freescale i.MX6 UL/ULL (Device Tree)
task: 8c044000 task.stack: 8c048000
PC is at imx6_set_int_mem_clk_lpm+0x24/0x40
LR is at imx6_set_int_mem_clk_lpm+0x18/0x40
pc : [<80128acc>]    lr : [<80128ac0>]    psr: 60000013
sp : 8c049eb0  ip : 0000000d  fp : 00000000
r10: 80e763c8  r9 : 00000138  r8 : 00000008
r7 : 80e6483c  r6 : 00000804  r5 : 80f974e0  r4 : 00000001
r3 : 80f97998  r2 : 00000000  r1 : 00000001  r0 : 0000001a
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 10c53c7d  Table: 8000406a  DAC: 00000051
Process swapper/0 (pid: 1, stack limit = 0x8c048210)
Stack: (0x8c049eb0 to 0x8c04a000)
9ea0:                                     f49010b8 80e0a1b8 00000002 00000000
9ec0: 90c54000 80e0bf2c 00000000 00000000 80be4408 ffffffff 00000000 00000000
9ee0: 00000000 00000000 00000000 00000000 00000000 00000000 ffffe000 00000000
9f00: 80e0357c 80e0359c ffffe000 80101a3c 8fffca14 8fffca03 80cde610 00000138
9f20: 00000138 80148fe0 00000000 80bddd58 00000007 00000007 80be6ccc 00000000
9f40: 80bef718 80be6d40 8fffca14 8fffca1d 00000000 80f97000 80f97000 80f97000
9f60: 80e64838 00000008 00000138 80e763c8 00000000 80e00dac 00000007 00000007
9f80: 00000000 80e005a8 00000000 8099392c 00000000 00000000 00000000 00000000
9fa0: 00000000 80993934 00000000 80107a68 00000000 00000000 00000000 00000000
9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[<80128acc>] (imx6_set_int_mem_clk_lpm) from [<80e0a1b8>] (imx6ul_cpuidle_init+0x1c8/0x25c)
[<80e0a1b8>] (imx6ul_cpuidle_init) from [<80e0bf2c>] (imx6ul_init_late+0x14c/0x1b4)
[<80e0bf2c>] (imx6ul_init_late) from [<80e0359c>] (init_machine_late+0x20/0x90)
[<80e0359c>] (init_machine_late) from [<80101a3c>] (do_one_initcall+0x44/0x168)
[<80101a3c>] (do_one_initcall) from [<80e00dac>] (kernel_init_freeable+0x144/0x1d0)
[<80e00dac>] (kernel_init_freeable) from [<80993934>] (kernel_init+0x8/0x114)
[<80993934>] (kernel_init) from [<80107a68>] (ret_from_fork+0x14/0x2c)
Code: eb011203 e3073998 e34830f9 e5932004 (e5923064)
---[ end trace 5bf68315a2a2c429 ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

 

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

 

imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware
random: crng init done

 

Please help us debug this issue. Is this any document on porting the kernel to custom board in case our custom board uses regulator which need to be configured in the dts file

 

Thank you,

Deepanraj.A

Outcomes