olin icon indicating copy to clipboard operation
olin copied to clipboard

Crazy idea: compile busybox to WebAssembly, boot a Linux VM to it

Open Xe opened this issue 5 years ago • 1 comments

At a high level, olin is effectively a kernel for WebAssembly programs. Why not get BusyBox working in it? We could then have a linux kernel boot to an olin environment.

  • [ ] Get syscall compatibility with Newlib
    • [ ] Create popen
    • [ ] Implement a filesystem (afero and a boltdb implementation for mutable storage?)
  • [ ] Build busybox with wasmception and newlib somehow
  • [ ] Adapt olin to boot the system (hack gokrazy for this?)
  • [ ] Use Adelie's easy-kernel package to get an amd64 linux kernel
  • [ ] Create an initramfs with the system booting thing and a few binaries
  • [ ] Boot to webassembly

Xe avatar Apr 24 '19 01:04 Xe

https://bellard.org/jslinux/tech.html

For your awareness.

ryazo avatar Jul 09 '19 02:07 ryazo