Giter Site home page Giter Site logo

Comments (148)

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 35

I have some good news, I was able to get Panfork working on the 6.1 kernel, so the GPU is working. So now I need to work on WiFi drivers and stability.

Screenshot from 2024-02-19 11-39-43

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 10

I finally have the 6.1 kernel working with ffmpeg, mpp, and chrome perfectly. I found some regression issues in the build system. It's likely that i will revert the main branch back to v1.33 so i can figure out the exact problem.

For anyone interested, here are the changes made to Amazingfate's PPA, after some more testing I will see if they can update it for anyone who would like to use the 6.1 kernel on a jammy system.

https://launchpad.net/~jjriek/+archive/ubuntu/rockchip-multimedia?field.series_filter=jammy

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 7

Ok, i revered a bunch of code, but now have a working build with hardware acceleration working out of the box when using the 6.1 kernel. If anyone would like to check it out its available below.

Please note this is still a work in progress:
https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 6

Good news, Orange has released an Ubuntu image on the 6.1 kernel. Today I hope to test

That is interesting, That kernel is still two years old. At this point they should be targeting 6.6 no?

Also not everyone needs all features. What limitations are there currently for the server os from getting to 6.1/6.6 ?

This is what I'm talking about..

  1. Linux 6.1 is the latest SDK from Rockchip that fully supports the hardware and its still technically Android.
  2. I still need to work on some WiFi drivers, but from a server perspective it's fine. However if released I will be spammed by users asking about the GPU and this would annoy me to absolutely no end. I would not be nice in dealing with this as i explain the same things over and over again (this is seriously driving me insane, do some of your own research). Panthor will require new firmware and other userspace hacks that will not translate to currently released systems, this could easily break a users system.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 6

I have some good news, I was able to get Panfork working on the 6.1 kernel, so the GPU is working. So now I need to work on WiFi drivers and stability.

Yeah, looking forward to wifi being available on kernel 6.1. Just checking, does mpv vpu hw acceleration work with bsp-kernel-6.1? Tested linux-rkbsp-6.1.43 on Arch linux earlier on mpv vpu hw acceleration is not available.

I'm not sure yet, now that panfork is working I've started to work on ethernet / wifi drivers. I will take a look tomorrow when i have time.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 5

I have it booting, but panfork will not work with the kernel. This means GPU accel will not work on the GNOME desktop. I can use the Mali blobs but they have other issues...

I could use some help if anyone wants to fix panfork for the 6.1 kernel or backport the upcoming panthor driver. But until this is done I will not upgrade fully to the 6.1 kernel, as many users will complain about the lack of GPU support. For the moment we are stuck on 5.10.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024 5

I pushed the rest of the WiFi / Bluetooth drivers needed. I need to do some additional testing to make sure they work as expected (some firmware paths may be broken).

Build: https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/7996476376

FEEDBACK:
with the latest built kernel release, the audio module works well in wayland.
image

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 4

I'm currently blocked as the Panthor driver is not yet merged into the mainline Linux kernel. But I would like to release Ubuntu 24.04 with kernel 6.1 and Panthor. This will take some time and not be an easy process.

If people continue to ask about the 6.1 kernel without providing helpful insight I will start to lock threads. I've already spent hours working on the kernel and bug fixing but I do not want to release Linux 6.1 or Ubuntu 24.04 if they are worse than what is currently available.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 4

For anyone intrested, I have listed a few bugs that I have found with the 6.1 kernel and tasks that need to be done. There could be more issues not yet found, but the latest experimental 6.1 builds can be found here.

Tasks and bugs for Rockchip 6.1 BSP

  • AP6275P Bluetooth not working when WiFi firmware loads (Orange Pi 5B)
  • Port RTL8821CS WiFi / Bluetooth driver (Indiedroid Nova)
  • Port UWE5622 WiiFi / Bluetooth driver (Orange Pi 3B)
  • YouTube 4k 60fps video playback lag (probobly using the CPU)
  • Test 4k 60fps video playback with MPV / Gstreamer

from ubuntu-rockchip.

MPC-GH avatar MPC-GH commented on June 2, 2024 4

There could be more issues not yet found, but the latest experimental 6.1 builds can be found here.

Just to say I flashed the server build img on a Turing RK1 16GB, on a Turing Pi 2.4 host board with the RK1 in Node 2, using BMC firmware 2.0.5 via the web UI and it booted up for me without any trouble.

NVME, Ethernet and the serial interface from the BMC work, and that's all I need for use as a qemu hosting platform.

Thanks Joshua for your work on making this so seamless!

U-Boot 2024.01 (Feb 20 2024 - 19:59:09 +0000)

Model: Turing Machines RK1
DRAM: 16 GiB (effective 15.7 GiB)

[snip]

Starting kernel ...

[ 10.872283] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 10.872320] Linux version 6.1.43-rockchip (root@fv-az891-806) (aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP Tue Feb 20 19:50:31 UTC 2024
[ 10.887848] Machine model: Turing Machines RK1

[snip]

[ 21.372186] rk-pcie fe180000.pcie: failed to initialize host

Ubuntu 22.04.4 LTS ubuntu ttyS9

ubuntu login:

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 4

I pushed the rest of the WiFi / Bluetooth drivers needed. I need to do some additional testing to make sure they work as expected (some firmware paths may be broken).

Build: https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/7996476376

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 3

What about getting us to at least kernel level 5.19?
We're missing out on many wifi 6 adapters without it.

This is not possible, we are currently using a hacked-to-bits Android kernel created by Rockchip, mainline Linux does not fully support RK3588.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 3

The 6.1.43 kernel will only work with opengl-es, so i don't see the point in using it..

Panfork on 5.10 is much better for a user experience. I will likely upgrade 5.10 to 5.10.198 to give users something now.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 3

I think the next step is to get mpp, ffmpeg and chrome working properly on 6.1. There has been some previous discussion on this topic, but my knowledge is minimal in this area. I will start to do some research, but any help would be very much appreciated.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 3

@Joshua-Riek also another issue about reg and ARGB from rkbsp.
7Ji-PKGBUILDs/.report#17 (comment)
7Ji-PKGBUILDs/.report#17 (comment)
Not sure whether it is already merged in the kernel repo.

Thanks, I took a look and found that I was missing 0025-vop2_rgba2101010_capability_fix.patch.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024 3

Ok, i revered a bunch of code, but now have a working build with hardware acceleration working out of the box when using the 6.1 kernel. If anyone would like to check it out its available below.

Please note this is still a work in progress: https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970

Hi @Joshua-Riek,

Thanks for the "Build Ubuntu 22.04 with Rockchip Linux 6.1 #249".

Would like to provide some feedback.
Device: Opi5-Plus 16GB RAM
WiFi Module: 8852BE (the so called Official OPI5-Plus WiFi Module).

Chromium
Chromium can stream 4K/60 video smoothly with vpu hw acceleration based on CPU usage. But on some video of av01: 1080;/30 vpu hw acceleration might not be applied but video streamed smoothly. Noticed this error message:

[136.260] [RKMPP] [2684] rkmpp_dec_streamon(494): ERR: failed to init mpp
[1954:2684:0229/153536.261013:ERROR:v4l2_video_decode_accelerator.cc(1385)] Failed Stream on input queue

Most likely av01 format is not supported by RKMPP.

MPV
MPV streams 4K/60 video smoothly.

AV01 format not support

Channel_URL: https://www.youtube.com/channel/UChB3UnDddahXU7FKZXmpzMA
[ffmpeg/video] av1_rkmpp: Failed to init MPP context: -1
Could not open codec.

WiFI
WiFi is not activated. The system keep trying to connect/activate WiFi but failed. The WiFi Module is 8852BE (the so called official WiFi module for Opi5-Plus).

[  670.978663] perf: interrupt took too long (2501 > 2500), lowering kernel.perf_event_max_sample_rate to 79800
[  847.606707] wlP2p33s0: authenticate with 34:e8:94:75:06:72
[  847.800490] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 1/3)
[  847.815033] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 2/3)
[  847.830152] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 3/3)
[  847.844651] wlP2p33s0: authentication with 34:e8:94:75:06:72 timed out
[  861.917072] wlP2p33s0: authenticate with 34:e8:94:75:06:72
[  862.104542] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 1/3)
[  862.119351] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 2/3)
[  862.134067] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 3/3)
[  862.148554] wlP2p33s0: authentication with 34:e8:94:75:06:72 timed out
[  876.674062] wlP2p33s0: authenticate with 34:e8:94:75:06:72
[  876.865544] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 1/3)
[  876.880241] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 2/3)
[  876.894834] wlP2p33s0: send auth to 34:e8:94:75:06:72 (try 3/3)
[  876.909672] wlP2p33s0: authentication with 34:e8:94:75:06:72 timed out

For your info, this WiFi modules works with your kernel 5.10.160 (Ubuntu-22.04.3 version 1.33 or earlier version 1.29).

Looking forward to a solution for the WiFi issue.

Thank you for your great works and support.

Edit: Update on mpv and chromium

The same youtube video "Mr. Bean: https://www.youtube.com/watch?v=VWYw3nRR-Ek" which does not have vpu hw acceleration on MPV and Chromium on "Build Ubuntu 22.04 with Rockchip Linux 6.1 #249" but streamed with vpu hw acceleration on MPV and Chromium on Ubuntu-22.04.3 v1.33 with kernel 5.10.160.

