Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switching gentoo-kernel-bin to gentoo-kernel = vfat failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rrubberr
n00b
n00b


Joined: 22 Mar 2025
Posts: 3

PostPosted: Sat Mar 22, 2025 3:23 am    Post subject: Switching gentoo-kernel-bin to gentoo-kernel = vfat failure Reply with quote

I've recently successfully installed Gentoo and have my Gnome desktop all set up. I noticed that I was still using gentoo-kernel-bin rather than gentoo-kernel.

My first step was to unmask gentoo-kernel based on an older post to this forum by using the following command:
Code:
emerge --deselect gentoo-kernel-bin


Next I commenced building gentoo-kernel with:
Code:
emerge -av gentoo-kernel


I then ran eselect kernel to choose the correct one. Unfortunately, the machine reboots to the error "failed to mount /boot/efi unknown filesystem type 'vfat'."

I was able to successfully boot the system again by reverting to gentoo-kernel-bin. I then added a file named "vfat.config" to the /etc/kernel/config.d directory with the following contents and repeated the emerge/build process:

Code:
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m


For what it's worth, I also tried this file with "y" instead of "m" and it made no difference. I still reboot to the failure to mount /boot/efi error.

What is the correct way to do this? Thanks!
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2335
Location: $TERM

PostPosted: Sat Mar 22, 2025 5:33 am    Post subject: Reply with quote

Code:
lsmod | grep fat

_________________
My blog
Back to top
View user's profile Send private message
rrubberr
n00b
n00b


Joined: 22 Mar 2025
Posts: 3

PostPosted: Sat Mar 22, 2025 7:56 am    Post subject: Reply with quote

dE_logics wrote:
Code:
lsmod | grep fat


No output, vfat is also missing from cat /proc/filesystems output. A fresh install with gentoo-kernel and no gentoo-kernel-bin whatsoever encounters this same issue.

This is perhaps related to:
Code:

module: x86/modules: invalid relocation target, existing value is nonzero for type 1...
Back to top
View user's profile Send private message
rrubberr
n00b
n00b


Joined: 22 Mar 2025
Posts: 3

PostPosted: Sat Mar 22, 2025 8:10 am    Post subject: Reply with quote

This commit is perhaps the answer I needed:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3bb6bb643e02c3957e2f99cfefa1e2d3fd3c4cc
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2335
Location: $TERM

PostPosted: Sat Mar 22, 2025 9:09 am    Post subject: Reply with quote

rrubberr wrote:
dE_logics wrote:
Code:
lsmod | grep fat


No output, vfat is also missing from cat /proc/filesystems output. A fresh install with gentoo-kernel and no gentoo-kernel-bin whatsoever encounters this same issue.

This is perhaps related to:
Code:

module: x86/modules: invalid relocation target, existing value is nonzero for type 1...


This is the root cause the module is not being loaded.

Code:
find /usr/lib/modules/<kernel version> -iname '*vfat*.ko*'

_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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