Re:Show HN: Monolinux – A tiny embedded Linux distro
by mysterydip on Saturday October 12, 2019 @02:20PM
(#21235100)
I'd love for this to be the case. I have a handful of raspberry pi projects that I just want to boot and run a single executable. I don't need or want the rest of the OS included with the likes of raspbian etc. I'm currently working on a dietpi customization but this would be even better if it worked.
[ Parent
| on HN ]
Re:Show HN: Monolinux – A tiny embedded Linux distro
by i_v on Saturday October 12, 2019 @03:26PM
(#21235594)
There's also Buildroot which has a bit of a learning curve (it's still easier than Yocto/Angstrom IMO) but is capable of producing highly customized, tiny embedded Linux images. At this time, there are board configs for pretty much every Rasperry Pi variant out there.
The functional equivalent of a Debian base install, including kernel, bootloader, and systemd init (approx. 350 MiB) is about 20 MiB (compressed) when built with Buildroot.
Re:Show HN: Monolinux – A tiny embedded Linux distro
by mkj on Saturday October 12, 2019 @08:51PM
(#21237463)
Build a static binary (with musl perhaps) and put it in an initramfs at /init. An example https://github.com/mkj/rpi-flipflop/blob/main/Makefile#L9
Re:Show HN: Monolinux – A tiny embedded Linux distro
by yyhhsj0521 on Saturday October 12, 2019 @02:23PM
(#21235126)
Have you tried ArchARM? It's pretty lean and fits into those old 512M SD Cards.
Re:Show HN: Monolinux – A tiny embedded Linux distro
by mysterydip on Saturday October 12, 2019 @02:49PM
(#21235316)
I haven't heard of that one (I did check out a version of puppy and tiny core). I'll check it out, thanks!