--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
Start up the source BBB, booting Ubuntu off eMMC.
In order for this to work, uEnv.txt and /etc/fstab must use UUIDs for the root file system. My fstab was automatically generated and used UUIDs, however, uEnv.txt did not which meant the copy process did not function properly.
So you have to make sure uEnv.txt uses UUIDs. So, to the Find out what your UUIDs are
brian@arm:/boot/uboot$ sudo blkid
/dev/mmcblk0p1: LABEL="storage" UUID="5bdb27fd-1cb8-4a08-b2c2-51062e8b2fa7" TYPE="ext4"
/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="boot" UUID="AEA7-4FDD" TYPE="vfat"
/dev/mmcblk1p2: LABEL="rootfs" UUID="d933e4fe-59f6-4344-9935-8f86c04b7481" TYPE="ext4"
Edit uEnv.txt to use UUID for rootfs
sudo nano /boot/uboot/uEnv.txt
Replace the line
mmcroot=/dev/mmcblk1p2 ro
With the UUID of the root (i.e :UUID=d933e4fe-59f6-4344-9935-8f86c04b7481) and add mmcrootfstype as appropriate
mmcroot=UUID=d933e4fe-59f6-4344-9935-8f86c04b7481
mmcrootfstype=ext4 rootwait fixrtc
Save the file, double check to make sure you've saved it, made the right changes, etc..
Now to make a copy image (you do this once). On the Source BBB Remove Powe
Insert bootable microSD ( I used Angstrom, marked ‘O’)
Insert thumb drive
Push ‘Boot’ button (near microSD card) and insert power AT LEAST until all 4 LEDs light
Log in (as root, no password)
df - to see where the Thumb drive is mounted (/media/Lexar)
cd /media/Lexar
fdisk –l to list drives (eMMC will probably be /dev/mmcblk1)
Copy mcblk1 to a backup image
dd if=/dev/mmcblk1 of=BeagleBoneBlack-eMMC-image-Jan82014.img bs=10M
(This takes about 5 minutes and you should get a result like this:
183+1 records in
183+1 records out
1920991232 bytes (1.9 GB) copied, 336.935 s, 5.7 MB/s
On the second (destination) BBB Remove Power
Insert bootable microSD ( I used Angstrom, marked ‘O’)
Insert thumb drive
Push ‘Boot’ button (near microSD card) and insert power AT LEAST until all 4 LEDs light
df - to see where the Thumb drive is mounted (/media/Lexar)
cd to the thumb drive /media/Lexar
fdisk –l to list drives (eMMC will probably be /dev/mmcblk1)
Copy backup image to mcblk1
dd if=BeagleBoneBlack-eMMC-image-Jan82014.img of=/dev/mmcblk1 bs=10M
And get this result
183+1 records in
183+1 records out
1920991232 bytes (1.9 GB) copied, 303.132 s, 6.3 MB/s
Remove the uSD and USB Stick, reboot, log in and, find out what your UUIDs are (they should be the same as the source BBB)
brian@arm:/boot/uboot$ sudo blkid
/dev/mmcblk0p1: LABEL="storage" UUID="5bdb27fd-1cb8-4a08-b2c2-51062e8b2fa7" TYPE="ext4"
/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="boot" UUID="AEA7-4FDD" TYPE="vfat"
/dev/mmcblk1p2: LABEL="rootfs" UUID="d933e4fe-59f6-4344-9935-8f86c04b7481" TYPE="ext4"