"Build Ubuntu 22.04 with Rockchip Linux 6.1 #249"
jfl@jfl-opi5plus:~$ mpv https://www.youtube.com/watch?v=VWYw3nRR-Ek
 (+) Video --vid=1 (*) (vp9 1920x1080 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
File tags:
 Uploader: Mr Bean
 Channel_URL: https://www.youtube.com/channel/UCkAGrHCLFmlK3H2kd6isipg
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 yuv420p
AV: 00:00:39 / 01:14:22 (1%) A-V:  0.000 Dropped: 15 Cache: 34s/14MB

Exiting... (Quit)
jfl@jfl-opi5plus:~$ 


Ubuntu-22.04.3 v1.33 Kernel 5.10.160-31
jfl@jfl-opi5plus:~$ mpv https://www.youtube.com/watch?v=VWYw3nRR-Ek
 (+) Video --vid=1 (*) (vp9 1920x1080 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
File tags:
 Uploader: Mr Bean
 Channel_URL: https://www.youtube.com/channel/UCkAGrHCLFmlK3H2kd6isipg
Using hardware decoding (rkmpp).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 drm_prime[nv12]
AV: 00:00:15 / 01:14:22 (0%) A-V:  0.000 Dropped: 7 Cache: 9.6s/3MB

Exiting... (Quit)

from ubuntu-rockchip.

InfernalWolf666 avatar InfernalWolf666 commented on June 2, 2024 2

Joshua Joshua Joshua!!!! I'm rooting for Joshua!!!

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 2

Thanks for the tips on mpp and ffmpeg @nyanmisaka and @wyf9661, you both are a big help! I was able to get both working last night, now I need to work on updating package builds.

When I have a stable PPA with package builds, I will see if Amazingfate can update their rockchip-multimedia PPA. Or I'll create a fork and produce packages for the upcoming Ubuntu 24.04 release.

I have been thinking about releasing the 6.1 kernel only for Ubuntu 24.04 so the current Ubuntu 22.04 builds remain in a stable state (I will still maintain 5.10 and likely bump it to 5.10.198). This will mean that Ubuntu 24.04 will be more "bleeding edge". Does anyone have thoughts against this?

No objections about this. 24.04 should be bundled with 6.1 and marked as a Beta release until enough people test it and prove it is stable. Forcing all 22.04 users to upgrade from 5.10 to the 6.1 kernel and update existing packages prematurely will cause a predictable mess.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 2

FYI I hope to have a release available by the time Ubuntu 24.04 is officially released by Canonical in a little over a month. I may create an Alpha / Beta release before then to get some feedback.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 2

I think Chrome needs a new patch for V4L2 to work properly, I noticed Jeffy patched his patches for Yocto.

JeffyCN/meta-rockchip@2dd4462

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1
  • YouTube 4k 60fps video playback lag (probobly using the CPU)
  • Test 4k 60fps video playback with MPV / Gstreamer

The mpp in amazingfate's ppa may be a bit old for 6.1. See the reason here. Same for the hbiyik's exp_refactor_all ffmpeg branch used in amazingfate's ppa. It only support dma-heap allocator but currently drm is the only available allocator in 6.1 bsp.

There are some bugs in the latest mpp too, so Jellyfin's ffmpeg uses the patched mpp.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 1

Thanks for the tips on mpp and ffmpeg @nyanmisaka and @wyf9661, you both are a big help! I was able to get both working last night, now I need to work on updating package builds.

When I have a stable PPA with package builds, I will see if Amazingfate can update their rockchip-multimedia PPA. Or I'll create a fork and produce packages for the upcoming Ubuntu 24.04 release.

I have been thinking about releasing the 6.1 kernel only for Ubuntu 24.04 so the current Ubuntu 22.04 builds remain in a stable state (I will still maintain 5.10 and likely bump it to 5.10.198). This will mean that Ubuntu 24.04 will be more "bleeding edge". Does anyone have thoughts against this?

from ubuntu-rockchip.

simeononsecurity avatar simeononsecurity commented on June 2, 2024 1

Thanks for the tips on mpp and ffmpeg @nyanmisaka and @wyf9661, you both are a big help! I was able to get both working last night, now I need to work on updating package builds.

When I have a stable PPA with package builds, I will see if Amazingfate can update their rockchip-multimedia PPA. Or I'll create a fork and produce packages for the upcoming Ubuntu 24.04 release.

I have been thinking about releasing the 6.1 kernel only for Ubuntu 24.04 so the current Ubuntu 22.04 builds remain in a stable state (I will still maintain 5.10 and likely bump it to 5.10.198). This will mean that Ubuntu 24.04 will be more "bleeding edge". Does anyone have thoughts against this?

If you're sticking with LTS releases, that is probably the path of least resistance.
But if we think 6.1 and the surrounding packages are going to have issues, I would suggest maintaining a separate release with 24.04 with the bleeding edge updates alongside a stable 24.04.
Either approach is fine however. You're doing great work. Thanks!

from ubuntu-rockchip.

MPC-GH avatar MPC-GH commented on June 2, 2024 1

Cherry picking https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=a7602e7332b9 might be quite helpful as an ethernet fix for some bridging scenarios when using qemu+kvm.

[ As an aside as I know you're not looking at the moment - the build.sh script with mainline 6.7.0 built and installed well enough on an RK1 for BMC-Serial & Ethernet & NVME. The fan speed control wasn't operational or tuned to the same degree as the 5.10 or 6.1 kernels though and so fan noise was much higher with 6.7.0 than 6.1.43. ]

I don't have a strong view on how you manage the kernel versions vs ubuntu versions. From the sideline, 'not more than one per LTS version' so you gain as much headroom as possible / deduplicate bug report handling where possible.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 1

Does anyone have chrome working with the VPU on the 6.1 kernel? Compiling the patched mpp and ffmpeg against v4l-utils and libv4l-rkmpp are not working. I wonder if i need to wait for chrome to finish compiling.

I have a work-in-progress PPA for testing if anyone would like to look: https://launchpad.net/~jjriek/+archive/ubuntu/rockchip-multimedia-wip/+packages?field.name_filter=&field.status_filter=published&field.series_filter=jammy

I did not have the correct permissions set for the dummy V4L2 devices (I removed the default user from being added to the video group, and /dev/video-* is owned by that group), time to do testing all over again! 😅

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 1

Just curious, I saw a package which kernel is 6.2.21, which branch this pkg comes from?

Oh, that was just a test, i faked the kernel version to test how upgrades would be handled.

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1

I'm curious of this newer 6.1 BSP kernel will be less hacked than Rockchip 5.10 kernel they released. Having read comments mentioned numerous times about legacy 5.10 released by Rockchip, I'm hopeful that 6.1 will be better * ( * Reliable? Quicker? ).

I'm assuming the 5.10 isn't as efficient ( possibly the RK3566/ RK3588 will have better CPU, RAM and storage throughput).

FYI linux 6.0 is actually linux 5.20. They decided to bump the major version number. So IMO it won’t make much difference vs 5.10 in perf, except for a wider range of device driver support.

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1

It can be confirmed that the av1_rkmpp decoder is broken in this build, which should be a version or configuration issue.

I also fixed an issue in ffmpeg-rockchip which would cause MPV to segfault when seeking. ffmpeg needs to be rebuilt.

In addition, 10-bit rkmpp decoding is also broken in MPV. Need to add some patches in MPV build and add following configs in /etc/mpv/mpv.conf to make it work properly.

# Enable hardware decoding if available. Often, this does not work with all
# video outputs, but should work well with default settings on most systems.
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
# may or may not help.
hwdec=rkmpp

# This is required, removing will increase droped frames
vf-add=fps=60:round=near

# RGA hw-fmt-conversion, chain after rkmpp hwdec and the fps filter
vf-add=scale_rkrga=force_yuv=auto

edit: HEVC Main10 and H264 High10 can be used to test 10-bit playback. http://www.larmoire.info/jellyfish/

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1

Thanks for the info @nyanmisaka. Any idea how i can easily tell if the av1_rkmpp decoder is working?

This is weird because av1 rkmpp decoder works fine on my armbian+6.1.43 build.

  • Run mpv av1-1080p-video.mp4
  • Type key I to get the playback info osd, you should see libdav1d .... (hwdec: rkmpp) if you are using av1_rkmpp.
  • In the logs you should not see the [ffmpeg/video] av1_rkmpp: Failed to init MPP context: -1 error.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024 1

I disabled both the av1d and av1d_mmu nodes on my Rock 5B. Now AV1 decoding will no longer work.

So it looks like a few boards need to have these nodes enabled in the device tree :)

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1

@Joshua-Riek Also if live video (HLS/m3u8) from Youtube does not work in MPV rkmpp via youtube-dl. You can make a patch based on this comment, this seems to be a quirk of the MPV.

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024 1

@Joshua-Riek I think it's wayland or Xwayland that caused the mem leak. If i switch to X.org then the mem leak seems to go away. The DRM DUMB patch is also suspicious.

One way to reproduce the issue is to seek on a movie in MPV player with scale_rkrga=force_yuv=8bit filter enabled. You can see in htop that the memory usage growing until the DRM dumb/gem memory is exhausted, and then the MPV crashes with RGA cannot allocate memory error. I can't reproduce it on Xorg and libmali.

from ubuntu-rockchip.

cantalupo555 avatar cantalupo555 commented on June 2, 2024 1

Panthor's v6 patch has finally arrived.

Screenshot from 2024-03-01 09-16-18

Screenshot from 2024-03-01 09-18-36

https://lore.kernel.org/all/[email protected]/

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26358

https://cgit.freedesktop.org/drm/drm-misc/tree/drivers/gpu/drm/panthor

from ubuntu-rockchip.

Jason123456ma avatar Jason123456ma commented on June 2, 2024

I have it booting, but panfork will not work with the kernel. This means GPU accel will not work on the GNOME desktop. I can use the Mali blobs but they have other issues...

I could use some help if anyone wants to fix panfork for the 6.1 kernel or backport the upcoming panthor driver. But until this is done I will not upgrade fully to the 6.1 kernel, as many users will complain about the lack of GPU support. For the moment we are stuck on 5.10.

我让它启动了,但是panfork不能和内核一起工作。这意味着GPU accel将无法在GNOME桌面上工作。我可以使用马里斑点,但他们有其他问题...

如果有人想为6.1内核修复panfork或backport即将到来的panthor驱动程序,我可以使用一些帮助。但在此之前,我不会完全升级到6.1内核,因为许多用户会抱怨缺乏GPU支持。目前,我们被困在5.10。

Thank you for your efforts and look forward to a better version.

from ubuntu-rockchip.

simeononsecurity avatar simeononsecurity commented on June 2, 2024

I have it booting, but panfork will not work with the kernel. This means GPU accel will not work on the GNOME desktop. I can use the Mali blobs but they have other issues...

I could use some help if anyone wants to fix panfork for the 6.1 kernel or backport the upcoming panthor driver. But until this is done I will not upgrade fully to the 6.1 kernel, as many users will complain about the lack of GPU support. For the moment we are stuck on 5.10.

What about getting us to at least kernel level 5.19?
We're missing out on many wifi 6 adapters without it.

from ubuntu-rockchip.

simeononsecurity avatar simeononsecurity commented on June 2, 2024

Well that is definitely a downer. The RK3588 is becoming more and more mainstream. It's also significantly more powerful than the chipset in the RPi5. Issues like this are the main thing holding it back IMO.
Thanks for your hard work @Joshua-Riek
I guess the best thing we can do is petition for mainline linux support?

from ubuntu-rockchip.

thewonderer73 avatar thewonderer73 commented on June 2, 2024

This might give us some hope for mainline.

https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md

Though this article from a while back was more positive (if only they had a crystal ball)

https://www.cnx-software.com/2021/04/15/rk3566-rk3568-linux-mainline/

There are so many devices that use the RK3588, that it would be in the interest of those SBC makers to ensure it's fully supported in mainline and not a hacked kernel

BTW, it's not clear to me if RK3566 is going mainline too? Any info on that?

from ubuntu-rockchip.

bagong avatar bagong commented on June 2, 2024

I am actually curious about Xulong's move to release a HarmonyOS image. Are they going to push it forward, or is it just another - try a bit and then let it rot - project? Rumors on Reddit have it that Huawei has strong relations with Xulong? The intra-chinese download sites seem to be Huawei's?

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

Good news, Orange has released an Ubuntu image on the 6.1 kernel. Today I hope to test

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

Good news, Orange has released an Ubuntu image on the 6.1 kernel. Today I hope to test

Care to share the link? The seemingly official download page doesn't seems to have kernel 6.1 image: https://drive.google.com/drive/folders/1wOmKUla8CwUPTfxvfCGutj8lbMZFtFCm.

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

https://pan.baidu.com/s/1MMyK2cA54zV-swELYAu5yw?pwd=mjbi#list/path=%2Fsharelink1077680202-761095036344852%2FUbuntu&parentPath=%2Fsharelink1077680202-761095036344852

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

https://disk.yandex.ru/d/lJK8iWL_Ulbt_g - For those who do not have an account in Baidu

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

https://disk.yandex.ru/d/lJK8iWL_Ulbt_g - For those who do not have an account in Baidu

Thanks. Don't mind inquiring, does wifi, GPU and VPU hw acceleration work?

Had earlier tried @Joshua-Riek kernel-6.1.43 where I couldn't get it to boot on Gnome Wayland or KDE Plasma Wayland a week ago and it boot up Gnome-Xorg but wasn't stable.

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

This core is suitable for my purposes. The image from the HDMI camera gives a stable picture, 4k video in Chromium also works flawlessly.

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

The 6.1.43 kernel will only work with opengl-es, so i don't see the point in using it..

Where can I download your version of the image?

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

You can dig through github actions, but I've not uploaded anything because i fear backporting panthor to 6.1 may break currently installed systems with this kernel when i distribute an update.

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

Thanks

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

The 6.1.43 kernel will only work with opengl-es, so i don't see the point in using it..

Thanks for the info.

Noticed that you are building Ubuntu 24.04 with kernel-6.1.43. Does the Ubuntu-24.04 kernel-6.1.43 pre-installed Desktop come with Panthor?

from ubuntu-rockchip.

simeononsecurity avatar simeononsecurity commented on June 2, 2024

Good news, Orange has released an Ubuntu image on the 6.1 kernel. Today I hope to test

That is interesting, That kernel is still two years old. At this point they should be targeting 6.6 no?

Also not everyone needs all features. What limitations are there currently for the server os from getting to 6.1/6.6 ?

from ubuntu-rockchip.

MakKou96 avatar MakKou96 commented on June 2, 2024

This is great news. I'm looking forward to your fork.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

I have some good news, I was able to get Panfork working on the 6.1 kernel, so the GPU is working. So now I need to work on WiFi drivers and stability.

Yeah, looking forward to wifi being available on kernel 6.1. Just checking, does mpv vpu hw acceleration work with bsp-kernel-6.1? Tested linux-rkbsp-6.1.43 on Arch linux earlier on mpv vpu hw acceleration is not available.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

I have some good news, I was able to get Panfork working on the 6.1 kernel, so the GPU is working. So now I need to work on WiFi drivers and stability.

Screenshot from 2024-02-19 11-39-43

Oh, it is my first time to see glmark2 score on ubuntu. It is not same as mine at all.(nearly 3 times) I'm wondering if the wayland the reason.
image

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

Oh, it is my first time to see glmark2 score on ubuntu. It is not same as mine at all.(nearly 3 times) I'm wondering if the wayland the reason.

Most likely is "Wayland" difference.

On Arch linux KDE-Plasma-Wayland Session with kernel aarch64 Linux 5.10.160-31-rockchip-joshua

[jfl@opi5plus ~]$ glmark2-wayland
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Panfrost
    GL_RENDERER:    Mali-G610 (Panfrost)
    GL_VERSION:     3.0 Mesa 23.0.0-devel (git-120202c675)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 2766 FrameTime: 0.362 ms
[build] use-vbo=true: FPS: 3352 FrameTime: 0.298 ms
[texture] texture-filter=nearest: FPS: 3572 FrameTime: 0.280 ms
[texture] texture-filter=linear: FPS: 3584 FrameTime: 0.279 ms
[texture] texture-filter=mipmap: FPS: 3554 FrameTime: 0.281 ms
[shading] shading=gouraud: FPS: 2882 FrameTime: 0.347 ms
[shading] shading=blinn-phong-inf: FPS: 2835 FrameTime: 0.353 ms
[shading] shading=phong: FPS: 2563 FrameTime: 0.390 ms
[shading] shading=cel: FPS: 2537 FrameTime: 0.394 ms
[bump] bump-render=high-poly: FPS: 1687 FrameTime: 0.593 ms
[bump] bump-render=normals: FPS: 3642 FrameTime: 0.275 ms
[bump] bump-render=height: FPS: 3539 FrameTime: 0.283 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 2514 FrameTime: 0.398 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 1399 FrameTime: 0.715 ms
[pulsar] light=false:quads=5:texture=false: FPS: 3441 FrameTime: 0.291 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 626 FrameTime: 1.599 ms
[desktop] effect=shadow:windows=4: FPS: 1902 FrameTime: 0.526 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 578 FrameTime: 1.732 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 559 FrameTime: 1.791 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 650 FrameTime: 1.539 ms
[ideas] speed=duration: FPS: 1489 FrameTime: 0.672 ms
[jellyfish] <default>: FPS: 2201 FrameTime: 0.454 ms
[terrain] <default>: FPS: 112 FrameTime: 8.954 ms
[shadow] <default>: FPS: 1774 FrameTime: 0.564 ms
[refract] <default>: FPS: 233 FrameTime: 4.301 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 3383 FrameTime: 0.296 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 3038 FrameTime: 0.329 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 3362 FrameTime: 0.297 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 3243 FrameTime: 0.308 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 2968 FrameTime: 0.337 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 3231 FrameTime: 0.310 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 3217 FrameTime: 0.311 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 2963 FrameTime: 0.338 ms
=======================================================
                                  glmark2 Score: 2404 
=======================================================

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

There could be more issues not yet found, but the latest experimental 6.1 builds can be found here.

Hi @Joshua-Riek,

To test the new bsp-kernel 6.1, can I just download the kernel-6.1 alone and installed it on an existing Ubuntu-22.04.3 v1.33? Will it work.?

How to revert back to kernel-5.10.160 after installing the new kernel-6.1?

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

There could be more issues not yet found, but the latest experimental 6.1 builds can be found here.

Hi @Joshua-Riek,

To test the new bsp-kernel 6.1, can I just download the kernel-6.1 alone and installed it on an existing Ubuntu-22.04.3 v1.33? Will it work.?

How to revert back to kernel-5.10.160 after installing the new kernel-6.1?

I would not do this unless you know exactly what you are doing and do not mind breaking your system. But you can download the kernel-6.1 alone and install it as a deb package. To revert you then need to uninstall the deb package with apt. But again, this can break your system or other functionality since 6.1 is still a work in progress.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

Most likely is "Wayland" difference.

unfortunately not.
image

EDIT:
I test again and this time it is better. I will have another try then. Thanks a lot. Sorry to bother all of you:)
image

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

