Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debian kernel-config file for Linux 6.3

112 views
Skip to first unread message

Sedat Dilek

unread,
May 8, 2023, 2:11:53 AM5/8/23
to
Hi Ben and Debian kernel team,

Today, I have seen on salsa.d.o there is some progress/update in
master Git branch to use Linux 6.3

Can you give help and/or instructions on how to generate a Debian
kernel-config file?
Alternatively point to a URL or provide such a kernel-config file?

Thanks in advance.

Best regards,
-Sedat-

[1] https://salsa.debian.org/kernel-team/linux/-/tree/master

Ben Hutchings

unread,
May 8, 2023, 10:20:04 AM5/8/23
to
On Mon, 2023-05-08 at 07:48 +0200, Sedat Dilek wrote:
> Hi Ben and Debian kernel team,
>
> Today, I have seen on salsa.d.o there is some progress/update in
> master Git branch to use Linux 6.3
>
> Can you give help and/or instructions on how to generate a Debian
> kernel-config file?
> Alternatively point to a URL or provide such a kernel-config file?

You should be able to generate any .config file like this:

$ debian/rules debian/control-real
...
$ ARCH=$(dpkg --print-architecture) # or some other Debian
architecture
$ FEATURESET=none # or "rt" for builds with realtime
patches
$ FLAVOUR=... # whichever flavour you're interested
in
$ dpkg-architecture -a$ARCH -c make -f debian/rules.gen
setup_${ARCH}_${FEATURESET}_${FLAVOUR}
...
$ cat debian/build/build_${ARCH}_${FEATURESET}_${FLAVOUR}/.config

The setup rule is currently broken on master, so you'll need to apply
this patch first:

--- a/debian/rules.real
+++ b/debian/rules.real
@@ -345,7 +345,7 @@ binary_support: PACKAGE_ROOT =
/usr/share/$(PACKAGE_NAME)
dh_link $(PACKAGE_ROOT) /usr/src/$(PACKAGE_NAME)
+$(MAKE_SELF) install-base

-setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR))
+setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)

build_image: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)

--- END ---

Ben.

--
Ben Hutchings
I haven't lost my mind; it's backed up on tape somewhere.
signature.asc

Sedat Dilek

unread,
May 9, 2023, 4:00:05 AM5/9/23
to
Hi Ben,

Thanks for the quick response and your help!
Much appreciated as I know you are in a stressed situation in
terminating Debian/bookworm release.

While digging through my own docs I found the attached document -
cannot say it's still up2date.

I will verify by generating a dot-config for a known Git tag like
debian/6.1.25-1 as you described.

Just see this morning linux-kernel v6.3.1 Debian packages in
Debian/rc-buggy (experimental):

root# apt-get install -t rc-buggy linux-image-6.3.0-0-amd64-unsigned
-o APT::Get::Upgrade-By-Source-Package=0 -y

( This time the installation went fine this way - with no (DKMS) errors. )

Have more fun.

Best regards,
-Sedat-
howto-rebuild-debian-kernel-for-one-single-kernel-variant-debian9.txt

Sedat Dilek

unread,
May 12, 2023, 12:30:10 PM5/12/23
to
On Mon, May 8, 2023 at 4:18 PM Ben Hutchings <b...@decadent.org.uk> wrote:
>
> On Mon, 2023-05-08 at 07:48 +0200, Sedat Dilek wrote:
> > Hi Ben and Debian kernel team,
> >
> > Today, I have seen on salsa.d.o there is some progress/update in
> > master Git branch to use Linux 6.3
> >
> > Can you give help and/or instructions on how to generate a Debian
> > kernel-config file?
> > Alternatively point to a URL or provide such a kernel-config file?
[...]
> $ dpkg-architecture -a$ARCH -c make -f debian/rules.gen
> setup_${ARCH}_${FEATURESET}_${FLAVOUR}
> ...
> $ cat debian/build/build_${ARCH}_${FEATURESET}_${FLAVOUR}/.config
>
> The setup rule is currently broken on master, so you'll need to apply
> this patch first:
>
> --- a/debian/rules.real
> +++ b/debian/rules.real
> @@ -345,7 +345,7 @@ binary_support: PACKAGE_ROOT =
> /usr/share/$(PACKAGE_NAME)
> dh_link $(PACKAGE_ROOT) /usr/src/$(PACKAGE_NAME)
> +$(MAKE_SELF) install-base
>
> -setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR))
> +setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
>
> build_image: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
>
> --- END ---
>

Commit ad125a44 ("d/rules.real: Fix typo in setup_image target")

[1] https://salsa.debian.org/kernel-team/linux/-/commit/ad125a44dfa9fcfc4fcc79a697819a8259421484

Sedat Dilek

unread,
May 13, 2023, 5:32:19 PM5/13/23
to
Hi Ben,

this weekend I had some time to play with this.

You missed some PREREQS like you need a linux-x.y.z SOURCE...

What worked for me:

[ PREREQS + PREPS ]

[ /etc/apt/sources.list.d/debian-sources.list ]

# Debian/experimental sources
deb-src https://deb.debian.org/debian experimental main non-free contrib
deb-src https://deb.debian.org/debian rc-buggy main non-free contrib
- EOF-

apt-get update

cd $HOME/src/linux

apt-get source linux-source-6.3

cd linux-6.3.1/

git apply --verbose ../debian-rules_real.diff <--- Your DIFF (see also
patch below [1]).

[ GENERATE KERNEL-CONFIG ]

echo $ARCH $FEATURESET $FLAVOUR
amd64 none amd64

LC_ALL=C debian/rules debian/control-real

LC_ALL=C dpkg-architecture -a$ARCH -c make -f debian/rules.gen
setup_${ARCH}_${FEATURESET}_${FLAVOUR}

[ DIFFCONFIG ]

scripts/diffconfig /boot/config-6.3.0-0-amd64
debian/build/build_${ARCH}_${FEATURESET}_${FLAVOUR}/.config
+BUILD_SALT "6.3.0-0-amd64"
+MODULE_SIG_ALL n
+MODULE_SIG_KEY ""
+SYSTEM_TRUSTED_KEYS
"/home/dileks/src/linux/linux-6.3.1/debian/certs/debian-uefi-certs.pem"

Thanks.

Regards,
-Sedat-

[1] https://salsa.debian.org/kernel-team/linux/-/commit/ad125a44dfa9fcfc4fcc79a697819a8259421484.patch
0 new messages