Kernel panic - Compulab IOT-gate-imx8

Hi,

I have an IOT-gate-imx8 that was flashed and working with balenaOS 5.3.23. I then attempted to replace the OS with Compulab’s Debian image following these instructions.

Unfortunately after running cl-deploy from those instructions, I’ve somehow managed to put my device in a kernel panic and it never boots to BalenaOS (or Debian).

Here is the output from minicom -D /dev/cu.usbserial-028A400C 115200 on my Mac connected to the console port by USB.

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.32-iot-gate-imx8m-3.2.2+ (oe-user@oe-host) (a2
[    0.000000] Machine model: CompuLab SB-IOTGIMX8 board
[    0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030880000 (options '115200')
[    0.000000] printk: bootconsole [ec_imx6q0] enabled
[    0.111413] No BMan portals available!
[    0.112797] No QMan portals available!
[    0.111413] No BMan portals available!
[    0.112797] No QMan portals available!
[    0.336835] caam_jr 30901000.jr: failed to flush job ring 0
[    0.336835] caam_jr 30901000.jr: failed to flush job ring 0
[    0.413223] rtc-abx80x 1-0069: Create sysfs group: 0
[    0.413223] rtc-abx80x 1-0069: Create sysfs group: 0
Starting version 250
[    1.921603] sd 0:0:0:0: [sda] No Caching mode page found
[    1.921603] sd 0:0:0:0: [sda] No Caching mode page found
[    1.932533] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    1.932533] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.282911] Kernel panic - not syncing: Attempted to kill init! exitcode=0x07
[    3.282911] Kernel panic - not syncing: Attempted to kill init! exitcode=0x07
[    3.298221] CPU: 2 PID: 1 Comm: init Not tainted 5.15.32-iot-gate-imx8m-3.2.1
[    3.298221] CPU: 2 PID: 1 Comm: init Not tainted 5.15.32-iot-gate-imx8m-3.2.1
[    3.313171] Hardware name: CompuLab SB-IOTGIMX8 board (DT)
[    3.313171] Hardware name: CompuLab SB-IOTGIMX8 board (DT)
[    3.324124] Call trace:
[    3.324124] Call trace:
[    3.328997]  dump_backtrace+0x0/0x1a0
[    3.328997]  dump_backtrace+0x0/0x1a0
[    3.336313]  show_stack+0x18/0x24
[    3.336313]  show_stack+0x18/0x24
[    3.342926]  dump_stack_lvl+0x68/0x84
[    3.342926]  dump_stack_lvl+0x68/0x84
[    3.350237]  dump_stack+0x18/0x34
[    3.350237]  dump_stack+0x18/0x34
[    3.356849]  panic+0x160/0x358
[    3.356849]  panic+0x160/0x358
[    3.362942]  do_exit+0x99c/0x9ec
[    3.362942]  do_exit+0x99c/0x9ec
[    3.369385]  do_group_exit+0x38/0xa0
[    3.369385]  do_group_exit+0x38/0xa0
[    3.376518]  get_signal+0x160/0x8f0
[    3.376518]  get_signal+0x160/0x8f0
[    3.383480]  do_notify_resume+0x22c/0x1310
[    3.383480]  do_notify_resume+0x22c/0x1310
[    3.391656]  el0_da+0x50/0x60
[    3.391656]  el0_da+0x50/0x60
[    3.397576]  el0t_64_sync_handler+0xe8/0x130
[    3.397576]  el0t_64_sync_handler+0xe8/0x130
[    3.406100]  el0t_64_sync+0x1a0/0x1a4
[    3.406100]  el0t_64_sync+0x1a0/0x1a4
[    3.413411] SMP: stopping secondary CPUs
[    3.413411] SMP: stopping secondary CPUs
[    3.421242] Kernel Offset: disabled
[    3.421242] Kernel Offset: disabled
[    3.428201] CPU features: 0x00002001,20000846
[    3.428201] CPU features: 0x00002001,20000846
[    3.436897] Memory Limit: none
[    3.436897] Memory Limit: none
[    3.442991] Rebooting in 1 seconds..
[    3.442991] Rebooting in 1 seconds..

Also when I run uuu -lsusb on my Mac I get 0 Connected Known USB Devices.

Any idea how I can remove BalenaOS and get the device to boot into Debian?

Thanks