For anyone intrested, I have listed a few bugs that I have found with the 6.1 kernel and tasks that need to be done. There could be more issues not yet found, but the latest experimental 6.1 builds can be found here.

Tasks and bugs for Rockchip 6.1 BSP

  • AP6275P Bluetooth not working when WiFi firmware loads (Orange Pi 5B)
  • Port RTL8821CS WiFi / Bluetooth driver (Indiedroid Nova)
  • Port UWE5622 WiiFi / Bluetooth driver (Orange Pi 3B)
  • YouTube 4k 60fps video playback lag (probobly using the CPU)
  • Test 4k 60fps video playback with MPV / Gstreamer

@Joshua-Riek another puzzle I find based on the latest commit of 6.1.
On wayland (KDE), audio module can not work but x11 does.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

I think the next step is to get mpp, ffmpeg and chrome working properly on 6.1. There has been some previous discussion on this topic, but my knowledge is minimal in this area. I will start to do some research, but any help would be very much appreciated.

FYI
7Ji-PKGBUILDs/.meta#15

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

FYI @Joshua-Riek may want to double check rock5b's USB-C PD timeout issue. There were major changes in drivers/usb/typec/tcpm/tcpm.c in 6.1 kernel, and I don't have rock5b on hand to test, so I ignored a hack from amazingfate at that time, which is difficult to apply directly.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

