Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/no92/uefi-bare-bones
UEFI "Hello World"
https://github.com/no92/uefi-bare-bones
barebones kernel osdev uefi
Last synced: about 1 month ago
JSON representation
UEFI "Hello World"
- Host: GitHub
- URL: https://github.com/no92/uefi-bare-bones
- Owner: no92
- License: mit
- Created: 2018-08-04T10:47:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T16:13:50.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T00:22:28.813Z (2 months ago)
- Topics: barebones, kernel, osdev, uefi
- Language: C
- Homepage: https://wiki.osdev.org/User:No92/UEFI_Bare_Bones
- Size: 6.84 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UEFI Bare Bones
A minimal "Hello World" kernel.## Prerequisites
* git, wget, meson, the text editor of your choice, …
* clang with lld-link## Building
Set up a build directory. Run `meson setup --cross-file uefi.cross-file `. In the build directory, run `ninja`.
Example:
```sh
mkdir -p build
meson setup --cross-file=uefi.cross-file build
cd build
ninja
```## Running
Make sure you have a `OVMF.fd` ready. If you have a OVMF package installed, it can usually be copied from a path like `/usr/share/ovmf/x64/`.
Set up an ESP in the build directory like this:
```sh
cp /usr/share/ovmf/x64/OVMF.fd .
mkdir -p esp/EFI/BOOT/
cp BOOTX64.EFI esp/EFI/BOOT
```After this, you can run QEMU. A recommended setup looks like this:
```sh
qemu-system-x86_64 -drive if=pflash,format=raw,file=OVMF.fd -M accel=kvm:tcg -net none -serial stdio -drive format=raw,file=fat:rw:esp
```