https://github.com/wesleyac/bootbootasm
An example of automatically building a BOOTBOOT-compatible assembly kernel
https://github.com/wesleyac/bootbootasm
Last synced: 5 months ago
JSON representation
An example of automatically building a BOOTBOOT-compatible assembly kernel
- Host: GitHub
- URL: https://github.com/wesleyac/bootbootasm
- Owner: WesleyAC
- Created: 2019-08-19T02:16:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T02:16:50.000Z (almost 7 years ago)
- Last Synced: 2025-08-23T23:20:03.212Z (11 months ago)
- Language: Makefile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bootbootasm
This is a simple test of building and booting a [BOOTBOOT](https://gitlab.com/bztsrc/bootboot)-compatible kernel written in assembly in a completely automated way.
It uses BIOS, since OVMF seems to be pretty buggy. However, you should be able to create a EFI image using basically the same technique.
It currently relies on the prebuilt `bootboot.bin` file in the bootboot repo, which is imported as a submodule. It should be easy to set it up so that it builds from source, but I haven't tried yet (there's already some recursive make involved to build the `mkboot` tool).
To build the image, type `make image` - this creates `out/outer.img`, which should be bootable.
To run in qemu, type `make run`.
Dependencies:
* `mtools`
* `parted`
* `qemu-system-x86_64`
* `nasm`
* `ld`
* `gzip`
* `cpio`
* `dd`