README.md 812 B

DragonStub

A generic standalone EFI stub for DragonOS kernel, which based on the Linux EFI stub.

Requirements

To build the stub, you need to have the following packages installed:

sudo apt install -y gcc-riscv64-linux-gnu

Building

ARCH=riscv64 make -j $(nproc)

build with payload:

ARCH=riscv64 PAYLOAD_ELF=path/to/payload.elf make -j $(nproc)

Run

Dry run:

ARCH=riscv64 make run

Run with payload:

ARCH=riscv64 PAYLOAD_ELF=path/to/payload.elf make run

Maintainer

License

DragonStub is licensed under the GPLv2 License. See LICENSE for details.

References

  • GNU-EFI: DragonStub built with gnu-efi
  • Linux-EFIStub: In Linux kernel source tree: drivers/firmware/efi/libstub