Hi currently I am working on I-Pi SMARC 1200. I have built the Yocto Image and enabled the mtk-camera entries. It has built without any issues and I am using the default ap1302 overlay ( camera-ar0830-ap1302-csi0-std.dtbo ). I am flashing with this using genio-flash –load-dtbo camera-ar0830-ap1302-csi0-std.dtbo. While booting the mtk-camera is failing and causing it to crash. I have not connected any hardware ( camera ). Can you kindly let me know how to mitigate this crash. I have attached the log below
[ 4.870237] mtk_cam_get_meta_fmts platform fp is NULL
[ 4.871822] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
[ 4.874351] Mem abort info:
[ 4.875039] ESR = 0x96000004
[ 4.875498] EC = 0x25: DABT (current EL), IL = 32 bits
[ 4.876473] SET = 0, FnV = 0
[ 4.876876] EA = 0, S1PTW = 0
[ 4.877780] FSC = 0x04: level 0 translation fault
[ 4.878413] Data abort info:
[ 4.878785] ISV = 0, ISS = 0x00000004
[ 4.879278] CM = 0, WnR = 0
[ 4.879899] user pgtable: 4k pages, 48-bit VAs, pgdp=00000001092ba000
[ 4.881344] [0000000000000008] pgd=0000000000000000, p4d=0000000000000000
[ 4.882390] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 4.883111] Modules linked in: crct10dif_ce mediatek_drm_hdmi mtk_cam_isp(O+) mtk_vcodec_dec_v1_mt8395(O) mtk_vcodec_enc_v1_mt8395(O) mtk_vcu_mt8395(O) mtk_vcodec_common_mt8395(O) mtk_jpeg mtk_mdp3 mtk_cam_plat_util(O) v4l2_fwnode v4l2_mem2mem v4l2_async videobuf2_dma_contig mtk_ccd(O) mtk_ccd_rpmsg(O) videobuf2_memops videobuf2_v4l2 ftdi_sio videobuf2_common videodev mc rtc_pcf8563 snd_soc_tlv320aic3x_i2c mali_kbase(O) snd_soc_tlv320aic3x memory_group_manager(O) phy_mtk_hdmi_drv mtk_pmic_keys rtc_mt6397 mtk_scp mtk_rpmsg mtk_rng mtk_scp_ipi rng_core pwm_bl moal mlan cfg80211 rfkill fuse ipv6
[ 4.889883] CPU: 0 PID: 280 Comm: systemd-udevd Tainted: G O 5.15.42-lec-mtki1200-23.2 #1
[ 4.891091] Hardware name: Adlinktech LEC-MTK-I1200 board with UFS storage (DT)
[ 4.892021] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=–)
[ 4.892910] pc : mtk_cam_video_register+0x180/0x420 [mtk_cam_isp]
[ 4.893757] lr : mtk_cam_video_register+0x158/0x420 [mtk_cam_isp]
[ 4.894593] sp : ffff80000bbf3610
[ 4.895020] x29: ffff80000bbf3610 x28: ffff0000cccc14a8 x27: ffff0000cccc0f60
[ 4.895938] x26: ffff0000cccc0d08 x25: ffff0000cccc1510 x24: 0000000000000001
[ 4.896856] x23: ffff0000cccc0080 x22: ffff0000cccc16f0 x21: ffff0000cccc0088
[ 4.897774] x20: ffff800001b22730 x19: ffff0000cccc0ca8 x18: 0000000000000000
[ 4.898691] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 4.899607] x14: 0000000000000000 x13: 0000000000000000 x12: fefefefefefefeff
[ 4.900524] x11: 0000ffffa37b0ec0 x10: 000000000000002d x9 : ffff800001af19d8
[ 4.901442] x8 : 000000000000002d x7 : 0000000000000003 x6 : 000000000000002d
[ 4.902358] x5 : 00000000000000e8 x4 : 0000000000000048 x3 : 000000000000000e
[ 4.903274] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000002
[ 4.904190] Call trace:
[ 4.904508] mtk_cam_video_register+0x180/0x420 [mtk_cam_isp]
[ 4.905300] mtk_raw_register_entities+0x5ec/0xa10 [mtk_cam_isp]
[ 4.906126] mtk_cam_master_bind+0x12c/0x35c [mtk_cam_isp]
[ 4.906884] try_to_bring_up_master+0x16c/0x1e0
[ 4.907474] component_master_add_with_match+0xbc/0x104
[ 4.908146] mtk_cam_probe+0x638/0x7c4 [mtk_cam_isp]
[ 4.908839] platform_probe+0x74/0x114
[ 4.909326] really_probe.part.0+0xa4/0x310
[ 4.909867] __driver_probe_device+0xf0/0x1a0
[ 4.910429] driver_probe_device+0x4c/0x1a0
[ 4.910968] __driver_attach+0x114/0x1f0
[ 4.911474] bus_for_each_dev+0x80/0xe0
[ 4.911970] driver_attach+0x30/0x40
[ 4.912433] bus_add_driver+0x114/0x214
[ 4.912928] driver_register+0x84/0x140
[ 4.913424] __platform_driver_register+0x34/0x40
[ 4.914029] mtk_cam_init+0x30/0x1000 [mtk_cam_isp]
[ 4.914712] do_one_initcall+0x54/0x2b0
[ 4.915209] do_init_module+0x50/0x260
[ 4.915696] load_module+0x23c0/0x29e0
[ 4.916181] __do_sys_finit_module+0xa8/0xf0
[ 4.916732] __arm64_sys_finit_module+0x2c/0x40
[ 4.917316] invoke_syscall+0x50/0x120
[ 4.917802] el0_svc_common.constprop.0+0xdc/0x100
[ 4.918419] do_el0_svc+0x34/0xa0
[ 4.918849] el0_svc+0x48/0x170
[ 4.919260] el0t_64_sync_handler+0xa8/0x130
[ 4.919808] el0t_64_sync+0x1a0/0x1a4
[ 4.920287] Code: b9401e63 b9086a63 8b022022 37180d60 (b9400840)
[ 4.921066] —[ end trace 3803a5450dd17a46 ]—
[ 5.024129] mt8195-audio 10890000.mt8195-afe-pcm: mt8195_mt6359_mtkaif_calibration(), start
[ 5.025861] mt8195-audio 10890000.mt8195-afe-pcm: mt8195_mt6359_mtkaif_calibration(), end, calibration ok 0
[ 5.098274] systemd-journald[221]: Oldest entry in /run/log/journal/e99fff16ec2f409e898fd783bb018cdf/system.journal is older than the configured file retention duration (1month), suggesting rotation.
[ 5.100510] systemd-journald[221]: /run/log/journal/e99fff16ec2f409e898fd783bb018cdf/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 5.124370] [MTK_V4L2] level=0 venc_if_get_param(),87: venc_if_get_param init drv_handle = 0xffff0000c635df00
[ 5.125712] [MTK_V4L2] level=0 venc_if_get_param(),87: venc_if_get_param init drv_handle = 0xffff0000c635df00
[ 5.126977] [MTK_V4L2] level=0 fops_vcodec_open(),158: 1a020000.venc encoder [1]
[ 5.128022] [MTK_V4L2] level=0 fops_vcodec_release(),196: [1] encoder
[ 5.128437] input: mt8195_demo HDMI Jack as /devices/platform/mt8195-sound/sound/card0/input1
[ 5.133859] mediatek-dpi 1c112000.disp_dpi1: Found bridge node: /soc/hdmi@1c300000
[ 5.134749] [MTK_V4L2] level=0 mtk_vdec_s_ctrl(),3451: [1] V4L2_CID_MPEG_MTK_SEC_DECODE id 10035211 val 0
[ 5.136084] [MTK_V4L2] level=0 fops_vcodec_open(),180: 18000000.vdec decoder [1]
[ 5.137130] [MTK_V4L2] level=0 fops_vcodec_release(),232: [1] decoder
[ 5.178243] mt8195-audio 10890000.mt8195-afe-pcm: mt8195_adda6_only_set(), kcontrol name MTKAIF_ADDA6_ONLY, mtkaif_adda6_only 0
[ 5.322870] usbcore: registered new interface driver lan78xx