LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 05:49 AM   #1
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Rep: Reputation: 214Reputation: 214Reputation: 214
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, 04:51 PM   #2
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,822
Blog Entries: 15

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
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, 05:32 PM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
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, 10:17 PM   #4
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,822
Blog Entries: 15

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
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 10:19 PM.
 
Old 10-24-2013, 10:54 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 493

Rep: Reputation: 133Reputation: 133
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, 06:16 AM   #6
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
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, 06:22 AM   #7
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
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, 02:48 PM   #8
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
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, 03:12 PM   #9
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,822
Blog Entries: 15

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Glad to hear you got it fixed Keith.
 
  


Reply

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:32 PM
[SOLVED] Lfs-->blfs devilboy09 Linux From Scratch 21 11-20-2011 04:41 AM
LFS or BLFS masand Linux From Scratch 16 12-02-2004 03:31 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 12:19 PM
blfs and lfs? newpenguin Linux From Scratch 7 12-04-2002 08:58 PM


All times are GMT -5. The time now is 11:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration