Composite Mass Storage and Ethernet emulation

826 views
Skip to first unread message

Rene

unread,
Mar 26, 2015, 9:04:39 PM3/26/15
to usba...@googlegroups.com
i Followed the instructions for doing this using:
g_multi use_eem=0 dev_addr=aa:bb:cc:dd:ee:f1 host_addr=aa:bb:cc:dd:ee:f2 file=disk.img

Using the dev_addr and host_addr that show up on my /etc/modules, my file is in a different partition following http://www.linux-usb.org/gadget/file_storage.html

is this supported out of the box in OSX?i have not been able to get it, i do not get the ethernet emulation or the mass storage.

Thanks

Andrea Barisani

unread,
Mar 26, 2015, 9:08:34 PM3/26/15
to Rene, usba...@googlegroups.com

I haven't personally tested this on OSX but in principle this should work on any OS that can see the standalone g_ether one.

Can you debug how the USB device gets enumerated by OSX?

Are you positive that the module is loaded correctly? Are there any logged errors on the USB armory?

Thanks

> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "USB armory" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to usbarmory+...@googlegroups.com.
> To post to this group, send email to usba...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/usbarmory/ed145a69-004a-424f-b09e-f5e8d97721b3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rene

unread,
Mar 26, 2015, 9:12:42 PM3/26/15
to usba...@googlegroups.com, rene.de...@gmail.com
After i do that and reboot i cannot ssh to the USB armory, Im downloading the latest image to test again.

Chris Kuethe

unread,
Mar 26, 2015, 9:25:43 PM3/26/15
to Rene, usba...@googlegroups.com

I have not gotten it to work yet either, and I see no success reports on stackoverflow. Works great with Linux, osx doesn't detect anything at all, which means I pass it through vmware either. More tinkering required...

Message has been deleted

Rene

unread,
Mar 26, 2015, 10:20:08 PM3/26/15
to usba...@googlegroups.com
hc [50004000.esdhc] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
TCP: cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Waiting for root device /dev/mmcblk0p1...
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDXC card at address e624
mmcblk0: mmc0:e624 SE64G 59.4 GiB 
 mmcblk0: p1
EXT4-fs (mmcblk0p1): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p1): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:1.
devtmpfs: mounted
Freeing unused kernel memory: 132K (803cf000 - 803f0000)
This is some of the log:
udevd[150]: starting version 175
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ci_hdrc ci_hdrc.0: ChipIdea HDRC found, lpm: 0; cap: a0896100 op: a0896140
ci_hdrc ci_hdrc.0: It is OTG capable controller
EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
g_multi: unknown parameter 'use_eem' ignored
using random self ethernet address
using random host ethernet address
using host ethernet address: 1a:55:89:a2:69:42
using self ethernet address: 1a:55:89:a2:69:41<4>using random self ethernet address
using random host ethernet address
using host ethernet address: 1a:55:89:a2:69:42
using self ethernet address: 1a:55:89:a2:69:41<6>usb0: HOST MAC 1a:55:89:a2:69:42
usb0: MAC 1a:55:89:a2:69:41
Number of LUNs=8
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
Number of LUNs=1
LUN: file: /root/storage.img
Number of LUNs=1
g_multi gadget: Multifunction Composite Gadget
g_multi gadget: userspace failed to provide iSerialNumber
g_multi gadget: g_multi ready
random: vgscan urandom read with 38 bits of entropy available
g_multi gadget: high-speed config #1: Multifunction with RNDIS
NET: Registered protocol family 10

On Thursday, March 26, 2015 at 8:48:37 PM UTC-5, Rene wrote:
i just did this, and the mass storage worked, but no ssh now

On Thu, Mar 26, 2015 at 8:25 PM, Chris Kuethe <> wrote:
I have not gotten it to work yet either, and I see no success reports on stackoverflow. Works great with Linux, osx doesn't detect anything at all, which means I pass it through vmware either. More tinkering required...

On Mar 26, 2015 18:12, "Rene" <> wrote:
After i do that and reboot i cannot ssh to the USB armory, Im downloading the latest image to test again.

On Thursday, March 26, 2015 at 8:08:34 PM UTC-5, Andrea Barisani wrote:
On 27 Mar 2015 09:04, "Rene" <> wrote:
>
> i Followed the instructions for doing this using:
> g_multi use_eem=0 dev_addr=aa:bb:cc:dd:ee:f1 host_addr=aa:bb:cc:dd:ee:f2 file=disk.img
>
> Using the dev_addr and host_addr that show up on my /etc/modules, my file is in a different partition following http://www.linux-usb.org/gadget/file_storage.html
>
> is this supported out of the box in OSX?i have not been able to get it, i do not get the ethernet emulation or the mass storage.
>

I haven't personally tested this on OSX but in principle this should work on any OS that can see the standalone g_ether one.

Can you debug how the USB device gets enumerated by OSX?

Are you positive that the module is loaded correctly? Are there any logged errors on the USB armory?

Thanks

> Thanks
>
> -- 
> You received this message because you are subscribed to the Google Groups "USB armory" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to usbarmory+...@googlegroups.com.
> To post to this group, send email to usba...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
-- 
You received this message because you are subscribed to the Google Groups "USB armory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to usbarmory+...@googlegroups.com.
To post to this group, send email to usba...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



-- 
Rene

CeBep

unread,
May 21, 2016, 6:49:30 PM5/21/16
to USB armory
Has anyone able to make it work? Thanks

AJ

unread,
Sep 30, 2016, 6:10:00 PM9/30/16
to USB armory
i am having the same problem
Reply all
Reply to author
Forward
0 new messages