Re: [DNG] USB file transfer to your Android device

2016-05-12 Thread Brad Campbell

On 13/05/16 09:35, Steve Litt wrote:

The following document looked pretty good, but the author kept pulling
unexplained things out of every orifice, so it was impossible to know
how the commands applied to me:

https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines

USB passthrough is a pretty complex thing because I have a Void host, a
Devuan guest, by necessity I have a USB hub. There are so many
variables that, without finding a person who really knows how this
stuff works, I could spend days.


Hey Steve,

USB passthrough can be either complex or simple. I kinda like it the 
simple way.


Here's how I pass iOS devices through to a Windows VM on my desktop and 
laptop.


 I add these three lines to my qemu command line script

 -usb\
 -device nec-usb-xhci,id=xhci\
 -device usb-host,bus=xhci.0,vendorid=0x05ac,productid=0x1261 \

The first tells qemu we want the usb stack. The second creates a virtual 
xhci controller and associated root hub, and the third assigns any 
device plugged into the host with the VID/PID pair through to the VM.


With that, when I plug my iOS device into the host, qemu claims it and 
pokes it through to the VM. VID/PID can be just pulled from lsusb when 
you plug the device into your host.


There are other ways whereby you can attache busses and hubs to the qemu 
instance, but that seems pretty complex when you just want to pass a 
single device through (or multiple devices even).


eg :
 -usb\
 -device nec-usb-xhci,id=xhci\
 -device usb-host,bus=xhci.0,vendorid=0x05ac,productid=0x1261 \
 -device usb-host,bus=xhci.0,vendorid=0x05ac,productid=0x12ab \
 -device usb-host,bus=xhci.0,vendorid=0x05ac,productid=0x12aa \
 -device usb-host,bus=xhci.0,vendorid=0x05ac,productid=0x1281 \


That passes through my iPad, my Wife's iPad, my iPod and a mates iPod if 
any or all of them are connected to the host simultaneously.


Now this works with pretty much anything I've tried from iPads to HASP 
dongles, digital cameras. You get the idea.


When I pass through my Blackberry for a firmware update, it uses one PID 
for normal mode and another PID for the bootloader, so I need both of 
those. Come to think of it, so do the iOS devices when you are firmware 
updating them. Just claim both and you are good to go.


Normally I'd just pass the VID through  and wildcard the PID, but since 
my desktop and laptop are Apple hardware I end up claiming the accessory 
devices as well (like camera, sound card and keyboard), so I use both 
VID and PID.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-12 Thread Steve Litt
On Wed, 11 May 2016 18:03:23 +0200
Adam Borowski  wrote:

> On Wed, May 11, 2016 at 11:31:19AM -0400, Steve Litt wrote:
> > Unfortunately, I don't have metal hardware installed with Devuan,
> > and I don't know how to simulate USB on Qemu VM guests, so this
> > wasn't done on Devuan.  
> 
> http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest

Thanks Adam,

Unfortunately, I couldn't get the preceding to work. I googled for a
couple hours and tried to get some way to do USB passthrough, but
everything I found was both ambiguous and contradicted the other things
on the net.

The following document looked pretty good, but the author kept pulling
unexplained things out of every orifice, so it was impossible to know
how the commands applied to me:

https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines

USB passthrough is a pretty complex thing because I have a Void host, a
Devuan guest, by necessity I have a USB hub. There are so many
variables that, without finding a person who really knows how this
stuff works, I could spend days.

Thanks,

SteveT

Steve Litt 
May 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-11 Thread David Hare
Using jmtpfs on more than one "real" Devuan installs, no problem
mounting mtp android. Here even libsystemd0 is excluded. I do have
(only) a few of Adam's packages installed but doubt if that makes any
difference.

D

On 11 May 2016 at 17:37, Steve Litt  wrote:
> On Wed, 11 May 2016 17:12:21 +0100
> KatolaZ  wrote:
>
>> On Wed, May 11, 2016 at 06:03:23PM +0200, Adam Borowski wrote:
>>
>> [cut]
>>
>> >
>> > > If you find some more Devuan-related info on mounting Androids,
>> > > please supercede this email.
>> >
>> > jmtpfs works fine for me.  That's on Debian with my nosystemd
>> > packages, but I see no reason to expect real Devuan to work
>> > differently.
>>
>> I confirm I have been using jmtpfs in Devuan, without problems.
>
> After using Adam's Qemu-USB technique, I'll get back to you with my
> jmtpfs results as well as simple-mtpfs.
>
> Thanks for the info!
>
> SteveT
>
> Steve Litt
> May 2016 featured book: Rapid Learning for the 21st Century
> http://www.troubleshooters.com/rl21
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-11 Thread Steve Litt
On Wed, 11 May 2016 17:12:21 +0100
KatolaZ  wrote:

> On Wed, May 11, 2016 at 06:03:23PM +0200, Adam Borowski wrote:
> 
> [cut]
> 
> >   
> > > If you find some more Devuan-related info on mounting Androids,
> > > please supercede this email.  
> > 
> > jmtpfs works fine for me.  That's on Debian with my nosystemd
> > packages, but I see no reason to expect real Devuan to work
> > differently. 
> 
> I confirm I have been using jmtpfs in Devuan, without problems.

After using Adam's Qemu-USB technique, I'll get back to you with my
jmtpfs results as well as simple-mtpfs.

Thanks for the info!
 
SteveT

Steve Litt 
May 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-11 Thread Steve Litt
On Wed, 11 May 2016 18:03:23 +0200
Adam Borowski  wrote:

> On Wed, May 11, 2016 at 11:31:19AM -0400, Steve Litt wrote:
> > Unfortunately, I don't have metal hardware installed with Devuan,
> > and I don't know how to simulate USB on Qemu VM guests, so this
> > wasn't done on Devuan.  
> 
> http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest

Nice! Very, very nice!

I'll get my results back to you within 24 hours.
 
SteveT

Steve Litt 
May 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-11 Thread KatolaZ
On Wed, May 11, 2016 at 06:03:23PM +0200, Adam Borowski wrote:

[cut]

> 
> > If you find some more Devuan-related info on mounting Androids, please
> > supercede this email.
> 
> jmtpfs works fine for me.  That's on Debian with my nosystemd packages, but
> I see no reason to expect real Devuan to work differently.
> 

I confirm I have been using jmtpfs in Devuan, without problems.

HND

KatolaZ

-- 
[ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ]
[ me [at] katolaz.homeunix.net -- http://katolaz.homeunix.net -- ]
[ GNU/Linux User:#325780/ICQ UIN: #258332181/GPG key ID 0B5F062F ]
[ Fingerprint: 8E59 D6AA 445E FDB4 A153 3D5A 5F20 B3AE 0B5F 062F ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] USB file transfer to your Android device

2016-05-11 Thread Adam Borowski
On Wed, May 11, 2016 at 11:31:19AM -0400, Steve Litt wrote:
> Unfortunately, I don't have metal hardware installed with Devuan, and I
> don't know how to simulate USB on Qemu VM guests, so this wasn't done
> on Devuan.

http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest

Virtualbox equivalent:
apt-get install virtualbox-ext-pack

> If you find some more Devuan-related info on mounting Androids, please
> supercede this email.

jmtpfs works fine for me.  That's on Debian with my nosystemd packages, but
I see no reason to expect real Devuan to work differently.

-- 
How to exploit the Bible for weight loss:
Pr28:25: he that putteth his trust in the ʟᴏʀᴅ shall be made fat.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] USB file transfer to your Android device

2016-05-11 Thread Steve Litt
Hi all,

Modern Android type devices can't be mounted as /dev/sd?. So instead
what I did is install simple-mtpfs, and do the following as root:

mkdir /mnt/tablet
simple-mtpfs -l
simple-mtpfs /mnt/tablet

I don't know why the middle statement is necessary, but I found it to
be so. Once the third statement was complete, the Android's hard drive
(I believe its root partition) was mounted read-write on /mnt/tablet.

Unfortunately, I don't have metal hardware installed with Devuan, and I
don't know how to simulate USB on Qemu VM guests, so this wasn't done
on Devuan. If you find some more Devuan-related info on mounting
Androids, please supercede this email.

Thanks,

SteveT

Steve Litt 
April 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng