SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem with connecting my Palm. When I run hotplug, I can see information about device in sysfs:
Code:
udevinfo -a -p /sys/bus/usb/devices/usb1/1-2
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at class device '/sys/bus/usb/devices/usb1/1-2':
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 2mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="3"
SYSFS{idProduct}="0169"
SYSFS{idVendor}="054c"
SYSFS{manufacturer}="Palm, Inc."
SYSFS{maxchild}="0"
SYSFS{product}="Palm Handheld"
SYSFS{speed}="12"
SYSFS{version}=" 1.00"
But the proper device file in /dev does not appear.
I read the docs, and wrote the rule:
BUS="usb", SYSFS{product}="Palm Handheld", KERNEL="pilot", NAME="%k", SYMLINK="usb1"
But there is no /dev/pilot when I run hotplug
What did I do wrong?
Weird, there's already a rule in /etc/udev/rules.d/udev.rules
This is the line it contains:
# pilot/palm devices
KERNEL="pilot", NAME="%k", GROUP="uucp"
No, I haven't got such rule in my /etc/udev/rules.d/udev.rules.
Since I went to 2.6 from 2.4 kernel, there is no file with the name, containing *usb*. And I don't know, what to do.
Here is everething, that connected with usb devices in /etc/udev/rules.d/udev.rules:
They problem may not be with udev. It may show up as a sda* device, not as usb. Usb devices show up as scsi under linux. I know my usb flashdrive appears as /dev/sda1.
Plug in your palmpilot, then take a look at /var/log/messages to find out exactly what it shows up as. Here's mine after plugging in my usb drive.
Code:
kernel: usb 1-5: new high speed USB device using ehci_hcd and address 2
kernel: Initializing USB Mass Storage driver...
kernel: scsi0 : SCSI emulation for USB Mass Storage devices
kernel: usbcore: registered new driver usb-storage
kernel: USB Mass Storage support registered.
kernel: Vendor: Model: Memorex TD 2B Rev: PMAP
kernel: Type: Direct-Access ANSI SCSI revision: 00
kernel: SCSI device sda: 1015808 512-byte hdwr sectors (520 MB)
kernel: sda: assuming Write Enabled
kernel: SCSI device sda: 1015808 512-byte hdwr sectors (520 MB)
kernel: sda: assuming Write Enabled
kernel: sda: sda1
kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Since it shows up as sda: sda1, I just added this line to /etc/fstab:
Code:
/dev/sda1 /mnt/usb vfat noauto,users,rw 0 0
Then ran 'mkdir /mnt/usb' to create the mount point. If you don't have a mount point, then you are not going to be able to access it. That's why you need to add the line in /etc/fstab.
I had similar problems with my ipaq until I got the kernel modules built in.
Similar to what keefaz says, I find it useful to run dmesg in a separate console after attaching a device, the last entry will tell you if it got recognised ok
Big thanks to tobyl!
Everything started to work, when I compiled visor module
After compiling kernel with visor module, and then I saw a message in dmesg:
Code:
visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
visor ttyUSB1: Handspring Visor / Palm OS converter now disconnected from ttyUSB1
# /bin/mknod /dev/ttyUSB0 c 188 0
# /bin/mknod /dev/ttyUSB1 c 188 1
# /bin/chmod 0666 /dev/ttyUSB?
After them everything started to work fine.
The problem is fixed, but i think, that these device files must be created by udev, because it's udev , and I don't understand, why it doesn't work properly.
P.S. Where did they get the number 188? Where can I find it myself in system?
you have a later kernel than mine, so the file may be in a different place, but devices (assuming non-use of devfs which is the case in slackware) can be described by major and minor numbers. Devices handled by the usb-serial driver's major number is 188.
I'm not sure why the udev entry is not being created (if this is the case) but bear in mind that they will not be there until after hotplug has seen the device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.