Repository navigation
Releases
Releases · melroy89/baremetal-os
Bare Metal OS v1.4.0
Bare Metal OS 1.4.0 adds writable ext2 storage, IPv4 networking on virtio-net and e1000, and VGA console scrollback.
Highlights
- Mount supported ext2 partitions read-write with
mount -t ext2 disk0pN /ext, or add-o rofor read-only access. Create and replace regular files up to 48 KiB withecho >orcp. Usemkdirto create directories andrmto remove files or empty directories. - Create FAT32 directories with
mkdirand remove empty ones withrm. FAT32 and ext2 both accept a trailing slash when removing a directory. - Connect using modern
virtio-netor QEMU’se1000adapter. DHCP starts automatically when an adapter initializes. Usenet infofor the connection details,net staticfor manual IPv4 configuration, andpingwith an address or hostname. Adaptive polling improves throughput and latency under load while keeping the guest asleep between wakeups. - Use Page Up and Page Down to browse up to 256 previous VGA rows. Use
crc32range OFFSET LENGTH PATHto verify a byte range without printing the file.
Downloads
baremetal-os.elffor direct kernel boot in QEMU/KVM.baremetal-os.isofor BIOS or UEFI boot. Use SeaBIOS for VGA or the serial console with OVMF.SHA256SUMSto verify the downloads.
Bare Metal OS v1.3.0
Bare Metal OS 1.3.0 adds persistent FAT32 storage, shared file commands, and raw Ethernet support for QEMU’s e1000 adapter.
Highlights
- Mount FAT32 partitions from an IDE disk and use
ls,cat,cp,touch,rm, andecho >in RAM or on disk. Usedisk gptto find the GPT partition number, then mount it withmount disk0pN /disk. - Inspect ATA disks and GPT partitions. Use
disk checkto report orphaned FAT32 clusters anddisk repairto reclaim them. - Send and receive raw Ethernet frames with
net. Uselspcito list PCI devices,cpu pingto check secondary CPUs, and CRC-32 commands to checksum RAM files and disk sectors.
The console now starts at /, which lists mount points. Use cd /ram for temporary files or use an absolute path such as /ram/notes.txt.
Downloads
baremetal-os.elffor direct kernel boot in QEMU/KVM.baremetal-os.isofor BIOS or UEFI boot. Use SeaBIOS for VGA or OVMF with a serial console.SHA256SUMSto verify the downloads.
Bare Metal OS v1.2.0
Bare Metal OS v1.2.0 adds writable RAM files to the x86-64 assembly console and speeds up bulk output.
Highlights
- Create or replace a file with
echo "Hello from RAM" > hello.txt, list files withls, read them withcat, and delete writable files withrm. Each writable file uses one 4 KiB page. Deleting it frees the page, and reboot clears writable files. - Preload read-only files from an optional USTAR boot archive. The kernel indexes filenames at boot, and the last entry wins when a name appears more than once. Removing a writable override reveals the archive entry again.
- VGA scrolling is faster while the console continues to render on VGA and serial. In a headless QEMU/KVM test, listing 1,000 files took 0.28 seconds, down from 2.00 seconds before the scrolling change.
- The console rejects overlong commands before executing them, so a truncated filename cannot cause a command to modify the wrong file.
Downloads
baremetal-os.elffor direct kernel boot in QEMU/KVM.baremetal-os.isofor BIOS or UEFI boot. Use SeaBIOS for VGA or OVMF with a serial console.SHA256SUMSto verify the downloads.
Bare Metal OS v1.1.0
Bare Metal OS is a small standalone x86-64 operating system written in NASM assembly. It boots directly in QEMU/KVM or from a hybrid BIOS and UEFI ISO.
Highlights
- The kernel can allocate and free 4 KiB physical pages. The
memcommand shows how many pages are managed, used, and free. - Secondary CPUs get one private stack page each. In a four-vCPU QEMU/KVM guest, this returned nearly 2 MiB to the kernel's free pool compared with fixed stacks. The bootloader's reserved stack space keeps SMP available when the memory map is missing or provides too few pages.
- The interactive console supports VGA and serial and sleeps while waiting for input.
Downloads
baremetal-os.elffor direct kernel boot in QEMU/KVM.baremetal-os.isofor BIOS or UEFI boot. Use SeaBIOS for VGA or OVMF with a serial console.SHA256SUMSto verify the downloads.