:: Re: [DNG] kernels (was Re: Devuan …
Top Page
Delete this message
Reply to this message
Author: tito
Date:  
To: dng
Subject: Re: [DNG] kernels (was Re: Devuan with usr merge?)
On Sat, 13 Nov 2021 22:20:32 +0100 (CET)
karl@??? wrote:

> Steve Litt:
> > karl@??? said on Sat, 13 Nov 2021 12:42:51 +0100 (CET)
> > >Steve Litt:
> ...
> > >> Which brings up another beef I have: Why don't they build Ext4 and
> > >> maybe a couple other mainstream filesystems into the kernel, so if I
> > >> want, I can boot without initramfs? What would it cost?
> > >...
> > >
> > >I use it all the time.
> > >
> > >Just do it yourself, it just cost you a little time, or do you
> > >volunteer to maintain a such kernel for devuan ?
> ...
> > I think it's more than just a little time.
>
> Depends on what you want.
>
> > Every time the kernel updates,
>
> No, you don't have to follow the dists update schedule, you don't
> need to use the dist kernel at all.
>
> It should read, every time _you_ want to update the kernel.
>
> > you need to get the new kernel's source, recompile, and
> > replace the new kernel.
>
> Well, get used to it and streamline it then.
>
> Regards,
> /Karl Hammar
>
>

Hi,
This is rather easy, I use this simple script to compile and package a kernel with mods
for one of my wifi-routers. The script must be run from within the kernel source dir.

#! /bin/sh
echo "REMOVE CONFIG_SYSTEM_TRUSTED_KEYS"
./scripts/config --set-val CONFIG_SYSTEM_TRUSTED_KEYS \"\"
echo "REMOVE CONFIG_DEBUG_INFO"
./scripts/config --set-val CONFIG_DEBUG_INFO n
make oldconfig
make -j4 bindeb-pkg LOCALVERSION=-custom


when the build is done you get in the dir one level up something like:

-rw-r--r-- 1 tito tito     5066 Nov 13 14:04 linux-4.19.217-custom_4.19.217-custom-24_amd64.buildinfo
-rw-r--r-- 1 tito tito     2064 Nov 13 14:04 linux-4.19.217-custom_4.19.217-custom-24_amd64.changes
-rw-r--r-- 1 tito tito 11128628 Nov 13 14:03 linux-headers-4.19.217-custom_4.19.217-custom-24_amd64.deb
-rw-r--r-- 1 tito tito 46691460 Nov 13 14:04 linux-image-4.19.217-custom_4.19.217-custom-24_amd64.deb
-rw-r--r-- 1 tito tito  1015060 Nov 13 14:03 linux-libc-dev_4.19.217-custom-24_amd64.deb


Ciao,
Tito