Hey Lazy Fediverse,

What's the state of the art for small embedded Linux images for Raspberry Pi 4 these days?

I'm looking for a minimal base system image, *not* a desktop distribution (debian/ubuntu/etc), ideally in the 30-100MB size (smaller the better), that gets me the kernel, libc, shell, network, GPU support (Vulkan or OpenGL, no need for X), etc.

Just enough Linux to build and run something on top of. Surely there are good options for this out there?

#RaspberryPi #Linux #Questions

To further clarify, I'd like something I could cross-compile and boot from a read-only image... not something I need to install and update packages on and fiddle with before it's running.

#RaspberryPi #Linux #Questions

Show thread
Follow

@swetland Sounds like a perfect use-case for buildroot.

@dos @swetland I've done quite a bit of work on that actually for my personal project. I think the final result is in the 10s of megabytes, 64 bit, statically compiled kernel, no x but gpu support for hw video acceleration. I didn't enable networking but that could be turned on. Unfortunately the buildroot configs are on my PC and I am out of town at the moment, but I'll shoot you some info in a few days. Cheers!

@sen @dos I eventually got a buildroot configuration sorted out. Ended up needing to enable eudev so all the correct drivers would load and EGL./OGLES would work, which was not initially obvious.

@swetland @dos Sure, it was an absolute PITA whittling it down. IIRCC a good chunk of it was just drivers for every single damn SDR that exists.
Fun Fact: you cannot simply build rpi's kernel defconfig statically because the end result is so big the kernel will panic. Ask me how I know this🤦‍♀️. Also, I'm curious, the rpi bootloader only supports fat32, so what did you wind up doing for a RO type experience? I usually use an initramfs linked into the kernel binary.

@sen @dos For the moment still booting an ext4 partition. I could do that read-only, or use an external initrd next to the kernel in the fat32 partition, or maybe squashfs or somesuch -- been a few years since I last poked at embedded linux so not sure what the latest and greatest options are.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml