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 update/compile Debian 12.5? Wizardknight 2 209 03-14-2024, 05:30 AM
Last Post: diederik
  Rock64 Debian 11 (Bullseye) install problem jbize 15 7,962 10-12-2023, 05:14 PM
Last Post: tpaul
  Linux 5.15 Kernel - openSuse mark1250 0 1,243 12-02-2021, 04:36 PM
Last Post: mark1250
  Security Patches for the Kernel kwinz 9 6,551 10-22-2021, 05:45 AM
Last Post: kwinz
  rock64-debian-mrfixit-190531.img.xz : missing /usr/lib/dri/rockchip_dri.so popi 5 5,121 08-12-2021, 04:55 AM
Last Post: igorp
  Debian build from mrfixit2001 Luke 18 26,592 05-17-2021, 02:35 AM
Last Post: Wizzard
  Debian kernel stuck at 4.4.167 Enig123 5 5,485 12-29-2020, 12:57 PM
Last Post: kwinz
  Debian (Vanilla) on Rock64 and eMMC - how ? as365n4 4 5,140 09-21-2020, 04:33 AM
Last Post: as365n4
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 11,985 08-31-2020, 01:41 AM
Last Post: as365n4
  Installing DietPie on Rock64 and set 1280x1024 resolution Dape97 2 3,747 05-26-2020, 07:20 AM
Last Post: Dape97

Forum Jump:


Users browsing this thread: 1 Guest(s)