Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

(Resolved) Manually compiled kernel cannot be started

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
wlmosv
n00b
n00b
User avatar
Posts: 48
Joined: Fri Apr 19, 2024 11:01 am

(Resolved) Manually compiled kernel cannot be started

  • Quote

Post by wlmosv » Sat Dec 07, 2024 6:42 pm

Guys, after I manually configure the kernel. Can't boot I noticed it doesn't have an initramfs file but I'm not sure if that's the cause Now when I update the kernel I always have to use genkernel to update I don't like this

Code: Select all

wlmosv@localhost /boot $ ls
EFI                              initramfs-6.11.4-xanmod1-x64v2.img  kernel-6.11.4-xanmod1-x64v2  kernel-6.12.3-gentoo
System.map-6.12.0-gentoo-x86_64  initramfs-6.12.1-gentoo-x86_64.img  kernel-6.12.0-gentoo         vmlinuz-6.12.0-gentoo-x86_64
System.map-6.12.1-gentoo-x86_64  initramfs-6.12.1-gentoo.img         kernel-6.12.0-gentoo-x86_64  vmlinuz-6.12.1-gentoo-x86_64
grub                             initramfs-6.12.3-gentoo.img         kernel-6.12.1-gentoo-x86_64  vmlinuz-6.12.1-gentoo-x86_64.old
wlmosv@localhost /boot $ eselect kernel list 
Available kernel symlink targets:
  [1]   linux-6.6.62-gentoo-dist
  [2]   linux-6.11.4-xanmod1-x64v2
  [3]   linux-6.11.9-gentoo-dist
  [4]   linux-6.12.3-gentoo *
wlmosv@localhost /boot $ uname -r
6.12.1-gentoo-x86_64
wlmosv@localhost /boot $ 

You can see that my boot directory looks like this. I don’t know what caused this. Here is my kernel configuration file.
http://0x0.st/Xhiy.config

I want to install 6.12.3 now but can't. Can anyone help me find out what's going on? :( :(
Last edited by wlmosv on Sun Dec 08, 2024 5:13 pm, edited 1 time in total.
学习他,成为他,超越他:Embrace the journey of learning from him, becoming like him, and ultimately surpassing him.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2115
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: Manually compiled kernel cannot be started

  • Quote

Post by GDH-gentoo » Sun Dec 08, 2024 3:28 pm

wlmosv wrote:Can't boot [...]
I want to install 6.12.3 now but can't.
And the new kernel fails how?
wlmosv wrote:[...] I noticed it doesn't have an initramfs file [...]
There is a file named initramfs-6.12.3-gentoo.img in /boot, isn't that an initramfs for the 6.12.3 kernel?
wlmosv wrote:You can see that my boot directory looks like this.
wlmosv wrote:

Code: Select all

wlmosv@localhost /boot $ ls
...
wlmosv@localhost /boot $ eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.6.62-gentoo-dist
  [2]   linux-6.11.4-xanmod1-x64v2
  [3]   linux-6.11.9-gentoo-dist
  [4]   linux-6.12.3-gentoo *
Many old kernels lying around. Also:
wlmosv wrote:

Code: Select all

wlmosv@localhost /boot $ uname -r
6.12.1-gentoo-x86_64
You have a file named kernel-6.12.1-gentoo-x86_64 and a file named vmlinuz-6.12.1-gentoo-x86_64 in /boot, is one of them a symbolic link?
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Dec 08, 2024 4:21 pm

wlmosv,

maybe I'm wrong, but it sounds to me like you used to create your kernels with “genkernel” and now you want to install a kernel completely manually (which I think is a good idea). In this case you only need an initramfs IF your root partition is encrypted. If it is not, you can easily configure, create (make) and install (depending on whether you have a bootloader/bootmanager or boot your kernel directly via UEFI) a kernel manually WITHOUT initramfs . You might want to read this: https://wiki.gentoo.org/wiki/User:Pieti ... figuration ;-)
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
wlmosv
n00b
n00b
User avatar
Posts: 48
Joined: Fri Apr 19, 2024 11:01 am

  • Quote

Post by wlmosv » Sun Dec 08, 2024 5:08 pm

pietinger wrote:wlmosv,

maybe I'm wrong, but it sounds to me like you used to create your kernels with “genkernel” and now you want to install a kernel completely manually (which I think is a good idea). In this case you only need an initramfs IF your root partition is encrypted. If it is not, you can easily configure, create (make) and install (depending on whether you have a bootloader/bootmanager or boot your kernel directly via UEFI) a kernel manually WITHOUT initramfs . You might want to read this: https://wiki.gentoo.org/wiki/User:Pieti ... figuration ;-)
Thanks a lot. Now everything is working fine. Actually I don't have many ideas. I just don't like genkernel to prepare everything for me. Now everything is working fine. Thank you.
学习他,成为他,超越他:Embrace the journey of learning from him, becoming like him, and ultimately surpassing him.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic