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

LoGin db321c0edf upgrade gnu-efi to 3.0.18 (#20) 1 dzień temu
.vscode 2604d7835e 设置镜像内存权限为rwx,并且退出bootservice (#9) 1 rok temu
apps 605dcf8011 Merge remote-tracking branch 'gnuefi/master' into patch-upgrade-to-3.0.18 1 dzień temu
docs f1de0317e1 move gnuefi's README files to `docs/` (#2) 1 rok temu
gnuefi 52455a5f10 Merge /u/yetist/gnu-efi/ branch dev-master into master 1 rok temu
inc 605dcf8011 Merge remote-tracking branch 'gnuefi/master' into patch-upgrade-to-3.0.18 1 dzień temu
lib 605dcf8011 Merge remote-tracking branch 'gnuefi/master' into patch-upgrade-to-3.0.18 1 dzień temu
tools 823f049319 重定位内核并加载 (#7) 1 rok temu
.clang-format f412fd2a1a 命令行参数解析 (#3) 1 rok temu
.gitignore 5c0de15d43 dragon stub helloworld (#1) 1 rok temu
ChangeLog aac405cc66 Updated Changelog 10 lat temu
LICENSE 5c0de15d43 dragon stub helloworld (#1) 1 rok temu
Make.defaults 605dcf8011 Merge remote-tracking branch 'gnuefi/master' into patch-upgrade-to-3.0.18 1 dzień temu
Make.rules 50b27a854c ARM32: fix image 1 rok temu
Makefile 605dcf8011 Merge remote-tracking branch 'gnuefi/master' into patch-upgrade-to-3.0.18 1 dzień temu
README.md fe0ee6eaf3 把ELF负载绑定到dragonstub内,并检测ELF header (#5) 1 rok temu
env.mk a09217116b make install (#8) 1 rok temu

README.md

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