On Sat, 18 May 2002, Hactar wrote:

| On Sat, 18 May 2002, Randy.Dunlap wrote:
|
| >  cd to the 2.4.18 drivers/usb directory and enter
| > 'insmod usbcore.o'.  Well, it just worked for me at least.  :)
|
| [root@pc root]# rmmod -r usb-uhci
| [root@pc root]# lsmod | grep usb
| [root@pc root]# cd /lib/modules/`uname -r`/kernel/drivers/usb
| [root@pc usb]# pwd
| /lib/modules/2.4.18/kernel/drivers/usb
| [root@pc usb]# insmod usbcore.o
| [root@pc usb]# mount -t usbdevfs none /proc/bus/usb
| mount: mount point /proc/bus/usb does not exist
| [root@pc usb]# lsmod | grep usb
| usbcore                33184   0  (unused)
| [root@pc usb]#
|
| Arrgh!
agreed.

| And those are the USB modules, and the kernel, that I just compiled:
|
| [root@pc usb]# ls -l * /boot/vmlinuz-2.4.18 ; uname -a
| -rw-r--r--    1 root     root       573856 May 18 14:52 /boot/vmlinuz-2.4.18
| -rw-r--r--    1 root     root        51841 May 18 14:52 usbcore.o
| -rw-r--r--    1 root     root        28840 May 18 14:52 usb-uhci.o
| Linux pc.tampabay.rr.com 2.4.18 #4 Sat May 18 14:49:52 EDT 2002 i686 unknown
|
| > | Apparently usbcore.o will load without usbdevfs being available (if you
| > | want to hang yourself, there's the rope).
| >
| > no, usbcore supplies/produces usbdevfs.
|
| Then my setup must be seriously confused.  I don't know what I did, to
| make it so.
|
| For a long time, I had no USB devices, so whenever I would configure a
| kernel, I would reject any option that's only used for USB.  Maybe I've
| turned off something that I need now that I have a USB device.
|
| > I think that there is just something minor that is being
| > overlooked here somehow.
|
| Probably.
|
| > Just unload all of the USB modules, reload them (using insmod
| > filename.o, not modprobe), and it should work.
|
| OK, are there any USB-related modules, that don't have the string 'usb' or
| 'hci' or some other easily-recognizable string in their names?  Or maybe
| modules that are recommended for use?  As seen above, "insmod usbcore.o"
| doesn't make /proc/bus/usb appear, as I thought it should.

Sure, but they may not matter to you.
See 'ls linux/drivers/usb/*.c' for example.
There are also subdirectories for serial/ and storage/.
What kind of PDA do you have?  PDAs usually use one of the
serial drivers.
There are several howto's for USB PDAs.  Have you tried any
of them?

| I changed "USB Support" -> "Support for USB" to being compiled in, not a
| module.  It worked!  Now I have to convince the initscripts to mount
| /proc/bus/usb at startup.  Should be a simple matter of listing it in
| /etc/fstab, but I'll see...
|
| <reboots>
|
| Yes, it works.  But usb-uhci.o does not get pre-loaded... will it get
| loaded on demand?  Or do I have to arrange for it to get loaded?
|
| There's this:
|
| 1001/0 [EMAIL PROTECTED]:~ > cat /proc/devices
| Character devices:
| ...
| 180 usb

at least you have the /proc filesystem enabled.

| And, as one would expect, this:
|
| 1005/0 [EMAIL PROTECTED]:~ > sed -n 2169p /usr/src/linux/Documentation/devices.txt
| 180 char        USB devices

That's the major number for devices that use major:minor interfaces,
like USB printers and scanners.

| But none of the devices listed in devices.txt seem relevant (I'm trying to
| access a PDA).  Do I need to create some device file?

USB serial devices use /dev/usb/ttyUSBn (where n is a number).

Have you read any of the Linux USB Guide at
  http://www.linux-usb.org/USB-guide/book1.html ?
Serial devices are at
  http://www.linux-usb.org/USB-guide/x356.html,
but a page that is specific to your PDA would be more useful,
so tell us what kind it is and (at least I) will see if I
can locate one for you.

If you want me to look at it more, please send me your
linux/.config file and I'll try it out.

-- 
~Randy


_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to