SlateKit
SlateKit copied to clipboard
SlateKit Base iso build script?
With reference to http://penkia.blogspot.com/2014/04/slatekit-base-technical-preview-april-2014.html and http://penkia.blogspot.com/2014/02/introducing-slatekit-base-technical.html, may I ask how is the SlateKit Base image prepared? I really would like to have a simple web environment ready from boot for a hobby project.
From what I understand, under the hood it runs upon framebuffer with EGL on top, without ever touching X11 at all. I am relatively new to this field - would you mind sharing a bit more on how we can make a similar image?
Thanks.
Hi, those ISO images were originally based on my out-dated build script mkxpud, then manually prepared. If your environment is simple and when size footprint is a requirement, you can do that too:
mkdir rootfs; cd rootfs
mkdir -p .{/bin,/sbin,/usr/bin,/usr/sbin,/tmp,/sys,/proc,/dev,/etc,/lib,/run/shm}
cp /bin/mount /bin/tar /bin/busybox bin/
for i in `./bin/busybox --list-full `; do ln -s /bin/busybox ./$i; done
Then put your binary/executable under the right directory, say /usr/bin
, pull in all its dependencies. Here's a helper Makefile I wrote for that.
Of course you'll need those needed files like udev, /etc/ssl/certs
and /etc/resolv.conf
.. etc, but basically I just manually created the whole rootfs to keep the image size minimal.
Please let me know if you have any question or idea.