Skip to content

fgken/uefi-bootloader

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

UEFI-BootLoader

Overview

elf形式と生バイナリ形式のファイルをメモリ上にロードして実行するUEFIアプリです。 EDKIIを使って作成。 UEFIの勉強を兼ねた最低限の実装です。 コードの理解しやすさ重視で作っています。

Feature

  • Simple
  • Easy to understand

Build

Environment: Ubuntu 14.10 x86_64, gcc 4.9.1 Target: x64

  1. apt-get install git uuid-dev nasm gcc g++ python ruby rake qemu-system-x86-64
  2. git submodule update --init
  3. rake setup
  4. cd edk2 && . edksetup.sh && cd ..
  5. rake build

gccのバージョンが4.9.x以外の場合は、実行前にRakefileの"GCC49"の部分をバージョンに合わせて書き換えてください。

How to Run

  1. rake run

Running Example

  1. cd edk2 && . edksetup.sh && cd ..
  2. rake example
  3. (起動したコンソールに入力) UefiOSloader fs0:\out-serial-A.elf
  4. ('A'が出力されれば成功)
  5. Ctrl-a, xでqemuを終了