Re: android bsd connectivity tools etc ?

From: Gary Jennejohn <gljennjohn_at_gmail.com>
Date: Thu, 14 Aug 2014 08:31:56 +0200
On Thu, 14 Aug 2014 13:51:04 +0930
Shane Ambler <FreeBSD_at_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_at_ -> 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
Received on Thu Aug 14 2014 - 04:32:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC