imx8m Mini enters Kernel Panic after clean build

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

imx8m Mini enters Kernel Panic after clean build

Jump to solution
432 Views
dpog
Contributor IV

Yesterday the Kernel was booting "fine", except for the console, but that's a different story.

Today i saved the patches and did a clean build, and this happens:

Additional Information: We use a Custom Board Solution, based on the imx8mm evk, the RAM is trained with a generated lpddr4_timing.c

 

U-Boot SPL 2020.04-imx_v2020.04_5.4.24_2.1.0+gd259d01f7f (May 30 2020 - 06:50:01 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1
NOTICE: BL31: v2.2(release):imx_5.4.24_er3-0-gb0a00f22b-dirty
NOTICE: BL31: Built : 13:33:06, May 14 2020


U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+gd259d01f7f (May 30 2020 - 06:50:01 +0000)

CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C)invalid data
Reset cause: POR
Model: CM007u-boot_v0.1
DRAM: 2 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[*]-Video Link 0failed to get any display timings
probe video device failed, ret -22

[0] lcdif@32e00000, video
failed to get any display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF b0a00f2
- U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+gd259d01f7f

switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net: Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
No ethernet found.

Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
29817344 bytes read in 1278 ms (22.3 MiB/s)
40774 bytes read in 17 ms (2.3 MiB/s)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 000000004300cf45
failed to get any display timings
probe video device failed, ret -22

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.147-imx-5.4.24-2.1.0+g70c74fba62bc (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP
[ 0.000000] Machine model: i.MX8MM EVA-MI (Eval Kit)
[ 0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030880000 (options '115200')
[ 0.000000] printk: bootconsole [ec_imx6q0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000078000000, size 640 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Unhandled fault at 0xfffffdfffe437000
[ 0.000000] Mem abort info:
[ 0.000000] ESR = 0x96000003
[ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits
[ 0.000000] SET = 0, FnV = 0
[ 0.000000] EA = 0, S1PTW = 0
[ 0.000000] Data abort info:
[ 0.000000] ISV = 0, ISS = 0x00000003
[ 0.000000] CM = 0, WnR = 0
[ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000421ed000
[ 0.000000] [fffffdfffe437000] pgd=00000000420f0003
[ 0.000000] Unable to handle kernel paging request at virtual address ffff0000020f0ff8
[ 0.000000] Mem abort info:
[ 0.000000] ESR = 0x96000004
[ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits
[ 0.000000] SET = 0, FnV = 0
[ 0.000000] EA = 0, S1PTW = 0
[ 0.000000] Data abort info:
[ 0.000000] ISV = 0, ISS = 0x00000004
[ 0.000000] CM = 0, WnR = 0
[ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000421ed000
[ 0.000000] [ffff0000020f0ff8] pgd=0000000000000000
[ 0.000000] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.147-imx-5.4.24-2.1.0+g70c74fba62bc #1
[ 0.000000] Hardware name: i.MX8MM EVA-MI (Eval Kit) (DT)
[ 0.000000] pstate: 60000085 (nZCv daIf -PAN -UAO)
[ 0.000000] pc : show_pte+0x188/0x228
[ 0.000000] lr : show_pte+0x154/0x228
[ 0.000000] sp : ffff800011b63bb0
[ 0.000000] x29: ffff800011b63bb0 x28: ffff800011b726c0
[ 0.000000] x27: ffff800010080000 x26: fffffdfffe436800
[ 0.000000] x25: 00000000bcfc9f00 x24: 0000000000000025
[ 0.000000] x23: ffff800011ded000 x22: ffff8000116c9000
[ 0.000000] x21: ffff0000020f0ff8 x20: 0000000000000fd8
[ 0.000000] x19: fffffdfffe437000 x18: 0000000000000030
[ 0.000000] x17: 0000000000001400 x16: 0000000000001c00
[ 0.000000] x15: ffff800011b72b30 x14: ffffffffffffffff
[ 0.000000] x13: ffff800011d000b8 x12: ffff800011cffcf9
[ 0.000000] x11: ffff800011b63bb0 x10: ffff800011b63bb0
[ 0.000000] x9 : ffff800011b63bb0 x8 : 0000000000000080
[ 0.000000] x7 : 303030303030303d x6 : ffff800011cff387
[ 0.000000] x5 : 0000000000000000 x4 : 0000000000000000
[ 0.000000] x3 : 00000000ffffffff x2 : 00000000420f0000
[ 0.000000] x1 : 0000000000000ff8 x0 : ffff80001152fb18
[ 0.000000] Call trace:
[ 0.000000] show_pte+0x188/0x228
[ 0.000000] do_mem_abort+0x94/0x98
[ 0.000000] el1_da+0x1c/0x90
[ 0.000000] __create_pgd_mapping+0x190/0x738
[ 0.000000] map_kernel_segment+0x70/0xa4
[ 0.000000] paging_init+0x12c/0x5e8
[ 0.000000] setup_arch+0x274/0x648
[ 0.000000] start_kernel+0x88/0x43c
[ 0.000000] Code: 912c6000 cb150035 8b0202b5 b2503eb5 (f94002b4)
[ 0.000000] random: get_random_bytes called from print_oops_end_marker+0x28/0x50 with crng_init=0
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

 

Any help would be appreciated, thanks!

Labels (1)
0 Kudos
1 Solution
397 Views
dpog
Contributor IV
Excuse my delayed reply, I was out for the weekend. The only patches done to the kernel were a different Device Tree, but by the time it was simply a copy of the imx8mm-evk.dts

With the u-boot patches i changed the console from uart2 to uart3, changed the PMIC from the BD71847 to the PCA9450 and configured a different SD-Card detection pin.

My problem was resolved by removing all patches and apply the changes again, part after part, and now the kernel is booting again, now I'm stuck at a different part, as I wrote in this thread: https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-switching-from-earlycon-to-quot-real-quot-co...

I mark this question as answered as my problem on this end is solved.

View solution in original post

0 Kudos
2 Replies
410 Views
joanxie
NXP TechSupport
NXP TechSupport

what clean build and patch do you apply? pls share your detailed test steps, let me double check  it

0 Kudos
398 Views
dpog
Contributor IV
Excuse my delayed reply, I was out for the weekend. The only patches done to the kernel were a different Device Tree, but by the time it was simply a copy of the imx8mm-evk.dts

With the u-boot patches i changed the console from uart2 to uart3, changed the PMIC from the BD71847 to the PCA9450 and configured a different SD-Card detection pin.

My problem was resolved by removing all patches and apply the changes again, part after part, and now the kernel is booting again, now I'm stuck at a different part, as I wrote in this thread: https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-switching-from-earlycon-to-quot-real-quot-co...

I mark this question as answered as my problem on this end is solved.
0 Kudos