Hi,
I have installed barry from cvs (version .10).
When I tried to invoke bcharge the power settings remain at 100mA (the
device id doesnt change to 0004. it remains at 0fca:0006).
Here are the details. Please let me know if you would need further
information.
OS: Ubuntu 7.10
Ph: Blackberry 8830 / Verizon Wireless
# uname -a
Linux arvind-r61 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
GNU/Linux
# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 008: ID 0fca:0006 Research In Motion, Ltd.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
#
# lsusb -v -d 0fca:0006
Bus 003 Device 008: ID 0fca:0006 Research In Motion, Ltd.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0fca Research In Motion, Ltd.
idProduct 0x0006
bcdDevice 1.06
iManufacturer 1 Research In Motion
iProduct 4 RIM Mass Storage Device
iSerial 3 5E1615F1623EF31A6519F809EE97BB1607FA0ECD
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 4 RIM Mass Storage Device
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x07 EP 7 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
# grep 0fca /etc/udev/rules.d/*
/etc/udev/rules.d/10-blackberry.rules:BUS=="usb", SUBSYSTEM=="usb_device",
ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001",
SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge -p %p"
/etc/udev/rules.d/10-blackberry.rules:BUS=="usb", SUBSYSTEM=="usb_device",
ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0006",
RUN="/usr/sbin/bcharge"
/etc/udev/rules.d/10-blackberry.rules:BUS=="usb", SUBSYSTEM=="usb_device",
ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0004",
SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge -p %p"
/etc/udev/rules.d/99-barry-perms:SYSFS{idVendor}=="0fca",
SYSFS{idProduct}=="0006", GROUP="barry", MODE="0660"
/etc/udev/rules.d/99-xmblackberry.rules:SUBSYSTEM=="usb_device",
SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0006", ACTION=="add",
RUN+="/bin/chown --reference=/dev/console $env{DEVNAME}"
#
I have tried the following:
1. Unload usb_storage. connect phone. Run bcharge. Run bcharge -o.
2. Unload usb_storage. load berry_charge. Connect phone. Run bcharge.
3. Unload usb_storage. load berry_charge. Connect phone. Run bcharge. Run
bcharge -o
4. Unload usb_storage. load berry_charge. Connect phone. Unload usb_storage.
Run bcharge.
5. Download 2.6.23 kernel from kernel.org and compile with
/boot/config-`uname -r`. Tried 1,2,3,4 as above
6. Download ubuntu kernel 2.6.22-9 and used current config, and tried out
1,2,3,4 as above.
This is what happens each time:
# dmesg
[ 4140.328000] usbcore: deregistering interface driver usb-storage
[ 4150.160000] usb 3-1: new full speed USB device using uhci_hcd and address
9
[ 4150.324000] usb 3-1: configuration #1 chosen from 1 choice
[ 4150.356000] Initializing USB Mass Storage driver...
[ 4150.356000 ] scsi10 : SCSI emulation for USB Mass Storage devices
[ 4150.356000] usb-storage: device found at 9
[ 4150.356000] usb-storage: waiting for device to settle before scanning
[ 4150.356000] usbcore: registered new interface driver usb-storage
[ 4150.356000] USB Mass Storage support registered.
[ 4150.628000] usb 3-1: usbfs: interface 0 claimed by usb-storage while
'bcharge' sets config #1
[ 4150.740000] usb 3-1: reset full speed USB device using uhci_hcd and
address 9
Or,
# rmmod usb-storage berry_charge
# modprobe berry_charge
// plug in phone
# dmesg
[ 4207.220000] usbcore: deregistering interface driver usb-storage
[ 4235.580000] usbcore: deregistering interface driver berry_charge
[ 4239.080000] usbcore: registered new interface driver berry_charge
[ 4248.928000] usb 3-1: new full speed USB device using uhci_hcd and address
10
[ 4249.092000] usb 3-1: configuration #1 chosen from 1 choice
[ 4249.124000] Initializing USB Mass Storage driver...
[ 4249.124000] scsi11 : SCSI emulation for USB Mass Storage devices
[ 4249.124000] usb-storage: device found at 10
[ 4249.124000] usb-storage: waiting for device to settle before scanning
[ 4249.124000] usbcore: registered new interface driver usb-storage
[ 4249.124000] USB Mass Storage support registered.
[ 4249.372000] usb 3-1: usbfs: interface 0 claimed by usb-storage while
'bcharge' sets config #1
[ 4249.540000] usb 3-1: reset full speed USB device using uhci_hcd and
address 10
Please let me know if I am missing something here.
Thank you guys!
--
Arvind Kalyan
http://www.beanlife.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel