/dev/tty1 and udev
After installing udev, I don't get a /dev/tty1. I can create the node manually and it works but that's not really the right way to do it.
Does anyone know offhand how to configure udev (under debian if that matters) to create a /dev/tty1 so I can get something useful under a console?
Thanks
James
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 6 lines
After installing udev, I don't get a
/dev/tty1. I can create the node manually and it works but that's not really the right way to do it.Does anyone know offhand how to configure udev (under debian if that matters) to create a
/dev/tty1so I can get something useful under a console?
Hmm, we presumably need to do something to tell udev so that the device node can be made. I'm not sure what we're missing. We have calls to tty_register_driver and register_console. There's nothing in any of the tty drivers that looks like specific calls to udev.
We register the driver as NO_DEVFS, but I presume this is totally orthogonal to udev.
Do virtual block devices appear OK?
Does anyone have a pointer to some documentation on udev? The OLS2003 paper doesn't go into any detail of what drivers need to do.
Ian
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 3 lines · Ian Pratt
Does anyone have a pointer to some documentation on udev? The OLS2003 paper doesn't go into any detail of what drivers need to do.
It's done through hotplug and sysfs. Drivers need to export a /sys/...../dev file and produce a hotplug event when they're registered. udev then gets called by hotplug and reads the /sys/....../dev file and creates a node based on that and a userspace database of device->name correlations.
Personally though I still prefer devfs.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 10 lines · Ian Pratt
Quoted 3 lines
Does anyone have a pointer to some documentation on udev? The OLS2003 paper doesn't go into any detail of what drivers need to do.
It's done through hotplug and sysfs. Drivers need to export a
/sys/...../devfile and produce a hotplug event when they're registered. udev then gets called by hotplug and reads the/sys/....../devfile and creates a node based on that and a userspace database ofdevice->namecorrelations.
I've looked through the other console drivers in 2.6.8.1 drivers/char and can't see any obvious calls to sysfs or hotplug. Am I missing something?
Ian
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 5 lines · Ian Pratt
Quoted 3 lines
Does anyone have a pointer to some documentation on udev? The OLS2003 paper doesn't go into any detail of what drivers need to do.
Quoted 7 lines
It's done through hotplug and sysfs. Drivers need to export a
/sys/...../devfile and produce a hotplug event when they're registered. udev then gets called by hotplug and reads the/sys/....../devfile and creates a node based on that and a userspace database ofdevice->namecorrelations.Personally though I still prefer devfs.
Integrating devfs into our frontend block-device driver looked like it would be a pain in the arse, and not worth the effort since it is obsolescent.
I hope that sysfs/udev will be easier to deal with from our point of view. :-)
-- Keir
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 6 lines · Keir Fraser
Integrating devfs into our frontend block-device driver looked like it would be a pain in the arse, and not worth the effort since it is obsolescent.
I hope that sysfs/udev will be easier to deal with from our point of view. :-)
In fact, the whole point of udev was that devfs was fine for userspace, and a total PITA to implement for kernel people. So it should be pretty easy for you to deal with udev.
Have fun,
Avery
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
I've tweaked the console driver and it the Xen console now appears in sysfs. udev should "just work" for now.
For those that are interested, I had to add a call to tty_register_device() to make this work. Other console drivers that support devfs don't need to do that, hence the apparent lack of sysfs magic in them. It seems that for consoles (and who knows what else), stuff that's registered using devfs hooks also appears in sysfs(!). In fact tty_register_device() seems to do some apparently devfs-related things(!!)
It does seem insane :-) but don't worry - it does *not* require devfs in the kernel and the tty *does* appear in sysfs(!!!). Apparently the tty layer is currently bonkers.
I'd expect udev to be OK now - could you please try it out?
Cheers,
Mark
Quoted 13 lines · James Harper
After installing udev, I don't get a
/dev/tty1. I can create the node manually and it works but that's not really the right way to do it.Does anyone know offhand how to configure udev (under debian if that matters) to create a
/dev/tty1so I can get something useful under a console?Thanks
James
Quoted 9 lines
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl