LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-24-2013, 04:49 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Angry Some More Oddness From LFS/BLFS 7.4


Just rebuilt LFS/BLFS 7.4 and found a couple of odd things:

1) Keyboard and mouse don't work in X, fine in the console but when I use startx or startxfce4 sometimes the mouse does/doesn't work and the keyboard doesn't at all, if I plug in a usb keyboard that works, if before starting X i re-run udev like so
Code:
/etc/init.d/udev start
it works fine, but this gives me two instances of udevd running.

2) Really annoying error messages from "/lib/lsb/init-functions" about being a read only file system or a non-existent bootlog file.

3) Throws error when shutting down/rebooting when trying to remount '/' as read only

I guess I can hack these problems out but it would be nice if there was an "official" fix.
 
Old 10-24-2013, 03:51 PM   #2
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
That's weird. I haven't had that issue. Scary that it might exist, but have you checked for a hardware failure yet such as using a different USB port, or a P/S2 mouse/keyboard?
 
Old 10-24-2013, 04:32 PM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
It is a ps2 keyboard but it works fine on my present system LFS7.2 though as I said runing udev again makes the system recognize it but the problem is only in X anyway from the console it works ok.
 
Old 10-24-2013, 09:17 PM   #4
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
Have you attempted to install the legacy non-udev xf86-input-mouse, *-keyboard, *-joystick X11 device driver packages yet and try it instead of evdev and test them?

If udev needs to be ran again, you might want to double check your sysvinit startup script for the udev handler and see if it isn't corrupted or commented out for the extra udev check.

Also, which kernel are you running? I'm currently using 3.10.15 without any issues.

Last edited by ReaperX7; 10-24-2013 at 09:19 PM.
 
Old 10-24-2013, 09:54 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by Keith Hedger

...a non-existent bootlog file.
The bootlog file to which init-functions echoes messages is /run/var/bootlog. You created the /run mount point. The mountvirtfs script creates /run/var. Your /etc/fstab should have the tmpfs line. Your config should have CONFIG_TMPFS=y. No promises.
 
Old 10-25-2013, 05:16 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by ReaperX7 View Post
Have you attempted to install the legacy non-udev xf86-input-mouse, *-keyboard, *-joystick X11 device driver packages yet and try it instead of evdev and test them?

If udev needs to be ran again, you might want to double check your sysvinit startup script for the udev handler and see if it isn't corrupted or commented out for the extra udev check.

Also, which kernel are you running? I'm currently using 3.10.15 without any issues.

Tried installing the old drivers but no joy at all.

Checked the udev script can't see anything wrong and in fact I did a complete re-install but the same thing happens, although 'top' shows that the udevd daemon is running it seems to do nothing manually running the script seems to kick start it into working by launching a new instance of udevd ).

Kernel is 3.10.10
Also tried slackware's huge config to see if that helps but it doesn't, oddly I tried booting to my old kernel that I am running now "3.4.47" and the keyboard started working in X but the video isn't switching modes properly.

I will try 3.10.15 and report back.
 
Old 10-25-2013, 05:22 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by stoat View Post
The bootlog file to which init-functions echoes messages is /run/var/bootlog. You created the /run mount point. The mountvirtfs script creates /run/var. Your /etc/fstab should have the tmpfs line. Your config should have CONFIG_TMPFS=y. No promises.
Yes to all I will check that a tempfs is being mounted at /run and report back
 
Old 10-25-2013, 01:48 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Well I got to the point of trying silly stuff and thought I'd copy all the start up files from my working system to the new one and hey presto! it worked so with a bit of work with diff I narrowed it down to the mountfs/mountvirtfs scripts and with few hacks I found that /run was being mounted over which was fubaring every thing but still couldn't work out why the boot scripts were not working for me but were for everyone else, so I checked my scripts that build the directory structure/links etc and checking against the lfs book I FINALLY FOUND IT!

I had created the file /etc/mtab instead of linking it to /proc/self/mounts this line from the book:
Code:
ln -sv /proc/self/mounts /etc/mtab
Chapter06 -> createfiles.html

Just goes to prove no matter how many times you do this there's always something that lies in wait to bite you in the derriere!

Thanks everyone for all the suggestions.
 
Old 10-25-2013, 02:12 PM   #9
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
Glad to hear you got it fixed Keith.
 
  


Reply

Tags
blfs error, init-functions, lfs error, reboot, udevd



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
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
[SOLVED] Lfs-->blfs devilboy09 Linux From Scratch 21 11-20-2011 03:41 AM
LFS or BLFS masand Linux From Scratch 16 12-02-2004 02:31 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 11:19 AM
blfs and lfs? newpenguin Linux From Scratch 7 12-04-2002 07:58 PM

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

All times are GMT -5. The time now is 09:03 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