On Sat, 5/30/2026 11:35 AM, Mr. Man-wai Chang wrote:
On 5/29/2026 1:10 PM, german usenet wrote:
a way ?
i think the distro's kernel is so big ! 15Mo !
a way to have 500ko for my personnal kernel ?
You will have to compile your own kernel, by eliminating un-neccesary drivers and functions using a config file "make configure".
Welcome to Linux From Scratch!
<https://www.linuxfromscratch.org/>
When you build a kernel, there is an ncurses menu and
you select items. If you choose to make no changes
to the kernel with such a menu, then the build is a
"generic kernel".
https://www.forlinx.net/industrial-news/How-Configure-Linux-Kernel-make-menuconfig-516.html
For some items in the kernel config, you have to be careful as
the controls are in two place in the menu. And the changes
you make in one place, have to be reflected in a second place.
Something involving storage works that way, but it's been
quite a while since I built a kernel.
It's not hard work doing that, but it is tedious.
You get more experience at it, when doing this. One
of the virtues extolled here, is you can have the build
done to be "optimal for a particular processor", so you
could have the build done so it "runs best on a Core2duo".
That gets you a whole 1% more performance :-)
https://wiki.gentoo.org/wiki/Kernel/Configuration
You need a bit of storage space, to work. You should
have as much space, as if you were building Firefox from source :-)
The procedure today, likely involves finding or building
a copy of Rust to do it. As I think there is some Rust
in the kernel now. And how you build the kernel, may affect
the ability to read a kernel panic later, with a kernel debugger.
If you configure the kernel incorrectly, that stops working properly.
It will take a number of tries to get it right, so you might
also need "make clean" or the like, before the final run. There should be
two levels of clean, one "wipes out everything" (even menu changes),
the other would just wipe obj files so everything is compiled from
scratch.
Paul
--- PyGate Linux v1.5.15
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)