You are not logged in.

#1 2017-11-21 17:20:38

kflak
Member
Registered: 2017-09-23
Posts: 52

[SOLVED] How to install linux-rt kernel with rEFInd?

Hi all,

I am using rEFInd because that's where my dual-boot Mac/Linux life started, and I am so far happy with this. However, I would like to install the real-time kernel as this seems to still be required to get the kind of rock-steady low latencies I need for my stage work. But I can't find any documentation on how to change kernels using rEFInd instead of GRUB. Before I do anything stupid that renders my machine unbootable I thought I'd ask for some advice first...

Best,
K

Last edited by kflak (2017-11-22 10:09:24)

Offline

#2 2017-11-21 17:28:33

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

If you mean add a boot entry for a different kernel see REFInd#Configuration.

Online

#3 2017-11-21 17:38:36

kflak
Member
Registered: 2017-09-23
Posts: 52

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

Seems to be something along those lines. So basically what I would do is 1. install linux-rt and linux-rt-headers from aur, 2. remove vmlinuz-linux and initramfs-linux.img, 3. mkinitcpio and 4. run #mkrlconf to get a basic configuration file? I just want to make absolutely sure I understand this correctly...

Offline

#4 2017-11-21 17:46:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

2. Is unnecessary and probably inadvisable. There is no harm having the vanilla kernel as a fallback.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-11-21 17:49:18

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

Why would you remove vmlinuz-linux and initramfs-linux.img?  You can have multiple kernels installed,  if you want to remove the linux package then removing the linux package will remove those files.
`mkrlconf` yes if you want to use /boot/refind_linux.conf and it is not already generated.  Alternatively you could add a stanza to $ESP/EFI/refind/refind.conf where $ESP is wherever the ESP is mounted.

Online

#6 2017-11-21 17:50:29

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

kflak wrote:

2. remove vmlinuz-linux and initramfs-linux.img

No need to remove the current linux package, in fact it's probably best to leave both installed in case you have a problem with either.

3. mkinitcpio

This will be done automatically when you install the new kernel.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-11-21 18:01:17

kflak
Member
Registered: 2017-09-23
Posts: 52

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

Thanks for the pointers! Will give it a spin tomorrow and mark as solved if it runs without problems.

Offline

#8 2017-11-22 10:09:01

kflak
Member
Registered: 2017-09-23
Posts: 52

Re: [SOLVED] How to install linux-rt kernel with rEFInd?

Sorted! rEFInd sniffs out all available kernels on its own, so no need to update boot stanzas manually. The only change I made was to the refind_linux.conf, changing boot parameter initrd=/boot/initramfs-linux.img to initrd=/boot/initramfs-linux-rt-bfq.img.

Offline

Board footer

Powered by FluxBB