2025-2-1 LFN But can it run Doom

Kernel

└─>Device Drivers
	└─>Graphics support
		+1 Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
		└─>
			+2 Simple framebuffer driver
			back 1 step
		└─>Frame buffer Devices
			└─>Support for frame buffer devices
					+4 Vesa VGA graphics support
					back 1 step
				+3 Simple framebuffer support
				+3.5 provide legacy /dev/fb* device

busybox/doom

but make sure that you add the compiled doom + wad to initramfs

after make install busybox

cd ..

git clone --depth 1 https://github.com/maximevince/fbDOOM

cd fbDOOM/fbdoom

sudo apt install libsdl1.2-dev

make

mv fbdoom ../..

cd ../..

NOW lets look at the libs needed to run this

ldd fbdoom

we should see:

linux-vdso.so.1 (0x00007ffee82f5000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000786983a00000)

/lib64/ld-linux-x86-64.so.2 (0x0000786983e07000)

mkdir initramfs/lib

cp /lib/x86_64-linux-gnu/libc.so.6 initramfs/lib/

mkdir initramfs/lib64

cp /lib64/ld-linux-x86-64.so.2 initramfs/lib64/

https://github.com/Gaytes/iwad/blob/master/doom1.7z

uncompress

mv fbdoom initramfs/

mv doom1.wad initramfs/

cd initramfs

rm linuxrc

nano init

#!/bin/sh

mount -t proc none /proc
mount -t sysfs none /sys

mknod /dev/fb0 c 29 0
/fbdoom -iwad /doom1.wad 
exec /bin/sh

mkdir sys

mkdir proc

chmod......

You can now resume where you left 2025-1-25 LFN Make your own distro from Nothing

grub

as usual but you can make the dd 22M

sudo losetup -fP --show disk.img

(i show with lsblk)

replace the :

sudo mkfs.ext4 -N 512 /dev/loop17

this will force 512 inode which should be more than enough for grub+initrd+kernel

menuentry 'LFN Doom' {

gfxpayload=1024x768

set root='(hd0,1)'

linux /bzImage

initrd /initramfs.cpio.gz

}