Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to compile a kernel with CONF_SCHEDSTATS=y?

Featured Replies

Hello, 
I have a bunch of boards (rpi4b, rpi5, orangepi5, orangepi5-plus, nanopct6, rock3a, rock5b, vim4) in a Kubernetes cluster using Cilium.
Cilium requires CONF_SCHEDSTATS=y in the kernel, which is dependent on CONFIG_DEBUG_KERNEL=y but...
in build/lib/functions/compilation/armbian-kernel.sh  we have
 

                # DONE: Disable: debug option
                kernel_config_set_n DEBUG_KERNEL        # Armbian doesn't know how to package a debug kernel.

Which invalidates the option I enabled during ./compile.sh BOARD=... BRANCH=... kernel-config 
Except for the VIM4, with DEBUG_KERNEL enabled in build/config/sources/families/meson-s4t7.conf

 

Is there a way to enable DEBUG_KERNEL for the rest of the boards? 

Thank you!

Stefanita Vilcu
 

4 часа назад, Stefanita Vilcu сказал:

Which invalidates the option I enabled during ./compile.sh BOARD=... BRANCH=... kernel-config 
Except for the VIM4, with DEBUG_KERNEL enabled in build/config/sources/families/meson-s4t7.conf

 

Is there a way to enable DEBUG_KERNEL for the rest of the boards? 

The developers of Armbian have signed their own impotence with this.

They cannot or do not want to add support for creating an additional package with debugging symbols.
If we look at simple scripts for creating debian packages directly in the kernel source codes,

we will see that the debugging package is created automatically when the configuration option is selected:

CONFIG_DEBUG_INFO

The only way is to change the script of the build system itself by removing these lines and

adding 10 lines to the script to create a debugging package.

 

With respect to all free software developers.

Leonid.

15 минут назад, going сказал:

The developers of Armbian have signed their own impotence with this.

@Igor This line may sound rude, but you are probably waiting for the developers

of the source code to take some action to improve patches or kernel settings.
As long as this heresy is present in the build system (bad package build scripts),

the project will receive crumbs from what developers can and do locally.

  • Author

Since what I need is only /proc/schedstats  and not a debug package probably my task will be a little simple.  I will let you know about the result. 

Thank you very much!
Stefanita Vilcu 

  • Author

Hello, 
I am happy to report that after I commented the lines from the build/lib/functions/compilation/armbian-kernel.sh script and manually doing a "pip install pylibfdt"  (because it was complaining that it cannot compile it due to a missing "ld" which was there, in /usr/bin/ld), I was able to compile the edge kernel for rpi5b. No other steps were required.
Now I have /proc/schedstats which will make cilium happy, I hope.  Probably there will be no problems with the rest of the boards.

Thank you very much for the great work you are doing!

 

Stefanita Vilcu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.