Skip to contentSkip to conversation

trying 068 with Gentoo

DISCUSSION Bob Barry 3 participants 4 messages Aug 31, 2005 – Jul 30, 2006

lore
Share & tools
lore

Bob Barry

author
#0 lore raw

I installed udev-068 on Gentoo, installed the new /etc/udev/udev.conf and /etc/udev/rules.d/50-udev.rules, and restarted with kernel 2.6.13. Startup displayed:
Couldn't open //dev/vc/1
Couldn't open //dev/vc/2
Couldn't open //dev/vc/3
Couldn't open //dev/vc/4
...
Couldn't open //dev/vc/11
I've recursively grep'd /etc, /sbin, and /lib/rcscripts for the source of these messages, without success. My baselayout is 1.11.13-r1. Can someone tell me where this devfs reference is hiding?

Thanks,

Bob Barry

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 2 lines · Bob Barry

I installed udev-068 on Gentoo, installed the new /etc/udev/udev.conf and /etc/udev/rules.d/50-udev.rules, and restarted with kernel 2.6.13.

You forgot to mention that you ignored the ewarn messages that the 068 gentoo release stated that explained how to fix this problem.

Also, this isn't a Gentoo specific mailing list, if you have Gentoo specific problems with udev (like this) please enter a bug into their bugzilla system (bugs.gentoo.org)

thanks,

greg k-h

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Bob Barry
Quoted 14 lines · Greg KH <greg <at> kroah.com> writes:
Quoted 2 lines · Bob Barry

I installed udev-068 on Gentoo, installed the new /etc/udev/udev.conf and /etc/udev/rules.d/50-udev.rules, and restarted with kernel 2.6.13.

You forgot to mention that you ignored the ewarn messages that the 068 gentoo release stated that explained how to fix this problem.

Also, this isn't a Gentoo specific mailing list, if you have Gentoo specific problems with udev (like this) please enter a bug into their bugzilla system (bugs.gentoo.org)

thanks,

Quoted 8 lines

greg k-h

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Actually greg k-h,
This is NOT a gentoo specific problem ... it's a udev / agetty / openvt problem. It appears to occur when you move completely away from devfs, such that udevd is generating all /dev entries. The problem is /dev/vc/%d and /dev/tty are hardcoded into programs in the kbd and util-linux packages. For whatever reason udev does not properly populate these devices in /dev no mater what you put in the control statements - probably because the console is pre-existing when udevd comes up. There are a number of fixes floating around, none of which really work to my satisfaction. One is to have a /lib/dev space for pre-existing devices and then copy it to /dev. Personally, I would have the software tell udevd that device entries are needed, and udevd respond by inserting the requested virtual device or whatever into /dev. If such a mechanism is available it certainly is not being used, or well documented.

Virgil Anderson.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Bob Barry
Quoted 25 lines · Virgil Anderson
Quoted 14 lines · Greg KH <greg <at> kroah.com> writes:
Quoted 2 lines · Bob Barry

I installed udev-068 on Gentoo, installed the new /etc/udev/udev.conf and /etc/udev/rules.d/50-udev.rules, and restarted with kernel 2.6.13.

You forgot to mention that you ignored the ewarn messages that the 068 gentoo release stated that explained how to fix this problem.

Also, this isn't a Gentoo specific mailing list, if you have Gentoo specific problems with udev (like this) please enter a bug into their bugzilla system (bugs.gentoo.org)

thanks,

Quoted 8 lines

greg k-h

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Quoted 2 lines

Actually greg k-h,
This is NOT a gentoo specific problem ...

But this email was almost a year old, so udev and the kernel have moved on since then...

Quoted 1 line

it's a udev / agetty / openvt problem.

Talk to the openvt group about how it works with udev, the people here really have no idea how to do that, sorry.

Quoted 6 lines

It appears to occur when you move completely away from devfs, such that udevd is generating all /dev entries. The problem is /dev/vc/%d and /dev/tty are hardcoded into programs in the kbd and util-linux packages. For whatever reason udev does not properly populate these devices in /dev no mater what you put in the control statements - probably because the console is pre-existing when udevd comes up.

Then the startup logic for your distro is incorrect, this should be properly handled by it.

Quoted 6 lines

There are a number of fixes floating around, none of which really work to my satisfaction. One is to have a /lib/dev space for pre-existing devices and then copy it to /dev. Personally, I would have the software tell udevd that device entries are needed, and udevd respond by inserting the requested virtual device or whatever into /dev. If such a mechanism is available it certainly is not being used, or well documented.

Why not just do what all other distros do at startup to populate /dev with the device information from the devices that have been created before userspace runs? That involves using either udevstart, udevtrigger, or a simple shell script, depending on the kernel verison that you are using.

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel