Apalis iMX8 Device not booting up normally anymore

Apalis iMX8
Ixora Carrier Board

I put my device in Recovery Mode (which I have done successfully multiple times) so that I can flash a different OS using the Toradex Easy Installer. However, this time, my device is running into an error (see output below) which prevents it from booting up normally.

What can I do to remedy this? Of course, I have restarted the device but am still getting the same issue.

Output from the debug console (UART1):

U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 52C

DRAM: 4 GiB
Core: 194 devices, 20 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… OK
In: serial
Out: serial
Err: serial
Model: Toradex 0047 Apalis iMX8QM 4GB IT V1.1C
Serial#: 14682680

BuildInfo:

  • SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  • U-Boot 2022.04-6.7.0-devel+git.3428b470191c

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
mmc0(part 0) is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
973 bytes read in 3 ms (316.4 KiB/s)

Executing script at 9d480000

6671 bytes read in 5 ms (1.3 MiB/s)
170019 bytes read in 8 ms (20.3 MiB/s)
117 bytes read in 3 ms (38.1 KiB/s)
Applying Overlay: apalis-imx8_hdmi_overlay.dtbo
2205 bytes read in 5 ms (430.7 KiB/s)
Applying Overlay: apalis-imx8_spi1_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
Applying Overlay: apalis-imx8_spi2_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
13438023 bytes read in 303 ms (42.3 MiB/s)
6125099 bytes read in 139 ms (42 MiB/s)
Uncompressing Kernel Image

Flattened Device Tree blob at 9d400000

Booting using the fdt blob at 0x9d400000
Loading Device Tree to 00000000fd626000, end 00000000fd672fff … OK

Starting kernel …

[ 1.582211] rtc-ds1307 4-0068: hctosys: unable to read the hardware clock
[ 1.959705] debugfs: Directory ‘lvds1’ with parent ‘pm_genpd’ already present!
[ 1.967137] debugfs: Directory ‘mipi1-i2c1’ with parent ‘pm_genpd’ already present!
[ 1.974881] debugfs: Directory ‘mipi1-i2c0’ with parent ‘pm_genpd’ already present!
[ 1.982580] debugfs: Directory ‘mipi1-pwm0’ with parent ‘pm_genpd’ already present!
[ 1.990262] debugfs: Directory ‘mipi1’ with parent ‘pm_genpd’ already present!
[ 3.190239] regulator-dummy: Underflow of regulator enable count
[ 3.310332] regulator-dummy: Underflow of regulator enable count
Starting version 250.5+
[ 5.250370] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000050
[ 5.259245] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000066
[ 5.259344] Unable to handle kernel paging request at virtual address 000000000556ad00
[ 5.261685] Mem abort info:
[ 5.261695] ESR = 0x0000000096000004
[ 5.261700] EC = 0x25: DABT (current EL), IL = 32 bits
[ 5.261706] SET = 0, FnV = 0
[ 5.261709] EA = 0, S1PTW = 0
[ 5.261712] FSC = 0x04: level 0 translation fault
[ 5.261716] Data abort info:
[ 5.261718] ISV = 0, ISS = 0x00000004
[ 5.261720] CM = 0, WnR = 0
[ 5.261725] user pgtable: 4k pages, 48-bit VAs, pgdp=000000088541e000
[ 5.261730] [0000000000000050] pgd=0000000000000000, p4d=0000000000000000
[ 5.261743] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[ 5.261749] Modules linked in: galcore(O+) fuse lontium_lt8912b ti_sn65dsi83 sec_mipi_dsim_imx display_connector sec_dsim
[ 5.261777] CPU: 0 PID: 634 Comm: systemd-vconsol Tainted: G O 5.15.148-6.7.0-devel+git.94979392529c #1-TorizonCore
[ 5.261785] Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Evaluation Board (DT)
[ 5.261790] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=–)
[ 5.261798] pc : terminate_walk+0x6c/0x13c
[ 5.261817] lr : terminate_walk+0x6c/0x13c
[ 5.261823] sp : ffff80000a7ebb70
[ 5.261826] x29: ffff80000a7ebb40 x28: ffff80000a7ebc58 x27: 0000000000000000
[ 5.261836] x26: 0000000000000000 x25: 0000000000000000 x24: ffff800009ec5880
[ 5.261846] x23: 0000000000000000 x22: 0000000000000002 x21: 0000000000000000
[ 5.261855] x20: ffff800008326824 x19: ffff80000a7ebbf0 x18: 0000000000000000
[ 5.261865] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 5.261874] x14: 0000000000000000 x13: 0000000000000000 x12: fefefefefefefeff
[ 5.261884] x11: 0000000000000020 x10: 0101010101010101 x9 : 0000000000000000
[ 5.261894] x8 : ffff000805255078 x7 : 0000000000000000 x6 : 0000000000000000
[ 5.261903] x5 : 0000000000000005 x4 : 0000000000000000 x3 : 00000000ffffffff
[ 5.261913] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
[ 5.261923] Call trace:
[ 5.261926] terminate_walk+0x6c/0x13c
[ 5.261938] Code: f94006a0 940046ac f94002a0 94007839 (b94052a0)
[ 5.261946] —[ end trace 21806f03bcc23682 ]—
[ 5.261952] Kernel panic - not syncing: Oops: Fatal exception
[ 5.261956] SMP: stopping secondary CPUs
[ 5.268040] Mem abort info:
[ 5.268043] ESR = 0x0000000096000004
[ 5.268045] EC = 0x25: DABT (current EL), IL = 32 bits
[ 5.268048] SET = 0, FnV = 0
[ 5.268050] EA = 0, S1PTW = 0
[ 5.268052] FSC = 0x04: level 0 translation fault
[ 5.268055] Data abort info:
[ 5.268056] ISV = 0, ISS = 0x00000004
[ 5.268058] CM = 0, WnR = 0
[ 5.268060] user pgtable: 4k pages, 48-bit VAs, pgdp=000000088541e000
[ 5.268063] [0000000000000066] pgd=0000000000000000, p4d=0000000000000000
[ 6.261960] SMP: failed to stop secondary CPUs 0,5
[ 6.261974] Kernel Offset: disabled
[ 6.261976] CPU features: 0x4,000820b1,20000846
[ 6.261981] Memory Limit: none
[ 6.530605] Rebooting in 5 seconds…
[ 12.654177] SMP: failed to stop secondary CPUs 0,5

U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 55C

DRAM: 4 GiB
Core: 194 devices, 20 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… OK
In: serial
Out: serial
Err: serial
Model: Toradex 0047 Apalis iMX8QM 4GB IT V1.1C
Serial#: 14682680

BuildInfo:

  • SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  • U-Boot 2022.04-6.7.0-devel+git.3428b470191c

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
mmc0(part 0) is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
973 bytes read in 2 ms (474.6 KiB/s)

Executing script at 9d480000

6671 bytes read in 5 ms (1.3 MiB/s)
170019 bytes read in 8 ms (20.3 MiB/s)
117 bytes read in 3 ms (38.1 KiB/s)
Applying Overlay: apalis-imx8_hdmi_overlay.dtbo
2205 bytes read in 5 ms (430.7 KiB/s)
Applying Overlay: apalis-imx8_spi1_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
Applying Overlay: apalis-imx8_spi2_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
13438023 bytes read in 303 ms (42.3 MiB/s)
6125099 bytes read in 139 ms (42 MiB/s)
Uncompressing Kernel Image

Flattened Device Tree blob at 9d400000

Booting using the fdt blob at 0x9d400000
Loading Device Tree to 00000000fd626000, end 00000000fd672fff … OK

Starting kernel …

U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 55C

DRAM: 4 GiB
Core: 194 devices, 20 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… OK
In: serial
Out: serial
Err: serial
Model: Toradex 0047 Apalis iMX8QM 4GB IT V1.1C
Serial#: 14682680

BuildInfo:

  • SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  • U-Boot 2022.04-6.7.0-devel+git.3428b470191c

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
mmc0(part 0) is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
973 bytes read in 3 ms (316.4 KiB/s)

Executing script at 9d480000

6671 bytes read in 5 ms (1.3 MiB/s)
170019 bytes read in 8 ms (20.3 MiB/s)
117 bytes read in 3 ms (38.1 KiB/s)
Applying Overlay: apalis-imx8_hdmi_overlay.dtbo
2205 bytes read in 5 ms (430.7 KiB/s)
Applying Overlay: apalis-imx8_spi1_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
Applying Overlay: apalis-imx8_spi2_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
13438023 bytes read in 303 ms (42.3 MiB/s)
6125099 bytes read in 140 ms (41.7 MiB/s)
Uncompressing Kernel Image

Flattened Device Tree blob at 9d400000

Booting using the fdt blob at 0x9d400000
Loading Device Tree to 00000000fd626000, end 00000000fd672fff … OK

Starting kernel …

U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 55C

DRAM: 4 GiB
Core: 194 devices, 20 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… OK
In: serial
Out: serial
Err: serial
Model: Toradex 0047 Apalis iMX8QM 4GB IT V1.1C
Serial#: 14682680

BuildInfo:

  • SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  • U-Boot 2022.04-6.7.0-devel+git.3428b470191c

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
mmc0(part 0) is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
973 bytes read in 2 ms (474.6 KiB/s)

Executing script at 9d480000

6671 bytes read in 4 ms (1.6 MiB/s)
170019 bytes read in 9 ms (18 MiB/s)
117 bytes read in 3 ms (38.1 KiB/s)
Applying Overlay: apalis-imx8_hdmi_overlay.dtbo
2205 bytes read in 4 ms (538.1 KiB/s)
Applying Overlay: apalis-imx8_spi1_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
Applying Overlay: apalis-imx8_spi2_spidev_overlay.dtbo
551 bytes read in 4 ms (133.8 KiB/s)
13438023 bytes read in 303 ms (42.3 MiB/s)
6125099 bytes read in 139 ms (42 MiB/s)
Uncompressing Kernel Image

Flattened Device Tree blob at 9d400000

Booting using the fdt blob at 0x9d400000
Loading Device Tree to 00000000fd626000, end 00000000fd672fff … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.15.148-6.7.0-devel+git.94979392529c (oe-user@oe-host) (aarch64-tdx-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1-TorizonCore SMP PREEMPT Fri Apr 26 07:54:49 UTC 2024
[ 0.000000] Machine model: Toradex Apalis iMX8QM V1.1 on Apalis Evaluation Board
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node ‘m4@88000000’: base 0x0000000088000000, size 128 MiB
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000090400000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdevbuffer@90400000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080200000-0x00000008ffffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x8ff779700-0x8ff77bfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x0000000083ffffff]
[ 0.000000] node 0: [mem 0x0000000084000000-0x00000000863fffff]
[ 0.000000] node 0: [mem 0x0000000086400000-0x00000000901fffff]
[ 0.000000] node 0: [mem 0x0000000090200000-0x00000000904fffff]
[ 0.000000] node 0: [mem 0x0000000090500000-0x0000000091ffffff]
[ 0.000000] node 0: [mem 0x0000000092000000-0x00000000921fffff]
[ 0.000000] node 0: [mem 0x0000000092200000-0x00000000923fffff]
[ 0.000000] node 0: [mem 0x0000000092400000-0x00000000951fffff]
[ 0.000000] node 0: [mem 0x0000000095200000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000008ffffffff]
[ 0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 29 pages/cpu s79128 r8192 d31464 u118784
[ 0.000000] pcpu-alloc: s79128 r8192 d31464 u118784 alloc=29*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1031688
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: pci=nomsi root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/b65bfa5de32bdc6503c27e6b87bfab6c46348855f0cde16746f589365878f662/0
[ 0.000000] Unknown kernel command line parameters “splash ostree=/ostree/boot.1/torizon/b65bfa5de32bdc6503c27e6b87bfab6c46348855f0cde16746f589365878f662/0”, will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000bc000000-0x00000000c0000000] (64MB)
[ 0.000000] Memory: 2800096K/4192256K available (18688K kernel code, 3288K rwdata, 8096K rodata, 4480K init, 687K bss, 409120K reserved, 983040K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 512 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000051b00000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000909] Console: colour dummy device 80x25
[ 0.000946] printk: console [tty0] enabled
[ 0.001025] Calibrating delay loop (skipped), value calculated using timer frequency… 16.00 BogoMIPS (lpj=80000)
[ 0.001038] pid_max: default: 32768 minimum: 301
[ 0.001097] LSM: Security Framework initializing
[ 0.001206] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.001228] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.003097] rcu: Hierarchical SRCU implementation.
[ 0.004720] EFI services will not be available.
[ 0.005101] smp: Bringing up secondary CPUs …
[ 0.005991] Detected VIPT I-cache on CPU1
[ 0.006029] GICv3: CPU1: found redistributor 1 region 0:0x0000000051b20000
[ 0.006084] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.006977] Detected VIPT I-cache on CPU2
[ 0.006996] GICv3: CPU2: found redistributor 2 region 0:0x0000000051b40000
[ 0.007021] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.007864] Detected VIPT I-cache on CPU3
[ 0.007882] GICv3: CPU3: found redistributor 3 region 0:0x0000000051b60000
[ 0.007904] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.009626] CPU features: detected: Spectre-v2
[ 0.009633] CPU features: detected: Spectre-v3a
[ 0.009638] CPU features: detected: Spectre-BHB
[ 0.009643] CPU features: detected: ARM erratum 1742098
[ 0.009646] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.009648] Detected PIPT I-cache on CPU4
[ 0.009667] GICv3: CPU4: found redistributor 100 region 0:0x0000000051b80000
[ 0.009692] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[ 0.010608] Detected PIPT I-cache on CPU5
[ 0.010623] GICv3: CPU5: found redistributor 101 region 0:0x0000000051ba0000
[ 0.010640] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[ 0.010709] smp: Brought up 1 node, 6 CPUs
[ 0.010722] SMP: Total of 6 processors activated.
[ 0.010727] CPU features: detected: 32-bit EL0 Support
[ 0.010730] CPU features: detected: 32-bit EL1 Support
[ 0.010735] CPU features: detected: CRC32 instructions
[ 0.025265] CPU: All CPU(s) started at EL2
[ 0.025305] alternatives: patching kernel code
[ 0.026973] devtmpfs: initialized
[ 0.046106] KASLR disabled due to lack of seed
[ 0.046290] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.046312] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.076138] pinctrl core: initialized pinctrl subsystem
[ 0.077423] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.082191] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.082571] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.082977] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.083038] audit: initializing netlink subsys (disabled)
[ 0.083179] audit: type=2000 audit(0.080:1): state=initialized audit_enabled=0 res=1
[ 0.083737] thermal_sys: Registered thermal governor ‘step_wise’
[ 0.083743] thermal_sys: Registered thermal governor ‘power_allocator’
[ 0.084443] cpuidle: using governor menu
[ 0.084722] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.084851] ASID allocator initialised with 65536 entries
[ 0.085136] Serial: AMBA PL011 UART driver
[ 0.085194] imx mu driver is registered.
[ 0.085212] imx rpmsg driver is registered.
[ 0.146405] platform 56268000.hdmi: Fixing up cyclic dependency with 56180000.dpu
[ 0.160307] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.160322] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.160327] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.160332] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.161596] cryptd: max_cpu_qlen set to 1000
[ 0.166885] ACPI: Interpreter disabled.
[ 0.169660] iommu: Default domain type: Translated
[ 0.169667] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.169826] vgaarb: loaded
[ 0.170245] SCSI subsystem initialized
[ 0.170400] libata version 3.00 loaded.
[ 0.170608] usbcore: registered new interface driver usbfs
[ 0.170642] usbcore: registered new interface driver hub
[ 0.170670] usbcore: registered new device driver usb
[ 0.172941] mc: Linux media interface: v0.10
[ 0.172962] videodev: Linux video capture interface: v2.00
[ 0.173054] pps_core: LinuxPPS API ver. 1 registered
[ 0.173059] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.173072] PTP clock support registered
[ 0.173417] EDAC MC: Ver: 3.0.0
[ 0.175039] FPGA manager framework
[ 0.175119] Advanced Linux Sound Architecture Driver Initialized.
[ 0.175695] Bluetooth: Core ver 2.22
[ 0.175719] NET: Registered PF_BLUETOOTH protocol family
[ 0.175724] Bluetooth: HCI device and connection manager initialized
[ 0.175733] Bluetooth: HCI socket layer initialized
[ 0.175740] Bluetooth: L2CAP socket layer initialized
[ 0.175753] Bluetooth: SCO socket layer initialized
[ 0.176801] imx-scu scu: NXP i.MX SCU Initialized
[ 0.204313] imx8qm-pinctrl scu:pinctrl: initialized IMX pinctrl driver
[ 0.209019] clocksource: Switched to clocksource arch_sys_counter
[ 0.243860] VFS: Disk quotas dquot_6.6.0
[ 0.243919] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.245259] pnp: PnP ACPI: disabled
[ 0.279094] NET: Registered PF_INET protocol family
[ 0.279330] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.281055] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.281096] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.281118] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.281328] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.281801] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.281905] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.281983] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.282185] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.282573] RPC: Registered named UNIX socket transport module.
[ 0.282579] RPC: Registered udp transport module.
[ 0.282583] RPC: Registered tcp transport module.
[ 0.282586] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.282596] PCI: CLS 0 bytes, default 64
[ 0.282777] Trying to unpack rootfs image as initramfs…
[ 0.299871] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.302104] kvm [1]: IPA Size Limit: 40 bits
[ 0.303352] kvm [1]: vgic-v2@52020000
[ 0.303373] kvm [1]: GIC system register CPU interface enabled
[ 0.303509] kvm [1]: vgic interrupt IRQ9
[ 0.303686] kvm [1]: Hyp mode initialized successfully
[ 0.480568] Freeing initrd memory: 5980K
[ 0.934574] Initialise system trusted keyrings
[ 0.934796] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[ 0.939302] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.939745] NFS: Registering the id_resolver key type
[ 0.939774] Key type id_resolver registered
[ 0.939779] Key type id_legacy registered
[ 0.939840] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 0.939846] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering…
[ 0.940013] 9p: Installing v9fs 9p2000 file system support
[ 0.976331] NET: Registered PF_ALG protocol family
[ 0.976343] Key type asymmetric registered
[ 0.976348] Asymmetric key parser ‘x509’ registered
[ 0.976403] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.976507] io scheduler mq-deadline registered
[ 0.976513] io scheduler kyber registered
[ 0.994088] EINJ: ACPI disabled.
[ 1.039026] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020
[ 1.039044] Mem abort info:
[ 1.039048] ESR = 0x0000000086000004
[ 1.039053] EC = 0x21: IABT (current EL), IL = 32 bits
[ 1.039059] SET = 0, FnV = 0
[ 1.039063] EA = 0, S1PTW = 0
[ 1.039067] FSC = 0x04: level 0 translation fault
[ 1.039072] [0000000000000020] user address but active_mm is swapper
[ 1.039080] Internal error: Oops: 0000000086000004 [#1] PREEMPT SMP
[ 1.039088] Modules linked in:
[ 1.039098] CPU: 5 PID: 14 Comm: rcu_preempt Not tainted 5.15.148-6.7.0-devel+git.94979392529c #1-TorizonCore
[ 1.039107] Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Evaluation Board (DT)
[ 1.039114] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=–)
[ 1.039132] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 1.039138] Mem abort info:
[ 1.039141] ESR = 0x0000000096000004
[ 1.039146] EC = 0x25: DABT (current EL), IL = 32 bits
[ 1.039151] SET = 0, FnV = 0
[ 1.039155] EA = 0, S1PTW = 0
[ 1.039159] FSC = 0x04: level 0 translation fault
[ 1.039163] Data abort info:
[ 1.039169] ISV = 0, ISS = 0x00000004
[ 1.039173] CM = 0, WnR = 0
[ 1.039177] [0000000000000000] user address but active_mm is swapper
[ 1.217112] mxs-dma 5b810000.dma-apbh: initialized
[ 1.220335] Bus freq driver module loaded
[ 1.229386] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.234143] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 59, base_baud = 5000000) is a FSL_LPUART
[ 1.234963] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 60, base_baud = 5000000) is a FSL_LPUART
[ 1.234990] fsl-lpuart 5a070000.serial: Serial: Console lpuart rounded baud ratefrom 35971 to 115200
[ 2.586390] printk: console [ttyLP1] enabled
[ 2.591798] 5a080000.serial: ttyLP2 at MMIO 0x5a080010 (irq = 61, base_baud = 5000000) is a FSL_LPUART
[ 2.602090] 5a090000.serial: ttyLP3 at MMIO 0x5a090010 (irq = 62, base_baud = 5000000) is a FSL_LPUART
[ 2.614619] arm-smmu 51400000.iommu: probing hardware configuration…
[ 2.621180] arm-smmu 51400000.iommu: SMMUv2 with:
[ 2.625894] arm-smmu 51400000.iommu: stage 1 translation
[ 2.631305] arm-smmu 51400000.iommu: stage 2 translation
[ 2.636710] arm-smmu 51400000.iommu: nested translation
[ 2.642037] arm-smmu 51400000.iommu: stream matching with 32 register groups
[ 2.649189] arm-smmu 51400000.iommu: 32 context banks (0 stage-2 only)
[ 2.655829] arm-smmu 51400000.iommu: Supported page sizes: 0x61311000
[ 2.662375] arm-smmu 51400000.iommu: Stage-1: 48-bit VA → 48-bit IPA
[ 2.668916] arm-smmu 51400000.iommu: Stage-2: 48-bit IPA → 48-bit PA
[ 2.675526] arm-smmu 51400000.iommu: preserved 0 boot mappings
[ 22.059010] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 22.065135] rcu: 4-…!: (2 GPs behind) idle=4ae/0/0x0 softirq=19/20 fqs=0 (false positive?)
[ 22.073759] rcu: 5-…!: (0 ticks this GP) idle=4cb/1/0x4000000000000000 softirq=15/15 fqs=0
[ 22.082390] (detected by 1, t=2104 jiffies, g=-1147, q=4)
[ 22.087885] Task dump for CPU 4:
[ 22.091118] task:swapper/4 state:R running task stack: 0 pid: 0 ppid: 1 flags:0x00000008
[ 22.101051] Call trace:
[ 22.103499] __switch_to+0x104/0x15c
[ 22.107094] tick_nohz_idle_stop_tick+0x1c4/0x2d4
[ 22.111815] rcu_eqs_enter.constprop.0+0x70/0x100
[ 22.116533] rcu_idle_enter+0x10/0x20
[ 22.120207] default_idle_call+0x3c/0x18c
[ 22.124229] do_idle+0x234/0x2a4
[ 22.127469] cpu_startup_entry+0x24/0x60
[ 22.131396] secondary_start_kernel+0x14c/0x180
[ 22.135940] __secondary_switched+0x90/0x94
[ 22.140139] Task dump for CPU 5:
[ 22.143370] task:rcu_preempt state:I stack: 0 pid: 14 ppid: 2 flags:0x00000008
[ 22.151740] Call trace:
[ 22.154182] __switch_to+0x104/0x15c
[ 22.157765] rcu_state+0x2260/0x2400
[ 22.161355] rcu: rcu_preempt kthread starved for 2112 jiffies! g-1147 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=5
[ 22.171807] rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
[ 22.180954] rcu: RCU grace-period kthread stack dump:
[ 22.186017] task:rcu_preempt state:I stack: 0 pid: 14 ppid: 2 flags:0x00000008
[ 22.194385] Call trace:
[ 22.196829] __switch_to+0x104/0x15c
[ 22.200418] rcu_state+0x2260/0x2400
[ 22.204008] rcu: Stack dump where RCU GP kthread last ran:
[ 22.209498] Task dump for CPU 5:
[ 22.212728] task:rcu_preempt state:I stack: 0 pid: 14 ppid: 2 flags:0x00000008
[ 22.221099] Call trace:
[ 22.223555] __switch_to+0x104/0x15c
[ 22.227132] rcu_state+0x2260/0x2400

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


It appears that your Apalis iMX8 device is encountering a kernel panic during boot, which is preventing it from starting up normally. This issue can be caused by various factors, including but not limited to, corrupted filesystems, incompatible device tree overlays, or hardware issues.

Given the complexity of the output and the nature of the problem, here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Reflash the Device: Since you mentioned attempting to flash a different OS using the Toradex Easy Installer, it’s possible that the process did not complete successfully or the image is corrupted. Try reflashing the device with a known good image using the Toradex Easy Installer.

  2. Check Device Tree Overlays: The log mentions applying device tree overlays for HDMI and SPI. If these overlays are incompatible with the kernel version or the hardware configuration, they might cause the system to crash. Review the overlays applied and ensure they are compatible with your kernel version and hardware setup.

  3. Inspect Hardware: Hardware issues, such as faulty RAM or storage, can lead to kernel panics. If possible, inspect the hardware for any obvious faults or try running diagnostics if available.

  4. Review Kernel Configuration: If you have a custom kernel configuration, ensure that it’s compatible with the Apalis iMX8 and doesn’t contain any experimental features that might be unstable.

  5. Serial Console Output: The serial console output you’ve provided is helpful. If you make any changes based on the above suggestions, observe the serial console output for any changes or additional clues that might help diagnose the issue.

  6. Minimal Boot: Attempt to boot the system with a minimal set of drivers and services to isolate the cause. You can do this by modifying the boot arguments if possible.

  7. Check for Known Issues: Review the Toradex community forums and the Torizon issue tracker for any known issues similar to yours. It’s possible that others have encountered this problem and found a solution.

If after following these steps the issue persists, it might be helpful to gather more detailed logs if possible and consider reaching out for more specific support with detailed information about the steps you’ve taken and the results.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

NXP i.MX and TI AM62x Recovery Mode | Toradex Developer Center.

Could you please clarify if you are getting this error while trying to load the Easy Installer or after you have successfully flashed a new OS image? If it is the latter, could you please specify which exact image you have flashed?

@alex.tx I successfully flashed the TorizonCore image previously. When I tried to put it in Recovery Mode again and load the Easy Installer, I got the above error.

@alex.tx
I am looking at the link below right now (section “Removing Conflicting DTO”). When the partition shows up on the host machine (drive D: in my Windows 11 machine), it says that the disk needs to be reformatted. Is this expected?
When I decline the reformat,
the next message says,

D:\ is not accessible.

The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted.

The link:

Could you please specify the version of the Toradex Easy Installer you’ve tried to load?

@alex.tx
Apalis iMX8 Toradex Easy Installer 6.6.0+build.6

Could you please try version 5.7.6 instead?

1 Like

Hi @alex.tx , I will use version 5.7.6 Toradex Easy Installer when I get the device out of its current bad state. Currently, the OTG USB doesn’t connect with the host machine.

Question: How do I get the device out of its bad state? I hit “any key to stop autoboot” then sent the command

ums 0 mmc 0

and the partition tries to display on the host machine but my Windows 11 host machine wants me to reformat the disk.

  1. Should I reformat it?

The terminal output:

Apalis iMX8 # ums 0 mmc 0
UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x1da4000
We are in is_imx8
Getting phy ctrl
\

It is perpetually displaying the slashes (/ and \ ) like a spinner. It doesn’t progress from here.

Could you please define a bad state? If you are able to stop the boot process at the U-Boot stage, it means the device boots properly and the bootloader works as expected. You may then have some issues with the OS starting. You need to analyze the OS boot log, fix the issue, build a new version of the OS, and then flash it using the Toradex Easy Installer.

The ums 0 mmc 0 command allows you to mount the device’s mmc partition 0 to your host computer, so you can modify its content. You don’t need to reformat it since the Toradex Easy Installer will handle formatting during the new image flashing.

@alex.tx

ok.

Next, I followed the instructions to load Toradex Easy Installer using a USB stick (because the device won’t connect with the host using USB OTG). The GUI for the Toradex Easy Installer doesn’t show on the device’s display.

Output from UART1:

With Toradex Easy Installer build 6.6.0+build.6:

Apalis iMX8 # run bootcmd_usb0
starting USB…
Bus usb@5b0d0000: USB EHCI 1.00
Bus usbh3: XHCI-imx8 init hccr 0x000000005b130000 and hcor 0x000000005b130080 hc_length 128
Register 2000820 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@5b0d0000 for devices… 1 USB Device(s) found
scanning bus usbh3 for devices… 2 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found

Device 0: Vendor: General Rev: 1100 Prod: USB Flash Disk
Type: Removable Hard Disk
Capacity: 29600.0 MB = 28.9 GB (60620800 x 512)
… is now current device
Scanning usb 0:1…
Found U-Boot script /boot.scr
1862 bytes read in 6 ms (302.7 KiB/s)

Executing script at 9d480000

117 bytes read in 5 ms (22.5 KiB/s)
45613880 bytes read in 1877 ms (23.2 MiB/s)
Bootargs: quiet video=LVDS-1:d video=HDMI-A-1:640x480-16@60D initcall_blacklist=vpu_driver_init rootfstype=squashfs root=/dev/ram autoinstall clk_ignore_unused pci=nomsi

Loading kernel from FIT Image at 8a000000 …

Using ‘conf-freescale_imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘kernel-1’ kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x8a000108
Data Size: 9932599 Bytes = 9.5 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x96000000
Entry Point: 0x96000000
Hash algo: sha256
Hash value: 2b0c4ddd695bdca335013b975e8ec30f9ef854a9526b88b5366f8a9271b3fd79
Verifying Hash Integrity … sha256+ OK

Loading ramdisk from FIT Image at 8a000000 …

Using ‘conf-freescale_imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘ramdisk-1’ ramdisk subimage
Description: tezi-initramfs
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x8ab4b764
Data Size: 33763328 Bytes = 32.2 MiB
Architecture: AArch64
OS: Linux
Load Address: 0xa0000000
Entry Point: unavailable
Hash algo: sha256
Hash value: 6dbc51de5fa2dd96310753a12036b5a155141d6c259cbfe1185c70a985cb61a6
Verifying Hash Integrity … sha256+ OK
Loading ramdisk from 0x8ab4b764 to 0xa0000000

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-freescale_imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘fdt-freescale_imx8qm-apalis-v1.1-eval.dtb’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8a9f6e70
Data Size: 170019 Bytes = 166 KiB
Architecture: AArch64
Load Address: 0x87000000
Hash algo: sha256
Hash value: 1aa6e8d1de3e59430ac8af9aba307dc04cfb094285dfbc0d1c064be02418095b
Verifying Hash Integrity … sha256+ OK
Loading fdt from 0x8a9f6e70 to 0x87000000

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-apalis-imx8_hdmi_overlay.dtbo’ configuration
Trying ‘fdt-apalis-imx8_hdmi_overlay.dtbo’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8ab46f40
Data Size: 2205 Bytes = 2.2 KiB
Architecture: AArch64
Load Address: 0x870f0000
Hash algo: sha256
Hash value: 27494b5832931c90815246243ccb652a83cd02323ba42a9e462ab3f69d128a96
Verifying Hash Integrity … sha256+ OK

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-apalis-imx8_spi1_spidev_overlay.dtbo’ configuration
Trying ‘fdt-apalis-imx8_spi1_spidev_overlay.dtbo’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8ab4b138
Data Size: 551 Bytes = 551 Bytes
Architecture: AArch64
Load Address: 0x870f0000
Hash algo: sha256
Hash value: c7227d70301c294cd83d6cc779016ca8f1ac5289cbb3a03fcbde223b7f0d7fe4
Verifying Hash Integrity … sha256+ OK

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-apalis-imx8_spi2_spidev_overlay.dtbo’ configuration
Trying ‘fdt-apalis-imx8_spi2_spidev_overlay.dtbo’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8ab4b464
Data Size: 551 Bytes = 551 Bytes
Architecture: AArch64
Load Address: 0x870f0000
Hash algo: sha256
Hash value: 8a1c004369d8f1318cace660c7581c3016c2952099acc4864abc2da5f5ba535f
Verifying Hash Integrity … sha256+ OK
Booting using the fdt blob at 0x87000000
Uncompressing Kernel Image
Loading Device Tree to 00000000fd647000, end 00000000fd673866 … OK

