4/6/22
Needed:
Procedure:
Via the Terminal screen copy the OpenAPS Edison memory block to the USB drive.
Command: ls /dev/sda*
You should see a device named sda1. If you see two sda devices, use the higher numerical device. That should be the USB stick drive.
Make a directory:
Command: mkdir /media/usb
Mount the sda device as /media/usb:
Command: mount /dev/<replace this with sda device name> /media/usb
Verify that you have mounted the USB stick drive
Command: ls /media/usb
You should see the file that you previously created on the USB stick drive.
Copy the main memory block out of the Edison SOC to the USB Stick drive
Command: dd if=/dev/mmcblk0 of=/media/usb/edison_backup.img
Let this run and note the number of blocks that was moved. This will take 15 minutes or more.
Unplug the barrel power connector.
Unplug the Micro USB cable.
Write the saved image to the target Edison SOC
Remove your OpenAPS Edison SOC and replace it with the target Edison SOC.
Plug in the barrel power connector.
Connect the MicroUSB cable to the same corner port.
Connect to the destination Edison with PUTTY. Note that the COM port may change! Check the Device Manager window that you minimized.
Make a directory:
Command: mkdir /media/usb
Mount the sda device as /media/usb with:
Command: mount /dev/<replace this with sda device name> /media/usb
Copy the image on the USB Stick drive to the main memory block of the Edison SOC
dd if=/media/usb/edison_backup.img of=/dev/mmcblk0
This may take 30 minutes or so.
Note the number of blocks copied. It should match the number of blocks written previously.
When it is done, disconnect the barrel power plug and microUSB cable. Then reconnect the power cable and microUSB cable and reconnect via PUTTY. Let the Edison boot, this may take a minute or more. Check to see if the Edison is attempting to loop, via the “L” command. You should see the Edison trying to loop. If this works you likely have a clone of your original Edison SOC. Insert it into an Explorer board and it should function the same as the original.
This was derived from several sources, the main being:
https://www.instructables.com/BackupRestore-Intel-Edison/
Note: My OpenAPS Edison with Jubilinx would not communicate with a SD card. So use of a USB Stick drive was necessary.
Also:
https://gist.github.com/sxing/f02a4a1703b16803a7d4
Finally, lots of Edison information:
https://edison-fw.github.io/edison-wiki/