alpine.html 1018 B

1234567891011121314151617181920212223242526272829
  1. <!doctype html>
  2. <title>Alpine</title>
  3. <script src="../build/libv86.js"></script>
  4. <script>
  5. "use strict";
  6. window.onload = function()
  7. {
  8. var emulator = new V86({
  9. wasm_path: "../build/v86.wasm",
  10. memory_size: 512 * 1024 * 1024,
  11. vga_memory_size: 8 * 1024 * 1024,
  12. screen_container: document.getElementById("screen_container"),
  13. bios: { url: "../bios/seabios.bin" },
  14. vga_bios: { url: "../bios/vgabios.bin" },
  15. filesystem: {
  16. baseurl: "../images/alpine-rootfs-flat",
  17. basefs: "../images/alpine-fs.json",
  18. },
  19. autostart: true,
  20. bzimage_initrd_from_filesystem: true,
  21. cmdline: "rw root=host9p rootfstype=9p rootflags=trans=virtio,cache=loose modules=virtio_pci tsc=reliable",
  22. //initial_state: { url: "../images/alpine-state.bin" },
  23. });
  24. };
  25. </script>
  26. <div id="screen_container">
  27. <div style="white-space: pre; font: 14px monospace; line-height: 14px"></div>
  28. <canvas style="display: none"></canvas>
  29. </div>