Has anyone verified that the 8310 (a.k.a. Curve) works properly?

I just rebuilt the 0.12 package on Fedoa 8 (x86_64) and can't get btool to
read the databases from my device. I'm not sure if it's an issue with btool
or an issue with the 8310 acting as a "mass storage device".

Anyway, here's a verbose rundown of what I did/have.

Build:
====================
    I built the src RPMs with:
        QA_RPATHS=0x0001 rpmbuild -ba barry.spec --with gui --with opensync
    And installed the relevant packages:
        [EMAIL PROTECTED] SPECS]# rpm -qa |grep barry
        libbarry-devel-0.12-1.x86_64
        barry-gui-0.12-1.x86_64
        barry-util-0.12-1.x86_64
        barry-debuginfo-0.12-1.x86_64  
        libbarry-0.12-1.x86_64
        barry-opensync-0.12-1.x86_64

Configuration:
====================
1. I blacklisted berry_charge in /etc/modprobe.d/blacklist-berry_charge 
with "blacklist berry_charge"
2. My /etc/ude/rules.d has the standard entries for bcharge
    [EMAIL PROTECTED] # grep  -l 0fca /etc/udev/rules.d/*
    /etc/udev/rules.d/10-blackberry.rules

    [EMAIL PROTECTED] # vi /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"
    BUS=="usb", ENV{DEVTYPE}=="usb_device", \
            ACTION=="add", SYSFS{idVendor}=="0fca", 
SYSFS{idProduct}=="0001", \
            SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge -p %p"
    BUS=="usb", SUBSYSTEM=="usb_device", \
            ACTION=="add", SYSFS{idVendor}=="0fca", 
SYSFS{idProduct}=="0006", \
            RUN="/usr/sbin/bcharge"
    BUS=="usb", SUBSYSTEM=="usb_device", \
            ACTION=="add", SYSFS{idVendor}=="0fca", 
SYSFS{idProduct}=="0004", \
            SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge -p %p"
    BUS=="usb", ENV{DEVTYPE}=="usb_device",
            ACTION=="add", SYSFS{idVendor}=="0fca", \
            SYSFS{idProduct}=="0006", RUN="/usr/sbin/bcharge"
    BUS=="usb", ENV{DEVTYPE}=="usb_device", \
            ACTION=="add", SYSFS{idVendor}=="0fca", 
SYSFS{idProduct}=="0004", \
            SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge -p %p"

Attaching the device:
====================
1.    As soon as I connect my BB, the OS  logs this:
    Apr 26 10:36:54 bagua kernel: usb 2-7: new full speed USB device 
using ohci_hcd and address 10
    Apr 26 10:36:54 bagua kernel: usb 2-7: configuration #1 chosen from 
1 choice
    Apr 26 10:36:54 bagua kernel: scsi25 : SCSI emulation for USB Mass 
Storage devices
    Apr 26 10:36:54 bagua kernel: usb 2-7: usbfs: interface 0 claimed by 
usb-storage while 'bcharge' sets config #1
    Apr 26 10:36:55 bagua kernel: usb 2-7: USB disconnect, address 10
    Apr 26 10:36:55 bagua kernel: usb 2-7: new full speed USB device 
using ohci_hcd and address 11
    Apr 26 10:36:55 bagua kernel: usb 2-7: configuration #1 chosen from 
1 choice
    Apr 26 10:36:55 bagua kernel: scsi26 : SCSI emulation for USB Mass 
Storage devices
    Apr 26 10:37:00 bagua kernel: scsi 26:0:0:0: Direct-Access     
RIM      BlackBerry SD    0001 PQ: 0 ANSI: 4 CCS
    Apr 26 10:37:00 bagua kernel: sd 26:0:0:0: [sde] Attached SCSI 
removable disk
    Apr 26 10:37:00 bagua kernel: sd 26:0:0:0: Attached scsi generic sg5 
type 0

2.    The BB imediately propmts me for a password to use. It says:
       "Mass Storage Mode is being activated. Enter your device password 
to grant access."

3. After entering my device password, the OS logs this and mounts the 
device's SDcard under /media/BLACKBERRY

    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] 1984000 512-byte 
hardware sectors (1016 MB)
    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] Write Protect is off
    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] Assuming drive 
cache: write through
    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] 1984000 512-byte 
hardware sectors (1016 MB)
    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] Write Protect is off
    Apr 26 10:37:49 bagua kernel: sd 26:0:0:0: [sde] Assuming drive 
cache: write through
    Apr 26 10:37:49 bagua kernel:  sde: sde1
    Apr 26 10:37:50 bagua hald: mounted /dev/sde1 on behalf of uid 500
    Apr 26 10:37:50 bagua gnome-keyring-daemon[2753]: adding removable 
location: volume_uuid_FFFF_FFFF at /media/BLACKBERRY

4. Lsusb sees the device is at bus 2, device 11:
    [EMAIL PROTECTED] rules.d]# lsusb -s 2:11
    Bus 002 Device 011: ID 0fca:0004 Research In Motion, Ltd.

5. Bcharge sees the device as well:
    [EMAIL PROTECTED]  /usr/sbin/bcharge  
    Scanning for Blackberry devices...
    Found device #011...already at 500mA...already in desired Pearl 
mode...no change

6. Btool lists the device properly
    [EMAIL PROTECTED]  /usr/bin/btool -l
    Blackberry devices found:
    Device ID: 0x85f070. PIN: 252cf20b, Description: RIM 8300 Series 
Colour GPRS Handheld

7. When I try to list the databases on the device with "btool -t", the 
OS unmounts the device and
     the BB prompts me for the device password again.

    [EMAIL PROTECTED]  btool -t
    Blackberry devices found:
    Device ID: 0x85f070. PIN: 252cf20b, Description: RIM 8300 Series 
Colour GPRS Handheld
    Using device (PIN): 252cf20b
    Barry::Error caught: Fewer than 6 password tries remaining in 
device. Refusing to proceed,
    to avoid device zapping itself.  Use a Windows client, or re-cradle 
the device.

    This is also logged
    Apr 26 10:43:53 bagua kernel: usb 2-7: reset full speed USB device 
using ohci_hcd and address 11
    Apr 26 10:43:53 bagua hald: unmounted /dev/sde1 from 
'/media/BLACKBERRY' on behalf of uid 0
    Apr 26 10:43:53 bagua gnome-keyring-daemon[2753]: removing removable 
location: volume_uuid_FFFF_FFFF

8. I then enter the password on the BB and the device gets remounted

9. Then I tried btool -B <busnum> -N <devnum>  -p <pin> -P <passw>  but 
the same thing happens.
Here is the verbose output:

[EMAIL PROTECTED]  btool -p 252cf20b -B 002 -N 011 -P XXXX -t -vv
usb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 009 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 008 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 007 on 001
skipped 7 class/vendor specific interface descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 010 on 001
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 001
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
usb_os_find_devices: Found 011 on 002
usb_os_find_devices: Found 002 on 002
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Operation not permitted
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 009 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 008 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 007 on 001
skipped 7 class/vendor specific interface descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 010 on 001
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 001
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
usb_os_find_devices: Found 011 on 002
usb_os_find_devices: Found 002 on 002
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Operation not permitted
device_desc loaded
bLength: 18
bDescriptorType: 1
bcdUSB: 272
bDeviceClass: 0
bDeviceSubClass: 0
bDeviceProtocol: 0
bMaxPacketSize0: 16
idVendor: 4042
idProduct: 4
bcdDevice: 262
iManufacturer: 1
iProduct: 5
iSerialNumber: 3
bNumConfigurations: 1

  config_desc #0 loaded
bLength: 9
bDescriptorType: 2
wTotalLength: 97
bNumInterfaces: 2
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: 128
MaxPower: 250

    interface_desc #0 loaded
bLength: 9
bDescriptorType: 4
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 8
bInterfaceClass: 255
bInterfaceSubClass: 1
bInterfaceProtocol: 255
iInterface: 2

      endpoint_desc #0 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 129
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 129
        pair.read = 129
        pair.type = 2
      endpoint_desc #1 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 2
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 2
        pair.write = 2
        pair.type = 2
        pair added! (read: 129,write: 2,type: 2)
      endpoint_desc #2 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 131
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 131
        pair.read = 131
        pair.type = 2
      endpoint_desc #3 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 4
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 4
        pair.write = 4
        pair.type = 2
        pair added! (read: 131,write: 4,type: 2)
      endpoint_desc #4 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 133
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 133
        pair.read = 133
        pair.type = 2
      endpoint_desc #5 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 6
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 6
        pair.write = 6
        pair.type = 2
        pair added! (read: 133,write: 6,type: 2)
      endpoint_desc #6 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 135
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 135
        pair.read = 135
        pair.type = 2
      endpoint_desc #7 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 8
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 8
        pair.write = 8
        pair.type = 2
        pair added! (read: 135,write: 8,type: 2)
    interface added to map with bInterfaceNumber: 0
    interface_desc #0 loaded
bLength: 9
bDescriptorType: 4
bInterfaceNumber: 1
bAlternateSetting: 0
bNumEndpoints: 2
bInterfaceClass: 8
bInterfaceSubClass: 6
bInterfaceProtocol: 80
iInterface: 4

      endpoint_desc #0 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 137
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 137
        pair.read = 137
        pair.type = 2
      endpoint_desc #1 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 10
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 10
        pair.write = 10
        pair.type = 2
        pair added! (read: 137,write: 10,type: 2)
    interface added to map with bInterfaceNumber: 1
  config added to map with bConfigurationValue: 1
usb_open(0x85f100)
usb_claim_interface(0x864a60,0)
usb_clear_halt(0x864a60,131)
usb_clear_halt(0x864a60,4)
BulkWrite to endpoint 4:
    00000000: 00 00 10 00 01 ff 00 00 a8 18 da 8d 6c 02 00 00  
............l...

BulkRead (131):
    00000000: 00 00 10 00 02 ff 00 00 a8 18 da 8d 6c 02 00 00  
