Elektrine lite

← Feed

@aruiz@mastodon.social

2026-03-18 15:09 UTC

I wrote a bootloader in Rust that boots Linux on IBM PowerVM — no C, no GRUB, no standard library. Just #![no_std] Rust talking directly to Open Firmware, parsing FAT and ISO9660, loading ELF kernels using UAPI BLS spec, and jumping to them with inline assembly. The hardest part? The firmware has a secret limit on memory allocations that nobody documents. https://siliconislandblog.wordpress.com/2026/03/18/booting-with-rust-chapter-3/

Replies (4)

  • @siosm@floss.social 2026-03-18 19:25

    @aruiz@mastodon.social Interesting! That will likely be useful to standardize our efforts on Confidential Computing setups. As you note in the end, UKI support would be a great next step for that.

    Open ##3264531

  • @tris@chaos.social 2026-03-18 19:44

    @aruiz@mastodon.social Btw have you checked out https://github.com/edera-dev/sprout ? ;)

    Open ##3264533

  • @aruiz@mastodon.social nice! Sounds like what I did a while ago (booting FreeBSD with Rust on x86_64 UEFI) was easy mode. Honestly most of the annoyance in that project was down to FreeBSD, it won't boot without very specific pagetable layouts and a kernel placed in a location that is both undocumented and not what one would expect based off the section headers.

    Open ##3264535

  • @aelin@donotsta.re 2026-03-19 19:18

    @aruiz@mastodon.social holy crap, I looked at your repo some time last year and found it interesting, while pretty barebones. Did not know you were still working on it and got this far! I'll be giving this a shot. Getting rid of GRUB has been on my todo list for a while, but so far there was no alternative

    Open ##3264540