I am trying to clone an existing BBB, so my first try is using the scripts on http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents . So first thing I notice is the .img file created was only 2GB, whereas this is a newer BBB that has 4GB eMMC. So when I updated script to write the img to new BBB, it no longer boots from eMMC. i would like to make exact copies including uENV.txt, etc. Does anyone know why this is not working?
The read command script is
#!/bin/sh
echo timer > /sys/class/leds/beaglebone:green:usr0/trigger
dd if=/dev/mmcblk1 of=/mnt/BeagleBoneBlack-eMMC-image-$RANDOM.img bs=10M
sync
echo default-on > /sys/class/leds/beaglebone:green:usr0/trigge