I’ve been able to build and run your branch with no problem
However, I need some help to separate your changes from the original kernel source – there are a lot of .rej files leftover, and I don’t see clearly how the DevTerm patches are applied looking at the commit logs (no complete kernel tree history).
I tried to compare your tree with Allwinner SDK v2.1 (lichee/linux-5.4) and it seems they have made some progress (for example, support for cpufreq is now added) but merging seems not trivial.
Could you please point out the original source of your tree, so that a diff -rupN would generate something that can be (maybe ) applied to the latest allwinner 5.4 or mainline?
Thanks!
Features to be integrated into the R01 kernel
Framebuffer cursor
cpufreq scaling. I see that it can run with 480MHz, 600MHz etc.
cpuidle support.
super suspend support
video codec support. Allows accelerated video playback and probably accelerated remote desktop.
Smaeul’s kernel has some of the peripherals patched, maybe you can check this?
branch d1/wip works for me to boot up mango pi mq-pro with debian, HDMI output work, but I don’t have Devterm and MIPI screen, so I can’t sure MIPI will work or not.
@NekoRouter thanks! I’ll definitely need to check this out.
@guu it turns out that the Allwinner SDK does not have complete kernel commit history either. Their whole history are just two tagged releases 2.0 and 2.1
This makes things easy because I can assume all old d1 kernels are 2.0 and I can apply the diff from 2.0-2.1 to your tree.
@yatli Seems that smaeul’s kernel has no DE engine driver and disp2 driver ported, you may need port that from bsp’s kernel to support the fbtubro driver.
Here has some document that may helpful to porting (Chinese):
ah very interesting. thanks for the pointer.
If that’s the case, we can at least get a peripheral-off state with hardware-assisted idle.
I have verified that cpufreq is working. Maybe we can drop it down to a lower (say 50MHz) clock rate during s2idle.