mmcblk1boot0 179:16 0 2M 1 disk
mmcblk1boot1 179:24 0 2M 1 disk
mmcblk0 179:0 0 14.7G 0 disk
`-mmcblk0p1 179:1 0 1.7G 0 part /
mmcblk1 179:8 0 3.6G 0 disk
|-mmcblk1p1 179:9 0 96M 0 part
`-mmcblk1p2 179:10 0 3.5G 0 part
william@beaglebone:~$ ls
am33xx-pruss-uio.dts dev remove-modules.sh temp
william@beaglebone:~$ cd dev/
william@beaglebone:~/dev$ ls
C beaglebone_cleanup bonejs dtb-4.4-ti dtb-single javascript misc test-dts
william@beaglebone:~/dev$ mkdir backup-emmc
william@beaglebone:~/dev$ cd backup-emmc/
This is an NFS share, so will take a while.william@beaglebone:~/dev/backup-emmc$ time sudo dd if=/dev/mmcblk1 of=./2016-07-27-emmc_backup.img bs=1M
[sudo] password for william:
3688+0 records in
3688+0 records out
3867148288 bytes (3.9 GB) copied, 451.522 s, 8.6 MB/s
real 7m36.950s
user 0m0.252s
sys 1m5.144s
william@beaglebone:~/dev/backup-emmc$ sudo halt
At this point remove the sdcard from the x86 dev machine, and place into the Beaglebone. Then toggle the power button.
If you have a serial debug cable connected to the beaglebone, you can watch the progress of the flasher. This should
finish very quickly. Once the LEDs all go solid, the board is in the process of shutting down. Let all LEDs go off, and
stay off before removing the sdcard and attempting to boot from eMMC.
Once booted from eMMC on the Beaglebone you can login via the serial debug terminal. Or you can login via ssh.debian@beaglebone:~$ lsblk
mmcblk1boot0 179:16 0 2M 1 disk
mmcblk1boot1 179:24 0 2M 1 disk
mmcblk0 179:0 0 14.7G 0 disk
`-mmcblk0p1 179:1 0 1.7G 0 part /
mmcblk1 179:8 0 3.6G 0 disk
`-mmcblk1p1 179:9 0 3.6G 0 part
william@beaglebone:~$ ls /
ID.txt boot etc lib media nfs-uEnv.txt opt root sbin sys uEnv.txt var
bin dev home lost+found mnt node_modules proc run srv tmp usr
william@beaglebone:~$ ls /media/
william@beaglebone:~$ sudo mkdir /media/rootfs
william@beaglebone:~$ sudo mount /dev/mmcblk1p1 /media/rootfs/
william@beaglebone:/media/rootfs$ sudo rm -rf /media/rootfs/
william@beaglebone:~$ ls /media/rootfs/ /* Crickets . . . */
Switched to x86 dev machine:william@eee-pc:~$ ls cleanup/downloads/linux-images/
bone-debian-7.7-console-armhf-2014-11-19-2gb.img bone-debian-8.0-console-armhf-2015-05-04-2gb.img
bone-debian-7.8-console-armhf-2015-03-01-2gb.img v3.8.13-bone47
william@eee-pc:~$ sudo fdisk -lu cleanup/downloads/linux-images/bone-debian-7.8-console-armhf-2015-03-01-2gb.img
Disk cleanup/downloads/linux-images/bone-debian-7.8-console-armhf-2015-03-01-2gb.img: 1782 MB, 1782579200 bytes
184 heads, 31 sectors/track, 610 cylinders, total 3481600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
cleanup/downloads/linux-images/bone-debian-7.8-console-armhf-2015-03-01-2gb.img1 * 2048 3481599 1739776 83 Linux
offset= 512 * 2048 or sector size * startwilliam@eee-pc:~$ sudo mount -o loop,offset=1048576 cleanup/downloads/linux-images/bone-debian-7.8-console-armhf-2015-03-01-2gb.img /media/rootfs/
william@eee-pc:~$ cd /media/rootfs/
william@eee-pc:/media/rootfs$ ls
bin dev home lib media nfs-uEnv.txt proc run selinux sys uEnv.txt usr
boot etc ID.txt lost+found mnt opt root sbin srv tmp uEnv.txt.save var
william@eee-pc:/media/rootfs$ cat etc/dogtag
BeagleBoard.org Debian Image 2015-03-01
william@eee-pc:/media/rootfs$ sudo tar -zcvpf ~/test-rootfs.tar.gz .
william@eee-pc:/media/rootfs$ cd ~
william@eee-pc:~$ sudo umount /media/rootfs/
william@eee-pc:~$ mv test-rootfs.tar.gz share/
switch back to beaglebone:william@beaglebone:~$ cd dev/
william@beaglebone:~/dev$ ls | grep rootfs
test-rootfs.tar.gz
william@beaglebone:~/dev$ sudo tar xzvf ./test-rootfs.tar.gz -C /media/rootfs/
william@beaglebone:~/dev$ ls /media/rootfs/
ID.txt boot etc lib media nfs-uEnv.txt proc run selinux sys uEnv.txt usr
bin dev home lost+found mnt opt root sbin srv tmp uEnv.txt.save var
william@beaglebone:~$ cd /media/rootfs/
william@beaglebone:/media/rootfs$ cat etc/fstab
# /etc/fstab: static file system information.
#
# Auto generated by RootStock-NG: setup_sdcard.sh
#
/dev/mmcblk0p1 / ext4 noatime,errors=remount-ro 0 1
debugfs /sys/kernel/debug debugfs defaults 0 0
Looks good.william@beaglebone:/media/rootfs$ cat etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.254.167
netmask 255.255.255.0
gateway 192.168.254.254
william@beaglebone:/media/rootfs$ cat etc/resolv.conf
nameserver 192.168.254.254
william@beaglebone:/media/rootfs$ head boot/uEnv.txt
#Docs:
http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0uname_r=3.8.13-bone70
#dtb=
cmdline=root=/dev/mmcblk0p1
##Example
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=
william@beaglebone:/media/rootfs$ cd ~
william@beaglebone:~$ sudo umount /media/rootfs/
william@beaglebone:~/dev$ sudo halt
Remove sdcard and toggle the power button.debian@beaglebone:~$ uname -r
3.8.13-bone70
debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2015-03-01
debian@beaglebone:~$ lsblk