Starting kernel …

It stops at “Starting kernel …”

Output when using Toradex Easy Installer 5.7.6 build.21:

Apalis iMX8 # run bootcmd_usb0
starting USB…
Bus usb@5b0d0000: USB EHCI 1.00
Bus usbh3: XHCI-imx8 init hccr 0x000000005b130000 and hcor 0x000000005b130080 hc_length 128
Register 2000820 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@5b0d0000 for devices… 1 USB Device(s) found
scanning bus usbh3 for devices… 2 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found

Device 0: Vendor: General Rev: 1100 Prod: USB Flash Disk
Type: Removable Hard Disk
Capacity: 29600.0 MB = 28.9 GB (60620800 x 512)
… is now current device
Scanning usb 0:1…
Found U-Boot script /boot.scr
3246 bytes read in 6 ms (528.3 KiB/s)

Executing script at 9d480000

43 bytes read in 5 ms (7.8 KiB/s)
106496 bytes read in 10 ms (10.2 MiB/s)
Unknown command ‘hdp’ - try ‘help’
SCRIPT FAILED: continuing…

Loading the Toradex Easy Installer over USB OTG is a recommended way to load it. Do you mind providing details?

  • What is your carrier board?
  • How exactly is it connected to your host machine?
  • How exactly do you put the module into recovery mode?
  • What is the output of the recovery_xxx script on your developer machine?
  • What is the output on the module debug UART?"

@alex.tx Hi,

  • Ixora Carrier Board
  • Ixora is connected to the host machine through the USB OTG connector and directly to the host machine’s USB connector. No hub.
  • I put the module in recovery mode by turning the device off, short-circuit-ing recovery jumper JP4 (first two pins closest to “JP4” print), turn on the device, wait 6 seconds, then run the recovery-windows.bat from the host machine.

Output from host machine command prompt:

Downloading Toradex Easy Installer…
uuu (Universal Update Utility) for nxp imx chips – libuuu_1.4.127-0-g08c58c9

Success 0 Failure 0 Wait for Known USB Device Appear…

Output from the device (UART1):

U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 60C

DRAM: 4 GiB
Core: 194 devices, 20 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… OK
In: serial
Out: serial
Err: serial
Model: Toradex 0047 Apalis iMX8QM 4GB IT V1.1C
Serial#: 14682680

BuildInfo:

  • SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  • U-Boot 2022.04-6.7.0-devel+git.3428b470191c

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
mmc0(part 0) is current device
Scanning mmc 0:1…
Apalis iMX8 #

  • Have you removed JP2 on the Ixora board?
  • When you put the Apalis iMX8 module in recovery mode properly, nothing should be outputted from the debug UART until the OTG download completes successfully. If you see something on the debug UART when the system is powered on in recovery mode, it means it is not actually in recovery mode."

@alex.tx Hi, yes, I keep JP2 jumper off.

It was never in Recovery Mode? I tried to re-do Recovery Mode, but I will try, again.

@alex.tx
Hi, I put the device in Recovery mode “again” and ran recovery-windows.bat from the host machine. This time, the host and device were able to connect via USB OTG. However, I don’t see the Toradex Easy Installer GUI showing from the device. I’m using a computer monitor connected to the HDMI connector on the Ixora board. Monitor is powered and is on.

Toradex Easy Installer version: Apalis-iMX8_ToradexEasyInstaller_5.7.6+build.21>

Output from host machine:

Downloading Toradex Easy Installer…
uuu (Universal Update Utility) for nxp imx chips – libuuu_1.4.127-0-g08c58c9

Success 1 Failure 0

1:3 10/10 [Done ] FB: done

ECHO is off.
Successfully downloaded Toradex Easy Installer.
Press any key to continue . . .

Output from device (UART1):

