Backup eMMc to SD-Card?

486 views
Skip to first unread message

KenUnix

unread,
Feb 11, 2020, 4:55:14 PM2/11/20
to BeagleBoard

After building a working system is it possible to back it up to an SD-Card?
Then unplug SD-Card and store?
Can that image then be used to restore the BBB?

If someone knows can you lay out the steps? Thanks.

.

evilwulfie

unread,
Feb 11, 2020, 5:45:27 PM2/11/20
to beagl...@googlegroups.com
script in /opt/scripts/tools i believe
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4552afc9-30fd-4150-801c-7ab7d2da022e%40googlegroups.com.

Alexander Zangerl

unread,
Feb 11, 2020, 5:59:48 PM2/11/20
to beagl...@googlegroups.com
On Tue, 11 Feb 2020 13:55:13 -0800, KenUnix writes:
>After building a working system is it possible to back it up to an SD-Card?
>Then unplug SD-Card and store?
>Can that image then be used to restore the BBB?

yes and yes.

>If someone knows can you lay out the steps? Thanks.

have a look at
/opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh

this script constructs a flashable image of your current emmc on an sd card.
that image on sd is set up so that when you boot it, it automatically
flashes the emmc with the contents of the sd image (= what you'd call
a restore).

(please note that the image maker shuts down your bbb once the image
making is done; if you dislike that then have fun modifying
/opt/scripts/tools/eMMC/functions.sh.)

the image made by the script differs from your working system in a few
minor aspects; for example its uEnv.txt is massaged to auto-invoke
the flasher on boot. i seem to recall that it massages the
fstab with a new UUID, and it likely makes a few other minor adjustments.
have a look at functions.sh for what those are.


--
Best Regards,
Alexander Zangerl
IT Engineer

BREATHE-SAFE intelligent cabin air filtration
Keeps your lungs and cabin dust free!
290 Beatty Road, Archerfield QLD 4108 Australia,
Tel: +61 7 3276 7833 M. +61 415 482 341 E. a...@breathe-safe.com

KenUnix

unread,
Mar 6, 2020, 12:10:53 PM3/6/20
to BeagleBoard
This is what I ended up with. The following lines into a little script file.

Run script as   sudo sh scriptname

#!/bin/sh
# Stop task timeout messages
echo 0 > /proc/sys/kernel/hung_task_timeout_secs
# Invoke builtin script
/opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh
# BBB automatically powers down at the end
Reply all
Reply to author
Forward
0 new messages