OSDev.org
https://forum.osdev.org/

Simple and Powerful UEFI Bootloader
https://forum.osdev.org/viewtopic.php?f=2&t=55893
Page 1 of 1

Author:  stakach [ Mon Oct 11, 2021 8:04 pm ]
Post subject:  Simple and Powerful UEFI Bootloader

Long time reader, first time poster. Played around with OS dev years ago and decided to get back into it.
With UEFI BIOS mode going away soon (and Win11 dropping support for it) I wanted to see how much easier OS dev could be booting from UEFI.

Turns out to be pretty simple https://github.com/stakach/uefi-bootstrap
Written in Zig lang as it has great first class UEFI support and really simple to build / test.

Jumps you into the kernel (a pretty standard elf executable) with the memory mappings and video buffer information.
Going to expand that simple kernel with text output capabilities (currently draws a triangle on the screen) but it'll basically only exist there to demonstrate the boot loader and I'll start building a more complex kernel as a seperate project.

Hopefully others can learn, take inspiration or use that bootstrap in their projects (comments, issues and pull requests all welcome) :D

Attachments:
File comment: screenshot
bootstrap.png
bootstrap.png [ 81.4 KiB | Viewed 5154 times ]

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/