On Thu, 12 Aug 2021, [email protected] wrote:

> On Thursday, 12 August 2021 3:08:23 PM AEST Tim Connors via luv-main wrote:
> > I want to apply this specific patch to current testing kernel to see if it
> > fixes debian bug #992121 (hopefully before stable!):
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i
> > d=cca342d98bef68151a80b024f7bf5f388d1fbdea
> >
> > Testing kernel is linux-image-5.10.0-8-amd64, source is linux-source-5.10
> > 5.10.46-4.
> >
> > What is the current *Debian specific* intructions to build a kernel with
> > the debian patch plus your own list of patches?
> >
> > All the guides out there are for ubuntu, arch etc.
>
> Last time I wanted to do something like this I gave it up as too hard.  A bug
> report about the lack of documentation might be good.  Also the kernel package
> maintainers have responded quickly to email in the past.

The method I ended up using was, with modifications:

https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official


I just wanted to supply a single simple .patch file, so I wanted the
easiest solution, which looked to be debian/bin/test-patches

After 3 hours of building with make -j 24 on my elderly E5-2450L 0 @
1.80GHz, I found out I don't have enough disk space on my SSD to build
with debug, and the rt featureset.

So I disabled them in the debian rules file and rebuilt.  Don't know how
to reset so that build can build again without `rm -rf`, but that's no
problem if it's bedtime anyway:

$ cd /usr/src/linux-5.10.46
$ sed -i '/^ rt/d ; s/debug-info: true/debug-info: false/' 
debian/config/amd64/defines debian/config/defines ; bash 
debian/bin/test-patches -f amd64 ../fix-bug992121.patch
$ # nek minute^Wmorning
$ sudo apt install 
./linux-image-5.10.0-8-amd64-unsigned_5.10.46-4a~test_amd64.deb

(headers didn't want to install without breaking dependencies.  Everything
installs in the same place, nothing changed in the ABI, so headers can
continue to be useful because linux-headers-5.10.0-8-amd64 is still
installed, but apt is a little upset)



And I tested and proved the patch works without needing to reboot.
hidp wasn't yet loaded because the handware dongle hadn't yet
been inserted after it crashed the VM previously.  `modprobe hidp` was
fine, and dongle worked upon insert.

-- 
Tim Connors
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to