FYI @Joshua-Riek may want to double check rock5b's USB-C PD timeout issue. There were major changes in drivers/usb/typec/tcpm/tcpm.c in 6.1 kernel, and I don't have rock5b on hand to test, so I ignored a hack from amazingfate at that time, which is difficult to apply directly.

* [Joshua-Riek/linux-rockchip@0f37382](https://github.com/Joshua-Riek/linux-rockchip/commit/0f37382ba6c368786d13430725665c815cc4f951)

* [Joshua-Riek/linux-rockchip@dc285ba](https://github.com/Joshua-Riek/linux-rockchip/commit/dc285ba334641a52aefe8a2b516bf6197e196d04)

I will take a look, my initial testing and development has been on the Rock 5B, but I did not use a USB-C PD power supply. Thank you for reminding me about this.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

@Joshua-Riek also another issue about reg and ARGB from rkbsp.
7Ji-PKGBUILDs/.meta#17 (comment)
7Ji-PKGBUILDs/.meta#17 (comment)
Not sure whether it is already merged in the kernel repo.

from ubuntu-rockchip.

InfernalWolf666 avatar InfernalWolf666 commented on June 2, 2024

Sorry for the stupid question, but will the VLC player work well now?

I have an orange pi 5 plus: video in the browser works just fine!

Games work well too, through box 86 and 64, steam works

But my 4k films did not work in VLC; the built-in video player froze very badly.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Sorry for the stupid question, but will the VLC player work well now?

I have an orange pi 5 plus: video in the browser works just fine!

Games work well too, through box 86 and 64, steam works

But my 4k films did not work in VLC; the built-in video player froze very badly.

I don't know, I've been using MPV just fine for 4k video playback. But this is off-topic.

from ubuntu-rockchip.

InfernalWolf666 avatar InfernalWolf666 commented on June 2, 2024

Sorry, please, you have already corrected it, I was using the old version. Thank you, please forgive me again

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

Sorry for the stupid question, but will the VLC player work well now?

I have an orange pi 5 plus: video in the browser works just fine!

Games work well too, through box 86 and 64, steam works

But my 4k films did not work in VLC; the built-in video player froze very badly.

you need to build a specific ffmpeg4.4 for vlc like this:
https://github.com/7Ji-PKGBUILDs/ffmpeg4.4-mpp

EDIT:
you can use mpv instead. As mpv use ffmpeg but vlc use ffmpeg4.4(maybe the only one) as we know.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Does anyone have chrome working with the VPU on the 6.1 kernel? Compiling the patched mpp and ffmpeg against v4l-utils and libv4l-rkmpp are not working. I wonder if i need to wait for chrome to finish compiling.

I have a work-in-progress PPA for testing if anyone would like to look: https://launchpad.net/~jjriek/+archive/ubuntu/rockchip-multimedia-wip/+packages?field.name_filter=&field.status_filter=published&field.series_filter=jammy

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

I don't have the environment at the moment, but I think libv4l-rkmpp also needs some updates since the old V4L2 VDA is deprecated. https://github.com/JeffyCN/libv4l-rkmpp/commits/master/

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Good find, let me update to the latest version of libv4l-rkmpp and see if anything else is missing.

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

Chromium was updated to R119 too. I think amazingfate would be interested in it.
JeffyCN/meta-rockchip@7f491ad

from ubuntu-rockchip.

stevepringle avatar stevepringle commented on June 2, 2024

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

Hi Joshua,Mainstream Ubuntu 22.04 is now running with kernel 6.5, so I think upgrading Rockchip Ubuntu 22.04 to kernel 6.1 would be the correct thing to do.Moving to Ubuntu 24.04 and kernel version 6.1 at the same time is possibly going to lead to a lot of stability issues.   Just my opinion of course ;-)Regards,Steve PringleSent from my iPadOn 23 Feb 2024, at 15:03

The only reason for upstream to adopt 6.5 is HWE, to support a wider range of new Intel&AMD graphics cards. But there is no such scalability on RK3588, and 6.1 already supports most mainstream wireless network cards, which is also the kernel version of Debian 12 bookworm.

Josh may add an option to the build script to allow users to build 22.04 and 6.1 together, but it definitely shouldn't be the default option, unless he wants to risk breaking the existing user experience (~1.3k stars).
image

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

I'm doing development with the 6.1 kernel on Ubuntu 22.04 as a proof of concept to ensure everything is working properly. I will eventually remove the option to build the 6.1 kernel with Ubuntu 22.04, but I need time to package and port things to Ubuntu 24.04.

from ubuntu-rockchip.

wyf9661 avatar wyf9661 commented on June 2, 2024

Just curious, I saw a package which kernel is 6.2.21, which branch this pkg comes from?

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

I finally have the 6.1 kernel working with ffmpeg, mpp, and chrome perfectly.

Is this the Build Ubuntu 22.04 with Rockchip Linux 6.1 #246 having ffmpeg, mpp and chrome working? Thank you.

from ubuntu-rockchip.

thewonderer73 avatar thewonderer73 commented on June 2, 2024

I'm curious of this newer 6.1 BSP kernel will be less hacked than Rockchip 5.10 kernel they released. Having read comments mentioned numerous times about legacy 5.10 released by Rockchip, I'm hopeful that 6.1 will be better * ( * Reliable? Quicker? ).

I'm assuming the 5.10 isn't as efficient ( possibly the RK3566/ RK3588 will have better CPU, RAM and storage throughput).

from ubuntu-rockchip.

cantalupo555 avatar cantalupo555 commented on June 2, 2024

Will a 6.1 kernel version be available later this week?

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Please give me time. i'm trying to fix regression issues. But my intent is not to release the kernel with Ubuntu 22.04. I may make it available but it will be at your own risk..

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

I finally have the 6.1 kernel working with ffmpeg, mpp, and chrome perfectly.

Is this the Build Ubuntu 22.04 with Rockchip Linux 6.1 #246 having ffmpeg, mpp and chrome working? Thank you.

I have regression in the build system and will likely need to revert the last 30 commits as I don't have time to pinpoint the exact issue. Right now, the only fully working 6.1 builds I have are locally built on my computer.

from ubuntu-rockchip.

MPC-GH avatar MPC-GH commented on June 2, 2024

Ok, i revered a bunch of code, but now have a working build with hardware acceleration working out of the box when using the 6.1 kernel. If anyone would like to check it out its available below.

Please note this is still a work in progress: https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970

Update on the RK1 build. I installed the server spin and this booted happily.

Full serial boot log attached if it is helpful - serial_boot.log

I'll see about jiggling around the setup so I can use it as node 1 and check out the HMDI etc.

Thanks for the build!

from ubuntu-rockchip.

cantalupo555 avatar cantalupo555 commented on June 2, 2024

Most likely av01 format is not supported by RKMPP.

MPV MPV streams 4K/60 video smoothly.

AV01 format not support

Apparently, AV1 was merged into Kernel 6.7
image
https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

Most likely av01 format is not supported by RKMPP.
MPV MPV streams 4K/60 video smoothly.
AV01 format not support

Apparently, AV1 was merged into Kernel 6.7 image https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md

Don't confuse BSP kernel with mainline. The former includes all hardware drivers from Rockchip, while the latter won't have full hardware decoder and encoder support anytime soon.

from ubuntu-rockchip.

FreeWilly2022 avatar FreeWilly2022 commented on June 2, 2024

Thanks for the build, its working fine as far as I can tell. My feedback is that on my 8gb Orange Pi 5; YouTube playback is smooth, audio works, and during configuration it detected my Realtek Semiconductor RTL88x2bu [AC1200 Techkey] and connected to my Wi-Fi no problems. HDMI works good, as does the NVMe SSD.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

Another thing I noticed with "Build Ubuntu 22.04 with Rockchip Linux 6.1 #249" is that the memory usage can be quite high after you open and close a number of applications. For example right now with only Thorium-Browser running and four terminal screens the RAM used is 5.31GB.

image

As pointed out earlier WiFi coonection is not available (8852BE), every 2 minutes or so the system will keep trying to activate/connect WiFi but failed.

Someone else might have already pointed out that the CPU Load Average does not goes below 1.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Thanks for the feedback everyone, it helps me out a lot. I will look into the 8852BE issues shortly. The high ram usage could be because of tracker miner starting to index the filesystem or other system services running in the background.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

As pointed out earlier WiFi coonection is not available (8852BE), every 2 minutes or so the system will keep trying to activate/connect WiFi but failed.

I tested out the 8852BE on my Rock 5B and it works fine. I wonder if the Orange Pi 5 Plus has some hardware quirk.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Thanks for the info @nyanmisaka. Any idea how i can easily tell if the av1_rkmpp decoder is working?

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

I tested out the 8852BE on my Rock 5B and it works fine. I wonder if the Orange Pi 5 Plus has some hardware quirk.

Hi @Joshua-Riek,

Just to be clear, am using Realtek RTL8852BE-CG WiFi module.

image

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

Thank you very much, I'm probably missing a config flag when building on Launchpad, I will see what is missing.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

Just encountered a weird error when trying to launch Chromium.

fl@jfl-opi5plus:~$ chromium-browser --incognito
[7673:7673:0229/223513.261673:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
[7717:7717:0229/223513.361525:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglQueryDeviceAttribEXT: eglQueryDeviceAttribEXT
[7717:7717:0229/223513.361669:ERROR:gl_angle_util_vulkan.cc(189)] Failed to retrieve vkGetInstanceProcAddr
[7717:7717:0229/223513.361746:ERROR:vulkan_instance.cc(91)] Failed to get vkGetInstanceProcAddr pointer from ANGLE.
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
DRM_IOCTL_MODE_CREATE_DUMB failed: No space left on device
Failed to create scanout resource
Received signal 11 SEGV_MAPERR 000000000072
#0 0xaaaab18d6c38 (/usr/lib/chromium-browser/chromium-browser+0x50c6c37)
#1 0xaaaab18c5280 (/usr/lib/chromium-browser/chromium-browser+0x50b527f)
#2 0xaaaab18d6b50 (/usr/lib/chromium-browser/chromium-browser+0x50c6b4f)
#3 0xffff940c37b0 ([vdso]+0x7af)
#4 0xffff8cd79b3c <unknown>
#5 0xffff8c488d90 <unknown>
#6 0xffff8c54cc24 <unknown>
#7 0xffff8c54dbb8 <unknown>
#8 0xffff8c48dc34 <unknown>
#9 0xffff8d8fcae8 <unknown>
#10 0xffff8d8f2d0c <unknown>
#11 0xffff8d9449d8 <unknown>
#12 0xaaaab287f188 (/usr/lib/chromium-browser/chromium-browser+0x606f187)
#13 0xaaaab3233364 (/usr/lib/chromium-browser/chromium-browser+0x6a23363)
#14 0xaaaab647c6cc (/usr/lib/chromium-browser/chromium-browser+0x9c6c6cb)
#15 0xaaaab6481774 (/usr/lib/chromium-browser/chromium-browser+0x9c71773)
#16 0xaaaab647b66c (/usr/lib/chromium-browser/chromium-browser+0x9c6b66b)
#17 0xaaaab647b3f0 (/usr/lib/chromium-browser/chromium-browser+0x9c6b3ef)
#18 0xaaaab6477f2c (/usr/lib/chromium-browser/chromium-browser+0x9c67f2b)
#19 0xaaaab647a470 (/usr/lib/chromium-browser/chromium-browser+0x9c6a46f)
#20 0xaaaab647a7b8 (/usr/lib/chromium-browser/chromium-browser+0x9c6a7b7)
#21 0xaaaab2b72eb0 (/usr/lib/chromium-browser/chromium-browser+0x6362eaf)
#22 0xaaaab2b72328 (/usr/lib/chromium-browser/chromium-browser+0x6362327)
#23 0xaaaab187c3d8 (/usr/lib/chromium-browser/chromium-browser+0x506c3d7)
#24 0xaaaab1893f20 (/usr/lib/chromium-browser/chromium-browser+0x5083f1f)
#25 0xaaaab1893ad8 (/usr/lib/chromium-browser/chromium-browser+0x5083ad7)
#26 0xaaaab18e9c3c (/usr/lib/chromium-browser/chromium-browser+0x50d9c3b)
#27 0xffff93ad5a70 g_main_context_dispatch
#28 0xffff93b2aeac (/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.7200.4+0xaaeab)
#29 0xffff93ad2f14 g_main_context_iteration
#30 0xaaaab18e9540 (/usr/lib/chromium-browser/chromium-browser+0x50d953f)
#31 0xaaaab18945b4 (/usr/lib/chromium-browser/chromium-browser+0x50845b3)
#32 0xaaaab185c268 (/usr/lib/chromium-browser/chromium-browser+0x504c267)
#33 0xaaaab6469430 (/usr/lib/chromium-browser/chromium-browser+0x9c5942f)
#34 0xaaaab0e012c4 (/usr/lib/chromium-browser/chromium-browser+0x45f12c3)
#35 0xaaaab0e01c38 (/usr/lib/chromium-browser/chromium-browser+0x45f1c37)
#36 0xaaaab0e02cc8 (/usr/lib/chromium-browser/chromium-browser+0x45f2cc7)
#37 0xaaaab0e00790 (/usr/lib/chromium-browser/chromium-browser+0x45f078f)
#38 0xaaaab0e00924 (/usr/lib/chromium-browser/chromium-browser+0x45f0923)
#39 0xaaaaadb78fc4 ChromeMain
#40 0xffff929973fc __libc_start_call_main
#41 0xffff929974cc __libc_start_main_alias_2
#42 0xaaaaadb78d30 _start
[end of stack trace]
[7750:1:0229/223513.557833:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[7673:7673:0229/223513.567602:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=11
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
[7807:1:0229/223513.792088:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[7785:1:0229/223513.792110:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

out of ram or disk space?

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

I downloaded the latest Rock 5B image from https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970 and installed it to my sd card.

After that I did a test with a 1080p AV1 video and it seems to be using the av1_rkmpp decoder.
Screenshot from 2024-02-29 10-24-55

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

I downloaded the latest Rock 5B image from https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970 and installed it to my sd card.

https://github.com/Joshua-Riek/linux-rockchip/blob/5418f5d3b540fc90a3a396e543a6b9492eff4068/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts#L239-L245

https://github.com/Joshua-Riek/linux-rockchip/blob/5418f5d3b540fc90a3a396e543a6b9492eff4068/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts#L172-L174

+&av1d {
+	status = "okay";
+};

If you are on Rock-5B, you have av1d node enabled in the dts. But it's disabled on my Rock-5A. This may be the cause.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

out of ram or disk space?

In actual fact the device was not out of RAM or disk space as far as I can tell. If it ever happen again, will pay more attention what "HTOP" is reporting.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

I downloaded the latest Rock 5B image from https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8088241970 and installed it to my sd card.

https://github.com/Joshua-Riek/linux-rockchip/blob/5418f5d3b540fc90a3a396e543a6b9492eff4068/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts#L239-L245

https://github.com/Joshua-Riek/linux-rockchip/blob/5418f5d3b540fc90a3a396e543a6b9492eff4068/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts#L172-L174

+&av1d {
+	status = "okay";
+};

If you are on Rock-5B, you have av1d node enabled in the dts. But it's disabled on my Rock-5A. This may be the cause.

Good, find, I will disable this node on my rock 5b and see if it will no longer work.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

The high ram usage could be because of tracker miner starting to index the filesystem or other system services running in the background.

The high RAM usage is repeatable. For example, run Chromium load it with many tabs to increase the RAM usage. Exit Chromium.

Then Launch Thorium-Browser. Open a few tabs to increase the RAM usage. Quit.

Relaunch Chromium. Repeat the process a few rounds.

At any one moment, have only one App running either Chromium or Thorium. After a few rounds the RAM usage will be in 5GB range eventhough only Chromium or Thorium is running with one Tab open. Can't remember having this high RAM usage with Ubuntu-22.04.3 v1.29 or v1.33. Will test it an report.

Closed all apps left the system idle for 15 minutes with no app running other than "HTOP" HTOP indicated 4.7GB RAM in use.

image

from ubuntu-rockchip.

nyanmisaka avatar nyanmisaka commented on June 2, 2024

The high ram usage could be because of tracker miner starting to index the filesystem or other system services running in the background.

The high RAM usage is repeatable. For example, run Chromium load it with many tabs to increase the RAM usage. Exit Chromium.

Then Launch Thorium-Browser. Open a few tabs to increase the RAM usage. Quit.

Relaunch Chromium. Repeat the process a few rounds.

At any one moment, have only one App running either Chromium or Thorium. After a few rounds the RAM usage will be in 5GB range eventhough only Chromium or Thorium is running with one Tab open. Can't remember having this high RAM usage with Ubuntu-22.04.3 v1.29 or v1.33. Will test it an report.

Closed all apps left the system idle for 15 minutes with no app running other than "HTOP" HTOP indicated 4.7GB RAM in use.

There may be a memory leak in Chromium or its dependencies (libv4l-mpp or panfork). Try disabling hardware acceleration or switching to Firefox and see if anything changes.

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

There may be a memory leak in Chromium or its dependencies (libv4l-mpp or panfork). Try disabling hardware acceleration or switching to Firefox and see if anything changes.

Currently on Ubuntu-22.04.3 with kernel-5.10.160-31. Repeating what I have done on "Build Ubuntu 22.04 with Rockchip Linux 6.1 #249".

Don't have the high RAM usage issue. When Chromium or Thorium are closed the RAM usage is released.

Chromium or Thorium might have memory leak but on Ubuntu-22.04.3 with kernel-5.10.160-31 (v1.33) don't have this issue it seems.

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

@JFLim1 are you using the 5.10 build from the previous release or GitHub actions?

from ubuntu-rockchip.

Joshua-Riek avatar Joshua-Riek commented on June 2, 2024

This build for 5.10 has the latest mpp, ffmpeg, and vl4 patches. If it has a similar issue then it's likely not a kernel problem,

https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8090266075

from ubuntu-rockchip.

JFLim1 avatar JFLim1 commented on June 2, 2024

are you using the 5.10 build from the previous release or GitHub actions?

@Joshua-Riek, Running on your previous release. Started out as v1.29 flashed to NVMe and kept it update/ upgraded to current .

No it wasn't running on https://github.com/Joshua-Riek/ubuntu-rockchip/actions/runs/8090266075.

from ubuntu-rockchip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.