Content
@
0 reply
0 recast
2 reactions
Eddie
@0xeddie
Starting a loose devlog of my experience going through LFS Linux From Scratch, which is a project for building a basic custom Linux kernal. The point is to get an appreciation for how a Linux kernal works by compiling all of its parts manually from source code. Expected time (reading, typing, compiling): 20-30 hours
2 replies
0 recast
0 reaction
Eddie
@0xeddie
First gotta build a toolchain to build LFS tools - GCC, glibc, binutils, and others. Then change the root directory to the toolchain's partition to start building the final system. Then compile glibc, then point the toolchain's linker at it. Then the rest of the packages can be built and linked against the toolchain
1 reply
0 recast
0 reaction
Eddie
@0xeddie
I bought a 2015 ThinkPad off ebay to do this on for $100 (shipped with no hard drive). Bought a cheap 250GB m.2 SSD to be the main storage. At a forum suggestion I loaded Gentoo onto a USB to live boot the computer while it was still OS-less, because Gentoo has all the needed build tools and dependencies to get startd
1 reply
0 recast
0 reaction
Eddie
@0xeddie
After an afternoon of fussing with the SSD not being detected I finally realized the laptop motherboard does not support NVMe, only SATA. Return and buy a new m.2 SSD 😒 whatever we march onwards. After that partitioning the storage device (following this advice) was ez https://www.youtube.com/watch?v=FVP-5DQxKCw
0 reply
0 recast
0 reaction