Apalis iMX8 QuadMax 8GB Wi-Fi / Bluetooth IT Kernal Continously Restarting

Hello All,

We purchased Apalis iMX8 QuadMax 8GB Wi-Fi / Bluetooth IT with Apalis Evaluation Board V1.1Z.

The initial setup was ok and we were able to run applications on the device also. But after 4/5 days of working on it, the system abruptly crashed.

When I view the UART debug terminal, the kernel keep restarting again and again continuously.

We have tried re-installing the Toradex Easy Installer through USB OTG and USB memory as well, as given on the Toradex website, but it does not load the easy installer.

Could anyone please help us?

Hello @sachinkumarbhoi , welcome to the community.

Could you please share with us the UART output that shows these restarts?

Best regards,
Josep

This is the output we are getting with the UART debugger output


U-Boot 2022.04-6.3.0+git.c71ae7141f30 (Jan 01 1970 - 00:00:00 +0000)

 

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

 

DRAM:  8 GiB

Core:  193 devices, 19 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 0067 Apalis iMX8QM 8GB WB IT V1.1A

Serial#: 14903912

 

BuildInfo:

  - SCFW f5623878, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b

  - U-Boot 2022.04-6.3.0+git.c71ae7141f30

 

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

6633 bytes read in 4 ms (1.6 MiB/s)

169157 bytes read in 7 ms (23 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)

13348013 bytes read in 293 ms (43.4 MiB/s)

11528894 bytes read in 253 ms (43.5 MiB/s)

   Uncompressing Kernel Image

## Flattened Device Tree blob at 9d400000

   Booting using the fdt blob at 0x9d400000

   Loading Device Tree to 00000000fd622000, end 00000000fd66efff ... OK

 

Starting kernel ...

 

[    1.775652] debugfs: Directory 'lvds1' with parent 'pm_genpd' already present!

[    1.783015] debugfs: Directory 'mipi1-i2c1' with parent 'pm_genpd' already present!

[    1.790745] debugfs: Directory 'mipi1-i2c0' with parent 'pm_genpd' already present!

[    1.798464] debugfs: Directory 'mipi1-pwm0' with parent 'pm_genpd' already present!

[    1.806392] debugfs: Directory 'mipi1' with parent 'pm_genpd' already present!

Starting version 250.5+

[    7.099462] debugfs: File 'Capture' in directory 'dapm' already present!

[    7.962559] imx-audmix imx-audmix.0: failed to find SAI platform device

[   16.103858] Bluetooth: hci0: unexpected event for opcode 0x0000

[   31.277741] systemd-shutdown[1]: Failed to set timeout to 10min: Invalid argument

[   31.864074] reboot: Restarting system

 

 

U-Boot 2022.04-6.3.0+git.c71ae7141f30 (Jan 01 1970 - 00:00:00 +0000)

 

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

 

DRAM:  8 GiB

Core:  193 devices, 19 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 0067 Apalis iMX8QM 8GB WB IT V1.1A

Serial#: 14903912

 

BuildInfo:

  - SCFW f5623878, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b

  - U-Boot 2022.04-6.3.0+git.c71ae7141f30

 

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

6633 bytes read in 3 ms (2.1 MiB/s)

169157 bytes read in 8 ms (20.2 MiB/s)

