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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> 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?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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Wed, Sep 29, 2004 at 08:45:50AM +0100, Ian Pratt wrote:> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> On Wed, Sep 29, 2004 at 08:45:50AM +0100, Ian Pratt wrote: > > 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.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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> On Wed, Sep 29, 2004 at 08:45:50AM +0100, Ian Pratt wrote: > > 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.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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Thu, Sep 30, 2004 at 09:59:34AM +0100, Keir Fraser wrote:> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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 On Wednesday 29 September 2004 04:12, James Harper wrote:> 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 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
I''ll try it out today.> -----Original Message----- > From: maw48@hermes.cam.ac.uk [mailto:maw48@hermes.cam.ac.uk] On BehalfOf> Mark A. Williamson > Sent: Friday, 1 October 2004 10:42 > To: xen-devel@lists.sourceforge.net > Cc: James Harper > Subject: Re: [Xen-devel] /dev/tty1 and udev > > 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 needto do> that, hence the apparent lack of sysfs magic in them. It seems thatfor> consoles (and who knows what else), stuff that''s registered usingdevfs> hooks > also appears in sysfs(!). In fact tty_register_device() seems to dosome> apparently devfs-related things(!!) > > It does seem insane :-) but don''t worry - it does *not* require devfsin> the > kernel and the tty *does* appear in sysfs(!!!). Apparently the ttylayer> is > currently bonkers. > > I''d expect udev to be OK now - could you please try it out? > > Cheers, > Mark > > On Wednesday 29 September 2004 04:12, James Harper wrote: > > After installing udev, I don''t get a /dev/tty1. I can create thenode> > 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 onITManagersJournal> > Use IT products in your business? Tell us what you think of them.Give> us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to findout> more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> I''ve tweaked the console driver and it the Xen console now appears in > sysfs. > udev should "just work" for now.It does. 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel