From 0189cc9d771e5911b07fbf91ca18da3a338f8d30 Mon Sep 17 00:00:00 2001 From: Nathan Lee Date: Sat, 3 Oct 2026 21:37:57 -0500 Subject: add first userspace invocation --- website-src/index.html | 7 ++++++- website-src/initramfs.cpio | Bin 0 -> 1024 bytes 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 website-src/initramfs.cpio (limited to 'website-src') diff --git a/website-src/index.html b/website-src/index.html index b2eefd0..fa0187a 100644 --- a/website-src/index.html +++ b/website-src/index.html @@ -10,15 +10,20 @@ async function run() { await init(); const response = await fetch('/vmwebkrnl.bin'); + const initramfs = await fetch('/initramfs.cpio'); if (!response.ok) { console.log("OS image not present, not booting."); return; } + if (!initramfs.ok) { + console.log("Initial RAM filesystem not present, not booting."); + return; + } const image = new Uint8Array(await response.arrayBuffer()); const vmwebkrnl = new Uint8Array(2 * 1024 * 1024); vmwebkrnl.set(image); - const initrd = new Uint8Array(8); + const initrd = new Uint8Array(await initramfs.arrayBuffer()); const dram = new Uint8Array(1024 * 1024); boot(vmwebkrnl, initrd, dram); diff --git a/website-src/initramfs.cpio b/website-src/initramfs.cpio new file mode 100644 index 0000000..bdfe10d Binary files /dev/null and b/website-src/initramfs.cpio differ -- cgit v1.2.3