Giter Club home page Giter Club logo

Comments (2)

rjoleary avatar rjoleary commented on May 23, 2024 1

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.

ReLIFE9527 avatar ReLIFE9527 commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.