BeagleBone Black, Can't build image

Can you tey downloading again https://github.com/syncloud/image/releases/download/latest/syncloud-beagleboneblack-latest.img.xz

If it fails the same way, you may want to copy:

cp -r /original/opt/backup /opt

It failed in the same way so I copied as per your command. It seems to have gotten further but it is still unable to boot.

Here are the logs:
================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20180412: all ssh regneration override...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Sun 28 May 2023 02:46:46 AM UTC
----------------------------------------
==> Giving system time to stablize...
5 4 3 2 1
==> Preparing /tmp
==> Preparing sysctl
==> sysctl: vm.min_free_kbytes=[16384]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
----------------------------------------
==> root_drive=[/dev/mmcblk0p2]
====> Root drive identified at [/dev/mmcblk0p2]
==> Boot Drive [/dev/mmcblk0p1]
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk0]
====> Destination identified: [/dev/mmcblk1]
==> Figuring out machine
====> Machine is TI_AM335x_BeagleBone_Black
====> Machine is compatible with BeagleBone Black
====> The Boot and Root drives are identified to be different.
====> Giving system time to stablize...
5 4 3 2 1
====> Mounting /dev/mmcblk0p1 Read Only over /boot/uboot
mount: /boot/uboot: /dev/mmcblk0p1 already mounted on /boot/uboot.
====> Mounting /dev/mmcblk0p1 Read Only over /boot/uboot (trying vfat)
mount: /boot/uboot: /dev/mmcblk0p1 already mounted on /boot/uboot.
================================================================================
====> grep mmc
[    0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
[    0.843830] omap_hsmmc 48060000.mmc: Got CD GPIO
[    0.844378] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[    0.871366] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[    0.905158] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.907314] mmc0: new high speed SDHC card at address 59b4
[    0.912774] mmcblk0: mmc0:59b4 USD   3.75 GiB
[    0.918829]  mmcblk0: p1 p2
[    0.940821] mmc1: new high speed MMC card at address 0001
[    0.946265] mmcblk1: mmc1:0001 MMC04G 3.60 GiB
[    0.947059] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
[    0.947749] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
[    0.948111] mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB, chardev (245:0)
[    5.299026] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   11.534525] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   98.461015] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
----------------------------------------
====> ls /sys/class/block/
total 0
lrwxrwxrwx 1 root root 0 May 28 02:46 loop0 -> ../../devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 May 28 02:46 loop1 -> ../../devices/virtual/block/loop1
lrwxrwxrwx 1 root root 0 May 28 02:46 loop2 -> ../../devices/virtual/block/loop2
lrwxrwxrwx 1 root root 0 May 28 02:46 loop3 -> ../../devices/virtual/block/loop3
lrwxrwxrwx 1 root root 0 May 28 02:46 loop4 -> ../../devices/virtual/block/loop4
lrwxrwxrwx 1 root root 0 May 28 02:46 loop5 -> ../../devices/virtual/block/loop5
lrwxrwxrwx 1 root root 0 May 28 02:46 loop6 -> ../../devices/virtual/block/loop6
lrwxrwxrwx 1 root root 0 May 28 02:46 loop7 -> ../../devices/virtual/block/loop7
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk0 -> ../../devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk0p1 -> ../../devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0/mmcblk0p1
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk0p2 -> ../../devices/platform/ocp/48060000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0/mmcblk0p2
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk1 -> ../../devices/platform/ocp/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk1
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk1boot0 -> ../../devices/platform/ocp/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot0
lrwxrwxrwx 1 root root 0 Jan  1  2000 mmcblk1boot1 -> ../../devices/platform/ocp/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot1
----------------------------------------
====> ls /dev/mmc*
brw-rw---- 1 root disk 179,  0 Feb 14  2019 /dev/mmcblk0
brw-rw---- 1 root disk 179,  1 Feb 14  2019 /dev/mmcblk0p1
brw-rw---- 1 root disk 179,  2 Feb 14  2019 /dev/mmcblk0p2
brw-rw---- 1 root disk 179,  8 May 28 02:45 /dev/mmcblk1
brw-rw---- 1 root disk 179, 16 Feb 14  2019 /dev/mmcblk1boot0
brw-rw---- 1 root disk 179, 24 Feb 14  2019 /dev/mmcblk1boot1
crw------- 1 root root 245,  0 Feb 14  2019 /dev/mmcblk1rpmb
================================================================================
================================================================================
5 4 3 2 1

========================================
Checking for Valid bbb-eeprom header
==> Valid bbb-eeprom header found [335]
========================================

================================================================================
Checking running system
==> Copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
==> lsblk:
----------------------------------------
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0 164.3M  1 loop /snap/platform/1862
mmcblk0      179:0    0   3.8G  0 disk
├─mmcblk0p1  179:1    0   200M  0 part /boot/uboot
└─mmcblk0p2  179:2    0     3G  0 part /
mmcblk1      179:8    0   3.6G  0 disk
mmcblk1boot0 179:16   0     2M  1 disk
mmcblk1boot1 179:24   0     2M  1 disk
----------------------------------------
==> df -h | grep rootfs:
----------------------------------------
==> Giving you time to check...
10 9 8 7 6 5 4 3 2 1
================================================================================

================================================================================
Preparing drives

----------------------------------------
==> Erasing: /dev/mmcblk1
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 10.6454 s, 10.6 MB/s
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 2.76569 s, 40.9 MB/s
----------------------------------------
==> Erasing: /dev/mmcblk1 complete
----------------------------------------

----------------------------------------
==> Loading /boot/SOC.sh
************************************************************
#!/bin/sh
format=1.0

board=am335x_evm

bootloader_location=dd_spl_uboot_boot
bootrom_gpt=

dd_spl_uboot_count=2
dd_spl_uboot_seek=1
dd_spl_uboot_conf=notrunc
dd_spl_uboot_bs=128k
dd_spl_uboot_backup=/opt/backup/uboot/MLO

dd_uboot_count=4
dd_uboot_seek=1
dd_uboot_conf=notrunc
dd_uboot_bs=384k
dd_uboot_backup=/opt/backup/uboot/u-boot.img

boot_fstype=ext4
conf_boot_startmb=4
conf_boot_endmb=
sfdisk_fstype=L

boot_label=BOOT
rootfs_label=rootfs

#Kernel
dtb=
serial_tty=ttyO0
usbnet_mem=

#Advanced options
#disable_ssh_regeneration=true

************************************************************
==> Loaded

----------------------------------------

================================================================================
Writing bootloader to [/dev/mmcblk1]
----------------------------------------
==> Figuring out options for SPL U-Boot copy ...
===> Will use : count=2 seek=1 conv=notrunc bs=128k
==> Figuring out options for U-Boot copy ...
===> Will use : count=4 seek=1 conv=notrunc bs=384k
==> Copying SPL U-Boot with dd if=/opt/backup/uboot/MLO of=/dev/mmcblk1 count=2 seek=1 conv=notrunc bs=128k
------------------------------------------------------------
0+1 records in
0+1 records out
92564 bytes (93 kB, 90 KiB) copied, 0.0220305 s, 4.2 MB/s
------------------------------------------------------------
==> Copying U-Boot with dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk1 count=4 seek=1 conv=notrunc bs=384k
------------------------------------------------------------
1+1 records in
1+1 records out
476424 bytes (476 kB, 465 KiB) copied, 0.0554728 s, 8.6 MB/s
------------------------------------------------------------
Writing bootloader completed
================================================================================

================================================================================
Partitionning /dev/mmcblk1
----------------------------------------
sfdisk: [2.26.x or greater]
==> sfdisk parameters:
sfdisk: [sfdisk from util-linux 2.33.1]
sfdisk: [sfdisk --force /dev/mmcblk1]
sfdisk: [4M,,L,*]
==> Partitionning
------------------------------------------------------------
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 3.6 GiB, 3867148288 bytes, 7553024 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

>>> Created a new DOS disklabel with disk identifier 0x51c28fc3.
/dev/mmcblk1p1: Created a new partition 1 of type 'Linux' and of size 3.6 GiB.
/dev/mmcblk1p2: Done.

New situation:
Disklabel type: dos
Disk identifier: 0x51c28fc3

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7553023 7544832  3.6G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
------------------------------------------------------------

==> Partitionning Completed
==> Generated Partitions:
------------------------------------------------------------
Disk /dev/mmcblk1: 3.6 GiB, 3867148288 bytes, 7553024 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
Disklabel type: dos
Disk identifier: 0x51c28fc3

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7553023 7544832  3.6G 83 Linux
------------------------------------------------------------
================================================================================

================================================================================
Preparing future rootfs to receive files
----------------------------------------

==> Formatting rootfs with mkfs.ext4  /dev/mmcblk1p1 -L rootfs
--------------------------------------------------------------------------------

mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: done
Creating filesystem with 943104 4k blocks and 236176 inodes
Filesystem UUID: 1ace0d52-bf7c-4581-9e9a-3f949c47bc41
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

--------------------------------------------------------------------------------
==> Formatting rootfs: /dev/mmcblk1p1 complete
==> Creating temporary rootfs directory (/tmp/rootfs)
==> Mounting /dev/mmcblk1p1 to /tmp/rootfs

================================================================================

================================================================================
Copying: Current rootfs to /dev/mmcblk1p1
----------------------------------------
==> rsync: / -> /tmp/rootfs
----------------------------------------
Traceback (last called is first):
     get_rsync_options() in /original/opt/scripts/tools/eMMC/functions.sh:1206
     _copy_rootfs() in /original/opt/scripts/tools/eMMC/functions.sh:992
     prepare_drive() in /original/opt/scripts/tools/eMMC/functions.sh:1416
     main() in /original/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:49
The command rsync --version &> /tmp/rsync_ver exited with exit code 127.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
umount: /tmp: target is busy.
==> Unmounting /boot
umount: /boot: not mounted.
==> Stopping Cylon LEDs ...
==> Setting LEDs to
==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
----------------------------------------
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 1.49651 s, 34.2 MB/s
----------------------------------------
===> Syncing: /dev/mmcblk1 complete
==> This script took 52 seconds to run
================================================================================
==> Setting LEDs to
root@syncloud:~#

I also tried cp -r /original/opt/ /

And got the same results:
================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20180412: all ssh regneration override...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Sun 28 May 2023 03:14:36 AM UTC
----------------------------------------
==> Giving system time to stablize...
5 4 3 2 1
==> Preparing /tmp
==> Preparing sysctl
==> sysctl: vm.min_free_kbytes=[2651]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
----------------------------------------
==> root_drive=[/dev/mmcblk0p2]
====> Root drive identified at [/dev/mmcblk0p2]
==> Boot Drive [/dev/mmcblk0p1]
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk0]
====> Destination identified: [/dev/mmcblk1]
==> Figuring out machine
====> Machine is TI_AM335x_BeagleBone_Black
====> Machine is compatible with BeagleBone Black
====> The Boot and Root drives are identified to be different.
====> Giving system time to stablize...
5 4 3 2 1
====> Mounting /dev/mmcblk0p1 Read Only over /boot/uboot
================================================================================
5 4 3 2 1

========================================
Checking for Valid bbb-eeprom header
==> Valid bbb-eeprom header found [335]
========================================

================================================================================
Checking running system
==> Copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
==> lsblk:
----------------------------------------
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0 164.3M  1 loop /snap/platform/1862
mmcblk0      179:0    0   3.8G  0 disk
├─mmcblk0p1  179:1    0   200M  0 part /boot/uboot
└─mmcblk0p2  179:2    0     3G  0 part /
mmcblk1      179:8    0   3.6G  0 disk
└─mmcblk1p1  179:9    0   3.6G  0 part
mmcblk1boot0 179:16   0     2M  1 disk
mmcblk1boot1 179:24   0     2M  1 disk
----------------------------------------
==> df -h | grep rootfs:
----------------------------------------
==> Giving you time to check...
10 9 8 7 6 5 4 3 2 1
================================================================================

================================================================================
Preparing drives

----------------------------------------
==> Erasing: /dev/mmcblk1
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 10.6314 s, 10.7 MB/s
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 2.76183 s, 41.0 MB/s
----------------------------------------
==> Erasing: /dev/mmcblk1 complete
----------------------------------------

----------------------------------------
==> Loading /boot/SOC.sh
************************************************************
#!/bin/sh
format=1.0

board=am335x_evm

bootloader_location=dd_spl_uboot_boot
bootrom_gpt=

dd_spl_uboot_count=2
dd_spl_uboot_seek=1
dd_spl_uboot_conf=notrunc
dd_spl_uboot_bs=128k
dd_spl_uboot_backup=/opt/backup/uboot/MLO

dd_uboot_count=4
dd_uboot_seek=1
dd_uboot_conf=notrunc
dd_uboot_bs=384k
dd_uboot_backup=/opt/backup/uboot/u-boot.img

boot_fstype=ext4
conf_boot_startmb=4
conf_boot_endmb=
sfdisk_fstype=L

boot_label=BOOT
rootfs_label=rootfs

#Kernel
dtb=
serial_tty=ttyO0
usbnet_mem=

#Advanced options
#disable_ssh_regeneration=true

************************************************************
==> Loaded

----------------------------------------

================================================================================
Writing bootloader to [/dev/mmcblk1]
----------------------------------------
==> Figuring out options for SPL U-Boot copy ...
===> Will use : count=2 seek=1 conv=notrunc bs=128k
==> Figuring out options for U-Boot copy ...
===> Will use : count=4 seek=1 conv=notrunc bs=384k
==> Copying SPL U-Boot with dd if=/opt/backup/uboot/MLO of=/dev/mmcblk1 count=2 seek=1 conv=notrunc bs=128k
------------------------------------------------------------
0+1 records in
0+1 records out
92564 bytes (93 kB, 90 KiB) copied, 0.0223011 s, 4.2 MB/s
------------------------------------------------------------
==> Copying U-Boot with dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk1 count=4 seek=1 conv=notrunc bs=384k
------------------------------------------------------------
1+1 records in
1+1 records out
476424 bytes (476 kB, 465 KiB) copied, 0.0607961 s, 7.8 MB/s
------------------------------------------------------------
Writing bootloader completed
================================================================================

================================================================================
Partitionning /dev/mmcblk1
----------------------------------------
sfdisk: [2.26.x or greater]
==> sfdisk parameters:
sfdisk: [sfdisk from util-linux 2.33.1]
sfdisk: [sfdisk --force /dev/mmcblk1]
sfdisk: [4M,,L,*]
==> Partitionning
------------------------------------------------------------
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 3.6 GiB, 3867148288 bytes, 7553024 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

>>> Created a new DOS disklabel with disk identifier 0x957fdb9e.
/dev/mmcblk1p1: Created a new partition 1 of type 'Linux' and of size 3.6 GiB.
/dev/mmcblk1p2: Done.

New situation:
Disklabel type: dos
Disk identifier: 0x957fdb9e

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7553023 7544832  3.6G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
------------------------------------------------------------

==> Partitionning Completed
==> Generated Partitions:
------------------------------------------------------------
Disk /dev/mmcblk1: 3.6 GiB, 3867148288 bytes, 7553024 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
Disklabel type: dos
Disk identifier: 0x957fdb9e

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7553023 7544832  3.6G 83 Linux
------------------------------------------------------------
================================================================================

================================================================================
Preparing future rootfs to receive files
----------------------------------------

==> Formatting rootfs with mkfs.ext4  /dev/mmcblk1p1 -L rootfs
--------------------------------------------------------------------------------

mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: done
Creating filesystem with 943104 4k blocks and 236176 inodes
Filesystem UUID: f1b610e8-7bb9-426e-bc9a-f03dafd1209f
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

--------------------------------------------------------------------------------
==> Formatting rootfs: /dev/mmcblk1p1 complete
==> Creating temporary rootfs directory (/tmp/rootfs)
==> Mounting /dev/mmcblk1p1 to /tmp/rootfs

================================================================================

================================================================================
Copying: Current rootfs to /dev/mmcblk1p1
----------------------------------------
==> rsync: / -> /tmp/rootfs
----------------------------------------
Traceback (last called is first):
     get_rsync_options() in /opt/scripts/tools/eMMC/functions.sh:1206
     _copy_rootfs() in /opt/scripts/tools/eMMC/functions.sh:992
     prepare_drive() in /opt/scripts/tools/eMMC/functions.sh:1416
     main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:49
The command rsync --version &> /tmp/rsync_ver exited with exit code 127.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
umount: /tmp: target is busy.
==> Unmounting /boot
umount: /boot: not mounted.
==> Stopping Cylon LEDs ...
==> Setting LEDs to
==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
----------------------------------------
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 1.32038 s, 38.8 MB/s
----------------------------------------
===> Syncing: /dev/mmcblk1 complete
==> This script took 52 seconds to run
================================================================================
==> Setting LEDs to
root@syncloud:~#

This time it failed to copy rootfs:

Copying: Current rootfs to /dev/mmcblk1p1
----------------------------------------
==> rsync: / -> /tmp/rootfs
----------------------------------------
Traceback (last called is first):
     get_rsync_options() in /original/opt/scripts/tools/eMMC/functions.sh:1206
     _copy_rootfs() in /original/opt/scripts/tools/eMMC/functions.sh:992
     prepare_drive() in /original/opt/scripts/tools/eMMC/functions.sh:1416
     main() in /original/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:49
The command rsync --version &> /tmp/rsync_ver exited with exit code 127.
================================================================================

Can you run this:

rsync --version

I guess rsync is not installed, if yes try installing it first:

apt update
apt install rsync

Looks like you are correct:

root@syncloud:~# rsync --version
-bash: rsync: command not found

So I installed rsync but I’m still getting the same error.
Running rsync --version still gives me -bash: rsync: command not found

I ran apt update apt install rsync again, and it gave me rsync is already the newest version (3.1.3-6).

could you run hash -r (update app search path locations) if that does not help try logout/login until rsync --version works.

I started from scratch by re-imaging the SD card. Interestingly, when I run apt update apt install rsync from a fresh install, I get rsync is already the newest version (3.1.3-6).

Running hash -r and logging out and in doesn’t help.

Could you run:

echo $PATH
ls -la /usr/bin/rsync
/usr/bin/rsync --version
root@syncloud:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@syncloud:~# ls -la /usr/bin/rsync
ls: cannot access '/usr/bin/rsync': No such file or directory
root@syncloud:~# /usr/bin/rsync --version
-bash: /usr/bin/rsync: No such file or directory
root@syncloud:~#

something wrong has happened during the install, run

apt remove --purge rsync
apt install rsync
rsync --version

and show me the output

root@syncloud:~# apt remove --purge rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  rsync*
0 upgraded, 0 newly installed, 1 to remove and 83 not upgraded.
After this operation, 596 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 16595 files and directories currently installed.)
Removing rsync (3.1.3-6) ...
Failed to stop rsync.service: Unit rsync.service not loaded.
dpkg: error processing package rsync (--remove):
 installed rsync package pre-removal script subprocess returned error exit status 5
Errors were encountered while processing:
 rsync
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@syncloud:~# apt install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
rsync is already the newest version (3.1.3-6).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
root@syncloud:~# rsync --version
-bash: rsync: command not found
root@syncloud:~#

this is the problem, the original rsync failed in some way and it is stuck now, could you flash image again and install rsync and show me the output?

apt update
apt install rsync

As instructed. I also verified the image just in case. I think I was too fast on the first command so I ran them twice for good measure.

Linux syncloud 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020                                           armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@syncloud:~# apt update
Hit:1 http://cdn-fastly.deb.debian.org/debian buster InRelease
Reading package lists... Done
E: Release file for http://http.debian.net/debian/dists/buster/InRelease is not                                           valid yet (invalid for another 1304d 1h 18min 2s). Updates for this repository w                                          ill not be applied.
root@syncloud:~# apt install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
rsync is already the newest version (3.1.3-6).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
root@syncloud:~# apt update
Hit:1 http://cdn-fastly.deb.debian.org/debian buster InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian buster/main Translation-en [5,969                                           kB]
Fetched 5,969 kB in 17s (361 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
83 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@syncloud:~# apt install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
rsync is already the newest version (3.1.3-6).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
root@syncloud:~#

I guess date is wrong on the box, can you run date if it is correct run apt update again

I have recently fixed time update, I can publish a new image with the latest platform which contains the time sync fix.

Could you download latest again and try installing rsync: https://github.com/syncloud/image/releases/download/latest/syncloud-beagleboneblack-latest.img.xz

The new image still has the same issue with rsync

root@syncloud:~# apt update
Hit:1 http://cdn-fastly.deb.debian.org/debian buster InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian buster/main Translation-en [5,969 kB]
Fetched 5,969 kB in 17s (355 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
83 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@syncloud:~# apt install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
rsync is already the newest version (3.1.3-6).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
root@syncloud:~# rsync --version
-bash: rsync: command not found
root@syncloud:~#

hw I need to dig my old bbb to test this myself, but can you try finding it:

find / -name "rsync"

also print search path:

echo $PATH
root@syncloud:~# find / -name "rsync"
root@syncloud:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@syncloud:~#
dpkg-query -L rsync

ok, got my beagle for testing, here is the hacky way to get it running (full instruction on clean image):

dpkg --remove --force-remove-reinstreq rsync
rm -rf /var/lib/dpkg/info/rsync.* 
cp -r /original/opt/backup /opt
/original/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

Wait till your device powers off and then take out the sd card.
Let me know how it goes.

I will investigate why packages like rsync are in a broken state (beagle only or all new images) and produce another image where you do not need any above just the regular /snap/platform/current/bin/copy_to_emmc.sh