Jump to content


JackMacWindows

Member Since 24 Jul 2016
Offline Last Active Nov 20 2020 01:36 AM
-----

Topics I've Started

CraftOSOS: ComputerCraft as a real desktop OS

13 November 2020 - 10:49 PM

A few months ago I released CraftOS-EFI, a ComputerCraft emulator that ran as a UEFI application. I've gotten requests to make it into a real operating system instead of an EFI app, and I finally found a way to do this without having to write my own libc. Introducing CraftOSOS, a full ComputerCraft 1.80pr1 operating system for x86 PCs.
Posted Image
CraftOSOS is based off of the code from CraftOS-EFI, but instead runs under its own microkernel, and directly interfaces with the system's hardware. It uses the standard VGA 16-color 640x480 mode to draw a full graphical terminal, using the real ComputerCraft font. It also properly supports file and directory I/O, meaning you can list directories as usual. It can be booted from any multiboot-compatible bootloader such as GRUB.

As of version 0.1, CraftOSOS requires the following setup to function properly:
  • x86-64 PC or virtual machine
  • 32 MB RAM
  • Monitor and video card that support 16-color 640x480 VGA (this should be standard)
  • PIIX3 IDE interface for storage, or SATA in ATA emulation mode
    • All ROM files must be on the first partition of the primary master drive, formatted as FAT
    • 20 MB should be enough space to fit everything (GRUB, chainloader, kernel, ROM)
  • PS/2 keyboard, or a BIOS that supports PS/2 emulation for USB
  • For debug messages, a serial port is required
It is recommended that you run CraftOSOS in QEMU, as this is where it has been tested the most. Instructions for doing so are in the readme.

You can download the latest version of CraftOSOS on GitHub, or you can browse the source online.

CraftOS-EFI: ComputerCraft Operating System for UEFI

28 January 2020 - 06:01 AM

DISCLAIMER: v0.1 does not support running on real hardware. I am actively working to fix this bug, but it may be a while until I can figure this out.

Introducing CraftOS-EFI, the worst ComputerCraft emulator that is its own operating system (or something). It runs under a native UEFI environment, so you can pretty much just boot straight into CraftOS without loading any other operating system.

Note that this is different from my main emulation project, CraftOS-PC, which is a fork from the same parent code base but has way more features than this.

Here's a screenshot:
Posted Image

Version v0.1:
  • Does not include HTTP support
  • Does not support Ctrl/Alt keys (don't open edit.lua!)
  • May not support background colors?
  • Works in QEMU using OVMF EFI image
  • Is very slow (at least in a VM)
  • Must be run from the EFI shell (included in compiled image)
You can download the latest version from https://github.com/M...releases/latest. Each release includes the raw EFI image that you can put on your EFI System Partition, as well as an image file that you can boot a VM from or flash to a USB drive. You can run the image in the QEMU emulator using an OVMF image, see the Ubuntu Wiki page for more info.