u/Zander9x

Linux from scratch

Linux from scratch

Hello linux users !

I have a question i would like to ask all linux using devloper.

So, i am trying to create my own OS as my personal project using the linux vanilla kernel and i have completed the basic steps. Let me write it in an understandable format.

--- The Foundation ---

· Vanilla Linux LTS Kernel (6.6.40): Configured and compiled from source for both x86_64 (Desktop) and ARM64 (Mobile).

· Architecture-Specific BusyBox: Built two separate statically-linked BusyBox userspaces (one for x86, one for ARM64) to avoid the exec format error.

· Initramfs Boot: Successfully booted a minimal "Hello World" OS on both architectures in QEMU using a simple /init script.

----- Networking & Storage. ------

· Networking: Configured both kernels with VirtIO drivers. Successfully used DHCP (udhcpc) and manual IP configuration to ping the QEMU host gateway from both architectures.

· Persistent Root Filesystem: Moved beyond initramfs to a proper ext4 root filesystem on a virtual disk image. Files like proof.txt survive reboots.

Now, the problem i am facing is THE GUI BATTLE

(⁠╥⁠﹏⁠╥⁠)

For the gui i tried everything,

· Buildroot Setup: Downloaded and ran Buildroot, learning how to configure an embedded Linux build system.

· X11 Libraries & Apps: Successfully built the X11 library stack, twm (window manager), xterm, and xclock from source.

But here is my problem !!!!!!!!!

The Dependency War: Spent significant time trying to get the Xorg server binary working. I discovered that Buildroot's modular Xorg and KDrive server conflict, and using Ubuntu's pre-compiled Xorg requires a massive chain of dependent libraries.

At this point, i am stuck in a loop of check-reinstall-boot-repeat (⁠╯⁠︵⁠╰⁠,⁠)

SOMEONE PLS SOMEONE!!! pls help me how do I get mu initial gui ready ? I mean i don't want big gui like gnome or ... I forgot the other one but I want to atleast get started with x11 library!! How can I get it done ?

This is the common error i see

"Xorg: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file:y"

And the error of shared libraries never finishes.. keeps popping at every next qemu boot.

Can you guys check me out ? I'll take your advice seriously.

u/Zander9x — 5 days ago