Installing the latest kernel (Debian Stretch) + configuring the bootloader?
#1
Question 
Greetings,

Does anyone have any idea how exactly to go about this procedure? I mean, I managed to build kernel 4.15.5 from the vanilla sources, and I'm aware of what I'd do next on an x86-64 machine (make a .deb package, install it)...but, and this is the part that throws me for a loop, I'd normally just run update grub and reboot. I've looked in the /boot partition, and I'm feeling the process might be a little more complex here...I see a label for kernel-4.4 in extlinux.conf, but nothing immediately in the way of tools for adding to this file a new image...
  Reply
#2
The 'correct' way to do this is like ayufan does to make a debian package and then use flash-kernel to update the things in /boot and /lib/modules... I usually do it quick and dirty when I try things out and just copy Image to /boot/efi and the modules to /lib/modules manually... but make backups before you do that in case your new kernel doesn't work as expected or something goes wrong while moving the files around... 

I guess with more and more people building their own configs and kernel versions, we need to write some tutorial on how to do that on ARM boards, but it's not really different from PC's, just that usually there is u-boot instead of grub and the additional issue of updating the dtb (devicetree) in case there were changes in the hardware config...
Come have a chat in the Pine IRC channel >>
  Reply
#3
(02-25-2018, 03:42 PM)xalius Wrote: The 'correct' way to do this is like ayufan does to make a debian package and then use flash-kernel to update the things in /boot and /lib/modules... I usually do it quick and dirty when I try things out and just copy Image to /boot/efi and the modules to /lib/modules manually... but make backups before you do that in case your new kernel doesn't work as expected or something goes wrong while moving the files around... 

I guess with more and more people building their own configs and kernel versions, we need to write some tutorial on how to do that on ARM boards, but it's not really different from PC's, just that usually there is u-boot instead of grub and the additional issue of updating the dtb (devicetree) in case there were changes in the hardware config...

Hmm. Will do. On another note, how does one manually create / install a new initrd image? The usual tools seem to be missing from the depo.

Normally, I'd just:
Code:
make-kpkg --initrd --revision=1.0.custom kernel_image


But make-kpkg seems to be missing.
  Reply
#4
(02-25-2018, 03:42 PM)xalius Wrote: The 'correct' way to do this is like ayufan does to make a debian package and then use flash-kernel to update the things in /boot and /lib/modules...

I know is a dummy question (sorry), but can you explain how to do "like ayufan does"?
Thanks!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to boot an older, working kernel bits 0 93 11-01-2024, 04:43 PM
Last Post: bits
  problem with debian emmc boot G4zCDzWb 10 1,657 11-01-2024, 04:32 PM
Last Post: bits
  Debian installation via sd card oaFJSADBKV 0 112 10-12-2024, 10:24 AM
Last Post: oaFJSADBKV
  How to update/compile Debian 12.5? Wizardknight 3 1,281 03-29-2024, 05:01 AM
Last Post: gedas07
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,257 10-12-2023, 05:14 PM
Last Post: tpaul
  Linux 5.15 Kernel - openSuse mark1250 0 1,528 12-02-2021, 04:36 PM
Last Post: mark1250
  Security Patches for the Kernel kwinz 9 8,240 10-22-2021, 05:45 AM
Last Post: kwinz
  rock64-debian-mrfixit-190531.img.xz : missing /usr/lib/dri/rockchip_dri.so popi 5 6,204 08-12-2021, 04:55 AM
Last Post: igorp
  Debian build from mrfixit2001 Luke 18 31,211 05-17-2021, 02:35 AM
Last Post: Wizzard
  Debian kernel stuck at 4.4.167 Enig123 5 6,575 12-29-2020, 12:57 PM
Last Post: kwinz

Forum Jump:


Users browsing this thread: 1 Guest(s)