Comments (2)
Just for the record, what kernel version is your image and which version of Ubuntu and Ubuntu's kernel?
Sometimes when you don't see any prints, it's because the kernel doesn't know where to find the serial device (a result of not being able to get the ACPI tables). For debugging, you can hard-code the location of the serial device into the kernel command line with:
earlycon=pl011,0x<addr>
Where is something you can extract from qemu with:
qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine dumpdtb=dtb.dtb
fdtdump dtb.dtb
Additionally, I'm curious if this path works:
UEFI(ACPI) ------> Kernel+U-root (Image) ---kexec---> Kernel+U-root (Image)
I am of course curious why a vanilla Linux kernel can't generate the uefi-secure-boot node and whether Ubuntu has some special patches.
from linuxboot.
I used the linux-5.4 for the Linuxboot, and the version of Ubuntu is also linux-5.4.
As for the problem that I couldn't see any print, I ended up finding (with GDB) it's because the kernel gets panic before the initialization of console. The detail of this process you can find here.
UEFI(ACPI) ------> Kernel+U-root (Image) ---kexec---> Kernel+U-root (Image)
For this path, I actually made a virtual disk to store the Image file, which contains the linux-5.4 and u-root.
So at first the Linuxboot firmware(contains the UEFI and the Image file) could run the kernel in the firmware, and then I could mount the virtual disk to find the Image file, thus I could run the kernel in the virtual disk by kexec.
For the 3rd question, I have to say, Ubuntu indeed has some special patches. :)
from linuxboot.
Related Issues (20)
- dell r630 - new model
- Build issue on Centos, Ubuntu & Fedora HOT 2
- LinuxBoot: unable to load bzImage image HOT 1
- ASSERT error when running linuxboot.rom in QEMU HOT 11
- Proposal: Merge linuxboot/linuxboot and linuxboot/mainboards HOT 3
- Initramfs specified by INITRD= not found by Linux HOT 7
- Document porting linuxboot to a new mainboard HOT 6
- Proposal: rework recipes, make them uniform, templates
- Nezha: Switch to upstream mainline kernel
- Linuxboot causes my server screen black HOT 5
- linuxboot-localboot -grub -d :mounted:[];no boot configuration found HOT 1
- Linuxboot workflow----Why you need an uefi shell
- about Linux.ffs and Initrd.ffs
- about build failed
- linuxboot is slower than uefi HOT 2
- Run LinuxBoot Failed:LinuxBoot: unable to load bzImage image
- What is the CONFIG_EFI_BDS? HOT 2
- Unable to build on Manjaro Linux x86_64: BaseException on second try.
- Unable to build on Manjaro Linux x86_64: BaseException on first try.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linuxboot.