Skip to content

Instantly share code, notes, and snippets.

View frroossst's full-sized avatar
👨‍💻
SyntaxError

Adhyan H. Patel frroossst

👨‍💻
SyntaxError
View GitHub Profile
@bluedragon1221
bluedragon1221 / min-linux.md
Last active April 13, 2025 19:21
Create a minimal linux from scratch with initramfs and busybox.

https://www.youtube.com/watch?v=QlzoegSuIzg

The Three Parts

To build a minimal linux distro, we need three parts:

  1. The Kernel
  2. Userspace (busybox)
  3. Bootloader (syslinux)

When the system boots, it loads the kernel, which loads busybox.

@cfstras
cfstras / -Build static versions of binutils, for example ld, gprof, nm, strip, objdump, ar, strings; with mingw or on *nix
Last active March 19, 2025 18:42
Build static versions of binutils, for example ld, gprof, nm, strip, objdump, ar, strings; with mingw or on *nix
See the bash script below. :)
Tested on debian bookworm-slim (`docker pull debian:bookworm-slim`).
### Prerequisites
```bash
apt update
apt install -y build-essential wget bison
```