iMX8MM Synchronous Abort while booting kernel

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

iMX8MM Synchronous Abort while booting kernel

1,457 Views
Alex34
Contributor I

Hello.

I'm working with a custom iMX8MM board. I have built all the binaries with Buildroot.

I am able to boot an U-boot (via USB), but I can't boot into the Kernel: "Synchronous Abort" handler.

The steps I take on the host machine:

Spoiler
sudo ./uuu ~/buildroot/output/images/imx8-boot-sd.bin
sudo ./uuu SDPV: write -f ~/buildroot/output/images/u-boot.itb -addr 0x40260000
sudo ./uuu SDPV: write -f ~/buildroot/output/images/Image -addr 0x43800000
sudo ./uuu SDPV: write -f ~/buildroot/output/images/imx8mm-evk-revb-qca-wifi.dtb -addr 0x4FF00000
sudo ./uuu SDPV: jump -addr 0x40260000

The output on the target:

Spoiler

U-Boot 2020.04 (Jan 02 2022 - 17:15:19 +0300)

CPU: i.MX8MMD rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 47C
Reset cause: POR
Model: IMX board
DRAM: 512 MiB
tcpc_init: Can't find bus
setup_typec: tcpc port2 init failed, err=-22
tcpc_init: Can't find bus
setup_typec: tcpc port1 init failed, err=-22
MMC: FSL_SDHC: 1
Loading Environment from MMC... MMC: no card present
mmc_init: -123, time 2
*** Warning - No block device, using default environment

Fail to setup video link
In: serial
Out: serial
Err: serial
Model: Alex diveboard

BuildInfo:
- ATF 88c60db
- U-Boot 2020.04

MMC: no card present
mmc_init: -123, time 2
Detect USB boot. Will enter fastboot mode!
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

Then I stop autoboot, and make a booti command:

Spoiler

u-boot=> booti 43800000 - 4ff00000
## Flattened Device Tree blob at 4ff00000
Booting using the fdt blob at 0x4ff00000
Using Device Tree in place at 000000004ff00000, end 000000004ff0e71f
Found /cpus/cpu@2 node
Delete node /cpus/cpu@2
Found /cpus/cpu@3 node
Delete node /cpus/cpu@3
Update node /thermal-zones/cpu-thermal/cooling-maps/map0, cooling-device prop
Update node /pmu, interrupt-affinity prop

Starting kernel ...

"Synchronous Abort" handler, esr 0x02000000
elr: 00000000253c3000 lr : 00000000402026e4 (reloc)
elr: 00000000450d0000 lr : 000000005ff0f6e4
x0 : 000000004ff00000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 0000000043800000 x5 : 0000000000000001
x6 : 0000000000000008 x7 : 0000000000000000
x8 : 000000005df02cd8 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 000000005df0cdde
x14: 000000004ff00000 x15: 000000005ff0eb14
x16: 000000005ff4bee0 x17: 00000000000041a0
x18: 000000005df0cdc8 x19: 000000005ffc1b58
x20: 0000000000000000 x21: 0000000000000400
x22: 0000000000000003 x23: 000000005df14318
x24: 000000005df14318 x25: 000000005ffadea8
x26: 0000000000000000 x27: 000000005ff0f70c
x28: 000000005df185c0 x29: 000000005df02d10

Code: 1d2dfddd 9dec6977 75f079eb 57dd1ded (c019481a)
Resetting CPU ...

Is there something I should check to debug the problem?

0 Kudos
Reply
4 Replies

1,421 Views
Alex34
Contributor I

Unfortunately, it didn't work.

Not sure why the system crashes while booti comand from u-boot shell, everything wokrs just fine via USB fastboot.

0 Kudos
Reply

1,449 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alex

 

for that issue one can try nxp linux releases from source.codeaurora.org/external/imx/linux-imx repository

(not Buildroot)
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y

Documentation

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 Kudos
Reply

1,440 Views
Alex34
Contributor I

Thanks, Igor.

Buildroot has exactly the same version of Linux kernel sources. I tried kernel from toradex with the same results.

I did some debug prints and found that exception happens just after "armv8_switch_to_el2" routine execution. (in u-boot, bootm command code).

DId i forget to configure something?

Can I get a prebuilt binaries for EVK?

0 Kudos
Reply

1,432 Views
igorpadykov
NXP Employee
NXP Employee

>Can I get a prebuilt binaries for EVK?

 

one can look at Demo Images on link

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

 

 

0 Kudos
Reply