U-Boot 2020.04-5.7.6+git.e72d2f7c00a1 (Mar 27 2024 - 12:09:03 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz

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 IT V1.1C, Serial# 14682680

BuildInfo:

  • SCFW 216a2c2e, SECO-FW c9de51c0, IMX-MKIMAGE 6a315dbc, ATF 2fa8c63
  • U-Boot 2020.04-5.7.6+git.e72d2f7c00a1

switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
flash target is MMC:0
Net: eth0: ethernet@5b040000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: select_dt_from_module_version && fastboot 0
Hit any key to stop autoboot: 0
We are in is_imx8
Getting phy ctrl
Detect USB boot. Will enter fastboot mode!
Starting download of 3246 bytes

downloading of 3246 bytes finished
Detect USB boot. Will enter fastboot mode!
Starting download of 43 bytes

downloading of 43 bytes finished
Detect USB boot. Will enter fastboot mode!
Starting download of 106496 bytes

downloading of 106496 bytes finished
Detect USB boot. Will enter fastboot mode!
Starting download of 48806296 bytes






downloading of 48806296 bytes finished

Executing script at 82e00000

Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
Bootargs: quiet video=LVDS-1:d video=HDMI-A-1:640x480-16@60D initcall_blacklist=vpu_driver_init rootfstype=squashfs root=/dev/ram autoinstall clk_ignore_unused pci=nomsi

Loading kernel from FIT Image at 8a000000 …

Using ‘conf-imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘kernel-1’ kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x8a000108
Data Size: 10879489 Bytes = 10.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x96000000
Entry Point: 0x96000000
Hash algo: sha256
Hash value: 123532ca2fc93ea07fb8e346a09a6db8b35dd5923b03287fd236cc7a6533d38a
Verifying Hash Integrity … sha256+ OK

Loading ramdisk from FIT Image at 8a000000 …

Using ‘conf-imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘ramdisk-1’ ramdisk subimage
Description: tezi-initramfs
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x8ac2cd4c
Data Size: 36032512 Bytes = 34.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0xa0000000
Entry Point: unavailable
Hash algo: sha256
Hash value: 37783ef35118d5b6b8449999b3bd91ded3667284d7f625527ab5bb09714005d4
Verifying Hash Integrity … sha256+ OK
Loading ramdisk from 0x8ac2cd4c to 0xa0000000

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-imx8qm-apalis-v1.1-eval.dtb’ configuration
Trying ‘fdt-imx8qm-apalis-v1.1-eval.dtb’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8aadc2ec
Data Size: 167592 Bytes = 163.7 KiB
Architecture: AArch64
Load Address: 0x87000000
Hash algo: sha256
Hash value: fcfb2ec7e32ca2b44a481df9145151ac9b798cd5e0ef0334b7fb26e0d3166b02
Verifying Hash Integrity … sha256+ OK
Loading fdt from 0x8aadc2ec to 0x87000000

Loading fdt from FIT Image at 8a000000 …

Using ‘conf-apalis-imx8_hdmi_overlay.dtbo’ configuration
Trying ‘fdt-apalis-imx8_hdmi_overlay.dtbo’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8ac27c38
Data Size: 2177 Bytes = 2.1 KiB
Architecture: AArch64
Load Address: 0x870f0000
Hash algo: sha256
Hash value: 75d00dae6d1d5de88ccd2ea8be1ba975496ee7a8d507eae6b5871089b4bd45f4
Verifying Hash Integrity … sha256+ OK
Loading fdt from 0x8ac27c38 to 0x870f0000
Booting using the fdt blob at 0x87000000
Uncompressing Kernel Image
Loading Ramdisk to fb3f1000, end fd64e000 … OK
Loading Device Tree to 00000000fb3c5000, end 00000000fb3f0e6b … OK

Starting kernel …

Do you have any other messages on the debug UART after the string above?

@alex.tx Hi. No. The output from UART1 ends at

Starting kernel …

@alex.tx

More info:

printenv
arch=arm
baudrate=115200
board=apalis-imx8
board_name=Apalis iMX8QM
board_rev=v1.0
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=mmc1 mmc2 mmc0 usb0 dhcp
bootcmd=run bootcmd_mmc0
bootcmd_dhcp=devtype=dhcp; run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_mmc1=devnum=1; run mmc_boot
bootcmd_mmc2=devnum=2; run mmc_boot
bootcmd_usb0=devnum=0; run usb_boot
bootcount=1
bootdelay=1
bootlimit=3
commit_atf=3c1583b
commit_mkimage=3bfcfccb
commit_scfw=6638c032
commit_secofw=c9de51c0
console=ttyLP1
cpu=armv8
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
eth1addr=00:14:2d:f0:0a:38
ethaddr=00:14:2d:e0:0a:38
fastboot_dev=mmc0
fdt_addr_r=0x9d400000
fdt_board=eval
fdtcontroladdr=fd679b30
fdtfile=imx8qm-apalis-v1.1-eval.dtb
initrd_addr=0x83800000
initrd_high=0xffffffffffffffff
ipaddr=192.168.10.2
kernel_addr_r=0x95400000
kernel_comp_addr_r=0xf0000000
kernel_comp_size=0x08000000
loadaddr=0x95400000
loadm4image_0=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4_0_image}
loadm4image_1=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4_1_image}
m4_0_image=m4_0.bin
m4_1_image=m4_1.bin
m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0
m4boot_1=run loadm4image_1; dcache flush; bootaux ${loadaddr} 1
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
netmask=255.255.255.0
preboot=test -n ${fdtfile} || setenv fdtfile ${soc}-apalis${variant}-${fdt_board}.dtb
ramdisk_addr_r=0x9d500000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}…; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing…; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing…; fi; done
scriptaddr=0x9d480000
serial#=14682680
serverip=192.168.10.1
setup=setenv setupargs console=tty1 console=${console},${baudrate} consoleblank=0 earlycon
soc=imx8qm
soc_rev=revb
soc_type=imx8qm
update_uboot=askenv confirm Did you load flash.bin resp. u-boot-dtb.imx (y/N)?; if test “$confirm” = “y”; then setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x0 ${blkcnt}; fi
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
variant=-v1.1
vendor=toradex
ver=U-Boot 2022.04-6.7.0-devel+git.3428b470191c (Jan 01 1970 - 00:00:00 +0000)

Environment size: 3413/8188 bytes

@alex.tx Any other tips? Thank you so much for the help!