orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
643 stars 273 forks source link

Will there be realtime-enabled kernel for orangepi5B or 5 plus? #86

Closed xibeisiber closed 8 months ago

xibeisiber commented 1 year ago

Hi,

Will there be realtime-enabled kernel for orangepi5B or 5 plus? I tried to patch PREEMPT_RT into kernel but failed...

Thanks!

orangepi-xunlong commented 8 months ago

https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx-rt

https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-legacy-rt.config

k-github-bot commented 6 months ago

@orangepi-xunlong @xibeisiber

Hi,

Thank you for the links. I have attempted the following steps:

  1. Cloned the linux-orangepi repo git clone https://github.com/orangepi-xunlong/linux-orangepi.git -b orange-pi-5.10-rk35xx-rt

  2. Copied the configuration file (https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-legacy-rt.config) to .config at the root of the cloned linux-orangepi repo.

  3. Ran sudo make bindeb-pkg to build the kernel and generate .deb files.

The build fails with the following error message:

kernel/sched/core.c: In function 'drain_rq_cpu_stop':
kernel/sched/core.c:7775:9: error: implicit declaration of function 'migrate_tasks'; did you mean 'migrate_pages'? [-Werror=implicit-function-declaration]
 7775 |         migrate_tasks(rq, &rf, false);
      |         ^~~~~~~~~~~~~
      |         migrate_pages
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:273: kernel/sched/core.o] Error 1
make[4]: *** [scripts/Makefile.build:516: kernel/sched] Error 2
make[3]: *** [Makefile:1938: kernel] Error 2
make[2]: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make: *** [Makefile:1664: bindeb-pkg] Error 2

I'm running Ubuntu 22.04.

Could you please guide me on what might be going wrong, or if there are additional steps I should follow?

Thanks!