Skip to content

fdsc/UEFI-empty-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UEFI empty application

English

Note

At the moment, the commands below is not working. To make a bootable iso image, see s.sh (these are commands for Linux).

A simple example of a UEFI application that does nothing (print a string and wait for a key press; disable watchdog timer)

build.bat contains sample commands for build

For make an USB live flash drive:

  1. Build the project with FASM https://flatassembler.net
  2. Format the flash in FAT32
  3. Copy files from iso to the root of flash

Do not copy iso folder. In root have EFI folder.

For load from USB enable in BIOS the UEFI load and disable secure boot (trust boot).

For make an iso image for VirtualBox machine

  1. 0 and 1 similarly as for USB
  2. Search in Internet mkisofs.exe https://code.google.com/archive/p/mkisofs-md5/downloads
  3. Make an iso image (build.bat makes main.iso)

For boot with VirtualBox, set the memory 64 Mb or more and set EFI to enabled. If everything is in order, when loading you will see an text on the black screen starting with the lines: "Executing the simple UEFI application".


Russian

Note

На настоящий момент времени указанное ниже не работает. Чтобы сделать загрузочный образ iso, смотрите s.sh (это команды под Linux).

Простой пример UEFI-приложения, которое ничего не делает. Просто печатает на экран строку, ждёт нажатия на клавишу, выключает сторожевой таймер UEFI.

build.bat содержит примерные команды для сборки

Для создания загрузочной флешки:

  1. Скомпилируйте проект с FASM https://flatassembler.net
  2. Отформатируйте устройство в FAT32
  3. Скопируйте файлы из папки iso в корень флешки

В корне флешки должна быть папка EFI, не iso.

Для загрузки с USB включите в биосе загрузку UEFI и отключите secure boot (trust boot).

Чтобы сделать iso-образ для загрузки с помощью виртуальной машины VirtualBox

  1. 0 и 1 аналогично
  2. Найдите в интернете mkisofs.exe https://code.google.com/archive/p/mkisofs-md5/downloads
  3. Сформируйте iso-образ (build.bat создаёт файл main.iso)

Для загрузки из VirtualBox установите объём памяти на 64 Мб или более и включите EFI. Если всё в порядке, вы увидите при загрузке на чёрном экране надпись, начинающуюся со строк: "Executing the simple UEFI application".

About

Simple empty UEFI application

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors