I tried enabling the eMMC and executed below command
**sudo beagle-flasher**
--------------------------------------------------------------------------------
Version: [1.20240419.0, merged usr cleanups...]
--------------------------------------------------------------------------------
cat /etc/default/beagle-flasher:
--------------------------------------------------------------------------------
#debug_over_display=tty0
source=/dev/mmcblk0
destination=/dev/mmcblk1
rfs_partition=single
rfs_rootfs_type=ext4
rfs_rootfs_startmb=4
bootloader=/opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh
flash_back=beaglebone-black-emmc-to-microsd
--------------------------------------------------------------------------------
INFO: /proc/cmdline
INFO: [cat /proc/cmdline]
console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M quiet
--------------------------------------------------------------------------------
INFO: Preparing sysctl
INFO: [sysctl: vm.min_free_kbytes=[2828]
INFO: [sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
--------------------------------------------------------------------------------
INFO: [lsblk -i]
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 14.9G 0 disk
`-mmcblk0p1 179:1 0 3.9G 0 part /
mmcblk1 179:256 0 3.6G 0 disk
`-mmcblk1p1 179:257 0 3.6G 0 part
mmcblk1boot0 179:512 0 4M 1 disk
mmcblk1boot1 179:768 0 4M 1 disk
--------------------------------------------------------------------------------
INFO: copying [/dev/mmcblk0] -> [/dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [source=/dev/mmcblk0] is a valid block device
INFO: [destination=/dev/mmcblk1] is a valid block device
INFO: Creating: [/boot/config-5.10.87-bone-rt-r59]
INFO: Generating: [/boot/initrd.img-5.10.87-bone-rt-r59]
update-initramfs: Generating /boot/initrd.img-5.10.87-bone-rt-r59
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk1]
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=108 status=progress]
106954752 bytes (107 MB, 102 MiB) copied, 2 s, 53.2 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 9.99337 s, 11.3 MB/s
--------------------------------------------------------------------------------
INFO: [dd if=/dev/mmcblk1 of=/dev/null bs=1M count=108 status=progress]
81788928 bytes (82 MB, 78 MiB) copied, 2 s, 40.5 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 2.89038 s, 39.2 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk1] complete
--------------------------------------------------------------------------------
INFO: [/bin/bash /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh]
dd if=/opt/u-boot/bb-u-boot-am335x-evm/MLO of=/dev/mmcblk1 count=2 seek=1 bs=128k
0+1 records in
0+1 records out
106556 bytes (107 kB, 104 KiB) copied, 0.0379715 s, 2.8 MB/s
dd if=/opt/u-boot/bb-u-boot-am335x-evm/u-boot-dtb.img of=/dev/mmcblk1 count=4 seek=1 bs=384k
2+1 records in
2+1 records out
990620 bytes (991 kB, 967 KiB) copied, 0.119078 s, 8.3 MB/s
--------------------------------------------------------------------------------
INFO: Partitioning: /dev/mmcblk1
INFO: sfdisk: [sfdisk from util-linux 2.34]
INFO: sfdisk: [sfdisk --force --wipe-partitions always /dev/mmcblk1]
INFO: sfdisk: [4M,,L,*]
--------------------------------------------------------------------------------
Checking that no-one is using this disk right now ... OK
Disk /dev/mmcblk1: 3.58 GiB, 3825205248 bytes, 7471104 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 0x00dafccc.
/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: 0x00dafccc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 8192 7471103 7462912 3.6G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk1
mkfs.ext4 -O ^metadata_csum,^64bit /dev/mmcblk1p1 -L rootfs
mke2fs 1.45.5 (07-Jan-2020)
Discarding device blocks: done
Creating filesystem with 932864 4k blocks and 233392 inodes
Filesystem UUID: 1aa71a55-7d2c-44b3-b0eb-7030c39f905a
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
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk1 complete
--------------------------------------------------------------------------------
INFO: Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1
INFO: [mount /dev/mmcblk1p1 /tmp/rootfs/ -o async,noatime]
INFO: rsync: (-aHAXx) [/ -> /tmp/rootfs/]
2.20G 84% 3.73MB/s 0:09:23 (xfr#47454, to-chk=0/60895)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: rsync: (-aHAXx) [/ -> /tmp/rootfs/]
0 0% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/60895)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Copying: Kernel modules
INFO: rsync: (-aHAXx) /lib/modules/5.10.87-bone-rt-r59/ -> /tmp/rootfs/lib/modules/5.10.87-bone-rt-r59/
25.97M 99% 1.28MB/s 0:00:19 (xfr#2546, to-chk=0/2936)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Generating: /etc/fstab
INFO: [cat /tmp/rootfs/etc/fstab]
# /etc/fstab: static file system information.
#
/dev/mmcblk1p1 / ext4 noatime,errors=remount-ro 0 1
debugfs /sys/kernel/debug debugfs mode=755,uid=root,gid=gpio,defaults 0 0
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [cat /tmp/rootfs/boot/uEnv.txt]
uname_r=5.10.87-bone-rt-r59
cmdline=coherent_pool=1M quiet
enable_uboot_overlays=1
enable_uboot_overlay_emmc=1
enable_uboot_cape_universal=1
disable_uboot_overlay_video=1
disable_uboot_overlay_adc=1
uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo
uboot_overlay_addr1=/lib/firmware/BB-UART2-00A0.dtbo
uboot_overlay_addr2=/lib/firmware/BB-UART4-00A0.dtbo
uboot_overlay_addr3=/lib/firmware/BB-AAIM-LCD-00A1.dtbo
uboot_overlay_addr4=/lib/firmware/BB-I2C1-00A0.dtbo
#cmdline=cape_disable=bone_capemgr.disable_partno=BB-BONELT-HDMI, BB-BONELT-HDMIN, BB-BONE-HDMI bone_capemgr.enable_partno=BB-UART1,BB-AAIM-LCD:00A1,BB-UART4,BB-UART2,BB-I2C1
--------------------------------------------------------------------------------
INFO: [cp -v /etc/beagle-flasher/beaglebone-black-emmc-to-microsd /tmp/rootfs/etc/default/beagle-flasher]
'/etc/beagle-flasher/beaglebone-black-emmc-to-microsd' -> '/tmp/rootfs/etc/default/beagle-flasher'
--------------------------------------------------------------------------------
INFO: [cat /tmp/rootfs/etc/default/generic-sys-mods]
#This file is sourced by /usb/bin/bb-growpart
ROOT_DRIVE=/dev/mmcblk1
ROOT_PARTITION=1
ARCH_SOC_MODULES=generic
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1 complete
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [umount /tmp/rootfs/ || umount -l /tmp/rootfs/ || write_failure]
--------------------------------------------------------------------------------
INFO: Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
INFO: [dd if=/dev/mmcblk1 of=/dev/null count=100000 status=progress]
41140736 bytes (41 MB, 39 MiB) copied, 2 s, 20.6 MB/s
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 2.51676 s, 20.3 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
**/usr/sbin/beagle-flasher: line 86: echo: write error: Invalid argument**
Seems like it failed with error. Please provide your suggestions.