All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Promethee: UEFI Bindings for JavaScript - Proof of Concept for Writing Bootloaders in JavaScript

By

ananas-dev

3mo ago· 1 min readen

Summary

Promethee is a proof-of-concept project that provides UEFI (Unified Extensible Firmware Interface) bindings for JavaScript, allowing developers to write bootloaders and low-level firmware code in JavaScript. The project enables JavaScript code to interact directly with UEFI services, with script.js serving as the entry point that gets loaded from the boot volume. The article provides basic setup instructions including fetching dependencies, building, and running in QEMU emulator, along with a simple example showing how to access graphics output protocol to fill the screen with red color.

Key quotes

· 4 pulled
Promethee loads script.js from the boot volume and runs it. That script is your bootloader.
If you can do it with UEFI services, you can do it in JavaScript.
Your entrypoint is script.js. The run target copies it to the UEFI FAT volume as \script.js.
var gop = efi.SystemTable.BootServices.LocateProtocol(efi.guid.GraphicsOutput);
Snippet from the RSS feed
UEFI Bindings for JavaScript (Proof of Concept)

You might also wanna read