Open orgua opened 10 months ago
@orgua pretty sure i debugged this last week.. what's the output of:
sudo beagle-version
Import bits are: (Black Wireless is in my test lab)
ubuntu@ubuntu:~$ sudo beagle-version | grep bootloader
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04 2023 - 18:48:26 +0000)]:[location: dd MBR]
ubuntu@ubuntu:~$ sudo beagle-version | grep UBOOT
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BBBW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk1 179:0 0 3.6G 0 disk
mmcblk1boot0 179:256 0 4M 1 disk
mmcblk1boot1 179:512 0 4M 1 disk
mmcblk0 179:768 0 29.8G 0 disk
└─mmcblk0p1 179:769 0 29.8G 0 part /
enable flasher..
ubuntu@ubuntu:~$ sudo enable-beagle-flasher
log: enable-beagle-flasher
log: media is now setup to flash other media
log: Shutdown system and this flasher will run on next startup
While the 'flasher' is running, this is the most important bits:
--------------------------------------------------------------------------------
INFO: Preparing sysctl
INFO: [sysctl: vm.min_free_kbytes=[2780]
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 MOUNTPOINTS
mmcblk1 179:0 0 3.6G 0 disk
mmcblk1boot0 179:256 0 4M 1 disk
mmcblk1boot1 179:512 0 4M 1 disk
mmcblk0 179:768 0 29.8G 0 disk
`-mmcblk0p1 179:769 0 29.8G 0 part /
--------------------------------------------------------------------------------
INFO: copying [/dev/mmcblk0] -> [/dev/mmcblk1]
--------------------------------------------------------------------------------
Regards,
Flasher runs fine...
--------------------------------------------------------------------------------
Version: [1.20230710.0, merged generic 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: Giving system time to stablize...
--------------------------------------------------------------------------------
5
4
3
2
1
--------------------------------------------------------------------------------
INFO: Preparing /tmp
INFO: [mount -t tmpfs tmpfs /tmp]
--------------------------------------------------------------------------------
INFO: Preparing sysctl
INFO: [sysctl: vm.min_free_kbytes=[2780]
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 MOUNTPOINTS
mmcblk1 179:0 0 3.6G 0 disk
mmcblk1boot0 179:256 0 4M 1 disk
mmcblk1boot1 179:512 0 4M 1 disk
mmcblk0 179:768 0 29.8G 0 disk
`-mmcblk0p1 179:769 0 29.8G 0 part /
--------------------------------------------------------------------------------
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: 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.82404 s, 11.5 MB/s
--------------------------------------------------------------------------------
INFO: [dd if=/dev/mmcblk1 of=/dev/null bs=1M count=108 status=progress]
85983232 bytes (86 MB, 82 MiB) copied, 2 s, 43.0 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 2.72564 s, 41.5 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
106204 bytes (106 kB, 104 KiB) copied, 0.0225667 s, 4.7 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
987532 bytes (988 kB, 964 KiB) copied, 0.136519 s, 7.2 MB/s
--------------------------------------------------------------------------------
INFO: Partitioning: /dev/mmcblk1
INFO: /sbin/sfdisk: [sfdisk from util-linux 2.37.2]
INFO: /sbin/sfdisk: [/sbin/sfdisk --force --wipe-partitions always /dev/mmcblk1]
INFO: /sbin/sfdisk: [4M,,L,*]
--------------------------------------------------------------------------------
Checking that no-one is using this disk right now ... OK
Disk /dev/mmcblk1: 3.56 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 0x1fb09dc2.
/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: 0x1fb09dc2
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.[ 41.467493] mmcblk1: p1
Syncing disks.
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk1
/sbin/mkfs.ext4 /dev/mmcblk1p1 -L rootfs
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 932864 4k blocks and 233392 inodes
Filesystem UUID: c906b4ac-25ea-4f59-bbdc-89fa30e0fca8
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]
[ 53.283236] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
INFO: /usr/bin/rsync: (-aHAXx) [/ -> /tmp/rootfs/]
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Copying: Kernel modules
INFO: /usr/bin/rsync: (-aHAXx) /lib/modules/5.10.168-ti-r71/ -> /tmp/rootfs/lib/modules/5.10.168-ti-r71/
--------------------------------------------------------------------------------
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]
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=5.10.168-ti-r71
#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
###
###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
###
###PRUSS OPTIONS
###pru_uio (5.4.106-ti-rt-r40 & 5.10.100-ti-r40 newer...)
###Default is PRU_REMOTEPROC, but classic UIO_PRUSS can be enabled here.
#uboot_overlay_pru=AM335X-PRU-UIO-00A0.dtbo
###
###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-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=am335x
--------------------------------------------------------------------------------
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: [umount /tmp || true]
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
INFO: [dd if=/dev/mmcblk1 of=/dev/null count=100000 status=progress]
29235200 bytes (29 MB, 28 MiB) copied, 1 s, 29.2 MB/s
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 1.75164 s, 29.2 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [We are init][ 307.026597] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[ 307.373994] systemd[1]: systemd 249.11-0ubuntu3.10 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 307.406502] systemd[1]: Detected architecture arm.
Welcome to Ubuntu 22.04.3 LTS!
[ 307.428625] systemd[1]: Hostname set to <ubuntu>.
[ 309.194878] systemd[1]: Queued start job for default target Graphical Interface.
[ 309.202504] systemd[1]: Unnecessary job was removed for /dev/bone/uart/0.
[ 309.209454] systemd[1]: Unnecessary job was removed for /sys/devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e09050.target-module/44e09000.serial/tty/ttyS0.
[ 309.240452] systemd[1]: Created slice Slice /system/modprobe.
[ OK ] Created slice Slice /system/modprobe.
[ 309.266908] systemd[1]: Created slice Slice /system/serial-getty.
[ OK ] Created slice Slice /system/serial-getty.
[ 309.295356] systemd[1]: Created slice Slice /system/wpa_supplicant.
[ OK ] Created slice Slice /system/wpa_supplicant.
[ 309.321650] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 309.343837] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ 309.368873] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary…s File System Automount Point.
[ 309.396209] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 309.419149] systemd[1]: Reached target Slice Units.
[ OK ] Reached target Slice Units.
[ 309.439175] systemd[1]: Reached target Swaps.
[ OK ] Reached target Swaps.
[ 309.459257] systemd[1]: Reached target Local Verity Protected Volumes.
[ OK ] Reached target Local Verity Protected Volumes.
[ 309.484589] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 309.508448] systemd[1]: Listening on fsck to fsckd communication Socket.
[ OK ] Listening on fsck to fsckd communication Socket.
[ 309.531721] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 309.557271] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 309.580454] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 309.604672] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 309.628900] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 309.652959] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 309.676307] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 309.700253] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 309.717047] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 309.766475] systemd[1]: Mounting /sys/kernel/debug...
Mounting /sys/kernel/debug...
[ 309.814330] systemd[1]: Mounting Kernel Trace File System...
Mounting Kernel Trace File System...
[ 309.860049] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 309.916752] systemd[1]: Starting Set the console keyboard layout...
Starting Set the console keyboard layout...
[ 309.977699] systemd[1]: Starting Create List of Static Device Nodes...
Starting Create List of Static Device Nodes...
[ 310.070636] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 310.144300] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 310.225657] systemd[1]: Starting Load Kernel Module efi_pstore...
Starting Load Kernel Module efi_pstore...
[ 310.305621] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 310.363573] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
[ 310.428220] systemd[1]: Starting File System Check on Root Device...
Starting File System Check on Root Device...
[ 310.516330] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 310.620548] systemd[1]: Starting Generate network units from Kernel command line...
Starting Generate network …ts from Kernel command line...
[ 310.732198] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 310.890144] systemd[1]: Mounted POSIX Message Queue File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 310.949655] systemd[1]: Mounted /sys/kernel/debug.
[ OK ] Mounted /sys/kernel/debug.
[ 310.992675] systemd[1]: Mounted Kernel Trace File System.
[ OK ] Mounted Kernel Trace File System.
[ 311.047175] systemd[1]: Finished Create List of Static Device Nodes.
[ OK ] Finished Create List of Static Device Nodes.
[ 311.104183] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[ 311.147303] systemd[1]: Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module configfs.
[ 311.191663] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 311.235447] systemd[1]: Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module drm.
[ 311.278607] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[ 311.319252] systemd[1]: Finished Load Kernel Module efi_pstore.
[ OK ] Finished Load Kernel Module efi_pstore.
[ 311.370509] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[ 311.407950] systemd[1]: Finished Load Kernel Module fuse.
[ OK ] Finished Load Kernel Module fuse.
[ 311.466554] systemd[1]: Finished File System Check on Root Device.
[ OK ] Finished File System Check on Root Device.
[ 311.524271] systemd[1]: Finished Load Kernel Modules.
[ OK ] Finished Load Kernel Modules.
[ 311.568011] systemd[1]: Finished Generate network units from Kernel command line.
[ OK ] Finished Generate network units from Kernel command line.
[ 311.617278] systemd[1]: Reached target Preparation for Network.
[ OK ] Reached target Preparation for Network.
[ 311.695513] systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
[ 311.804615] systemd[1]: Mounting Kernel Configuration File System...
Mounting Kernel Configuration File System...
[ 311.928350] systemd[1]: Started File System Check Daemon to report status.
[ OK ] Started File System Check Daemon to report status.
[ 312.017536] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 312.093117] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 312.167180] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Finished Set the console keyboard layout.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Finished Apply Kernel Variables.
[ OK ] Finished Remount Root and Kernel File Systems.
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...
Starting Create System Users...
[ OK ] Finished Load/Save Random Seed.
[ OK ] Finished Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Preparation for Local File Systems.
[ OK ] Reached target Local File Systems.
Starting Set console font and keymap...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Set Up Additional Binary Formats...
Starting Create Volatile Files and Directories...
Starting Rule-based Manage…for Device Events and Files...
[ OK ] Finished Set console font and keymap.
[ OK ] Finished Tell Plymouth To Write Out Runtime Data.
Mounting Arbitrary Executable File Formats File System...
[ OK ] Mounted Arbitrary Executable File Formats File System.
[ OK ] Finished Set Up Additional Binary Formats.
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Record System Boot/Shutdown in UTMP...
[ OK ] Finished Record System Boot/Shutdown in UTMP.
[ OK ] Started Rule-based Manager for Device Events and Files.
Starting Network Configuration...
[ OK ] Started Network Configuration.
Starting Network Name Resolution...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Set.
[ OK ] Finished Coldplug All udev Devices.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Path Units.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily dpkg database backup timer.
[ OK ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[ OK ] Started Discard unused blocks once a week.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Message of the Day.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timer Units.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Reached target Socket Units.
[ OK ] Reached target Basic System.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting Avahi mDNS/DNS-SD Stack...
Starting BeagleBoard Generate Symlinks...
Starting BeagleBoard.org USB gadgets...
[ OK ] Started Regular background program processing daemon.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Save initial kernel messages after boot.
Starting Remove Stale Onli…t4 Metadata Check Snapshots...
Starting LSB: Load kernel …d to enable cpufreq scaling...
Starting Dispatcher daemon for systemd-networkd...
Starting Resize Root File System...
Starting System Logging Service...
Starting User Login Management...
Starting WPA supplicant...
[ OK ] Started System Logging Service.
[ OK ] Started WPA supplicant.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[ OK ] Started BeagleBoard.org USB gadgets.
[ OK ] Finished BeagleBoard Generate Symlinks.
[ OK ] Started LSB: Load kernel m…ded to enable cpufreq scaling.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Network Name Resolution.
[ OK ] Started Dispatcher daemon for systemd-networkd.
[ OK ] Finished Resize Root File System.
[ 332.818514] davinci-mcasp 48038000.mcasp: IRQ common not found
[ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
Starting Load/Save RF Kill Switch Status...
[ OK ] Found device /dev/ttyGS0.
Starting Bluetooth service...
[ OK ] Started Load/Save RF Kill Switch Status.
[ OK ] Started Bluetooth service.
[ OK ] Reached target Bluetooth Support.
Starting Hostname Service...
[ OK ] Reached target Sound Card.
[ OK ] Started Hostname Service.
[ OK ] Found device /sys/subsystem/net/devices/wlan0.
[ OK ] Started WPA supplicant dae… (interface-specific version).
[ OK ] Reached target Network.
Starting Beagle Flasher Shutdown...
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[ OK ] Finished Permit User Sessions.
[ OK ] Stopped Beagle Flasher Shutdown.
[ OK ] Removed slice Slice /system/modprobe.
[ OK ] Stopped target Bluetooth Support.
[ OK ] Stopped target Host and Network Name Lookups.
[ OK ] Stopped target Sound Card.
[ OK ] Stopped target Timer Units.
[ OK ] Stopped Daily dpkg database backup timer.
[ OK ] Stopped Periodic ext4 Onli…ata Check for All Filesystems.
[ OK ] Stopped Discard unused blocks once a week.
[ OK ] Stopped Daily rotation of log files.
[ OK ] Stopped Message of the Day.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
[ OK ] Stopped target System Time Set.
[ OK ] Stopped target Hardware activated USB gadget.
Stopping Bluetooth service...
Stopping Hostname Service...
Stopping Load/Save Random Seed...
Stopping Load/Save RF Kill Switch Status...
Stopping Avahi mDNS/DNS-SD Stack...
Stopping LSB: set CPUFreq kernel parameters...
Stopping Regular background program processing daemon...
Stopping Dispatcher daemon for systemd-networkd...
Stopping System Logging Service...
[ OK ] Removed slice Slice /system/serial-getty.
Stopping User Login Management...
Stopping Permit User Sessions...
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped Regular background program processing daemon.
[ OK ] Stopped Dispatcher daemon for systemd-networkd.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped User Login Management.
[ OK ] Stopped Load/Save RF Kill Switch Status.
[ OK ] Stopped Bluetooth service.
[ OK ] Stopped Hostname Service.
[ OK ] Stopped OpenBSD Secure Shell server.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Network.
[ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Set console scheme...
Stopping Network Name Resolution...
Stopping WPA supplicant...
Stopping WPA supplicant da…interface-specific version)...
[ OK ] Stopped Network Name Resolution.
[ OK ] Stopped WPA supplicant.
[ OK ] Stopped WPA supplicant dae… (interface-specific version).
[ OK ] Stopped LSB: set CPUFreq kernel parameters.
[ OK ] Finished Set console scheme.
[ OK ] Removed slice Slice /system/wpa_supplicant.
Stopping LSB: Load kernel …d to enable cpufreq scaling...
Stopping Network Configuration...
[ OK ] Stopped Network Configuration.
[ OK ] Stopped target Preparation for Network.
[ OK ] Stopped LSB: Load kernel m…ded to enable cpufreq scaling.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Path Units.
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Slice Units.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Socket Units.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Stopped target System Initialization.
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped target Swaps.
[ OK ] Stopped target Local Verity Protected Volumes.
[ OK ] Closed Syslog Socket.
[ OK ] Closed Network Service Netlink Socket.
Stopping Set Up Additional Binary Formats...
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
Stopping Network Time Synchronization...
Stopping Record System Boot/Shutdown in UTMP...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Set Up Additional Binary Formats.
[ OK ] Unset automount Arbitrary …s File System Automount Point.
[ OK ] Stopped Record System Boot/Shutdown in UTMP.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting /run/credentials/systemd-sysusers.service...
[ OK ] Unmounted /run/credentials/systemd-sysusers.service.
[ OK ] Stopped target Preparation for Local File Systems.
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Create System Users.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped File System Check on Root Device.
[ OK ] Reached target System Shutdown.
[ OK ] Reached target Late Shutdown Services.
[ OK ] Finished System Power Off.
[ OK ] Reached target System Power Off.
[ 357.181412] reboot: Power down
and rebooted (with microSD)...
ubuntu@ubuntu:~$ sudo beagle-version | grep bootloader
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04 2023 - 18:48:26 +0000)]:[location: dd MBR]
ubuntu@ubuntu:~$ sudo beagle-version | grep UBOOT
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BBBW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk1 179:0 0 3.6G 0 disk
└─mmcblk1p1 179:1 0 3.6G 0 part /
mmcblk1boot0 179:256 0 4M 1 disk
mmcblk1boot1 179:512 0 4M 1 disk
Thanks for the feedback! I had a a chance to try this on a bunch of BBone Green - PCB version 1.0. Four of them are 3y old, but untouched & fresh out of the box. Two were older. All 6 failed / hang with the activated flasher.
ubuntu@ubuntu:~$ sudo beagle-version | grep bootloader
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04 2023 - 18:48:26 +0000)]:[location: dd MBR]
ubuntu@ubuntu:~$ sudo beagle-version | grep UBOOT
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29.5G 0 disk
`-mmcblk0p1 179:1 0 29.5G 0 part /
It would be odd if all of these are broken? The eMMC-IC is present though.
Complete Log:
ubuntu@ubuntu:~$ sudo beagle-version
eeprom:[A335BNLTBBG1BBG220011254]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[rcn-ee.net Ubuntu 22.04.3 Console Image 2023-09-28]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04 2023 - 18:48:26 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
kernel:[5.10.168-ti-r71]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
WARNING:pkg:[bb-cape-overlays]:[NOT_INSTALLED]
pkg:[bb-customizations]:[1.20230720.1-0~jammy+20230720]
pkg:[bb-usb-gadgets]:[1.20230414.0-0~jammy+20230414]
pkg:[bb-wl18xx-firmware]:[1.20230414.0-0~jammy+20230414]
pkg:[kmod]:[29-1ubuntu1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
groups:[ubuntu : ubuntu adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input render bluetooth netdev i2c gpio admin tisdk weston-launch cloud9ide]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 11.202756] remoteproc remoteproc0: wkup_m3 is available
[ 49.768287] remoteproc remoteproc0: powering up wkup_m3
[ 49.768322] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 49.768584] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 96.632529] remoteproc remoteproc1: 4a334000.pru is available
[ 96.679983] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[ 96.632529] remoteproc remoteproc1: 4a334000.pru is available
[ 96.679983] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[ 10.664868] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 10.666468] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[ 10.666499] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[ 11.377927] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[ 11.378130] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[ 11.378323] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[ 11.378483] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[ 11.378943] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[ 11.379283] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[ 11.379486] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[ 11.379660] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[ 11.379839] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[ 11.380000] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[ 11.380257] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[ 11.380421] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[ 11.380593] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[ 11.380778] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[ 11.380939] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[ 11.381130] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[ 11.381293] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[ 11.381470] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[ 11.381642] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[ 11.381799] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[ 11.381996] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[ 11.382162] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[ 11.382344] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[ 11.382515] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[ 11.382698] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[ 11.382868] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[ 11.383140] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[ 11.383323] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[ 11.383505] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[ 11.383675] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[ 11.383862] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[ 11.384038] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[ 11.384201] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[ 11.384394] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[ 11.384566] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[ 11.384740] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[ 11.384920] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[ 11.385091] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[ 11.385266] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[ 11.385423] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[ 11.385595] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[ 11.385765] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[ 11.385949] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[ 11.386123] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[ 11.386285] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[ 11.386479] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[ 11.386652] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[ 11.386818] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[ 11.386992] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[ 11.387268] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[ 11.387440] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[ 11.387649] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[ 11.387823] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[ 11.388011] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[ 11.388183] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[ 11.388346] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[ 11.388532] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[ 11.388695] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[ 11.389172] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[ 11.389369] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[ 11.389554] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[ 11.389736] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[ 11.389897] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[ 11.390072] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[ 11.390249] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[ 11.390412] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[ 11.390591] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[ 11.390766] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[ 11.390939] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[ 11.390950] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
Activating the flasher in
/boot/uEnv.txt
halts the BBone on reboot (heartbeat stops).It seems the/dev/mmcblk#
devices have been renamed or moved. I seespidev#.#
anddev/disk/...
now.Update
the sd-card is present, but eMMC is missing? when I remember correctly both were present on older images.
Setup