Reply 40 of 56, by gsos
LSS10999 wrote on 2026-08-20, 08:50:I'd like to see more useful screenshots as well as prebuilt release binaries/images in the future. Currently I'm looking at how to set up a proper build environment to experiment with it.
My targets would be mostly baremetal hardware, preferably installed on hard disk though I'd be doing initial tests using bootable USB sticks. Regarding emulated (not natively present) functionalities (video, sound, etc.) I wonder where I should look at in order to configure them?
And regarding the license, it's not recognized by GitHub (showing it as just "License"), but it appears to be WTFPL with the "NO WARRANTY" disclaimer taken from MIT added under it.
Yes I should invest some time into setting up a convenient flow. Building should be easy, the ./run.sh script should work basically out of the box (downloading bazelisk automatic). bazel-out/kernel.elf is the kernel, but you need a ext4 filesystem present.
The way I have it, I have linux running on my laptop. I build kernel.elf and copy it into /boot/retroos and add grub menu for it and /home/retroos is prepared to have BOOT/... (command.com, dn, config.sys) ULTRASND/ for midi patches, CD/ and FLOPPY/ contain any images (iso,cue, img) and then my games, borlandc etc..
So /home/retroos
drwxrwsr-x 3 priv-gerben retroos 4096 Aug 19 21:09 BOOTlrwxrwxrwx 1 priv-gerben retroos 59 Aug 19 21:09 BORLANDC -> /home/priv-gerben/project/RetroOS/apps-proprietary/BORLANDClrwxrwxrwx 1 priv-gerben retroos 53 Aug 19 21:09 BP -> /home/priv-gerben/project/RetroOS/apps-proprietary/BPlrwxrwxrwx 1 priv-gerben retroos 53 Aug 14 20:01 CD -> /home/priv-gerben/project/RetroOS/apps-proprietary/CDlrwxrwxrwx 1 priv-gerben retroos 57 Aug 14 20:01 FLOPPY -> /home/priv-gerben/project/RetroOS/apps-proprietary/FLOPPYdrwxrwsr-x 2 priv-gerben retroos 4096 Aug 19 21:09 GAMESdrwxrwsr-x 4 priv-gerben retroos 4096 Aug 19 21:04 OS2lrwxrwxrwx 1 priv-gerben retroos 47 Aug 19 21:09 ULTRASND -> /home/priv-gerben/project/RetroOS/apps/ultrasnddrwxrwsr-x 4 priv-gerben retroos 4096 Aug 19 21:56 WINDOWS
I added initial OS2/WINDOWS support last evening, that's why those directories are there.
Then /home/retroos/BOOT
drwxrwsr-x 3 priv-gerben retroos 4096 Aug 19 21:09 .drwxrwsr-x 8 priv-gerben retroos 4096 Aug 19 21:56 ..-r-xrwxr-x 1 priv-gerben retroos 24144 Aug 19 21:09 COMMAND.COMdrwxrwsr-x 2 priv-gerben retroos 4096 Aug 19 21:09 DN-r-xrwxr-x 1 priv-gerben retroos 437024 Aug 19 21:09 KERNEL.SYM-r-xrwxr-x 1 priv-gerben retroos 2861 Aug 19 21:09 LOADFIX.CFG-r-xrwxr-x 1 priv-gerben retroos 3428 Aug 19 21:09 SHELL.ELF
My /etc/grub.d/40_custom
cat /etc/grub.d/40_custom#!/bin/shexec tail -n +3 $0# This file provides an easy way to add custom menu entries. Simply type the# menu entries you want to add after this comment. Be careful not to change# the 'exec tail' line above.menuentry "RetroOS (protected disk)" {insmod part_gptinsmod ext2insmod multibootinsmod efi_gopset gfxmode=autoset gfxpayload=keepsearch --no-floppy --file /boot/retroos/kernel.elf --set=rootmultiboot /boot/retroos/kernel.elf ram-overlayboot}menuentry "RetroOS (writeable disk)" {insmod part_gptinsmod ext2insmod multibootinsmod efi_gopset gfxmode=autoset gfxpayload=keepsearch --no-floppy --file /boot/retroos/kernel.elf --set=rootmultiboot /boot/retroos/kernel.elfboot}
I recommend to start with the ram-overlay which causes disk writes to only affect the ram-overlay and not modify the hard disk. Maybe @inagy can tell in detail his setup, but he is booting from his raspberry pi.