From owner-freebsd-user-groups@FreeBSD.ORG  Mon Dec 27 20:38:03 2010
Return-Path: <owner-freebsd-user-groups@FreeBSD.ORG>
Delivered-To: freebsd-user-groups@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A9D4C106566B
	for <freebsd-user-groups@freebsd.org>;
	Mon, 27 Dec 2010 20:38:03 +0000 (UTC)
	(envelope-from fernando.apesteguia@gmail.com)
Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com
	[209.85.214.182])
	by mx1.freebsd.org (Postfix) with ESMTP id 74B488FC1B
	for <freebsd-user-groups@freebsd.org>;
	Mon, 27 Dec 2010 20:38:03 +0000 (UTC)
Received: by iwn39 with SMTP id 39so8980376iwn.13
	for <freebsd-user-groups@freebsd.org>;
	Mon, 27 Dec 2010 12:38:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:received:date:message-id
	:subject:from:to:content-type;
	bh=N72pEupkVVLVw8kN5QtgKKwt5scHeUWTKoy198P8gkA=;
	b=xEf2F3aLUozfoV6fgnN7OJYStZdmKO1e+OJc+Bi0VY8gm6abggDbYsENB8xak2EHSl
	wycjFDl7l8MO6ONMXWQKT0+iF3rF8T4CN8euCeiMihjlMetcyP8Kp9Nosxy896Qm9FiL
	jikt1+yfUhHjleFVExp0n7/oIA2RsXwllH84E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=hvsn+34z4d69xEVz26LlB/u+IfzoaCuBD2h0uIKUzM3A9s9bbvurZfetNSJ30JdtEN
	PQWB8brpp5QAtbMgJrm7NGeG7lSzP/4WB4xU1AtQ5Vk6eUwOLlv1axo/qIcFWMyMBDjT
	557vDuvmWwMszjsipldRrf6ny/mXWRzQDE9ck=
MIME-Version: 1.0
Received: by 10.42.167.131 with SMTP id s3mr12865213icy.288.1293480471656;
	Mon, 27 Dec 2010 12:07:51 -0800 (PST)
Received: by 10.42.25.77 with HTTP; Mon, 27 Dec 2010 12:07:51 -0800 (PST)
Date: Mon, 27 Dec 2010 21:07:51 +0100
Message-ID: <AANLkTimfDYJ6HQTC90bTDn04c-XRxm0X6rnfE3kZcru8@mail.gmail.com>
From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com>
To: freebsd-user-groups@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: FBSD 8.1 and Android phone
X-BeenThere: freebsd-user-groups@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User Group Coordination List <freebsd-user-groups.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-user-groups>,
	<mailto:freebsd-user-groups-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-user-groups>
List-Post: <mailto:freebsd-user-groups@freebsd.org>
List-Help: <mailto:freebsd-user-groups-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-user-groups>,
	<mailto:freebsd-user-groups-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 27 Dec 2010 20:38:03 -0000

Hi all,

I bought a GeeksPhone One[1]. It uses Android 2.2.1. I'm trying to get
FreeBDS recognize the phone.
When I plug it to the USB port and activate the "Storage" option, this
is what dmesg reports:

ugen7.3: <Geeksphone> at usbus7
umass1: <Geeksphone ONE Android Phone, class 0/0, rev 2.00/2.26, addr
3> on usbus7
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0
(Invalid field in CDB)
(da4:umass-sim1:1:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0
(da4:umass-sim1:1:0:0): SCSI sense: Error code 0x72
(da4:umass-sim1:1:0:0): fatal error, failed to attach to device
(da4:umass-sim1:1:0:0): lost device
(da4:umass-sim1:1:0:0): removing device entry

This is the output of camcontrol devlist
$ camcontrol devlist
<TSSTcorp CDDVDW TS-H653N 0208>    at scbus1 target 0 lun 0 (pass0,cd0)
<Generic USB SD Reader 1.00>       at scbus2 target 0 lun 0 (pass1,da0)
<Generic USB CF Reader 1.01>       at scbus2 target 0 lun 1 (pass2,da1)
<Generic USB SM Reader 1.02>       at scbus2 target 0 lun 2 (pass3,da2)
<Generic USB MS Reader 1.03>       at scbus2 target 0 lun 3 (pass4,da3)
<Android Mass Storage 1000>        at scbus3 target 0 lun 0 (pass5)

I tried to reset (all) the devices. For bus 2 I think the error is
normal since I don't have any cards inside the card reader.
$ camcontrol reset all
Reset of bus 0 was successful
Reset of bus 1 was successful
Reset of bus 2 returned error 0x3a
Reset of bus 3 returned error 0x3a

Just for the record, the phone is properly recognized in both Ubuntu
10.10 and Fedora 14:

[   38.902038] usb 2-1: new high speed USB device using ehci_hcd and address 3
[   39.018432] usb 2-1: New USB device found, idVendor=0489, idProduct=c001
[   39.018437] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   39.018440] usb 2-1: Product: ONE Android Phone
[   39.018442] usb 2-1: Manufacturer: Geeksphone
[   39.018444] usb 2-1: SerialNumber: XXXXXXXXXXXX
[   39.030778] scsi7 : usb-storage 2-1:1.0
[   40.033204] scsi 7:0:0:0: Direct-Access     Android  Mass Storage
  1000 PQ: 0 ANSI: 2
[   40.035213] sd 7:0:0:0: Attached scsi generic sg6 type 0
[   40.048431] sd 7:0:0:0: [sdf] Attached SCSI removable disk
[   62.052920] sd 7:0:0:0: [sdf] 15548416 512-byte logical blocks:
(7.96 GB/7.41 GiB)
[   62.053541] sd 7:0:0:0: [sdf] Assuming drive cache: write through
[   62.055163] sd 7:0:0:0: [sdf] Assuming drive cache: write through
[   62.055171]  sdf: sdf1
[   62.424607] SELinux: initialized (dev sdf1, type vfat), uses genfs_contexts

Maybe I'm doing something wrong as I'm an ignorant about cam(3) and
camcontrol(5).

Any help is appreciated.

Cheers

[1] http://www.geeksphone.com/en/moviles/especificaciones.php