Which system do you use? Android, Ubuntu, OOWOW or others?
`Fenix Debian 12 - Minimal
Fenix Debian 12 - Server
OOWOW Ubuntu 1.7.x
(Tried all three)
`
Which version of system do you use? Please provide the version of the system here:
**1.7.2**
Please describe your issue below:
**Hardware H264 crashes kernel**
Post a console log of your issue below:
Command line:
$ ffmpeg -c:v h264_v4l2m2m -i rtsp://192.168.10.134:8554/garden_high_cam -f null /dev/null
Kernel logs
Nov 24 11:12:04 Khadas kernel: [amlcom]:vdec_create instance 0000000058244886, total 1, PM: power-domain
Nov 24 11:12:04 Khadas kernel: [media_clock]: vdec mux clock is 799999988 Hz
Nov 24 11:12:04 Khadas kernel: [amlcom]:vdec_init, dev_name:ammvdec_h264_v4l, vdec_type=VDEC_TYPE_FRAME_BLOCK, format: 2, total: 1
Nov 24 11:12:04 Khadas kernel: [h264]:0: pdata->config=parm_v4l_codec_enable:1;mh264_double_write_mode:16;parm_v4l_buffer_margin:7;parm_v4l_canvas_mem_mode:0;parm_v4l_canvas_mem_endian:0;
Nov 24 11:12:04 Khadas kernel: [h264]:ammvdec_h264_mmu_init tvp = 0x0
Nov 24 11:12:04 Khadas kernel: [media_clock]: vdec mux clock is 799999988 Hz
Nov 24 11:12:04 Khadas kernel: [h264]:vh264_init, phy_addr=98200000 vaddr=000000001b74c61b
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000868
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: Mem abort info:
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: ESR = 0x96000005
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: EC = 0x25: DABT (current EL), IL = 32 bits
Nov 24 11:12:04 Khadas kernel: SET = 0, FnV = 0
Nov 24 11:12:04 Khadas kernel: EA = 0, S1PTW = 0
Nov 24 11:12:04 Khadas kernel: FSC = 0x05: level 1 translation fault
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: Data abort info:
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: ISV = 0, ISS = 0x00000005
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: CM = 0, WnR = 0
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: user pgtable: 4k pages, 39-bit VAs, pgdp=0000000122a40000
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: [0000000000000868] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Nov 24 11:12:04 Khadas kernel: Modules linked in:
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: zram(E) snd_seq(E) dhd(E) amvenc_multi(E) jpegenc(E) encoder_common(E) media_sync(E) amvdec_avs2_fb_v4l(E)
Nov 24 11:12:04 Khadas kernel: [amlv4l]:[2]: Post event: dec err
Nov 24 11:12:04 Khadas kernel: amvdec_mavs_v4l(E) amvdec_avs2_v4l(E) amvdec_avs3_v4l(E) amvdec_av1_v4l(E) amvdec_av1(E) amvdec_mavs(E) amvdec_avs2(E) amvdec_vp9_v4l(E) amvdec_vp9(E) amvdec_vc1(E)
Nov 24 11:12:04 Khadas kernel: [amlcom]:optee_load_fw ret ffff0007, core 0, is_swap 0
Nov 24 11:12:04 Khadas kernel: amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) usbkbd(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E)
Nov 24 11:12:04 Khadas kernel: [h264]:0: MH264 the TEE fw loading failed, err: ffff0007
Nov 24 11:12:04 Khadas kernel: amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) amvdec_ports(E) stream_input(E)
Edit
NOTES: Does not work with OOWOW Ubuntu Image either.