Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Migrating from raspberrypi-image to genkernel, confused
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
jgaz
n00b
n00b


Joined: 14 Feb 2021
Posts: 42

PostPosted: Fri Apr 08, 2022 8:03 pm    Post subject: Migrating from raspberrypi-image to genkernel, confused Reply with quote

Okay, so I have a Raspberry Pi 4B 8GB and it's currently running raspberrypi-image and I want to migrate to genkernel. I have a good idea of how to do this, but my gut says I'm missing a step or two....

First, get the kernel packages

# emerge sys-kernel/genkernel sys-kernel/gentoo-sources

Then find my desired kernel in the list:

# eselect kernel list

Having found my desired kernel, set it:

# eselect kernel set [number of desired kernel]

Having done all of that, I build my desired kernel with the options I want:

# genkernel --btrfs all

I think all of the above is accurate. Here is the part I don't understand: how do I ensure that the Pi picks up the desired kernel and not the old one? On a normal system, I'd be updating my grub.conf file to accomplish that. But, a Pi isn't a "normal" computer. I thought there was an option to set this in /boot/cmdline.txt but I don't see it. What am I missing?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54388
Location: 56N 3W

PostPosted: Fri Apr 08, 2022 8:21 pm    Post subject: Reply with quote

jgaz,

It goes in /boot/config.txt

Code:
# as we don't use default kernel names, we must set 64 bit mode.
#arm_control=0x200 # is the old way
arm_64bit=1
kernel=kernel-5.10.81-v8+


The Pi loader uses the default kernel names to know if it should set the Pi up in 64 bit mode or not.

If you have an initrd, you need to load that here too.

Lastly, the kernel command line goes in /boot/cmdline.txt - you may need to adjust that.
This Wiki page will give you some pointers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54388
Location: 56N 3W

PostPosted: Fri Apr 08, 2022 8:24 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Gentoo on ARM.

Be it 32 or 64 bit Pi, it fits better here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum