Issue with BeagleBone Black Extracting eMMC contents

Hi,

I am trying to image all contents of onboard eMMC to a uSD by running the latest scripts frpm Robert, https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh

It is good that I can use uSD to flash new Beaglebone board, but there is one issue with SSH, my PC application can’t communicate with the Beaglebone board any more (connection lost, it uses SSH)

I couldn’t find solution, instead I found the time stamp of all files in folder /etc/ssh/ are all changed to Dec 31, 1999

root@beaglebone:~# ls -al /etc/ssh/
total 48
dr-xrwxr-x 2 root root 4096 Dec 31 1999 .
drwxrwxr-x 84 root root 4096 Dec 31 1999 …
-rw------- 1 root root 1494 Mar 18 09:11 ssh_config
-rw------- 1 root root 3508 Mar 18 09:11 sshd_config
-rw------- 1 root root 668 Dec 31 1999 ssh_host_dsa_key
-rw-r–r-- 1 root root 605 Dec 31 1999 ssh_host_dsa_key.pub
-rw------- 1 root root 227 Dec 31 1999 ssh_host_ecdsa_key
-rw-r–r-- 1 root root 177 Dec 31 1999 ssh_host_ecdsa_key.pub
-rw------- 1 root root 411 Dec 31 1999 ssh_host_ed25519_key
-rw-r–r-- 1 root root 97 Dec 31 1999 ssh_host_ed25519_key.pub
-rw------- 1 root root 1679 Dec 31 1999 ssh_host_rsa_key
-rw-r–r-- 1 root root 397 Dec 31 1999 ssh_host_rsa_key.pub
root@beaglebone:~#

After I copied files in anoter working board to this board

root@beaglebone:~# ls -al /etc/ssh/
total 56
dr-xrwxr-x 2 root root 4096 Mar 18 13:19 .
drwxrwxr-x 84 root root 4096 Dec 31 1999 …
-rw------- 1 root root 1494 Mar 18 13:19 ssh_config
-rw------- 1 root root 3508 Mar 18 13:19 sshd_config
-rw------- 1 root root 668 Mar 18 13:19 ssh_host_dsa_key
-rw-r–r-- 1 root root 605 Mar 18 13:19 ssh_host_dsa_key.pub
-rw------- 1 root root 227 Mar 18 13:19 ssh_host_ecdsa_key
-rw-r–r-- 1 root root 177 Mar 18 13:19 ssh_host_ecdsa_key.pub
-rw------- 1 root root 411 Mar 18 13:19 ssh_host_ed25519_key
-rw-r–r-- 1 root root 97 Mar 18 13:19 ssh_host_ed25519_key.pub
-rw------- 1 root root 980 Mar 18 13:19 ssh_host_key
-rw------- 1 root root 645 Mar 18 13:19 ssh_host_key.pub
-rw------- 1 root root 1679 Mar 18 13:19 ssh_host_rsa_key
-rw-r–r-- 1 root root 397 Mar 18 13:19 ssh_host_rsa_key.pub
root@beaglebone:~#

Now it starts working with my PC software

What would be the issue? How can I avoid it changes timestamp when I doing image eMMC contents?

Thanks in advance
Kevin

What's happening; we've setup the "flasher" such that on every "flash"
it'll force the OS to regenerate "NEW" ssh key's...

So when you run:

sudo /bin/bash ./beaglebone-black-make-microSD-flasher-from-eMMC.sh

It'll setup "init-eMMC-flasher-v3.sh" to flash the eMMC from the microSD card..

So after running "beaglebone-black-make-microSD-flasher-from-eMMC.sh"

Mount the newly created flasher microSD and find/open:

/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

and comment out this block:

https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/init-eMMC-flasher-v3.sh#L360-L364

Regards,