All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Tracy <rct@gherkin.frus.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Ming Lei <tom.leiming@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: 3.5-rcX: USB support without udev?
Date: Sun, 1 Jul 2012 15:14:11 -0500	[thread overview]
Message-ID: <20120701201411.GB8603@gherkin.frus.com> (raw)
In-Reply-To: <20120630033519.GA4792@kroah.com>

On Fri, Jun 29, 2012 at 11:35:19PM -0400, Greg KH wrote:
> 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 <rct@gherkin.frus.com> 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?

If I knew what was missing, I'd create it and be done with it.  Here's
the scenario...  Kernel built from the standard kernel.org tree.  All
drivers needed at boot time are built-in, except now there's probably
something missing on the USB side of things.  No initrd.  I'll attach my
config file on the good chance someone will spot the missing piece(s)
quickly.  Note that the DEVTMPFS options are disabled in this config,
but I'll reenable them if required.  When I said devtmpfs "didn't help,"
what I meant was, by itself relative to my current configuration, turning
on devtmpfs made no difference.

Per the syslog entries I included in my initial post on this thread, the
only difference between the pre- and post- usbfs removal cases seems to
be whatever is needed for the input subsystem to see the USB keyboard
and mouse.  I see the USB hubs and attached devices getting detected,
but whatever "glue" allows the keyboard and mouse to work isn't there,
and the input subsystem doesn't emit the expected messages at boot time.

I booted a recent Kubuntu distro on the same box and noted a few
differences as far as the /dev tree.  In particular, the modern way of
doing things has "hiddevX" directly under "/dev/usb" rather than under
"/dev/usb/hid".  There are some "by-path" and "by-id" symlinks under
"/dev/input" as well, pointing to entries in the sysfs tree.  Haven't
tried a boot yet with those differences accounted for, but plan to do
so soon.

--Bob

  reply	other threads:[~2012-07-01 20:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 13:16 3.5-rcX: USB support without udev? Bob Tracy
2012-06-28 13:39 ` Ming Lei
2012-06-29  3:36   ` Bob Tracy
2012-06-30  3:35     ` Greg KH
2012-07-01 20:14       ` Bob Tracy [this message]
2012-07-01 20:16         ` Bob Tracy
2012-07-01 20:34         ` Romain Francoise
2012-07-01 20:58           ` Romain Francoise
2012-07-01 20:41         ` Henrik Rydberg
2012-07-01 23:25           ` Bob Tracy
2012-07-02  0:29             ` Bob Tracy
2012-07-02  5:52               ` Henrik Rydberg
2012-07-02 13:07                 ` Bob Tracy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120701201411.GB8603@gherkin.frus.com \
    --to=rct@gherkin.frus.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom.leiming@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.