-
Notifications
You must be signed in to change notification settings - Fork 0
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
linux-aarch64-orangepi5-git
: Migration from linux-aarch64-orangepi5
is recommended
#5
Comments
@kyak @Integral-Tech. FYI |
The old non-git kernel would still ne updated, but that could only come after OPi setting a new meaningful revision in their build system. So 5.10.160 for non-git is not coming soon. I think that would be shipped together with the OPi5 Pro release. Also, the newest kernel supports OPi5 Pro but I can't confirm it. I only have OPi5 and OPi5 Plus and I don't have any relationship with OPi (All my projects run without sponsorship because I don't like the feeling of being pushed by sponsors) so don't expect me to get sample of OPi5 Pro. |
@7Ji i think i inherited
It's mostly the same apart from P.S. It struck me when you suggested to do |
And another one. Why do you use |
That example was dumped from the opi5 sata image. I choose that because it is the only one that has an initial overlay line, useful to demonstrating the whole format.
You'll only need that overlay if you remux the m.2 to sata. I don't use that, just for demo. |
https://www.kernel.org/doc/html/v5.10/admin-guide/kernel-parameters.html
|
Yeah, but.. Do we need it? I wonder why orange pi sets this. |
No, I don't use that for my boards. My OPi5:
My OPi 5 Plus:
|
I dug a little bit into cma. Depending on your use case you might want to add Without setting, opi's rk vendor kernel uses 8MiB, raising that to 128MiB could help with some workload, but I haven't found any issue using just the default 8M, both headless and on DE. I've currently set them to 0 on both my OPi5Plus and OPi5, since they run 7x24 as build servers. |
Nice, thanks for the info! I removed this parameter for now, no problems so far. |
Ever since I created linux-aarch64-orangepi5 on Feb 17th, 2023, it was the main kernel used in my orangepi5-archlinuxarm project. The kernel package was always a pseudo versioned package, as it tracks the revision orangepi uses internal in their build system, which I convert manually to the commit id used when the build system is updated.
However, just recently, orangepi updated their build system and changed which branch to build kernel from their linux-orangepi repo, without touching the internal revision. They introduced OrangePi 5 Pro support in the update and bumped the kernel for OPi5/5B/5Plus all together, so their kernel was bumped together to
5.10.160
, but their revision did not change at all.This leaves me a hard situation to work against: If I bump
linux-aarch64-orangepi5
to point to a new commit, what should that commit be? The versioning in their build system still hints OPi5 is at 1.1.8, that could point to both the old commit in-rk3588
tree I was using in5.10.110-6
, or the latest commit in-rk35xx
tree.Thus, I decided to create a new -git package to track their VCS revisions directly, which is linux-aarch64-orangepi5-git, tracking both the kernel and the build system, currently at
5.10.160.r1080192.695850f9bde2.ced0156-1
To prepare for migration, simply install
linux-aarch64-orangepi5-git
from the repo, it does not conflict with the old non-git package. All my kernel packages don't conflict with each other.Update your
/boot/extlinux/extlinux.conf
to contain both kernels like the following:To switch the version, simply modify the
DEFAULT
line and point it to a differentLABEL
.If you want to be able to change the booting target interactively during the boot process, you can add a line like
TIMEOUT 30
after theDEFAULT
line, which means to wait for 3 seconds to let you make the choice. Personally I feel this a waste of time because I use them as headless servers.If you have no issue using the new
-git
kernel, you can safely remove the old kernel and its booting configuration.Your new configuration without the old kernel should look like the following:
WARNING: The migration does not introduce conflict if and only if you're using packages built from my source. Some downstream copied and modified my PKGBUILD and used a same folder instead of dedicated folders for DTBs of a kernel, those are not supported by myself and would most likely break
The text was updated successfully, but these errors were encountered: