humphd / next

What I'm doing next (name TBD)
MIT License
14 stars 5 forks source link

Use BuildRoot to create a custom Linux + BusyBox distro for the browser #58

Closed humphd closed 6 years ago

humphd commented 6 years ago

Let's use buildroot to create a stripped down Linux Kernel and BusyBox command set. Ideally we'd get rid of everything we can't/won't use to save space.

I will need the following Kernel Modules for 9Pfs sharing:

CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_NET_9P_DEBUG=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI=y
CONFIG_9P_FS=y
CONFIG_9P_FSCACHE=y
CONFIG_9P_FS_POSIX_ACL=y

There's another example Dockerfile you can look at, from someone who did a similar thing:

https://github.com/ysangkok/build-v86-9p-linux

humphd commented 6 years ago

See also https://github.com/copy/v86/blob/master/docs/linux-9p-image.md

humphd commented 6 years ago

57 is related to this, to help with the case of doing this on Windows.

humphd commented 6 years ago

http://mgalgs.github.io/2015/05/16/how-to-build-a-custom-linux-kernel-for-qemu-2015-edition.html is useful info.

humphd commented 6 years ago

Another thing we'll need, is terminal access on the first serial port, ttyS0, perhaps this in inittab:

ttyS0::respawn:/sbin/rungetty ttyS0 --autologin root
humphd commented 6 years ago

I've done this now, and it's landed.