2001-11-20 17:51:08

by Daniel I. Applebaum

[permalink] [raw]
Subject: built-in USB /proc bug


I tried building a 2.4.13 kernel with USB support as built-in, instead
of modules. The system worked, and USB devices worked, but there were
no entries in /proc/bus/usb Yes, I had enabled both /proc filesystem
and USB /proc filesystem support. When the same kernel was built but
with USB support as modules, the /proc/bus/usb entries appear.

Although no expert in these matters, I suspect that when the USB
subsystem is built-in, it is initialized before /proc is mounted, and
the USB /proc filesystem support either turns itself off or puts the
"files" elsewhere.

A viable solution might be to have make menuconfig warn against this
combination.

Dan.


2001-11-20 18:38:03

by Johannes Erdfelt

[permalink] [raw]
Subject: Re: built-in USB /proc bug

On Tue, Nov 20, 2001, Daniel I. Applebaum <[email protected]> wrote:
>
> I tried building a 2.4.13 kernel with USB support as built-in, instead
> of modules. The system worked, and USB devices worked, but there were
> no entries in /proc/bus/usb Yes, I had enabled both /proc filesystem
> and USB /proc filesystem support. When the same kernel was built but
> with USB support as modules, the /proc/bus/usb entries appear.
>
> Although no expert in these matters, I suspect that when the USB
> subsystem is built-in, it is initialized before /proc is mounted, and
> the USB /proc filesystem support either turns itself off or puts the
> "files" elsewhere.
>
> A viable solution might be to have make menuconfig warn against this
> combination.

The problem is likely that it's a filesystem and you need to mount it
after loading the module.

Try running:

mount /proc/bus/usb

JE