Hello!
i tried to copy a beaglebone black. The flasher to the sd-card seems ok, but when I but the sd-card in my Windows PC, I have no drive to edit the uEnv.txt and also when I put the card in the beaglebone and try to moount, I get an error.
The flasher log:
--------------------------------------------------------------------------------
Version: [1.20231211.0, e2fsprogs (1.47.0) disable ^metadata_csum,64bit,orphan_file...]
--------------------------------------------------------------------------------
cat /etc/default/beagle-flasher:
--------------------------------------------------------------------------------
#debug_over_display=tty0
source=/dev/mmcblk1
destination=/dev/mmcblk0
rfs_partition=single
rfs_rootfs_type=ext4
rfs_rootfs_startmb=4
bootloader=/opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk0.sh
flash_back=beaglebone-black-microsd-to-emmc
--------------------------------------------------------------------------------
INFO: /proc/cmdline
INFO: [cat /proc/cmdline]
console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
--------------------------------------------------------------------------------
INFO: Preparing sysctl
INFO: [sysctl: vm.min_free_kbytes=[2792]
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
mmcblk1 179:0 0 3.6G 0 disk
`-mmcblk1p1 179:1 0 3.6G 0 part /
mmcblk1boot0 179:256 0 2M 1 disk
mmcblk1boot1 179:512 0 2M 1 disk
mmcblk0 179:768 0 14.4G 0 disk
|-mmcblk0p1 179:769 0 199M 0 part
`-mmcblk0p2 179:770 0 14.2G 0 part
--------------------------------------------------------------------------------
INFO: copying [/dev/mmcblk1] -> [/dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: [source=/dev/mmcblk1] is a valid block device
INFO: [destination=/dev/mmcblk0] is a valid block device
INFO: [/boot/config-5.10.168-ti-r77]
INFO: Generating: [/boot/initrd.img-5.10.168-ti-r77]
update-initramfs: Generating /boot/initrd.img-5.10.168-ti-r77
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk0]
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: [dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=108 status=progress]
113246208 bytes (113 MB, 108 MiB) copied, 7 s, 15.7 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 16.1161 s, 7.0 MB/s
--------------------------------------------------------------------------------
INFO: [dd if=/dev/mmcblk0 of=/dev/null bs=1M count=108 status=progress]
110100480 bytes (110 MB, 105 MiB) copied, 5 s, 21.8 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 5.31497 s, 21.3 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk0] complete
--------------------------------------------------------------------------------
INFO: [/bin/bash /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk0.sh]
dd if=/opt/u-boot/bb-u-boot-am335x-evm/MLO of=/dev/mmcblk0 count=2 seek=1 bs=128k
0+1 records in
0+1 records out
106028 bytes (106 kB, 104 KiB) copied, 0.329377 s, 322 kB/s
dd if=/opt/u-boot/bb-u-boot-am335x-evm/u-boot-dtb.img of=/dev/mmcblk0 count=4 seek=1 bs=384k
2+1 records in
2+1 records out
987404 bytes (987 kB, 964 KiB) copied, 0.0779596 s, 12.7 MB/s
--------------------------------------------------------------------------------
INFO: Partitioning: /dev/mmcblk0
INFO: /sbin/sfdisk: [sfdisk from util-linux 2.36.1]
INFO: /sbin/sfdisk: [/sbin/sfdisk --force --wipe-partitions always /dev/mmcblk0]
INFO: /sbin/sfdisk: [4M,,L,*]
--------------------------------------------------------------------------------
Checking that no-one is using this disk right now ... OK
Disk /dev/mmcblk0: 14.44 GiB, 15502147584 bytes, 30277632 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 0xb721d635.
/dev/mmcblk0p1: Created a new partition 1 of type 'Linux' and of size 14.4 GiB.
/dev/mmcblk0p2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0xb721d635
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 30277631 30269440 14.4G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk0
/sbin/mkfs.ext4 -O ^metadata_csum,^64bit /dev/mmcblk0p1 -L rootfs
mke2fs 1.46.2 (28-Feb-2021)
Discarding device blocks: done
Creating filesystem with 3783680 4k blocks and 946560 inodes
Filesystem UUID: 69a9c664-de9a-4135-9754-cd73bb1397c8
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
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/mmcblk0]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk0 complete
--------------------------------------------------------------------------------
INFO: Copying: /dev/mmcblk1p1 -> /dev/mmcblk0p1
INFO: [mount /dev/mmcblk0p1 /tmp/rootfs/ -o async,noatime]
INFO: /usr/bin/rsync: (-aHAXx) [/ -> /tmp/rootfs/]
2.05G 99% 2.47MB/s 0:13:11 (xfr#33756, to-chk=0/41232)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: Copying: Kernel modules
INFO: /usr/bin/rsync: (-aHAXx) /lib/modules/5.10.168-ti-r77/ -> /tmp/rootfs/lib/modules/5.10.168-ti-r77/
26.15M 100% 1.32MB/s 0:00:18 (xfr#2647, to-chk=0/3059)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: Generating: /etc/fstab
INFO: [cat /tmp/rootfs/etc/fstab]
# /etc/fstab: static file system information.
#
/dev/mmcblk0p1 / 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/mmcblk0]
--------------------------------------------------------------------------------
INFO: [cat /tmp/rootfs/boot/uEnv.txt]
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=5.10.168-ti-r77
#uuid=
#dtb=
###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=<file0>.dtbo
#uboot_overlay_addr1=<file1>.dtbo
#uboot_overlay_addr2=<file2>.dtbo
#uboot_overlay_addr3=<file3>.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=<file4>.dtbo
#uboot_overlay_addr5=<file5>.dtbo
#uboot_overlay_addr6=<file6>.dtbo
#uboot_overlay_addr7=<file7>.dtbo
uboot_overlay_addr0=BB-UART1-00A0.dtbo
uboot_overlay_addr1=BB-UART4-00A0.dtbo
uboot_overlay_addr2=BB-W1-P9.12-00A0.dtbo
###
###Custom Cape
#dtb_overlay=<file8>.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (60000 = 384KB)
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###
console=ttyS0,115200n8
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e
#Use an overlayfs on top of a read-only root filesystem:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet overlayroot=tmpfs
##enable Generic eMMC Flasher:
#cmdline=init=/usr/sbin/init-beagle-flasher
--------------------------------------------------------------------------------
INFO: [cp -v /etc/beagle-flasher/beaglebone-black-microsd-to-emmc /tmp/rootfs/etc/default/beagle-flasher]
'/etc/beagle-flasher/beaglebone-black-microsd-to-emmc' -> '/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/mmcblk0
ROOT_PARTITION=1
ARCH_SOC_MODULES=am335x
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
Copying: /dev/mmcblk1p1 -> /dev/mmcblk0p1 complete
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------
INFO: [umount /tmp/rootfs/ || umount -l /tmp/rootfs/ || write_failure]
--------------------------------------------------------------------------------
INFO: Force writeback of eMMC buffers by Syncing: /dev/mmcblk0
INFO: [dd if=/dev/mmcblk0 of=/dev/null count=100000 status=progress]
37082112 bytes (37 MB, 35 MiB) copied, 2 s, 18.5 MB/s
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 2.7764 s, 18.4 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk0]
--------------------------------------------------------------------------------