Skip to content

Commit

Permalink
add alpine example
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Apr 27, 2024
1 parent 9286ca8 commit 34ebae1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/alpine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<title>Alpine</title>
<script src="../build/libv86.js"></script>
<script>
"use strict";
window.onload = function()
{
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 512 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
bios: { url: "../bios/seabios.bin" },
vga_bios: { url: "../bios/vgabios.bin" },
filesystem: {
baseurl: "../images/alpine-rootfs-flat",
basefs: "../images/alpine-fs.json",
},
autostart: true,
bzimage_initrd_from_filesystem: true,
cmdline: "rw root=host9p rootfstype=9p rootflags=trans=virtio,cache=loose modules=virtio_pci tsc=reliable",
});
};
</script>
<div id="screen_container">
<div style="white-space: pre; font: 14px monospace; line-height: 14px"></div>
<canvas style="display: none"></canvas>
</div>

0 comments on commit 34ebae1

Please sign in to comment.