Problem when updating the kernel [SOLVED]

Kernels & Hardware, configuring network, installing services

Re: Problem when updating the kernel [SOLVED]

Postby stevepusser » 2019-01-04 20:43

Scorpion wrote:
(see the Liquorix forum for install instructions)

I'm not sure of what instructions follow.
I recompiled some kernels I can use fakeroot make-kpkg and install the .deb right?


This thread on the Liquorix forums: https://techpatterns.com/forums/about2615.html

The Liquorix developer made it a sticky second from the top!
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-01-05 13:17

i installed it but if I want to recompile it:
Code: Select all
make-kpkg --append-to-version -scorpion --revision 1 --initrd kernel-image
[...]
  CC      arch/x86/boot/compressed/string.o
  CC      arch/x86/boot/compressed/cmdline.o
  CC      arch/x86/boot/compressed/error.o
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  LZ4     arch/x86/boot/compressed/vmlinux.bin.lz4
/bin/sh: 1: lz4c: not found
arch/x86/boot/compressed/Makefile:144: recipe for target 'arch/x86/boot/compressed/vmlinux.bin.lz4' failed
make[3]: *** [arch/x86/boot/compressed/vmlinux.bin.lz4] Error 1
arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 2
arch/x86/Makefile:284: recipe for target 'bzImage' failed
make[1]: *** [bzImage] Error 2
make[1]: Leaving directory '/root/snap/kernel/liquorix/linux-4.19'
debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
make: *** [debian/stamp/build/kernel] Error 2
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby Head_on_a_Stick » 2019-01-05 13:34

Scorpion wrote:
Code: Select all
/bin/sh: 1: lz4c: not found

Code: Select all
# apt install liblz4-tool
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem when updating the kernel [SOLVED]

Postby stevepusser » 2019-01-05 19:28

What make the kernel "Liquorix" are the patches, which are applied in the Debian package building process.

If you're not applying those manually, you're just doing the vanilla kernel. I would suggest you look at my guide to using the OBS to rebuild your modified Liquorix kernel from the sources in the how-to section here. The kernel's config file in in /debian/config as "config".

You can also rebuild your modified Liquorix kernel packages on your own machine if you want, but then you have to learn how to build packages...maybe the "apt-get source <package>", "apt-get build-dep <package>", etc. procedure will work with the OBS if you add the deb-src line, though.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-03-24 08:53

I am keeping to update and upgrade.
The 5.0.0-3.1-liquorix-amd64 kernel failed to load modules.
Also the 4.19 from backports failed to load modules, I am using the liquorix.
I am very ok with all the 4.20 liquorix kernel.
Is the 4.20.0-5.1-liquorix-amd64 more recent than the 4.20.0-15.1-liquorix-amd64?

But how can I select the default kernel?
The one in the "Debian GNU/Linux".
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby Head_on_a_Stick » 2019-03-24 08:58

Scorpion wrote:I am very ok with the 4.20.0-5.1-liquorix-amd64. Is this more recent than the 4.20.0-15.1-liquorix-amd64?

No. The clue is in the numbers :mrgreen:

What does "failed to load modules" mean? What happens when you try to boot the newer kernels, exactly?

Scorpion wrote:But how can I select the default kernel? The one in the "Debian GNU/Linux".

Check the "Advanced Options" sub-menu in GRUB.
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-03-24 12:40

15>5 right

What does "failed to load modules" mean? What happens when you try to boot the newer kernels, exactly?

The problem of this post, black screen with nothing.
With the tty2 I checked gdm3 was running.
Must be nvidia modules, I am using driver and cuda.
Without the driver it should work fine.
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby Head_on_a_Stick » 2019-03-24 12:43

Scorpion wrote:Must be nvidia modules

You need to rebuild the NVIDIA drivers for each new kernel version.

The Debian nvidia-driver package includes hooks to do this automatically, have you installed directly from NVIDIA instead?
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-03-24 13:50

I installed the drivers from the debian package.
All the 4.20 liquorix works, as the 4.18 from backports.
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby sunrat » 2019-03-24 14:32

Kernel 5.0 needs Nvidia 418.43 drivers. It's only in experimental so far. Try at your own peril and definitely not in Stretch, but I suggest you stick to an older kernel if you need Nvidia.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2756
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-03-25 12:49

sunrat wrote:Kernel 5.0 needs Nvidia 418.43 drivers. It's only in experimental so far. Try at your own peril and definitely not in Stretch, but I suggest you stick to an older kernel if you need Nvidia.

I don' t need the 5.0, I am very ok with the 4.20 liquorix kernel that is not old.

But the 4.19 from backports also failed.
I just wanted to report this, since I am using the 4.20 liquorix.

How can I change the default kernel?
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby Head_on_a_Stick » 2019-03-25 18:55

Scorpion wrote:How can I change the default kernel?

Change the GRUB_DEFAULT value in /etc/default/grub then run update-grub (as root).

Instructions here: https://www.gnu.org/software/grub/manua ... figuration
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem when updating the kernel [SOLVED]

Postby stevepusser » 2019-03-25 20:48

Is the 4.20.0-5.1-liquorix-amd64 more recent than the 4.20.0-15.1-liquorix-amd64?


No, it's older, but that -5.1 version isn't even in my repo any longer. https://build.opensuse.org/package/bina ... Debian_9.0

Are you building the kernels yourself, or using the ones from my OBS repo? Did you add the repo, or are installing the debs manually?
Are you also installing the header package(s)?

The stock Stretch updated 490.87-8 Nvidia drivers built OK on 4.20 Liquorix kernels for me. I backported the 410.104 drivers from Buster for the 5.0 kernel for the MX test repo, and it's working for me with Bumblebee:

Code: Select all
optirun inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel
           Device-2: NVIDIA driver: nvidia v: 410.104
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 410.104


Code: Select all
uname -a
Linux mx 5.0.0-3.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.0-2~mx17+1 (2019-03-22) x86_64 GNU/Linux


I think the Nvidia driver needs more backports than normal to build, so I think I'll put it in the new-hardware-support OBS repo, which already has those. Like in Buster, it also only supports 64-bit, though there's also a legacy 390xx 390.116 driver that still supports 32-bit and ARM architectures.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: Problem when updating the kernel [SOLVED]

Postby Scorpion » 2019-03-25 21:14

Currently the default is 0.
I move a 4.20 liquorix kernel to the top so by default it boots with that.
I also set the menu to stay 5 sec, so I can choose.

Can I change the kernel of the former 0: "Debian GNU/Linux".
Every time that the kernel is updated is also updated in that entry.
User avatar
Scorpion
 
Posts: 123
Joined: 2018-10-17 11:38

Re: Problem when updating the kernel [SOLVED]

Postby stevepusser » 2019-03-25 23:21

Scorpion wrote:Currently the default is 0.
I move a 4.20 liquorix kernel to the top so by default it boots with that.
I also set the menu to stay 5 sec, so I can choose.

Can I change the kernel of the former 0: "Debian GNU/Linux".
Every time that the kernel is updated is also updated in that entry.


You get rid of it by uninstalling that kernel.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

PreviousNext

Return to System configuration

Who is online

Users browsing this forum: Sheriff Hobbes and 15 guests

fashionable