Progress Update On My Linux From Scratch Project

OK… it is more basic than not making the connection… it cant detect wlanO… and there is also another error to do with console before that.

Are you sure the drivers for wireless interface are loaded?
The next step in a normal linux would be - try another kernel … but you cant in lfs

Is there any message about wireless interface in dmesg?

1 Like

cloning my Gentoo using ddrescue from Gentoo, to a 500GB SSD!!!

1 Like

You still have to fix fstab and grub.cfg

I can remember making our first 1Gb PC ( i think it was a 486) by using a scsi card and an external scsi disk in a box about the size of a mini PC.
My manager told me it was an extravagance.
Then I put Freebsd in it and it replaced a $10K Sun workstation.

1 Like

Worked like a charm, Gentoo is now booting from a 500GB WD SSD, fast as greased lightning!!!

My old Seagate spinner was beginning to show it.’s age!!!

2 Likes

Great move.
I need to look at this ddrescue thing.
I read the man page
It will copy a file or a whole disk or maybe a partition… but not a filesystem recursively… so it is like dd itself.
How is it better than dd?.. I think it has special extra code to help it try and read a dying disk … so it was a good choice for your case.

1 Like

You have to “ emerge –ask sys-fs/ddrescue “ after it is built you use this command “ lsblk -o NAME,SIZE,MODEL “ this will give you the info nesded to start the clone!! I unplugged all other drives and only had the old Seagate and the WD SSD, unallocated, running!!!

I then used this command to start the clone “ ddrescue -f -n /dev/sdb /dev/sda rescue.log “ took a little over 2hrs to complete!!! After completion you run “ ddrescue -d -f -r3 /dev/sdb /dev/sda rescue.log “ which, in my case, did not lake long!!! You then unplug the drives and see if the cloned drive will boot!!! Learned about this through the Gentoo forum!!! And AI was helping me with the commands!!!

All my drives are now SSD’s!!! Will start rebuilding LFS, soon!!!

3 Likes

Are you telling us that ddrescue fixed up fstab itself?

1 Like

It is all there!!!

2 Likes

Well, when I run modprobe iwlwifi, no error, and dmesg confirms that.

2 Likes

lsmod | grep wifi should list it

dhcpcd says ’ no valid interface’
ip a does not list wifi interface

So if dmesg sees the interface, but ip a does not see it, the driver must be missing.
So can lsmod see the driver loaded?.
Are you sure that is the correct driver for your hardware?

1 Like

@George1 Ask CoPilot or Google AI maybe they can shed dome light!! If you know what the hardware is, go back and do a kernel config and set it as (M). Do not do the “ mr proper “ command, just do a “ makemenu “ command!! This keeps from wiping your whole kernel config!!!

2 Likes

Well I’m generally one of the AI haters, I don’t think I’ll be doing that. And I’m using a reused kernel with config and chown -R 0:0, as advised in LFS. Kernel version is 6.18.1, and lspci (openSUSE Tumbleweed. LFS host) says my driver’s iwlwifi. Maybe I’m gonna try on a desktop after installing rtw modules, as my Linux usually works better there.

2 Likes

Got my LFS booting again, built the LFS base in 24hrs, using a SSD this time. Had to even manually install linux-firmware, for my AMD R7 260!!!

2 Likes

I am very close to having the xorg-server compiled, have to do several kernel configs !!!

2 Likes

I assume that means xorg-server needs some hooks in the kernel that are not there by default ?
What about X clients … I assume you have to compile every client you wish to use.?

1 Like

You are assuming correctly !!! Mesa is by and for the most demanding!!! I use a AMD a graphics card and it requires LLVM and in turn then Mesa will pull in rustc, these two, alone, can take several hours. While one has a script for Xorg Libs and Xorg Applications, it is advised to wget and download and install individually!!! So building XORG in itself, can take several days. All in all, is a little different, than you guy’s running, self made, Linux!!!

2 Likes

I can remember Xorg taking a day in Gentoo… but not several days.
What does Mesa do? I know most X apps need it.

1 Like

LLVM I’m a bit surprised you haven’t needed to compile it before. But I only read the LFS book to the kernel part and decided that my machines are too old (takes so long to compile) and I would not use the LFS to anything after finished (because of not having a package manager). It’s nice to see your progress though! I’m too lazy for LFS.

2 Likes

Got Qt6 compiled and a few more supporting packages and will start compiling KDE Frameworks tomorrow and then KDE Plasma!! Still a ways to go but everything is pointing to a healthy system!!! I have not used sudo with this build I use su -c or su when the book calls for root, like this su -c “ninja install” or su -c “make install” or su if commands are using && !!

Very important, and something, I learned the hard way, once the user account is made, make sure the user owns the /source/BLFS/ directory!!! Everything goes a lot smoother, when the user installs packages!!!

2 Likes

I thjnk ninja is ascociated with Cmake?
What does it do?

1 Like