Converting ELF file into bootable ISO file for hobby/tutorial OS project without grub reddit / freebsd ---------------------------------------------------------------------- stevebox · 2020-08-13 00:20 I've been following an ["os-from-srcatch" tutorial](https://os.phil- opp.com/first-edition/) on my linux box, and I'd like to be able to work on it from my freebsd box as well. The one thing I can't work out how to do is take a compiled kernel (an elf file) and create an iso image which I can boot in qemu (or even real hardware). The tutorial uses \`grub-mkrescue\` to do this, but there's no freebsd grub package. Is there an alternative tool available on freebsd which can do this? If it helps, here are some details of the kernel elf I'm creating: $ file build/kernel.bin build/kernel.bin: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, not stripped ---------------------------------------------------------------------- costavadev · 2020-08-13 01:43 I am not aware of a tool available on FreeBSD (not an area I have worked in). Would building GRUB from source make sense / be worth it? GRUB source appears to be here (including `grub-mkrescue`): https://www.gnu.org/software/grub/grub-download.html ---------------------------------------------------------------------- electrobrains · 2020-08-13 03:36 Can also just run a Linux binary of it with Linux compatibility layer. ---------------------------------------------------------------------- bhyve · 2020-08-13 04:43 bootloader crate in rust? ---------------------------------------------------------------------- nahnah2017 · 2020-08-13 11:15 >FreeBSD (not an area I have worked in). I find people say this a lot on this sub on reddit (and only here). It's so bizarre. Why are you here? ---------------------------------------------------------------------- stevebox · 2020-08-13 12:06 I presumed they meant they had not worked in operating system development - not freebsd. ---------------------------------------------------------------------- stevebox · 2020-08-13 12:08 A little more searching led me to discover [bootboot](https://wiki.osdev.org/BOOTBOOT) which appears to do what I want.