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 A64 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
  Debian build from mrfixit2001 Luke 16 3,841 07-27-2020, 06:13 AM
Last Post: schmidtbag
  Installing DietPie on Rock64 and set 1280x1024 resolution Dape97 2 238 05-26-2020, 07:20 AM
Last Post: Dape97
  pcsx rearmed on rock64 debian stretch does not go fullscreen RockyBoulder 2 773 05-09-2020, 03:15 AM
Last Post: lawrencejd
  mainline kernel sound support Openwrt lucize 2 273 05-01-2020, 05:09 PM
Last Post: PakoSt
  5.3 kernel support? csrf 5 763 04-18-2020, 11:34 PM
Last Post: CameronNemo
  Help troubleshooting kernel panic gabrielfin 3 283 03-02-2020, 04:18 PM
Last Post: gabrielfin
  need a dts file to set some pins as pulldown interrupts in kernel using a DTO dkebler 0 152 02-05-2020, 10:58 PM
Last Post: dkebler
  Fedora 31 crosscompilation fdt problem mimics debian 888789 kf5zmi 2 252 01-20-2020, 12:25 PM
Last Post: kf5zmi
  Any advantages to using the mainline kernel dkebler 0 226 11-16-2019, 12:17 PM
Last Post: dkebler
  Does anybody run the mainline kernel? CameronNemo 3 544 09-09-2019, 07:56 PM
Last Post: CameronNemo

Forum Jump:


Users browsing this thread: 1 Guest(s)