-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switching out the kernel zImage for custom compiled Image #2
Comments
Thank you for sharing your diagram: it's a neat way to summarise the process! Update: I forgot to specify that, if you provide an alternative zImage, you most likely will also have to provide suitable kernel modules and firmware blobs by also dropping your own firmware.tar and modules.tar in the artifacts directory. |
Thank you for the reference to the mainlining effort! Does that mainly have to do with creating the proper dts files? Or some more support from the kernel? About replacing the zImage, I also am stuck there, as compiling linux gives us an A bit more context, I want to run the audio server |
Also, the source for the diagram (
|
Mainlining H700 support is not just a matter of coming up with the right device tree because entire drivers are missing: see for example the RG35XX+ page on the linux-sunxi wiki.
I believe the former (smaller) is the dtb used by u-boot itself and the latter (larger) is the one used by the kernel. As for the kernel image format, as long as it's a "Linux kernel ARM64 boot executable Image, little-endian, 4K pages" file (you can check using For the jack part, I'm not familiar with the audio subsystem, but I've heard that pipewire has a jack compatibility layer so you may want to give it a try, but I don't know if the SysV IPC requirement also applies to that compatibility layer. And yes, you are right, the SysV IPC mechanism can't be built as a module: it's either enabled or disabled: I've checked the kernel config from an earlier stock kernel for the RG35XX+ and I can confirm it's disabled:
Finally, if you want to go down the rabbit hole of compiling your own kernel for this platform, you may be better off using postmarketos since it provides nice helpers to apply patches to the kernel sources. On the other hand, since you mentioned jack, from the info on the linux-sunxi wiki, to me it looks like there is still no working driver for the audio codec in the H700 SoC, so if audio is what you are after, you should probably stick to the vendor's kernel for the time being. |
Ummm... team....
Maybe come and join the effort on the Rocknix discord, or IRC at #sunxi-linux? The audio driver is in 6.13rc1, just missing the jack detection which I'm working on currently. I do need to update the wiki page... Have attached my notes/script for building a straightforward image with a single ext4 rootfs (from an Alpine host, but should work wherever). |
Sorry you'll also need these base image packages (enough to get the system booted with wifi, then just
|
Thank you for making this!
It took me some time to figure out, and I ended up at the following diagram:
Red: Original
Blue: Replaced
Green: Mixed
I was wondering if it is possible to also replace the zImage?
The text was updated successfully, but these errors were encountered: