I'm using a beaglebone Black, debian. 4.1.15-ti-rt-43. I'm trying to achieve the same thing. -- accessing my external storage SD card (in the BBB which is booting off emmc). I have log files which I save to the SD card and I want to access them by connecting my beaglebone to the computer (instead of taking out the SD card, putting it into a reader and then into my computer).
However, /usr/bin/g-ether-load.sh and /lib/systemd/system/storage-gadget-init.service don't exist where it's said to in this answer, so I don't know how to proceed. On Friday, August 2, 2013 at 9:38:58 AM UTC-4, Jason Kridner wrote: > > I need to read more carefully... for some reason, I had it in my head you > wanted to access the eMMC. I read below you actually want to access the SD > card. That *is* possible to share over USB as a mass-storage class device, > if you have an updated kernel. More below... > > On Fri, Aug 2, 2013 at 9:27 AM, Jason Kridner <jkri...@beagleboard.org > <javascript:>> wrote: > >> Actually, there are ways to enable Windows to see Linux partitions: >> http://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/ >> >> Neither that nor VMWare will help you see the ext4 partition using the >> default Angstrom image on the BeagleBone Black because only the FAT >> partition is shared. Sharing drives as mass-storage class devices at the >> same time they are mounted on another system is a recipe for disaster. The >> idea promoted in this current solution is that the FAT partition on the >> eMMC is for the exclusive use of the PC host after boot. During boot, files >> like the uEnv.txt are read, providing a mechanism for external systems to >> update the boot parameters. >> >> What you most likely really want to do is use sshfs. A protocol like >> sshfs uses the BeagleBone Black's running file system code to access the >> disk, rather than exposing the raw file system to the host. It runs over a >> network connection, like the one provided by the RNDIS driver over USB and >> equally over Ethernet. It uses the sshd server running on the BeagleBone >> Black to establish a connection and to read/write files. >> >> Here is the first one I found with a google search: >> https://code.google.com/p/win-sshfs/ >> >> I cannot speak to its functionality/quality. >> >> >> >> On Fri, Aug 2, 2013 at 8:54 AM, Juan C. <cortez...@gmail.com >> <javascript:>> wrote: >> >>> You can always install VMWare (http://www.vmware.com/products/player/) on >>> your PC and run a virtual Linux operating system. >>> >>> >>> On Friday, August 2, 2013 5:26:10 AM UTC-5, dermiem wrote: >>>> >>>> Hi, >>>> >>>> I am powering my BBB from an external power supply and am not using the >>>> mini USB cable. >>>> I have an SD card installed and visible within the Linux file system. >>>> >>> > I should have read this closer first! > > >> I have added a uEnv.txt file to the SD card so that the BBB boots from >>>> eMMC and not the SD card. >>>> >>>> When I connect to a PC using a regular USB cable (ie not the mini USB >>>> cable), the PC recognizes the device as a USB flash device. >>>> The PC can only see /media/BEAGLEBONE. >>>> >>> > This is the eMMC shared using g_multi. The script that gets run to do this > sharing is at /usr/bin/g-ether-load.sh. That script is called during boot > using /lib/systemd/system/storage-gadget-init.service. > > >> I would like to be able to configure the BBB so that the PC sees >>>> /media/SDVolume instead. >>>> Where SDVolume is the name of the volume created on the SD card. >>>> >>>> How do I do this? >>>> >>> > You'll want to disable the g_multi driver that is there. 'systemctl > disable storage-gadget-init.service' should prevent it from being loaded > after the next reboot. > > You'll need to make sure the SD card doesn't get mounted by the BeagleBone > Black's filesystem code. That would conflict with serving it up over USB. > You can't have both of them access it at once. My comments about 'sshfs' > still stand in that regards. > > Next, you'll want to 'modprobe g_mass_storage file=/dev/mmcblk1 cdrom=0 > stall=0 removable=1 nofua=1' or something like that. There are lots of > references on the internet on how to use g_mass_storage. You'll need to > make sure you are pointing to the right device. Give it a shot and report > what you find. > > FYI, g_mass_storage.ko should exist at > /lib/modules/3.8.13/kernel/drivers/usb/gadget or so. > > >> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "BeagleBoard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to beagleboard...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/bceb4d30-a3b2-4886-be7c-6b9d0bc96d37%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.