diff options
| author | Nathan Lee <me@nwlee.tech> | 2026-10-03 21:37:57 -0500 |
|---|---|---|
| committer | Nathan Lee <me@nwlee.tech> | 2026-10-03 21:37:57 -0500 |
| commit | 0189cc9d771e5911b07fbf91ca18da3a338f8d30 (patch) | |
| tree | dbf2c8a366547dda3ec99f752417a4085a5a5599 /website-src/index.html | |
| parent | 182ad75161c77b4a75d48275979ce44cde213e3f (diff) | |
add first userspace invocation
Diffstat (limited to 'website-src/index.html')
| -rw-r--r-- | website-src/index.html | 7 |
1 files changed, 6 insertions, 1 deletions
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); |
