I haven't moved files. I moved entire flash image. Firstly, created working 
2GB SD card, then copied it on the linux PC to a file using DD tool. Then 
booted from SD, mounted NFS to see the file and DDed into /dev/mmcblk1. If 
you bother with silent of DD tool, you may use great PV utility e.g: pv 
/dev/sdb | dd of=my_sd_image.bin
Note, when booted from SD, SD device is /dev/mmcblk0 and eMMC is 
/dev/mmcblk1. When booted from eMMC, /dev/mmcblk0 is eMMC!
Cheers, 
Piotr.
 

W dniu środa, 30 kwietnia 2014 00:17:40 UTC+2 użytkownik [email protected] 
napisał:
>
> I've been using an SD card to dev on my board similar to the BBB for a 
> while, but I'd like to start using the eMMC instead. I've made 
> modifications to U-Boot/the kernel/the root filesystem, so I'd like to be 
> able to flash the eMMC based on my own pre-existing image.
>
> From my understanding, the "emmc-prepare.sh" script 
> <https://github.com/beagleboard/meta-beagleboard/blob/master/contrib/bone-flash-tool/emmc-prepare.sh>from
>  
> the meta-beagleboard layer of the OpenEmbedded build system. I'm not sure 
> if there are other tools to accomplish this, but this is the only thing 
> I've tried so far.
>
> I'm mostly confused by the parameters at the start of the script and what 
> each one represents. These are my assumptions:
>
> *IMAGE=*
> I'm not sure on this. I'm guessing that this is the raw image that will be 
> flashed into the eMMC? Or maybe the output image name?
>
> *DEPLOYDIR=*
> This defaults to the location of the output images from Angstrom's bitbake 
> build, so my guess is that this is the directory that contains U-Boot 
> images, the filesystem and all that jazz. 
>
> *MOUNTPOINT=*
> *MOUNTPOINT1=*
> Based on emmc.sh, it looks like MOUNTPOINT1 is the location of the SD card 
> boot partition and MOUNTPOINT is the location of the file system partition. 
> On my SD card these are currently /media/myname/BEAGLE_BONE and 
> /media/myname/Angstrom, respectively.
>
> *FLASHIMG=*
> The default for this is a tar.gz file for the Linux root file system, so 
> my assumption was that this should be the .tar.gz of my modified root file 
> system in the DEPLOYDIR directory. 
>
> *SCRATCHDIR=*
> A temporary directory?
>
> I've tried modifying these a few times, but I've never gotten the script 
> to get very far. The farthest I've ever gotten is when I set IMAGE to an 
> exact image of the SD card I'm booting my board with, and with that same SD 
> card inserted in my computer and mounted. In that case I get the following 
> output:
>
>
>
>
>
>
>
>
>
>
> *Trying to attach image filedevice-mapper: resume ioctl on loop0p2 failed: 
> Invalid argumentcreate/reload failed on loop0p2Loopdev: 
> loop0/media/myname/BEAGLE_BONE already mounted, trying to unmountMounting 
> /dev/mapper/loop0p1mount: mount point /media/myname/BEAGLE_BONE does not 
> existmyname@ubuntu:~/Dev/meta-beagleboard/contrib/bone-flash-tool$*I'm 
> not really sure what the loop related errors mean, but it looks like the 
> script is unmounting my SD card boot partition, remounting and it and then 
> failing. /media/myname/BEAGLE_BONE is definitely still there after the 
> scripts fails, so I'm not really sure why this error is being thrown.
>
> Any help understanding this would be appreciated. 
>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to