Hi,
I try to put the board into operation and keep running into boot problems that can be broken down as follows:
98% of all boot processes abort when the kernel starts. The following output can be seen on the serial interface:
`U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+gd626574ba1 (Apr 17 2020 - 19:28:04 +0000)
CPU: Freescale i.MX8QM revB A53 at 1200 MHz at 55C
DRAM: 4 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Model: Toradex Apalis iMX8 QuadMax 4GB Wi-Fi / BT IT V1.0B, Serial# 06548455
BuildInfo:
- SCFW b929edfe, SECO-FW 27167ff2, IMX-MKIMAGE d7f9440d, ATF bb209a0
- U-Boot 2018.03-toradex_imx_v2018.03_4.14.98_2.3.0_bringup+gd626574ba1
switch to partitions #0, OK
mmc0(part 0) is current device
flash target is MMC:0
Net: eth0: ethernet@5b040000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
1243 bytes read in 12 ms (100.6 KiB/s)
## Executing script at 86000000
106496 bytes read in 8 ms (12.7 MiB/s)
Loading hdp firmware from 0x0000000084000000 offset 0x0000000000002000
Loading hdp firmware Complete
105024 bytes read in 19 ms (5.3 MiB/s)
23448064 bytes read in 1019 ms (21.9 MiB/s)
## Flattened Device Tree blob at 84000000
Booting using the fdt blob at 0x84000000
Loading Device Tree to 00000000fd65b000, end 00000000fd677a3f ... OK
/dma-controller@5a1f0000, 73440
/dma-controller@591F0000, 74320
/dma-controller@591F0000, 74320
/dma-controller@599F0000, 75296
Starting kernel ...
`
It stays there forever…
The boot process rarely but reproducible ends with a kernel panic. Serial output:
> [ 8.963945] Internal error:
> undefined instruction: 0 [#1] PREEMPT
> SMP [ 8.972461] Modules linked in:
> libcomposite configfs galcore(O) [
> 8.980436] Process systemd (pid: 1, stack limit = 0xffff000008068000) [
> 8.989017] CPU: 3 PID: 1 Comm: systemd Tainted: G O
> 4.14.170-3.0.4+gbaa6c24240a4 #1 [ 8.999989] Hardware name: Toradex Apalis iMX8QM/QP on Apalis Evaluation
> Board (DT) [ 9.009788] task:
> ffff800878668000 task.stack:
> ffff000008068000 [ 9.017859] PC is
> at rb_prev+0x4/0x58 [ 9.023640] LR
> is at __insert_vmap_area+0x70/0xe0 [
> 9.030447] pc : [<ffff000008c2fe4c>] lr : [<ffff0000081dc1e0>] pstate:
> 80000145 [ 9.039968] sp :
> ffff00000806b8d0 [ 9.045389] x29:
> ffff00000806b8d0 x28: 0000000000000000
> [ 9.052791] x27: ffff0000095459f0
> x26: ffff000008004000 [ 9.060143]
> x25: 0000000000000000 x24:
> ffffffffffffffff [ 9.067513] x23:
> ffff7dffbfff0000 x22: 0000000000000001
> [ 9.074897] x21: ffff000008000000
> x20: ffff800879969798 [ 9.082289]
> x19: ffff800879969780 x18:
> 00000000fffffffe [ 9.089691] x17:
> 0000ffffbb5e02c0 x16: ffff00000821cf50
> [ 9.097098] x15: 0000000000000001
> x14: ffffffffffffffff [ 9.104475]
> x13: ffff8008f41ab56f x12:
> ffff8008741ab575 [ 9.111848] x11:
> 0000000000000000 x10: ffff00000806ba70
> [ 9.119204] x9 : 0000000000000000
> x8 : 0000000000000000 [ 9.126536]
> x7 : 0000000000000001 x6 :
> ffff00000939a568 [ 9.133826] x5 :
> 0000000000003000 x4 : ffff800878e77098
> [ 9.141084] x3 : ffff800878d57b99
> x2 : ffff800878e77098 [ 9.148337]
> x1 : ffff800878e77098 x0 :
> ffff800879969798 [ 9.155559] Call
> trace: [ 9.159817] Exception
> stack(0xffff00000806b790 to
> 0xffff00000806b8d0) [ 9.168045]
> b780:
> ffff800879969798 ffff800878e77098 [
> 9.177671] b7a0: ffff800878e77098 ffff800878d57b99 ffff800878e77098
> 0000000000003000 [ 9.187315] b7c0:
> ffff00000939a568 0000000000000001
> 0000000000000000 0000000000000000 [
> 9.196924] b7e0: ffff00000806ba70 0000000000000000 ffff8008741ab575
> ffff8008f41ab56f [ 9.206526] b800:
> ffffffffffffffff 0000000000000001
> ffff00000821cf50 0000ffffbb5e02c0 [
> 9.216125] b820: 00000000fffffffe ffff800879969780 ffff800879969798
> ffff000008000000 [ 9.225730] b840:
> 0000000000000001 ffff7dffbfff0000
> ffffffffffffffff 0000000000000000 [
> 9.235329] b860: ffff000008004000 ffff0000095459f0 0000000000000000
> ffff00000806b8d0 [ 9.244928] b880:
> ffff0000081dc1e0 ffff00000806b8d0
> ffff000008c2fe4c 0000000080000145 [
> 9.254523] b8a0: ffff00000806b8f0 ffff0000081dc544 0000ffffffffffff
> 0000000000004000 [ 9.264062] b8c0:
> ffff00000806b8d0 ffff000008c2fe4c [
> 9.270656] [<ffff000008c2fe4c>] rb_prev+0x4/0x58 [ 9.277104]
> [<ffff0000081dc674>]
> alloc_vmap_area+0x194/0x2f0 [
> 9.284496] [<ffff0000081dde54>] __get_vm_area_node+0xa4/0x1b8 [ 9.292055] [<ffff0000081dea84>] __vmalloc_node_range+0x64/0x298 [ 9.299774] [<ffff0000081df20c>] vzalloc+0x4c/0x88 [ 9.306264]
> [<ffff00000864fa70>]
> n_tty_open+0x18/0xb0 [ 9.313003]
> [<ffff000008653de4>]
> tty_ldisc_open.isra.3+0x44/0x88 [
> 9.320694] [<ffff000008654560>] tty_ldisc_setup+0x20/0x68 [
> 9.327833] [<ffff00000864e0ec>] tty_init_dev+0xd4/0x1d8 [ 9.334779]
> [<ffff00000864e554>]
> tty_open+0x364/0x450 [ 9.341414]
> [<ffff000008224474>]
> chrdev_open+0x8c/0x1a0 [ 9.348185]
> [<ffff00000821b4ec>]
> do_dentry_open+0x12c/0x340 [
> 9.355273] [<ffff00000821ca84>] vfs_open+0x4c/0x78 [ 9.361646]
> [<ffff00000822ed38>]
> path_openat+0x3a0/0x1258 [
> 9.368546] [<ffff000008230c60>] do_filp_open+0x60/0xc0 [ 9.375240]
> [<ffff00000821ce94>]
> do_sys_open+0x164/0x1f8 [ 9.381988]
> [<ffff00000821cf60>]
> SyS_openat+0x10/0x18 [ 9.388475]
> Exception stack(0xffff00000806bec0 to
> 0xffff00000806c000) [ 9.396398]
> bec0: ffffffffffffff9c
> 0000aaaaafb9fb80 0000000000080101
> 0000000000000000 [ 9.405750] bee0:
> 0000ffffbb5fc000 0000000000000007
> 206465746e756f4d 6761502065677548 [
> 9.415120] bf00: 0000000000000038 0000000000000001 0000fffff99ffa90
> 0000000000000000 [ 9.424508] bf20:
> 656c694620736567 2e6d657473795320
> 000000000000001e 0000000000000020 [
> 9.433912] bf40: 0000ffffbb9181d0 0000ffffbb5e02c0 0000ffffbb814c10
> 0000aaaaafc36000 [ 9.443331] bf60:
> 0000000000000015 0000000000080101
> 0000aaaaafb9fb80 0000000000000001 [
> 9.452762] bf80: 0000aaaaafbcf178 0000aaaaafbcf178 0000aaaaafba8e88
> 0000000000000010 [ 9.462200] bfa0:
> 0000fffff99ffeb0 0000fffff99ffb50
> 0000ffffbb790f50 0000fffff99ffb50 [
> 9.471652] bfc0: 0000ffffbb5e0308 0000000080000000 ffffffffffffff9c
> 0000000000000038 [ 9.481127] bfe0:
> 0000000000000000 0000000000000000
> 0000000000000000 0000000000000000 [
> 9.490623] [<ffff000008083ac0>] el0_svc_naked+0x34/0x38 [ 9.497610]
> Code: 17ffff36 f9000865 17ffff34
> f9400001 (aa0003e2) [ 9.505413]
> ---[ end trace fdb310136cdd9b87 ]--- [ 9.511742] note: systemd[1] exited with preempt_count 1 [ 9.518781] Kernel
> panic - not syncing: Attempted to kill
> init! exitcode=0x0000000b [
> 9.518781] [ 9.531361] SMP: stopping secondary CPUs [ 9.536978]
> Kernel Offset: disabled [ 9.542148]
> CPU features: 0x100200d [ 9.547299]
> Memory Limit: none [ 9.551998] ---[
> end Kernel panic - not syncing:
> Attempted to kill init!
> exitcode=0x0000000b
The small rest of all boot processes start normally and ends up in the usual login prompt.
Is there something i missed? Any help is appreciated