Boot loader that will load a 32-bit OS image from a 64-bit UEFI system.
- Simple
- Easy to understand
Environment: Ubuntu 14.10 x86_64, gcc 4.9.1 Target: x64
- apt-get install git uuid-dev nasm gcc g++ python ruby rake qemu-system-x86-64
- git submodule update --init
- rake setup
- cd edk2 && . edksetup.sh && cd ..
- rake build
- rake run
- cd edk2 && . edksetup.sh && cd ..
- rake example # This will build the examples, create and image, and boot qemu with that image.
- (At the Qemu prompt) UefiOSloader fs0:\32-bit-os.elf
- At this point, halt the system with the debugger, change to 32-bit mode and set the instruction pointer to 32-bit-os.elf entrypoint.
- Ctrl-a, x to exit Qemu
Credits: UefiBootLoader is based on the project by fgken https://github.com/fgken/uefi-bootloader 32-bit-os.asm is based on http://wiki.osdev.org/Bare_Bones_with_NASM which is licensed under http://creativecommons.org/publicdomain/zero/1.0/