Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2014 08:31:56 +0200
From:      Gary Jennejohn <gljennjohn@gmail.com>
To:        Shane Ambler <FreeBSD@ShaneWare.Biz>
Cc:        Gary Jennejohn <gj@freebsd.org>, "Julian H. Stacey" <jhs@berklix.com>, current@freebsd.org
Subject:   Re: android bsd connectivity tools etc ?
Message-ID:  <20140814083156.394fc06a@ernst.home>
In-Reply-To: <53EC3930.6060604@ShaneWare.Biz>
References:  <201408132347.s7DNlcHU013055@fire.js.berklix.net> <53EC3930.6060604@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Aug 2014 13:51:04 +0930
Shane Ambler <FreeBSD@ShaneWare.Biz> wrote:

> On 14/08/2014 09:17, Julian H. Stacey wrote:
> > Hi,
> > Any tips for Android / FreeBSD BSD tools for connectivity etc ?
> > 
> > I just got a Samsung Galaxy Note 3, with Android 4.4.2 kernel 3.4.0
> 
> > I'll build a current from a 10.0-RELEASE partition, 
> > but now looking with 9.2-RELEASE I see:
> > 
> > /dev/
> > lrwxr-xr-x  1 root  wheel        9 Aug 14 00:01 ugen1.5@ -> usb/1.5.0
> > crw-------  1 root  operator  0x7a Aug 14 00:00 usb/1.5.0
> > crw-------  1 root  operator  0x8f Aug 14 00:00 usb/1.5.1
> > crw-------  1 root  operator  0x90 Aug 14 00:00 usb/1.5.2
> > 
> 
> I have a cheap Huawei phone running 2.3.6
> When I plug in the usb cable to charge it, it shows up as 3 devices
> 
> da0 at umass-sim1 bus 1 scbus5 target 0 lun 0
> da0: < Android Adapter 0100> Removable Direct Access SCSI-2 device
> cd1 at umass-sim1 bus 1 scbus5 target 0 lun 1
> cd1: < Android Adapter 0100> Removable CD-ROM SCSI-2 device
> da1 at umass-sim1 bus 1 scbus5 target 0 lun 2
> da1: < Android Adapter 0100> Removable Direct Access SCSI-2 device
> 
> On the phone I get a message to turn on usb mass storage after which I
> can mount_msdosfs /dev/da0s1 and get access to the sdcard in the phone.
> 
> It looks like mass storage was hidden in 4.0 and maybe removed after 4.2.
> Try searching the android app store for usb mass storage.
> 
> Online storage like google drive?
> 

Running HEAD-11.

I have a Zopo Z980+ running 4.2.2.  I see this when I plug it in:

Aug 14 08:19:44 ernst kernel: ugen6.2: <MediaTek> at usbus6
Aug 14 08:19:44 ernst kernel: umass0: <Mass Storage> on usbus6
Aug 14 08:19:44 ernst kernel: da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
Aug 14 08:19:44 ernst kernel: da0: <Linux File-CD Gadget 0000> Removable Direct Access SCSI-2 device
Aug 14 08:19:44 ernst kernel: da0: 40.000MB/s transfers
Aug 14 08:19:44 ernst kernel: da0: Attempt to query device size failed: NOT READY, Medium not present
Aug 14 08:19:44 ernst kernel: da0: quirks=0x2<NO_6_BYTE>
Aug 14 08:19:44 ernst kernel: da1 at umass-sim0 bus 0 scbus8 target 0 lun 1
Aug 14 08:19:44 ernst kernel: da1: <Linux File-CD Gadget 0000> Removable Direct Access SCSI-2 device
Aug 14 08:19:44 ernst kernel: da1: 40.000MB/s transfers
Aug 14 08:19:44 ernst kernel: da1: Attempt to query device size failed: NOT READY, Medium not present
Aug 14 08:19:44 ernst kernel: da1: quirks=0x2<NO_6_BYTE>

This trace corresponds to the internal and external storage.

After enabling USB storage on the phone I can mount the internal
storage, but not the external storage.

You have to be sure that USB debugging is turned off in the
developer options.  These may not even be visible on your
device because Google hid them at around 4.2.

I suspect that you just need some quirks to support the device.

-- 
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140814083156.394fc06a>