write eMMC

Hello!

I configure my BBB for my system. I disable the USB connect to Windows and other stuffs.

Now I want to copy this one to another for backup.
But when I copy the eMMC to my Linux machine with:

dd if=/dev/mmcblk0 bs=1M | ssh martin@192.168.1.67 'dd of=/home/martin/Documents/path/to/backup/origBBB.img bs=1M'

It work and generate the img

I flash this on a new sd card and try to flash the eMMC with holding S2 Button before power up.

But it seems not working ... the heartbeat LED is running and the CPu is flashing always a little bit.

Did I miss some files on the sd card for flashing the image on the eMMC?

Thank you!

You are not alone buddy!
I just booted up the BBB rev C with a blank 8gb sd card, ran /opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh on one BBB.

Then I moved the sd card to another BBB and used /opt/scripts/tools/beaglebone-black-eMMC-flasher.sh to put the image back on to the eMMC but first I had to fix an error in the script.

nano /opt/scripts/tools/beaglebone-black-eMMC-flasher.sh

Notice the Normal directory in both cp commands “cp -v /boot/uboot/Normal/MLO /tmp/boot/MLO || write_failure”

copy_boot () {
mkdir -p /tmp/boot/ || true
mount ${destination}p1 /tmp/boot/ -o sync
#Make sure the BootLoader gets copied first:
cp -v /boot/uboot/Normal/MLO /tmp/boot/MLO || write_failure
flush_cache_mounted

cp -v /boot/uboot/Normal/u-boot.img /tmp/boot/u-boot.img || write_failu$
flush_cache_mounted

rsync -aAXv /boot/uboot/ /tmp/boot/ --exclude={MLO,u-boot.img,*bak,flas$
flush_cache_mounted

unset root_uuid
root_uuid=$(/sbin/blkid -s UUID -o value ${destination}p2)
if [ “${root_uuid}” ] ; then

I do not have that directory on any of my BBB rev C.
So I modified it by just deleting the “Normal” part.

Now both cp line look like this, cp -v /boot/uboot/MLO

The scripts works but I still seem to have some issues as it boots in to Emergency mode.

I really can’t believe this BBB is so resistant to re-flashing! Pain in my butt!
And I am not the only one. Just do a Google and look at all the people having trouble doing a simple flash!

Good luck and may the force be with you!

You are not alone buddy!
I just booted up the BBB rev C with a blank 8gb sd card, ran
/opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh
on one BBB.

Then I moved the sd card to another BBB and used
/opt/scripts/tools/beaglebone-black-eMMC-flasher.sh to put the image back on
to the eMMC but first I had to fix an error in the script.

Why did you use the secondary script?

"/opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh"

Is designed to set everything up and just "flash" the next BBB...

nano /opt/scripts/tools/beaglebone-black-eMMC-flasher.sh

Don't use that script, the only reason it's in the repo is for the
ancient May 2014 release..

Regards,

PS, always run "git pull" under "/opt/scripts/" There is a
continuation of bug fixes being made to the flasher scripts..

Regards,

Hello!

I use now a normal Debian Image, boot from uSD and put a USB stick in the BBB.
Then I copy with dd the eMMC to the uSD

On the second BBB I do the same, but only write in the other direction with dd

It seems do work.
I´m not sure what the UUID means … in the scripts this is using.
Should I doesn´t made a exact 1:1 copy? Need each BBB an own UUID?

And mybe some can give me link to write the Backup/Restore uSD card with the steps I has to do?

Thank you!