............l...

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 00 14 00 01 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 20 00 06 ff 00 00 14 00 01 00 be 0f 5d 16  .. 
...........].
    00000010: 03 b5 a2 52 e4 16 0d 10 8b b7 0e 9c 42 71 3a 16  
...R........Bq:.

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 01 08 00 04 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 14 00 06 ff 00 01 08 00 04 00 03 00 00 00  
................
    00000010: 0b f2 2c 25                                      ..,%

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 02 08 00 02 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 c4 01 06 ff 00 02 b8 01 02 00 0c 00 04 00  
................
    00000010: b8 01 00 00 01 26 02 05 03 0f 00 8d 52 49 4d 20  
.....&......RIM
    00000020: 38 33 30 30 20 53 65 72 69 65 73 20 43 6f 6c 6f  8300 
Series Colo
    00000030: 75 72 20 47 50 52 53 20 48 61 6e 64 68 65 6c 64  ur GPRS 
Handheld
    00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
................
    00000050: 00 00 00 00 00 00 00 00 00 00 00 00 66 66 75 00  
............ffu.
    00000060: 00 00 00 00 00 00 00 00 00 00 00 00 4a 75 6e 20  
............Jun
    00000070: 20 36 20 32 30 30 37 00 00 00 00 00 31 30 3a 30   6 
2007.....10:0
    00000080: 37 3a 35 34 00 00 00 00 00 00 00 00 00 01 0f 00  
7:54............
    00000090: 00 00 00 00 00 00 00 00 a4 00 00 00 0a 00 00 00  
................
    000000a0: b8 00 00 00 40 00 00 00 03 00 00 00 2c 61 00 00  
[EMAIL PROTECTED],a..
    000000b0: 01 03 02 c7 03 01 04 02 07 12 37 01 ff ff ff ff  
..........7.....
    000000c0: ff ff ff ff 4a 56 be 92 0d 00 01 00 03 0c 00 00  
....JV..........
    000000d0: 00 00 00 00 ff ff ff 01 03 0c 00 01 00 00 00 02  
................
    000000e0: ff ff ff 03 02 08 00 00 00 00 3c 00 08 10 00 00  
..........<.....
    000000f0: 00 00 02 00 ff ff fd 01 00 00 02 00 07 14 00 00  
................
    00000100: 00 00 02 00 00 00 02 02 ff ff eb 03 00 00 02 00  
................
    00000110: 0c 0c 00 00 00 00 20 00 ff ff 21 00 0e 10 00 00  ...... 
...!.....
    00000120: 00 00 22 00 ff ff 25 00 00 00 02 00 05 14 00 00  
.."...%.........
    00000130: 00 00 02 00 00 00 26 00 ff ff 31 00 00 00 02 00  
......&...1.....
    00000140: 12 0c 00 00 00 00 04 00 ff ff 09 00 09 08 00 00  
................
    00000150: 33 6e 98 50 ff ff ff ff ff ff ff ff ff ff ff ff  
3n.P............
    00000160: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    00000170: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    00000180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    00000190: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    000001a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    000001b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  
................
    000001c0: ff ff ff ff                                      ....

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 03 04 00 05 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 06 ff 00 03 00 00 00 00              ............

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 04 04 00 06 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 06 ff 00 04 00 00 00 00              ............

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 05 04 00 07 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 10 00 06 ff 00 05 04 00 07 00 00 02 00 00  
................

BulkWrite to endpoint 4:
    00000000: 00 00 0c 00 05 ff 00 06 04 00 08 00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 06 ff 00 06 00 00 00 00              ............

Using ReadEndpoint: 131
      WriteEndpoint: 4
usb_release_interface(0x864a60,0)
usb_close(0x864a60)
Blackberry devices found:
Device ID: 0x85f100. PIN: 252cf20b, Description: RIM 8300 Series Colour 
GPRS Handheld
Using device (PIN): 252cf20b
usb_open(0x85f100)
usb_claim_interface(0x864a60,0)
usb_clear_halt(0x864a60,131)
usb_clear_halt(0x864a60,4)
BulkWrite to endpoint 4:
    00000000: 00 00 18 00 07 ff 00 07 52 49 4d 20 44 65 73 6b  
........RIM Desk
    00000010: 74 6f 70 00 00 00 00 00                          top.....

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 2c 00 08 05 00 07 52 49 4d 20 44 65 73 6b  
..,.....RIM Desk
    00000010: 74 6f 70 00 00 00 00 00 00 00 00 00 01 00 04 00  
top.............
    00000020: 02 00 04 00 03 01 00 00 04 01 00 00              ............

BulkWrite to endpoint 4:
    00000000: 00 00 08 00 0a 05 00 08                          ........

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 13 05 01 00 00 00 00 00              ............

Socket::Receive: Endpoint 131
Received:
    00000000: 00 00 10 00 0e 05 00 08 05 05 04 00 66 3c 99 8a  
............f<..

usb_release_interface(0x864a60,0)
Controller object destroyed in halfopen state, resetting device
usb_reset(0x864a60)
usb_close(0x864a60)
Barry::Error caught: Fewer than 6 password tries remaining in device. 
Refusing to proceed,
to avoid device zapping itself.  Use a Windows client, or re-cradle the 
device.






-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to