Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to compile and install this kernel?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
overlock
Posts: 12
Joined: 2018-08-27 23:40

How to compile and install this kernel?

#1 Post by overlock »

Hello, my question is how I compile and install this kernel, I have no idea how to proceed.
https://github.com/damentz/liquorix-package

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: How to compile and install this kernel?

#2 Post by None1975 »

The Liquorix kernel can be installed by way of meta-packages. This will guarantee that the latest kernel is installed on every upgrade. Also, check this link:
https://liquorix.net/
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to compile and install this kernel?

#3 Post by stevepusser »

Yes, the developer already provides prebuilt kernels in his own repos for both Debian and Ubuntu. Note that if you're using DKMS drivers, such as the Nvidia, Virtual Box, or broadcom-sta-dkms ones, you may need a newer version of those than are in the stable repos for his current 5.2 kernels.

If you do really want to rebuild it from the source code just for the lulz, reply here. It can be done from the "debianized" source packages, just like other Debian packages.
MX Linux packager and developer

overlock
Posts: 12
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

#4 Post by overlock »

Yes is exactly what I want to compile the sources of the link I passed as I proceed?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to compile and install this kernel?

#5 Post by stevepusser »

First, install s-tui and use it to determine if your machine has overheating issues under prolonged 100% CPU stress. If so, don't use all your CPU cores to build a kernel.

Then, install packaging-dev cpio python3 python3-six bc liblz4-tool libelf-dev libssl-dev flex bison.

Then download the linux-liquorix_5.2.orig.tar.xz and the latest debian.tar.xz file from here: http://ppa.launchpad.net/damentz/liquor ... -liquorix/

Put them in a folder with no spaces in its PATH.

Enter that folder and extract the xz archives.

In the new debian folder, edit the changelog file's top line from something like this

Code: Select all

linux-liquorix (5.2-19ubuntu1~xenial) xenial; urgency=medium
to

Code: Select all

linux-liquorix (5.2-19) stable; urgency=medium
and save.

Then put that debian folder into the extracted "linux" source folder, and enter that source folder yourself.

Decide how many of your machine's cores you want to devote to the build. If you have no overheating issues, you can use all
with "-jauto", otherwise use "-jN", where N is the number of cores you wish to use. Let's say you are OK with all, so open a
terminal and

Code: Select all

debuild -uc -us -jauto
If you just want to use two:

Code: Select all

debuild -uc -us -j2
You will get one sure "error", since the build regenerates some files from your changelog changes, and stops, which is normal. Simply repeat the command.
After that, the build will commence.
After it's finished, the deb packages will be in in the folder level above the source.
Install the larger image package as well as the larger header package, as the smaller ones are metapackages you don't need at the moment.

But this will be exactly the same kernel as in the Liquorix repo...can you tell us why you want to reinvent the wheel? Is this just to learn how it's done?
MX Linux packager and developer

overlock
Posts: 12
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

#6 Post by overlock »

Because I intend to use version 4.19 and only found it in this mode, I'm sorry but when I posted 1 message with the link, entered the latest liquorix kernel version.

https://github.com/damentz/liquorix-package/tree/4.19

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to compile and install this kernel?

#7 Post by stevepusser »

You can get the built 4.19 kernel debs from this repo that I was maintaining, as well as the sources, but remember, this kernel is not getting the LTS security support like the Debian 4.19 kernel. https://download.opensuse.org/repositor ... ebian_9.0/

Is there a reason you can't run a 5.2 Liquorix kernel?
MX Linux packager and developer

overlock
Posts: 12
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

#8 Post by overlock »

Because my hardware is old, I noticed better non-recent kernel performance, especially with my 1st person network card and game.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to compile and install this kernel?

#9 Post by stevepusser »

Well, I only have Stretch packages in that repo, since Liquorix was supplying Buster builds at the time, but I could add a Buster build for the 4.19 kernel if you need it. It's just a matter of clicking checkboxes in the web interface.

If your machine is old and slow, the OBS can also build your Liquorix kernels for you--I think it takes 30 min to an hour--and it's free to join and use.
MX Linux packager and developer

overlock
Posts: 12
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

#10 Post by overlock »

I don't know the OBS what would it be?

Through its signature with the repo of mx I found the kernel 4.9-liquorix compiled, I will install and test and already report what happened and leave the link here if anyone else needs. :D

:arrow: http://mxrepo.com/mx/testrepo/pool/test ... -liquorix/

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to compile and install this kernel?

#11 Post by stevepusser »

overlock wrote:I don't know the OBS what would it be?

Through its signature with the repo of mx I found the kernel 4.9-liquorix compiled, I will install and test and already report what happened and leave the link here if anyone else needs. :D

:arrow: http://mxrepo.com/mx/testrepo/pool/test ... -liquorix/
OBS= openSUSE Build Service That is, what I linked to above. It can build for Debian and Ubuntu, plus many more other distro's packages. It's a very powerful tool, though I only know how to use a small part of its features, and is completely free to use. I use it to provide Pale Moon Browser packages for Ubuntu and Debian to the world, for example: https://build.opensuse.org/package/show ... r/palemoon

You say your own machine is rather old and slow, so the OBS would be able to build a kernel faster than on it. My current i7-8750H laptop is about three or four time faster than it when compiling using all six cores and twelve threads at a sustained 3.6 GHz.
MX Linux packager and developer

Post Reply