Ugoos AM6+, hardware decoder not working

In dmesg on am6plus between kernel 515.119 and 5.15.153 i found interesting differences:

kernel 5.15.119 had: parse_ucode_version, ucode = 0.4.62
kernel 5.15.153 had: The ucode driver version is v0.4. The firmware version is 0.4.177-g21b4f831
(on both cases was tee not needed according to jc -u opentee_linuxdriver | paste) Ugoos AM6+, hardware decoder not working - #20 by atirage21

**In dmesg at newer kernel 5.15.153 are missing lines about important cma memory for working codecs, please check differences between both dmesgs:
[ 7.475406] amlvideo2.1 cma memory is 9c000000 , size is 1800000
[ 7.475738] amlvideo2.1 cma memory release succeed
[ 7.482055] amlvideo2.0 cma memory is 9d800000 , size is 1800000
[ 7.482390] amlvideo2.0 cma memory release succeed

Errors from dmesg with working video decode on kernel 515119 (29.3 KB)
Errors from dmesg with NOT working video decode on kernel 515153 (31.3 KB)

Online logs from 5.15.119: https://paste.coreelec.org/DatesSpalding
Online logs from 5.15.153: https://paste.coreelec.org/MertinTiamat

If you dont know solved so i respect it. I tried only help with identification of issues.

There is no issue. You need to advise some by provide a sample what is working with old version and not on new kernel version.

All samples you shared already are working fine on latest nightly.

Ok, it is some bad magic for me. For testing are good these free samples: Sample Content

Taked photos with playing on last nightly build of CE22NO. (…on older kernel .119 on oldest build of CE22NO is good HW playing all these videos on my device. Only newer kernel have bug on my device. Exception are videos in mjpeg, but is other “story”. MJPEG are problematic also in android on this device: Missing support for Motion jpeg (as mjpeg or .avi) in case of s922x and maybe others amlogic processors).

I have last idea, that create directory for loading of video_ucode.bin, in that is maybe trouble with not mounted vendor filesystem on my device on CE22NO.It would be help to changing maybe incompatible Android ucode firmwares (with xj?) to CE22NO. You have identical ucode on am6plus as i have? Ugoos AM6+, hardware decoder not working - #14 by atirage21

Only samples from this page going now on CE22NO with my device (but in reality are videos more in formats of first-upper samples page): MKV ( H.264 ) | Test Videos


Log of playing of supported samples (42.9 KB)

Also WMV going now ok with last nightly build of CE22NO. MJPEG have issue as chosed h264.


Samples of VMW and MJPEG (original with troubles of HW acceleration on older NO with older kernel):
https://www.dropbox.com/scl/fi/66zbwom81h4urxa1leg67/VTestFile.zip?rlkey=hkt30q6arg4kyo2qkcmpxw5sl&e=3&st=5vp3m0k6&dl=0

https://www.dropbox.com/scl/fi/hggy8wmea3u1mqlib5onw/mvi_7530-recode.avi?rlkey=b1p0867y0jo3354m9zzrm8cuh&e=3&dl=0

Portisch reply here is clear, Go back to CE-NE
CE-NO prefer Android ucode 4.1 or above

Am6plus was never compatible with CE22NE and this device is not so affected with TEE. Mainly troubles was after update kernel 5.15.119 to newer kernel. But solution for wmv is example that team CE know fix it.

I try effective descibe of situation. Two files from samples are good as example for testing.

With last nightly build of CE22NO.
https://paste.coreelec.org/EmotionsMatter - playing of h264
https://paste.coreelec.org/ToxinsGuise - playing of mjpeg

BUN33s.mp4 - only sound, no video, no black screen
dmesg errors from playing h264 (55.6 KB) - freezing of CE screen and sound playing (1. test)
dmesg errors from playing h264.txt (49.2 KB)

mvi_7530-recode.avi - 4 second video playing longer with black screen
dmesg errors from playing mjpeg (55.3 KB)

Sources:

https://www.dropbox.com/scl/fi/hggy8wmea3u1mqlib5onw/mvi_7530-recode.avi?rlkey=b1p0867y0jo3354m9zzrm8cuh&e=3&dl=0

I still have no idea what you try to do.
For such media with so low resolution or such old codecs used just turn off hardware decoder.

Tested now again all on SC2 device with last nightly:

Dune:~/videos/atirage21 # ls -al
total 47704
drwxrwxr-x    2 root     root          4096 Mar 23 10:21 .
drwxr-xr-x    3 root     root          4096 Mar 23 10:19 ..
-rw-rw-r--    1 root     root       3915916 Mar 23 10:19 bun33s.flv
-rw-rw-r--    1 root     root       3897173 Mar 23 10:16 bun33s.mp4
-rw-rw-r--    1 root     root       1900868 Mar 23 10:16 bun33s.ts
-rw-rw-r--    1 root     root      39115190 Mar 23 10:16 bunny.mp4

all work fine

OK, you tested on SC2 and i have s922. So is it meaning for example that any drivers for s922 are missing in newer kernel compare to older 5.15.119 ? Drivers are in kernel and troubles started only after a change of kernel on my older device.

No, all is working as it should.
Just you missed to delete your 20 years old samples and use some newer one in HD.

I think to close this item now as there is no issue.
Maybe you have a faulty hardware unit.

When something new comes up we can open it again.

1 Like

Today I was running the sample on g12b and most of them do not play.
They all play fine on newer SoC.

@atirage21 you can try to download this firmware version:

Then store it on the device under /storage/.config/firmware/video/video_ucode.bin

It is this commit break these h264 files:

But I am not sure what else will break when downgrade the firmware…
Your sample do trigger somethins about H264_WRRSP whatever this means in the decoder what is currently broken.

Is it works with last nigthly build ? I created /firmware/video/ directory and copied all 3 files (h264_enc.bin, checkmsg, video_ucode.bin ) for sure with right for run, but system load old firmware.

Mar 24 19:07:17.900901 CoreELEC kernel: The ucode driver version is v0.4
Mar 24 19:07:17.901123 CoreELEC kernel: The firmware version is 0.4.177-g21b4f831

https://paste.coreelec.org/ConradLizard

Yes, because you need to follow the instructions and link I gave.

  1. try to download this firmware version:media_modules-aml/firmware/video_ucode.bin at d23b73ceb8aed97d598c4714f3dedcdc7cf7d81c · CoreELEC/media_modules-aml · GitHub
  2. Then store it on the device under /storage/.config/firmware/video/
  3. ?

In SSH:

mkdir -p /storage/.config/firmware/video
wget -O /storage/.config/firmware/video/video_ucode.bin https://raw.githubusercontent.com/CoreELEC/media_modules-aml/d23b73ceb8aed97d598c4714f3dedcdc7cf7d81c/firmware/video_ucode.bin

Restart device.

1 Like

Not going.

https://paste.coreelec.org/ScruplesScrewy

Mar 24 20:15:32.052867 CoreELEC kernel: The ucode driver version is v0.4
Mar 24 20:15:32.053130 CoreELEC kernel: The firmware version is 0.4.177-g21b4f831