-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orange Pi 5 Max support for 6.12 and 6.13 kernel #7783
base: main
Are you sure you want to change the base?
Orange Pi 5 Max support for 6.12 and 6.13 kernel #7783
Conversation
@@ -0,0 +1,26 @@ | |||
From b37359e8465822a72d6295a4f66eb4feb011cac6 Mon Sep 17 00:00:00 2001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having this file in dt folder will overwrite the one shipped with the kernel. Means it won't receive future updates from upstream. This would also probably cause breakage on other boards that build their device tree on top of the opi5 base one.
The dt
folder should only be used for complete (no includes/dependencies) device trees for individual boards.
Same goes for 6.13.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is not in dt
folder, it is patch which is only adding one line in dts/rockchip/Makefile
:
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-orangepi-5-max.dtb
Or I didn't get the point.
I won't force this in 02 w/o being properly prepared and then tested. Community efforts can be released anytime. My suggestion is to wait until |
Currently
It was taken from 6.14 branch as it is. All these files are new for 6.13.y branch, and not used by any other board, so I can't imaging it may affect any other board. But, if you are insist to have it in one file, I can refactor PR, and combine all three DT files in one, which will be called |
I don't insist, otherwise I would have sent a change request ;). I am just sharing my thoughts on what would be a better approach to add back-ported support for this board to |
I'd explain my motivation to not waiting 6.14 and add support faster by following: I also understand your motivation to not to brake anything already working, crystal clear :) Anyway, if you see some way to bring it faster - I'm ready to do and test it. |
Let's just say this attitude is often reciprocated. I will not go into further detail. I get your point having this in quickly but there is almost never a proper reason to hurry. That is just an almost certain guarantee for regressions that need attention later on. Seen often enough over the years :). Getting things in good enough shape takes time. Just watch kernel patchwork from time to time which patchsets having to digit versions ;) |
Description
Following PR #7537,
I've backported Orange Pi 5 Max device tree from mainline linux kernel 6.14-rc1
Now Orange Pi 5 Max can start and boot on 6.13 edge branch, I also added support for 6.12 current branch, in case someone wants to play with that.
Thanks to @shenmintao who found this solution
Documentation summary for feature / change
Nothing specific, you can use following command to run build
./compile.sh build BOARD=orangepi5-max BRANCH=edge BUILD_DESKTOP=yes BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=noble
I think the main motivation for building it is to get HW support of Vulkan on Orange Pi 5 Max,
To achive that, you need to use following command to build:
./compile.sh build BOARD=orangepi5-max BRANCH=edge BUILD_DESKTOP=yes BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=noble ENABLE_EXTENSIONS="mesa-vpu"
But Mesa driver comes outdated without Vulkan support, to fix that you need:
Then you can run
vkmark
to test VulkanHow Has This Been Tested?
It was tested on:
The board is able to boot and run without significant issues, except known lack of HW devices support for RK3588 in mainline kernel:
USB 3.0 ports are not functioning.
HDMI 1 works at 1080p only.
HDMI 2 does not work.
HDMI audio is not working.
WiFi is not working.
Bluetooth is not working.
NOTE: I don't know why, but it is required
./config/boards/orangepi5-max.csc
to haveSKIP_ARMBIAN_REPO="yes"
for building Debian 12, otherwise the board is not booting. Ubuntu 24.04 working in both cases ifSKIP_ARMBIAN_REPO="yes"
present or not. So for better compatibility I added it by default, but feel free to remove if you need Ubuntu.If someone knows how to solve this issue with Debian 12, feel free to comment or change it.