LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-29-2015, 12:44 PM   #1
drsn0w
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Rep: Reputation: Disabled
64-bit LFS Systemd installation, kernel modules not loading


Hey guys
Yesterday I completed my install of LFS systemd from the 20150723SVN systemd book. Installation was fairly easy, only a few bumps in the road which I managed to get around.
But, when I reboot into it, kernel modules are not loading. So the first thing I realized is that I had forgotten to "make install" the kmod package (whoops), so I went back and did that, and now I can modprobe the modules I need, such as nouveau. But they won't load on boot.

So far, I've discerned two things. As an Arch Linux user, I'm familiar with systemd. It usually has a systemd-load-modules.service and executable, which runs as a job at startup. Neither the startup job nor the executable are present on my LFS system. I don't know if that is specific to distributions that use systemd or what...

The second thing is that my Ethernet is not detected, which, if I'm correct, should be detected by udev which should load the correct kernel modules. So I'm thinking it could either be the missing systemd-load-modules, or a problem with udev, or both.

Any help would be appreciated! This is the last problem in getting this system to fully work!

Thank you!
drsn0w
 
Old 07-29-2015, 01:18 PM   #2
drsn0w
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
I recompiled systemd and it now loads what I have configured for load-modules.d... still having issues with ethernet.
 
Old 07-29-2015, 05:32 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I had issues with it when I tried out the systemd book over a year ago, and gave up.

Networkd should auto-config dhcp over ipv4 but half the time systemctl gets retarded and deletes the networkd service startup file from the loading directory and it screws up everything entirely killing networking completely. I tried using dhclient without any luck. The kernel modules should be loaded by udevd automatically rather than selected.

The book is somewhat experimental in design still unfortunately, and is known to have issues that vary user to user.

We used to have a small script collection to revive the network if needed, but I think those were expunged a while ago.
 
Old 07-30-2015, 05:22 AM   #4
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by drsn0w View Post
Hey guys
Yesterday I completed my install of LFS systemd from the 20150723SVN systemd book. Installation was fairly easy, only a few bumps in the road which I managed to get around.
But, when I reboot into it, kernel modules are not loading. So the first thing I realized is that I had forgotten to "make install" the kmod package (whoops), so I went back and did that, and now I can modprobe the modules I need, such as nouveau. But they won't load on boot.

So far, I've discerned two things. As an Arch Linux user, I'm familiar with systemd. It usually has a systemd-load-modules.service and executable, which runs as a job at startup. Neither the startup job nor the executable are present on my LFS system. I don't know if that is specific to distributions that use systemd or what...
You replied that you had forgotten to run make install when building kmod. kmod had to be present at systemd build time for modules-load service to be built and installed and for udev to have capability to load modules. I also see you rebuilt systemd and now it should be fine.

Quote:
Originally Posted by drsn0w View Post
The second thing is that my Ethernet is not detected, which, if I'm correct, should be detected by udev which should load the correct kernel modules. So I'm thinking it could either be the missing systemd-load-modules, or a problem with udev, or both.
Are you sure the module is there? If so, does it require any firmware? If it does, is the firmware installed? Maybe it uses some weird interface naming as systemd-udev does for some time now. Check "ip l" output to see if its there under a weird name.
 
Old 09-17-2015, 07:52 PM   #5
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
I ran into this tonight while going through the mailing list too look for an error solution. It looks like systemd development on LFS may end up sidelined. The curious bit is what he mentions about systemd upstream.

http://lists.linuxfromscratch.org/pi...ly/070283.html
 
Old 09-18-2015, 12:34 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
systemd is kind of an "if it works..." package compared to the standard sysvinit package in LFS, but I think that's due to the design framework of LFS.

Last edited by ReaperX7; 09-18-2015 at 12:43 AM.
 
Old 09-18-2015, 03:23 AM   #7
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by Luridis View Post
I ran into this tonight while going through the mailing list too look for an error solution. It looks like systemd development on LFS may end up sidelined. The curious bit is what he mentions about systemd upstream.

http://lists.linuxfromscratch.org/pi...ly/070283.html
I've left the development due to lack of time and motivation, nothing else. What I did say is that recent upstream changes added a lot more work to my already tight time schedule, not that it was a reason. The branch is still maintained by other developer, so the book isn't going anywhere.
 
Old 09-18-2015, 06:34 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Plus the systemd books test a lot of extra packages not normally found in the books as well, so using them can prove insightful, even for the standard sysvinit book.
 
Old 09-18-2015, 07:24 AM   #9
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Plus the systemd books test a lot of extra packages not normally found in the books as well, so using them can prove insightful, even for the standard sysvinit book.
I have hard time parsing this. Care to explain a bit more?
 
Old 09-18-2015, 07:56 AM   #10
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
Quote:
Originally Posted by Krejzi View Post
I've left the development due to lack of time and motivation, nothing else. What I did say is that recent upstream changes added a lot more work to my already tight time schedule, not that it was a reason. The branch is still maintained by other developer, so the book isn't going anywhere.
I just wanted to say thank you for your contributions, I have received great benefit from the work you and the rest of the LFS team have put into their books. I just did the systemd edition myself a few days ago and found it as easy to follow along and do as the standard edition.
 
Old 09-18-2015, 08:19 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by Krejzi View Post
I have hard time parsing this. Care to explain a bit more?
It has extra packages such as Wayland, for example.
 
Old 09-19-2015, 03:53 AM   #12
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
It has extra packages such as Wayland, for example.
Well, you said "testing packages not found in the books". All of the wayland stack is there in the book, because GNOME requires it and soon KDE Plasma 5. I presume you meant non-systemd books, and they'll follow soon if they intend to use KDE Plasma 5.
 
Old 09-20-2015, 03:55 PM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes, often I speak in cryptiglish for some reason. LOL
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian new kernel systemd fails load modules johnpuppa Debian 2 07-22-2015 04:29 PM
systemd[1]: Failed to start Load Kernel Modules. LateForLunch Linux - Software 1 07-06-2015 05:00 PM
Loading Kernel Modules sumahegde Linux - Newbie 1 10-15-2009 09:47 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
Modules not loading in New kernel palanisaravanan Linux - General 1 11-22-2003 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration