Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

booting custom kernel and initrd in qemu unde efi [aolved]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

booting custom kernel and initrd in qemu unde efi [aolved]

  • Quote

Post by DaggyStyle » Sun Apr 13, 2025 3:09 pm

Greetings,

I'm trying to test a new initramfs I'm working on for a system I have, I don't want to test on a live system to I'm trying to get qemu to work.
I've created a dummy fs to boot after, grabbed a kernel and skeleton initramfs, I ran this cmd: qemu-system-x86_64 -bios /usr/share/edk2/OvmfX64/OVMF_CODE.fd -kernel vmlinuz-linux-6.14.2-gentoo -nographic -append "console=ttyS0" -initrd initramfs -drive format=raw,file=guest.img.raw
and I get efi shell, what am I doing wrong?
Last edited by DaggyStyle on Sun Apr 13, 2025 5:29 pm, edited 1 time in total.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sun Apr 13, 2025 3:13 pm

after examining the serial log, I see these errors:
EFI stub: ERROR: Failed to decompress kernel
EFI stub: ERROR: efi_stub_entry() failed!
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Apr 13, 2025 3:20 pm

Do you even need UEFI for initramfs test? if not just take out "-bios /usr/share/edk2/OvmfX64/OVMF_CODE.fd" from your qemu command.

UEFI is a pre-boot management services (or specification if you insist) and your qemu command already specific kernel file location, so there is no need to invoke UEFI.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sun Apr 13, 2025 5:29 pm

pingtoo wrote:Do you even need UEFI for initramfs test? if not just take out "-bios /usr/share/edk2/OvmfX64/OVMF_CODE.fd" from your qemu command.

UEFI is a pre-boot management services (or specification if you insist) and your qemu command already specific kernel file location, so there is no need to invoke UEFI.
(facepalm) you are correct, I'm missing to much sleep hours.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

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