Skip to content
0:00 / 0:00

#linuxkernel#x86_64#initramfs

Making Smallest Possible Linux Distro (x64)

Nir Lichtman

90K subscribers • 4 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

411K views1 year ago2 recommendations

Systems programmingOperating systemsLinuxC

Nir Lichtman demonstrates how to configure a minimal Linux kernel and build a tiny program runner to create a lightweight x64 distribution.

In this video I will demonstrate how you can setup the most minimal kernel configuration and we will create a very minimal program runner which will run on top of the kernel. Setup information: - basic info about a kernel dev setup: github.com/nir9/low-level-learning-resources/tree/master/set… - for making the isoimage you also need to do the following: "apt install genisoimage" Refs: - en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64… - Intel SDM - lua.org/home.html Src: github.com/nir9/welcome/tree/master/lnx/very-minimal-shell

Why it's here

2 people recommend this

What people say. Recommended as a neat guide for building a minimal Linux distribution from scratch.

Moments people linked to

u/quipsticklein r/C_Programming • Recommends

Why can't the linker find main? I have a very simple C program int main() { return 0; } It compiles fine with GCC, but if I use the -c option and then the linker `ld`, it segfaults. > gcc -c hmm.c > ld -o hmm hmm.o --entry main > ./hmm segmentation fault I stumbled across this problem following this neat video. which works up until 20:30 and narrowed down the issue to, I think, trying to specify the entry point for the linker. I'm using `gcc 14.2.1` and `ld 2.43.1`

u/Economy_Animal2354in r/osdev • Recommends

Own OS Hello everyone. If there anyone who tried making there own linux distro can help? I started making mine with tinyconfig after this video: link to this video. But the problem is that I want it to be x86\_64 and not really want to use initramfs. I want it to load a binary that is `/bin/kshell` and I don't really know how to do it. I also like to make an iso of it to test it with the shell. Here you can see the shell: shell. If anybody could help me, I would appreciate it if someone could help me.
2View on Reddit