Apalis Imx8 is freeze suddenly

Hello everyone,

I am using Apalis imx8 SOM with Ixora carrier board.
I have developed a GUI app(GTK3) that deals with videos (using gstreamer)
but my application sometime is freeze i thought it was because of my app
but once I tried to boot the device without running my app, it freeze after 26 minutes.
I need to check the behavior of imx8 module did anyone face such a problem with it in the previous issues?

Best Regards,
Rama Aloufee

Hi @rama.aloufee ,

Thanks for using the community.

Could you please state the full name of the module, its version (V1.1A), and the version of the carrier board you’re seeing this behavior on?

Furthermore, knowing which BSP version is installed on the device would be helpful. Are you using Torizon?

Have a good day.

Best Regards
Kevin

Hello Kevin,
sure,
Hardware version:
Ixora Carrier Board V1.2A
Apalis iMX8 QuadMax V1.1

software version for multimedia image:
ID=tdx-xwayland-rt
NAME=“TDX Wayland with XWayland RT”
VERSION=“5.4.0-devel-20211114122346+build.0 (dunfell)”
VERSION_ID=5.4.0-devel-20211114122346-build.0
PRETTY_NAME=“TDX Wayland with XWayland RT 5.4.0-devel-20211114122346+build.0 (dunfell)”

Best Regards,
Rama Aloufee

Hello Kiven,

Please find the below screen shot for hang-out issue case where I got Oops error from the kernel then everything got freeze

Best Regards,
Rama Aloufee

what if the problem was caused from the “htop” command it self?

Please find the below error msg that were caught on the UART putty terminal when the error occurred without running htop.

[17705.773603] 005: ------------[ cut here ]------------
[17705.773612] 005: kernel BUG at kernel/sched/deadline.c:1495!
[17705.773622] 005: Internal error: Oops - BUG: 0 [#1] PREEMPT_RT SMP
[17705.773631] 005: Modules linked in: 8021q rfcomm btusb btrtl btintel btbcm us b_f_rndis u_ether bluetooth ecdh_generic ecc mwifiex_pcie mwifiex crct10dif_ce c fg80211 rfkill ahci_imx atmel_mxt_ts flexcan can_dev mxc_jpeg_encdec libcomposit e configfs galcore(O)
[17705.773698] 005: CPU: 5 PID: 625953 Comm: main Tainted: G O 5. 4.129-rt61-5.4.0-devel+git.cb88cc157bfb #1
[17705.773707] 005: Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Evaluati on Board (DT)
[17705.773712] 005: pstate: 40000085 (nZcv daIf -PAN -UAO)
[17705.773718] 005: pc : enqueue_task_dl+0x78/0x450
[17705.773732] 005: lr : rt_mutex_setprio+0x2b0/0x3d0
[17705.773740] 005: sp : ffff80001ee2b7d0
[17705.773746] 005: x29: ffff80001ee2b7d0 x28: 000000000000002e
[17705.773754] 005: x27: 0000000000000001 x26: ffff800010e261c8
[17705.773761] 005: x25: ffff0008789b2b80 x24: ffff00087f74ecc0
[17705.773768] 005: x23: ffff00087f74ecc0 x22: ffff0008789b2d78
[17705.773774] 005: x21: ffff0008798f9d00 x20: 000000000000002e
[17705.773781] 005: x19: ffff0008789b2b80 x18: 0000000000000000
[17705.773787] 005: x17: 0000000000000000 x16: 0000000000000000
[17705.773793] 005: x15: 0000000000000000 x14: 0000000000000000
[17705.773799] 005: x13: 000000000000012c x12: 0000000000000217
[17705.773806] 005: x11: 000000000004c4b5 x10: 000000000000012c
[17705.773813] 005: x9 : 0000000000000001 x8 : ffff00087f74ecc0
[17705.773820] 005: x7 : ffff00087f74ecc0 x6 : 0000000000000000
[17705.773826] 005: x5 : 0000000000000032 x4 : ffff0008789b2f10
[17705.773833] 005: x3 : ffff800010128db8 x2 : ffff0008798f9d00
[17705.773839] 005: x1 : 0000000000000002 x0 : 0000000000000031
[17705.773844] 005: Call trace:
[17705.773848] 005: enqueue_task_dl+0x78/0x450
[17705.773854] 005: rt_mutex_setprio+0x2b0/0x3d0
[17705.773859] 005: task_blocks_on_rt_mutex+0x264/0x348
[17705.773865] 005: rt_spin_lock_slowlock_locked+0xc8/0x2a8
[17705.773875] 005: rt_spin_lock_slowlock+0x58/0x88
[17705.773881] 005: rt_spin_lock+0x70/0x80
[17705.773889] 005: imx_mu_xcr_rmw+0x2c/0x90
[17705.773898] 005: imx_mu_generic_tx+0xc4/0x148
[17705.773904] 005: imx_mu_send_data+0x24/0x30
[17705.773909] 005: msg_submit+0x90/0x110
[17705.773915] 005: mbox_send_message+0x74/0x118
[17705.773920] 005: imx_scu_ipc_write+0xac/0xf8
[17705.773928] 005: imx_scu_call_rpc+0x9c/0x1d8
[17705.773933] 005: imx_sc_thermal_get_temp+0x54/0xd8
[17705.773943] 005: of_thermal_get_temp+0x20/0x30
[17705.773950] 005: thermal_zone_get_temp+0x6c/0x148
[17705.773956] 005: temp_show+0x2c/0x70
[17705.773962] 005: dev_attr_show+0x1c/0x58
[17705.773971] 005: sysfs_kf_seq_show+0xa8/0x138
[17705.773979] 005: kernfs_seq_show+0x28/0x30
[17705.773983] 005: seq_read+0x140/0x4d8
[17705.773989] 005: kernfs_fop_read+0x24/0x208
[17705.773994] 005: __vfs_read+0x18/0x40
[17705.774002] 005: vfs_read+0xc8/0x1a0
[17705.774008] 005: ksys_read+0x68/0xf0
[17705.774015] 005: __arm64_sys_read+0x18/0x20
[17705.774022] 005: el0_svc_common.constprop.0+0x68/0x160
[17705.774031] 005: el0_svc_handler+0x20/0x80
[17705.774037] 005: el0_svc+0x8/0x204
[17705.774052] 005: Code: 370800c1 b9408660 37f80060 d503201f (d4210000)
[17705.774060] 005: —[ end trace 0000000000000002 ]—
[17705.774064] 005: note: main[625953] exited with preempt_count 4
[17705.774149] 005: ------------[ cut here ]------------
[17705.774154] 005: WARNING: CPU: 5 PID: 0 at kernel/rcu/tree.c:571 rcu_idle_ent er+0x78/0x80
[17705.774170] 005: Modules linked in: 8021q rfcomm btusb btrtl btintel btbcm us b_f_rndis u_ether bluetooth ecdh_generic ecc mwifiex_pcie mwifiex crct10dif_ce c fg80211 rfkill ahci_imx atmel_mxt_ts flexcan can_dev mxc_jpeg_encdec libcomposit e configfs galcore(O)
[17705.774216] 005: CPU: 5 PID: 0 Comm: swapper/5 Tainted: G D O 5. 4.129-rt61-5.4.0-devel+git.cb88cc157bfb #1
[17705.774223] 005: Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Evaluati on Board (DT)
[17705.774227] 005: pstate: 200003c5 (nzCv DAIF -PAN -UAO)
[17705.774232] 005: pc : rcu_idle_enter+0x78/0x80
[17705.774238] 005: lr : do_idle+0x244/0x288
[17705.774245] 005: sp : ffff8000118fbf30
[17705.774250] 005: x29: ffff8000118fbf30 x28: 0000000000000000
[17705.774257] 005: x27: 0000000000000000 x26: 0000000000000000
[17705.774263] 005: x25: 0000000000000000 x24: 0000000000000000
[17705.774270] 005: x23: ffff000878119d00 x22: ffff8000114e03f8
[17705.774276] 005: x21: ffff80001169e230 x20: 0000000000000005
[17705.774283] 005: x19: ffff80001169e158 x18: 000000000000000e
[17705.774289] 005: x17: 0000000000000001 x16: 0000000000000019
[17705.774295] 005: x15: 0000000000000000 x14: 000000000000005c
[17705.774302] 005: x13: 0000000000000003 x12: 0000000000000000
[17705.774308] 005: x11: 0000000000000000 x10: 0000000000000a60
[17705.774315] 005: x9 : ffff8000118fbe90 x8 : ffff00087811a7c0
[17705.774321] 005: x7 : ffff00087f7b2cc0 x6 : 00000020fcbefb66
[17705.774328] 005: x5 : 00ffffffffffffff x4 : ffff80086e2d0000
[17705.774334] 005: x3 : 4000000000000002 x2 : 4000000000000000
[17705.774341] 005: x1 : ffff8000114e38c0 x0 : ffff00087f7b38c0
[17705.774346] 005: Call trace:
[17705.774348] 005: rcu_idle_enter+0x78/0x80
[17705.774355] 005: do_idle+0x244/0x288
[17705.774361] 005: cpu_startup_entry+0x20/0x80
[17705.774367] 005: secondary_start_kernel+0x16c/0x198
[17705.774374] 005: —[ end trace 0000000000000003 ]—

Hi @rama.aloufee !

You are using BSP 5.4 with PreempRT patch.

Could you please test on BSP 5.7 (the latest one) but without the PreempRT patch?

Also, is you Apalis iMX8 QuadMax Wi-Fi/Bluetooth? Does it have 4Gb of RAM or 8Gb? Also, which letter is your V1.1 version?

Best regards,

Hello Henrique,

My Som is: Apalis iMX8 QuadMax 4GB Wi-Fi / Bluetooth IT V1.1C

Also, I have questions regarding the latest BSP:
1- Shall I try to install it from easy installer?
2- How to disable preetmpRT patch? is it coming as an option with easy installer options?
3- Does removing the Real time patch going to affect my application?

Hi @rama.aloufee,

How are you?

Indeed this is the way to go. You can connect your module to the internet and download the image from our feeds or even download them from our site and connect to the module through an USB stick /SD Card (Toradex Download Links (Torizon, Linux BSP, WinCE and Partner Demos) | Toradex Developer Center)

When you download from the feeds it may appear as an option, you’d just need to select one without it. If you’re building your image with Yocto, you should change the distro value.

It depends if your application uses anything from the RT Patch or not. If it doesn’t use anything, then you should be fine.

Please tell us if this helps,

Best regards,