117 bytes read in 4 ms (28.3 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 3 ms (178.7 KiB/s)

13348013 bytes read in 292 ms (43.6 MiB/s)

11528894 bytes read in 254 ms (43.3 MiB/s)

   Uncompressing Kernel Image

## Flattened Device Tree blob at 9d400000

   Booting using the fdt blob at 0x9d400000

   Loading Device Tree to 00000000fd622000, end 00000000fd66efff ... OK

 

Starting kernel ...

 

[    1.875700] debugfs: Directory 'lvds1' with parent 'pm_genpd' already present!

[    1.883063] debugfs: Directory 'mipi1-i2c1' with parent 'pm_genpd' already present!

[    1.890940] debugfs: Directory 'mipi1-i2c0' with parent 'pm_genpd' already present!

[    1.898632] debugfs: Directory 'mipi1-pwm0' with parent 'pm_genpd' already present!

[    1.906312] debugfs: Directory 'mipi1' with parent 'pm_genpd' already present!

Starting version 250.5+

[    6.980412] debugfs: File 'Capture' in directory 'dapm' already present!

[    7.665951] imx-audmix imx-audmix.0: failed to find SAI platform device

[   15.883555] Bluetooth: hci0: unexpected event for opcode 0x0000

[   31.398448] systemd-shutdown[1]: Failed to set timeout to 10min: Invalid argument

[   32.163907] reboot: Restarting system

Hello @sachinkumarbhoi ,
Did this issue happen after trying to downgrade from Torizoncore 6 to TorizonCore5?

Best regards,
Josep

Hello

No, we didn’t try to downgrade.

I was trying to run an application directly through SSH without (VSCode + Host PC method) by myself in the Apalis board, then suddenly I got disconnected and when I tried connecting again, I could not connect via SSH.

Then we checked the UART output, and we saw that the system is restarting continuously.

Hello @sachinkumarbhoi ,

is that a custom application or one of ours?

Best regrds,
Josep

It is a simple Python code on torizon debian I was trying to run. Also, I was not running any code actively while it happened. It was just connected to SSH.

Hello @sachinkumarbhoi ,
Since your problem might be difficult to reproduce, let’s focus on the recovery procedure.

Can you explain the steps that you took to put the module in recovery mode and load Toradex Easy Installer?
Please also share the output of the recovery script and the debug UART while performing this procedure.

Best regards,
Josep

We have tried two different procedure, both of which is not fruitful

  1. Loading Toradex Easy Installer | Toradex Developer Center

We connected the OTG port X49 to the computer using the required cable. Our guess is system can’t find the USB device.

  1. Load Easy Installer From External Media (SD Card/USB Stick) | Toradex Developer Center

We formatted a USB stick and renamed the boot-tezi.scr to boot.scr, and followed the procedure.

The boot fails, and here is attached UART output

Starting version 250.5+


[    7.137759] debugfs: File 'Capture' in directory 'dapm' already present!
[    7.886088] imx-audmix imx-audmix.0: failed to find SAI platform device
[   15.859757] Bluetooth: hci0: unexpected event for opcode 0x0000
[   31.279861] systemd-shutdown[1]: Failed to set timeout to 10min: Invalid argument
[   31.923894] reboot: Restarting system


U-Boot 2022.04-6.3.0+git.c71ae7141f30 (Jan 01 1970 - 00:00:00 +0000)

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

DRAM:  8 GiB
Core:  193 devices, 19 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 0067 Apalis iMX8QM 8GB WB IT V1.1A
Serial#: 14903912

 BuildInfo:
  - SCFW f5623878, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
  - U-Boot 2022.04-6.3.0+git.c71ae7141f30

flash target is MMC:0
Net:   eth0: ethernet@5b040000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
Apalis iMX8 #
Apalis iMX8 #
Apalis iMX8 # usb info
USB is stopped. Please issue 'usb start' first.
Apalis iMX8 # usb start
starting USB...
Bus usb@5b0d0000: Port not available.
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 usbh3 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Apalis iMX8 # usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  U-Boot XHCI Host Controller
  |
  +-2  Mass Storage (480 Mb/s, 500mA)
       SMI Corporation USB DISK CCYYMMDDHHmmSS8OW4R2

Apalis iMX8 # run bootcmd_usb0

Device 0: Vendor: SMI      Rev: 1100 Prod: USB DISK
            Type: Removable Hard Disk
            Capacity: 15200.0 MB = 14.8 GB (31129600 x 512)
... is now current device
Scanning usb 0:1...
Found U-Boot script /boot.scr
3192 bytes read in 5 ms (623 KiB/s)
## Executing script at 9d480000
43 bytes read in 5 ms (7.8 KiB/s)
** No boot file defined **
Unknown command 'hdp' - try 'help'
SCRIPT FAILED: continuing...
Apalis iMX8 #

Hello @sachinkumarbhoi

Have you ensured that you put the device in recovery mode, as described here?

You have to make sure that you temporarily short the two indicated pads, marked on the picture in order to put the module in recovery mode.

Best regards,
Josep

Hello Joseph

We did the short circuit as it is given on the website. However, the device does not seem to be entering the recovery mode.

Are we missing something?

Regards,
Sachin

How do you verify that the device is not entering recovery mode? Please ensure that the pads are securely shorted before you apply power, and they should be released 6 seconds after the module powers on. You can determine if the module is in recovery mode by the absence of any output on the debug UART.

@alex.tx
We did follow the correct procedure to enter recovery mode. We have verified using UART output, and the UART output never stops.

Hello @sachinkumarbhoi ,
Since the module cannot be put in recovery mode, you can start an RMA as explained here:

Best regards,
Josep