Try this...
http://www.thinktek.ca/articles/article3.php
...
In the syslog file I would see repeated "reset high speed USB device using ehci_hcd and address #" messages. Upon further investigation I learnt that this may be due to the setting for the maximum amount of data that will be transferred to or from the device in a single command, as set in /sys/block/sdb/device/max_sectors once the device is connected. The default setting is 240, which equates to 120KB. This value works for most devices, but the Bold doesn't like it. I changed it to 128 (aka 64KB) using "echo 128 > /sys/block/sdb/device/max_sectors", which is the default for Windows, and hey presto! It worked!
The next question was how to make this the default. Digging deeper into it I learnt that the udev system is responsible for detecting hot plugged devices now and it is controlled by scripts in /etc/udev/rules.d. I added the following line to /etc/udev/rules.d/80-programs.rules to set the default max_sectors value to 128 for all devices. It may result in a slight performance hit, but functionality is more important to me at this point. I may try playing with some benchmarks some day...
# Blackberry Bold is not happy with max_sectors=240 - JayM 20090317
SUBSYSTEM=="block", BUS=="usb", KERNEL=="sd*", ATTRS{idVendor}=="0fca", RUN+="/bin/sh -c 'echo 128 >
/sys/block/%k/device/max_sectors'"
Note: that's only two lines... the SUBSYSTEM command should be one line. It's split for formatting...
Next time I plugged in the Bold and checked max_sectors it was set to 128 and everything worked as expected. Now I can copy files back and forth without any issues.
...



Adv Reply

Bookmarks