2012-06-28 13:16:54

by Bob Tracy

[permalink] [raw]
Subject: 3.5-rcX: USB support without udev?

With the removal of the deprecated usbfs feature in the 3.5 release
candidates, is there a way of getting USB devices working on a non-
embedded Linux system without udev (static "/dev")?

Assume I have a way to determine the appropriate device nodes to create
under /dev/bus/usb. What else is needed to get USB keyboards and mice
working again? The mapping of a particular USB device to a class
(input, generic_usb, etc.) that used to happen before USB_DEVICE_CLASS
was removed is the part I'm missing.

Thanks in advance.

--Bob


2012-06-28 13:39:47

by Ming Lei

[permalink] [raw]
Subject: Re: 3.5-rcX: USB support without udev?

On Thu, Jun 28, 2012 at 9:16 PM, Bob Tracy <[email protected]> wrote:
> With the removal of the deprecated usbfs feature in the 3.5 release
> candidates, is there a way of getting USB devices working on a non-
> embedded Linux system without udev (static "/dev")?

Please try to enable below options:

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

and you need not the static dev nodes with devtmpfs.



Thanks,
--
Ming Lei

2012-06-29 03:36:04

by Bob Tracy

[permalink] [raw]
Subject: Re: 3.5-rcX: USB support without udev?

On Thu, Jun 28, 2012 at 09:39:45PM +0800, Ming Lei wrote:
> On Thu, Jun 28, 2012 at 9:16 PM, Bob Tracy <[email protected]> wrote:
> > With the removal of the deprecated usbfs feature in the 3.5 release
> > candidates, is there a way of getting USB devices working on a non-
> > embedded Linux system without udev (static "/dev")?
>
> Please try to enable below options:
>
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y
>
> and you need not the static dev nodes with devtmpfs.

It was worth a try, but it didn't help in my situation. This system
also has an updated Kubuntu partition available to boot, so I'll try
that and take lots of notes as far as what devices "udev" creates.
That approach was good enough to get my sound card working, which would
otherwise have required "udev".

Thanks.
--Bob

2012-06-30 03:35:27

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: 3.5-rcX: USB support without udev?

On Thu, Jun 28, 2012 at 10:36:00PM -0500, Bob Tracy wrote:
> On Thu, Jun 28, 2012 at 09:39:45PM +0800, Ming Lei wrote:
> > On Thu, Jun 28, 2012 at 9:16 PM, Bob Tracy <[email protected]> wrote:
> > > With the removal of the deprecated usbfs feature in the 3.5 release
> > > candidates, is there a way of getting USB devices working on a non-
> > > embedded Linux system without udev (static "/dev")?
> >
> > Please try to enable below options:
> >
> > CONFIG_DEVTMPFS=y
> > CONFIG_DEVTMPFS_MOUNT=y
> >
> > and you need not the static dev nodes with devtmpfs.
>
> It was worth a try, but it didn't help in my situation.

Why not? What is using usbfs device nodes that can not find them in
/dev/bus/usb/ that devtmpfs creates?

thanks,

greg k-h