How to compile and install this kernel?

Kernels & Hardware, configuring network, installing services

How to compile and install this kernel?

Postby overlock » 2019-09-06 11:04

Hello, my question is how I compile and install this kernel, I have no idea how to proceed.
https://github.com/damentz/liquorix-package
overlock
 
Posts: 6
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

Postby None1975 » 2019-09-06 15:30

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 Buster / WM: Awesome
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 920
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: How to compile and install this kernel?

Postby stevepusser » 2019-09-06 16:39

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to compile and install this kernel?

Postby overlock » 2019-09-08 12:11

Yes is exactly what I want to compile the sources of the link I passed as I proceed?
overlock
 
Posts: 6
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

Postby stevepusser » 2019-09-08 19:03

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?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to compile and install this kernel?

Postby overlock » 2019-09-08 22:38

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
overlock
 
Posts: 6
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

Postby stevepusser » 2019-09-09 01:01

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?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to compile and install this kernel?

Postby overlock » 2019-09-09 02:12

Because my hardware is old, I noticed better non-recent kernel performance, especially with my 1st person network card and game.
overlock
 
Posts: 6
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

Postby stevepusser » 2019-09-09 17:09

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53

Re: How to compile and install this kernel?

Postby overlock » 2019-09-13 14:37

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/
overlock
 
Posts: 6
Joined: 2018-08-27 23:40

Re: How to compile and install this kernel?

Postby stevepusser » 2019-09-13 17:53

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11097
Joined: 2009-10-06 05:53


Return to System configuration

Who is online

Users browsing this forum: debbiethekiwi and 13 guests

fashionable