BBB - 5.10.41-bone42 kernel - eMMC not detected on recent Seeed Studio manfactured BBB boards

On a 2017 BBB with kernel 5.10.41-bone42, the eMMC appears, and works correctly with the 5.10.41 kernel:

S10004 3.56 GiB
date:09/2016
manfid:0x000070
size:7471104

~# uname -r ; dmesg | rg '(mmc1|481d800)'
5.10.41-bone42
[    2.453678] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    4.032183] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    4.104183] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    4.238003] mmc1: new high speed MMC card at address 0001
[    4.254522] mmcblk1: mmc1:0001 S10004 3.56 GiB 
[    4.263840] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[    4.272998] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[    4.286475] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB, chardev (244:0)

On a newer BBB (Seeed studio manufactured model), the eMMC is not recognised (although the beaglebone boots from SD card without problems):

~# uname -r ; dmesg | rg '(mmc1|481d800)'
5.10.41-bone42
[    2.453196] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    4.032521] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    4.104530] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA

With the 4.19.191-bone67 kernel, the eMMC works fine, and I can read out the eMMC info from the Seeed Studio board:

M62704 3.53 GiB
date:08/2020
manfid:0x000070
size:7405568

~# uname -r ; dmesg | rg '(mmc1|481d800)'  
4.19.191-bone67
[    1.540905] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[    1.615202] mmc1: new high speed MMC card at address 0001
[    1.621911] mmcblk1: mmc1:0001 M62704 3.53 GiB  
[    1.627234] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB
[    1.633847] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB
[    1.640484] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB, chardev (245:0)

Cheers,

Tim.

It’s also worth pointing out that the Seeed beaglebone black eMMC user capacity is slightly smaller (3616 MiB vs. 3648 MiB) than the other BBB boards I’ve seen, so if anyone has hardcoded partition sizes in scripts etc. these may trip them up…

@TimSmall please share the output of:

sudo /opt/scripts/tools/version.sh

Regards,

With the SPI overlays enabled:

git:/opt/scripts/:[e8ae28ccc34a177e9435a0d24cdf8421e081c19a]
eeprom:[A335BNLTEIA02043SBB07828]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[rcn-ee.net console Debian Image 2017-05-21]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-I2C2-RTC-DS1338]
UBOOT: Loaded Overlay:[BB-SPIDEV0-00A0]
UBOOT: Loaded Overlay:[BB-SPIDEV1-00A0]
UBOOT: Loaded Overlay:[BB-UART1-00A0]
UBOOT: Loaded Overlay:[BB-UART4-00A0]
UBOOT: Loaded Overlay:[BB-UART4-RTSCTS-00A0]
UBOOT: Loaded Overlay:[BB-UART5-00A0]
UBOOT: Loaded Overlay:[dev-USB-PWR-CTL-00A1]
kernel:[5.10.41-bone42]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/B-I2C1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr1=/lib/firmware/BB-SPIDEV0-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-SPIDEV1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr3=/lib/firmware/BB-UART1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/BB-UART5-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/BB-UART4-RTSCTS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr7=/lib/firmware/BB-I2C2-RTC-DS1338.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[dtb_overlay=/lib/firmware/dev-USB-PWR-CTL-00A1.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210416.0-0~buster+20210416]
pkg:[bb-customizations]:[1.20210708.0-0~buster+20210708]
WARNING:pkg:[bb-usb-gadgets]:[NOT_INSTALLED]
WARNING:pkg:[bb-wl18xx-firmware]:[NOT_INSTALLED]
pkg:[kmod]:[26-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c netdev gpio pwm bluetooth admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 omap_rtc.blacklist=yes module_blacklist=rtc-omap rtc-omap.blacklist=yes]
dmesg | grep remote
[    1.869114] remoteproc remoteproc0: wkup_m3 is available
[    4.052723] remoteproc remoteproc0: powering up wkup_m3
[    4.089046] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    4.126084] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   71.053508] remoteproc remoteproc1: 4a334000.pru is available
[   71.222222] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   71.053508] remoteproc remoteproc1: 4a334000.pru is available
[   71.222222] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    1.993125] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    2.662143] pinctrl-single 44e10800.pinmux: Invalid number of rows: 0
[    2.662181] pinctrl-single 44e10800.pinmux: no pins entries for pinmux_bb_usb1_pwr
[    4.073286] pinctrl-single 44e10800.pinmux: pin PIN12 already requested by 481a0000.spi; cannot claim for 481d8000.mmc
[    4.110842] pinctrl-single 44e10800.pinmux: pin-12 (481d8000.mmc) status -22
[    4.147139] pinctrl-single 44e10800.pinmux: could not request pin 12 (PIN12) from group pinmux_emmc_pins  on device pinctrl-single
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 9710:7830 MosChip Semiconductor MCS7830 10/100 Mbps Ethernet adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Also:

~# dmesg | grep -i 481d8000
[    2.487605] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    4.073286] pinctrl-single 44e10800.pinmux: pin PIN12 already requested by 481a0000.spi; cannot claim for 481d8000.mmc
[    4.110842] pinctrl-single 44e10800.pinmux: pin-12 (481d8000.mmc) status -22
[    4.169466] sdhci-omap 481d8000.mmc: Error applying setting, reverse things back
[    4.184596] sdhci-omap: probe of 481d8000.mmc failed with error -22

With the SPI overlays disabled:

git:/opt/scripts/:[e8ae28ccc34a177e9435a0d24cdf8421e081c19a]
eeprom:[A335BNLTEIA02043SBB07828]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[rcn-ee.net console Debian Image 2017-05-21]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-I2C2-RTC-DS1338]
UBOOT: Loaded Overlay:[BB-UART1-00A0]
UBOOT: Loaded Overlay:[BB-UART4-00A0]
UBOOT: Loaded Overlay:[BB-UART4-RTSCTS-00A0]
UBOOT: Loaded Overlay:[BB-UART5-00A0]
UBOOT: Loaded Overlay:[dev-USB-PWR-CTL-00A1]
kernel:[5.10.41-bone42]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/B-I2C1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr3=/lib/firmware/BB-UART1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/BB-UART5-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/BB-UART4-RTSCTS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr7=/lib/firmware/BB-I2C2-RTC-DS1338.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[dtb_overlay=/lib/firmware/dev-USB-PWR-CTL-00A1.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210416.0-0~buster+20210416]
pkg:[bb-customizations]:[1.20210708.0-0~buster+20210708]
WARNING:pkg:[bb-usb-gadgets]:[NOT_INSTALLED]
WARNING:pkg:[bb-wl18xx-firmware]:[NOT_INSTALLED]
pkg:[kmod]:[26-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]

~# dmesg | grep -i 481d8000
[ 2.453289] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[ 4.036706] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[ 4.108819] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA

In both cases only the SD card is detected:

~# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 14.9G  0 disk 
|-mmcblk0p1 179:1    0   96M  0 part 
`-mmcblk0p2 179:2    0  3.5G  0 part /

Yeap, that’s why you lost eMMC…

I’m working on this isssue…

uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/B-I2C1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr3=/lib/firmware/BB-UART1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/BB-UART5-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/BB-UART4-RTSCTS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr7=/lib/firmware/BB-I2C2-RTC-DS1338.dtbo]

Drop the ‘/lib/firmware/’ part, that way it can pull in the “kernel” specific overlays…

Regards,

Hi Robert,

Thanks for the response, but the eMMC is not detected even when the SPI-enable overlays aren’t loaded - (see the “With the SPI overlays disabled:” section further down in the previous post). If the same SD card is moved to an older BBB, then the eMMC is detected - so it appears to be a combination of the newer Kingston eMMC (which is on the Seeed BBB), and the 5.10.41-bone42 kernel.

Cheers,

Tim.

If there’s nothing immediately obvious on this, then please let me know and I’ll try and work out when the regression occurred (since 4.19.1xx kernels do detect the eMMC on Seeed BBB, and the 5.10.41 kernel does detect the eMMC on older BBB).

This is the issue, i’m working on it… Essentially due to a change in the pinctrl struct, overlays built externally to the kernel are not compatibly with device tree’s built inside the kernel… The change occurred in either 5.8/5.9…

Regards,

OK, thanks.

The problem I had been focussing on was the failure to detect the eMMC on the Seeed BBB. I think this was due to an older MLO (or possibly some other component of the boot process) having been written to the eMMC on the Seeed studio beaglebone, and getting read during the SD card boot sequence.

After booting into the 4.19.x kernel (from sd card), and erasing the eMMC on the Seeed studio beaglebone, and then switching back to the 5.10.41 kernel (still booted from the sd card) was then able to detect the eMMC.

(n.b. this was with the SPI and other overlays disabled).

I think I’m seeing similar behavior in switching from BBB to Seed BBG when trying to flash our image via SD card.

Would you mind giving some more detail (how to) into : After booting into the 4.19.x kernel (from sd card), and erasing the eMMC on the Seeed studio beaglebone, and then switching back to the 5.10.41 kernel (still booted from the sd card) was then able to detect the eMMC. so that I can try as well?

can you post your logs of those 2 devices, please add:

sudo /opt/scripts/tools/version.sh

for the details bits…

Regards,

I will get information you requested when I can (the BBG is not physically with me at present).

In the meantime, uname -a gives Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l GNU/Linux.

I don’t see way to attach log files so will insert.

U-Boot SPL 2015.01-00001-gb2412df (Jan 29 2015 - 15:01:06)


U-Boot 2015.01-00001-gb2412df (Jan 29 2015 - 15:01:06), Build: jenkins-github_Bootloader-Builder-105

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
1673 bytes read in 21 ms (77.1 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-3.8.13-bone68b ...
5507296 bytes read in 327 ms (16.1 MiB/s)
loading /boot/dtbs/3.8.13-bone68b/am335x-boneblack.dtb ...
26098 bytes read in 24 ms (1 MiB/s)
loading /boot/initrd.img-3.8.13-bone68b ...
2843062 bytes read in 177 ms (15.3 MiB/s)
debug: [console=ttyO0,115200n8 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN root=UUID=e8e4d3da-3529-4fae-ac36-a8a1783311a9 ro rootfstype=ext4 rootwait fixrtc init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh] ...
debug: [bootz 0x82000000 0x88080000:2b61b6 0x88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x5408e0 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fd49000, end 8ffff1b6 ... OK
   Loading Device Tree to 8fd3f000, end 8fd485f1 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.8.13-bone68b (colinbes@besterdesigns-ubuntu) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) ) #2 SMP Wed Sep 21 14:27:02 CDT 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES2.1 (l2cache sgx neon )
[    0.000000] PERCPU: Embedded 9 pages/cpu @c0d11000 s14080 r8192 d14592 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
[    0.000000] Kernel command line: console=ttyO0,115200n8 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN root=UUID=e8e4d3da-3529-4fae-ac36-a8a1783311a9 ro rootfstype=ext4 rootwait fixrtc init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 511MB = 511MB total
[    0.000000] Memory: 505612k/505612k available, 18676k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf800000 - 0xbfe00000   (   6 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07c0e18   (7908 kB)
[    0.000000]       .init : 0xc07c1000 - 0xc07fe700   ( 246 kB)
[    0.000000]       .data : 0xc0800000 - 0xc08877c0   ( 542 kB)
[    0.000000]        .bss : 0xc08877c0 - 0xc0900f40   ( 486 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:0 nr_irqs:0 0
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000228] Calibrating delay loop... 993.47 BogoMIPS (lpj=969728)
[    0.029190] pid_max: default: 32768 minimum: 301
[    0.029326] Security Framework initialized
[    0.029385] Mount-cache hash table entries: 512
[    0.034995] Initializing cgroup subsys cpuacct
[    0.035018] Initializing cgroup subsys memory
[    0.035095] Initializing cgroup subsys blkio
[    0.035184] CPU: Testing write buffer coherency: ok
[    0.035565] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.035620] Setting up static identity map for 0x804a3f38 - 0x804a3f84
[    0.036535] Brought up 1 CPUs
[    0.036550] SMP: Total of 1 processors activated (993.47 BogoMIPS).
[    0.037331] devtmpfs: initialized
[    0.045744] omap_hwmod: wd_timer2: _wait_target_disable failed
[    0.097879] pinctrl core: initialized pinctrl subsystem
[    0.098011] rstctl core: initialized rstctl subsystem
[    0.098290] regulator-dummy: no parameters
[    0.098600] NET: Registered protocol family 16
[    0.099147] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.104775] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.105317] platform 49000000.edma: alias fck already exists
[    0.105335] platform 49000000.edma: alias fck already exists
[    0.105390] platform 49000000.edma: alias fck already exists
[    0.106091] OMAP GPIO hardware version 0.1
[    0.108520] gpio-rctrl rstctl.4: loaded OK
[    0.111752] No ATAGs?
[    0.111770] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.113000] cpsw.0: No hwaddr in dt. Using 80:f5:b5:d7:fe:b1 from efuse
[    0.113019] cpsw.1: No hwaddr in dt. Using 80:f5:b5:d7:fe:b3 from efuse
[    0.121230] bio: create slab <bio-0> at 0
[    0.127499] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.127780] vmmcsd_fixed: 3300 mV
[    0.129340] SCSI subsystem initialized
[    0.129580] usbcore: registered new interface driver usbfs
[    0.129639] usbcore: registered new interface driver hub
[    0.129838] usbcore: registered new device driver usb
[    0.131073] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    0.131961] input: tps65217_pwr_but as /devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0
[    0.133564] DCDC1: at 1500 mV
[    0.134392] vdd_mpu: 925 <--> 1325 mV at 1325 mV
[    0.135235] vdd_core: 925 <--> 1150 mV at 1125 mV
[    0.136035] LDO1: at 1800 mV
[    0.136822] LDO2: at 3300 mV
[    0.138294] LDO3: 1800 mV
[    0.139132] LDO4: at 3300 mV
[    0.139841] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    0.140288] omap_i2c 44e0b000.i2c: unable to select pin group
[    0.140800] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz
[    0.142132] omap_i2c 4819c000.i2c: unable to select pin group
[    0.142274] media: Linux media interface: v0.10
[    0.142336] Linux video capture interface: v2.00
[    0.142406] pps_core: LinuxPPS API ver. 1 registered
[    0.142414] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.142878] Advanced Linux Sound Architecture Driver Initialized.
[    0.143465] NetLabel: Initializing
[    0.143476] NetLabel:  domain hash size = 128
[    0.143483] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.143546] NetLabel:  unlabeled traffic allowed by default
[    0.143748] Switching to clocksource gp_timer
[    0.174959] NET: Registered protocol family 2
[    0.175643] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.175724] TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
[    0.175818] TCP: Hash tables configured (established 4096 bind 4096)
[    0.175880] TCP: reno registered
[    0.175895] UDP hash table entries: 256 (order: 1, 12288 bytes)
[    0.175920] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[    0.176146] NET: Registered protocol family 1
[    0.176533] RPC: Registered named UNIX socket transport module.
[    0.176544] RPC: Registered udp transport module.
[    0.176551] RPC: Registered tcp transport module.
[    0.176558] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.176774] Trying to unpack rootfs image as initramfs...
[    0.352623] Freeing initrd memory: 2776K
[    0.352990] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.353247] CPU PMU: attempt to register multiple PMU devices!
[    0.353272] arm-pmu: probe of arm-pmu failed with error -28
[    0.353578] omap2_mbox_probe: platform not supported
[    0.505545] VFS: Disk quotas dquot_6.5.2
[    0.505681] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.506389] NFS: Registering the id_resolver key type
[    0.506456] Key type id_resolver registered
[    0.506465] Key type id_legacy registered
[    0.506732] fuse init (API version 7.20)
[    0.507186] Btrfs loaded
[    0.507291] msgmni has been set to 992
[    0.508886] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.508902] io scheduler noop registered
[    0.508910] io scheduler deadline registered
[    0.508931] io scheduler cfq registered (default)
[    0.510077] tps65217-bl tps65217-bl: no platform data provided
[    0.510102] tps65217-bl: probe of tps65217-bl failed with error -22
[    0.510599] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.511959] omap_uart 44e09000.serial: did not get pins for uart0 error: -19
[    0.512239] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.280300] console [ttyO0] enabled
[    1.284618] [drm] Initialized drm 1.1.0 20060810
[    1.296735] brd: module loaded
[    1.303694] loop: module loaded
[    1.307103] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.314426] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.321674] at24 1-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.328919] at24 1-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.336141] at24 1-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.350029] bone-capemgr bone_capemgr.9: Baseboard: 'A335BNLT,00C0,2125SBB13845'
[    1.357794] bone-capemgr bone_capemgr.9: compatible-baseboard=ti,beaglebone-black
[    1.365640] bone-capemgr bone_capemgr.9: Skipping disabled cape with part# BB-BONELT-HDMI
[    1.374222] bone-capemgr bone_capemgr.9: Skipping disabled cape with part# BB-BONELT-HDMIN
[    1.413357] bone-capemgr bone_capemgr.9: slot #0: No cape found
[    1.450463] bone-capemgr bone_capemgr.9: slot #1: No cape found
[    1.487572] bone-capemgr bone_capemgr.9: slot #2: No cape found
[    1.524681] bone-capemgr bone_capemgr.9: slot #3: No cape found
[    1.530899] bone-capemgr bone_capemgr.9: slot #4: specific override
[    1.537465] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 4
[    1.545461] bone-capemgr bone_capemgr.9: slot #4: 'Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G'
[    1.555522] bone-capemgr bone_capemgr.9: slot #5: specific override
[    1.562080] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 5
[    1.570078] bone-capemgr bone_capemgr.9: slot #5: 'Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI'
[    1.580048] bone-capemgr bone_capemgr.9: slot #6: specific override
[    1.586607] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 6
[    1.594606] bone-capemgr bone_capemgr.9: slot #6: 'Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN'
[    1.604856] bone-capemgr bone_capemgr.9: Skipping loading of disabled cape with part# BB-BONELT-HDMI
[    1.614418] bone-capemgr bone_capemgr.9: Skipping loading of disabled cape with part# BB-BONELT-HDMIN
[    1.624175] bone-capemgr bone_capemgr.9: initialized OK.
[    1.629747] bone-capemgr bone_capemgr.9: loader: before slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[    1.638582] bone-capemgr bone_capemgr.9: loader: check slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[    1.648729] OneNAND driver initializing
[    1.653656] usbcore: registered new interface driver cdc_ether
[    1.659809] usbcore: registered new interface driver rndis_host
[    1.666055] bone-capemgr bone_capemgr.9: loader: after slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[    1.674855] usbcore: registered new interface driver cdc_ncm
[    1.680788] bone-capemgr bone_capemgr.9: slot #4: Requesting firmware 'cape-bone-2g-emmc1.dtbo' for board-name 'Bone-LT-eMMC-2G', version '00A0'
[    1.694808] usbcore: registered new interface driver cdc_acm
[    1.700745] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.709102] Initializing USB Mass Storage driver...
[    1.714216] bone-capemgr bone_capemgr.9: slot #4: dtbo 'cape-bone-2g-emmc1.dtbo' loaded; converting to live tree
[    1.724925] usbcore: registered new interface driver usb-storage
[    1.731202] USB Mass Storage support registered.
[    1.736225] bone-capemgr bone_capemgr.9: slot #4: #2 overlays
[    1.742798] bone-capemgr bone_capemgr.9: slot #4: Applied #2 overlays.
[    1.749658] bone-capemgr bone_capemgr.9: loader: done slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[    1.758417] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    1.764982] musb-hdrc musb-hdrc.0.auto: pdev->id = 0
[    1.770183] musb-hdrc musb-hdrc.0.auto: drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[    1.779142] musb-hdrc musb-hdrc.0.auto: *** mode=3
[    1.784194] musb-hdrc musb-hdrc.0.auto: *** power=250
[    1.789959] musb-hdrc musb-hdrc.1.auto: pdev->id = 1
[    1.795183] musb-hdrc musb-hdrc.1.auto: drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[    1.804069] musb-hdrc musb-hdrc.1.auto: *** mode=1
[    1.809096] musb-hdrc musb-hdrc.1.auto: *** power=250
[    1.814375] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.820605] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.828952] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.836064] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.843612] usb usb1: Product: MUSB HDRC host driver
[    1.848798] usb usb1: Manufacturer: Linux 3.8.13-bone68b musb-hcd
[    1.855168] usb usb1: SerialNumber: musb-hdrc.1.auto
[    1.860975] hub 1-0:1.0: USB hub found
[    1.864943] hub 1-0:1.0: 1 port detected
[    1.869778] mousedev: PS/2 mouse device common for all mice
[    1.877130] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.884743] i2c /dev entries driver
[    1.889338] pps_ldisc: PPS line discipline registered
[    1.894720] Driver for 1-wire Dallas network protocol.
[    1.901206] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.908793] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: dm-devel@redhat.com
[    1.917681] cpuidle: using governor ladder
[    1.922006] cpuidle: using governor menu
[    1.926387] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[    1.933574] omap_hsmmc mmc.5: Failed to get rstctl; not using any
[    1.940226] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[    1.947379] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[    1.954637] mmc.5 supply vmmc_aux not found, using dummy regulator
[    1.961427] omap_hsmmc mmc.5: pins are not configured from the driver
[    1.995610] gpio-rctrl rstctl.4: gpio_rctrl_request eMMC_RSTn
[    2.001946] omap_hsmmc mmc.11: Got rstctl (gpio:#0 name eMMC_RSTn) label:eMMC_RSTn
[    2.009920] gpio-rctrl rstctl.4: gpio_rctrl_deassert eMMC_RSTn
[    2.016248] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
[    2.023326] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
[    2.030719] mmc.11 supply vmmc_aux not found, using dummy regulator
[    2.037363] omap_hsmmc mmc.11: pins are not configured from the driver
[    2.071856] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[    2.083519] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[    2.090797] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
[    2.099735] leds-gpio gpio-leds.8: pins are not configured from the driver
[    2.107658] ledtrig-cpu: registered to indicate activity on CPUs
[    2.114205] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[    2.121360] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    2.128754] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    2.134971] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[    2.142093] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[    2.152047] usbcore: registered new interface driver usbhid
[    2.157947] usbhid: USB HID core driver
[    2.162858] ashmem: initialized
[    2.166504] logger: created 256K log 'log_main'
[    2.171305] mmc0: host does not support reading read-only switch. assuming write-enable.
[    2.179987] logger: created 256K log 'log_events'
[    2.185131] logger: created 256K log 'log_radio'
[    2.190189] logger: created 256K log 'log_system'
[    2.195226] mmc0: new high speed SDHC card at address e624
[    2.202840] TCP: cubic registered
[    2.206812] mmcblk0: mmc0:e624 SS08G 7.40 GiB
[    2.211586] NET: Registered protocol family 10
[    2.217649] NET: Registered protocol family 17
[    2.222494]  mmcblk0: p1 p2
[    2.225797] Key type dns_resolver registered
[    2.230486] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    2.239382] ThumbEE CPU extension supported.
[    2.243904] Registering SWP/SWPB emulation handler
[    2.249593] registered taskstats version 1
[    2.302037] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.308420] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.315004] mmc1: unrecognised EXT_CSD revision 8
[    2.319937] mmc1: error -22 whilst initialising MMC card
[    2.332566] libphy: 4a101000.mdio: probed
[    2.336857] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    2.346680] Detected MACID = 80:f5:b5:d7:fe:b1
[    2.351288] cpsw 4a100000.ethernet: NAPI disabled
[    2.357591] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.371306] ALSA device list:
[    2.374458]   No soundcards found.
[    2.378670] Freeing init memory: 244K
Loading, please wait...
[    2.453481] udevd[92]: starting version 175
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[    3.527092] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.

-----------------------------
Starting eMMC Flasher from microSD media
Version: [1.003: 2015-08-31: use on x15 too...]
-----------------------------
Checking for Valid bbb-eeprom header
Valid bbb-eeprom header found [335]
-----------------------------
copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
lsblk:
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0   7.4G  0 disk
|-mmcblk0p1 179:1    0    96M  0 part /boot/uboot
`-mmcblk0p2 179:2    0   2.8G  0 part /
-----------------------------
df -h | grep rootfs:
rootfs                                                  2.6G  1.9G  635M  75% /
-----------------------------
Error: [/dev/mmcblk1] does not exist
writing to [/dev/mmcblk1] failed...
[    9.355618] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    9.355618]
[    9.365202] [<c001125d>] (unwind_backtrace+0x1/0x98) from [<c049a8f3>] (panic+0x5b/0x160)
[    9.373743] [<c049a8f3>] (panic+0x5b/0x160) from [<c00332c1>] (do_exit+0x5f5/0x674)
[    9.381727] [<c00332c1>] (do_exit+0x5f5/0x674) from [<c0033383>] (do_group_exit+0x27/0x6c)
[    9.390344] [<c0033383>] (do_group_exit+0x27/0x6c) from [<c00333d5>] (__wake_up_parent+0x1/0x18)
[    9.399520] [<c00333d5>] (__wake_up_parent+0x1/0x18) from [<c000c741>] (ret_fast_syscall+0x1/0x46)





















































Oh my, 3.8.13 and a 2015.01 build of u-boot!!!

So… I don’t want to break or corrupt your current data on that device. What do you want that device to do going forward? With something that old, anything i recommend would be to really start over with a fresh flash/install…

Edit:

[    2.315004] mmc1: unrecognised EXT_CSD revision 8
[    2.319937] mmc1: error -22 whilst initialising MMC card

you build is missing these two patches…

3.8.13-bone68b –

This was fixed on: Jun 15, 2016:

and released as 3.8.13-bone80,

Regards,

Thanks Robert,

We were planning on updating our image later this year - just not now and not in the midst of all these supply interruptions.

We have been successfully flashing boards shipped with beaglebone 5.2.20-bone12 so was surprised that older boards shipping with beaglebone 4.19.94-ti-r42 won’t flash, the difference being that these ‘non-flashable’ boards are from Seeed (I am not making any inference to issues their side).

I will look into patches you mention and may also try flash the seeed board to 5.2.20 and then downgrade to our version (I know this may not make sense, but will buy me time) and see if this works - I’d imaging if issue is related to some difference in hardware though that this won’t help.

I am also very keen to chat to any consultants/contractors to assist with all things Beaglebone.

Thanks again for your continued assistance - we exchanged emails more than once several years back!

~Colin

Hi @Colin_Bester ,

It’s not about what linux image shipped with the board, it’s about the version of the eMMC modules installed on the PCB.

So the issue is availability of 4GB eMMC modules. Throughout BeagleBone’s manufacturing era we utilized a bunch of supplies from Micron to Kingston… Initially everything was eMMC 4.3 based, but as fab process’s matured, most eMMC 4.3 production went EOL and was switched over to eMMC 5.1…

So today, everything is eMMC 5.1, unless you scrape together some random EOL eMMC 4.3 modules from some wholesale inventory website…

Now to the kernel, right before June 15, 2016 i got a board from Seeed that was the first board to ‘ever’ use these new fancy eMMC 5.1 modules… Committed the patch, and never really thought about it.

Now years later, right on cue about once a month we get an email from users who has the same old…

[    2.315004] mmc1: unrecognised EXT_CSD revision 8
[    2.319937] mmc1: error -22 whilst initialising MMC card

Kinda weird… as it’s now 2022, dealing with an issue that was fixed way back in 2016…

The issue is known, the fix is in git, the issue use to be really easy to fix…

But every year, Linux get’s more and more updates changes… We are now to the point, that old “3.8.x” kernel is now longer build-able on an up to date Linux system (Debian 11.x, Ubuntu 21.04) without even more patches… So if you want to rebuild it yourself, fire up a VM and install an old version of Debian/Ubuntu to help you cross build 3.8.x…

Here is that old tree… Commits · RobertCNelson/bb-kernel · GitHub if your host is using gcc-10 for HOSTCC, there is patch to force it to use gcc-9 for HOSTCC… if your system is gcc-11… yeah no… support has ended…

We even had a user who wanted to add a new usb WiFi dongle to 3.8.x a month ago… Yeah…no…

If your still trying to flash a 3.8.x based image to the eMMC, in 2022 it’s really eol, un-supported/etc…

After all that, if you still need 3.8.x and you can’t patch the kernel… There is another option… Why are you using the eMMC? At this point microSD’s are cheap and overkill on size, just use a microSD and ignore the eMMC…

Regards,

Thanks @RobertCNelson, I was considering using the SD card for now but was worried about reliability as user has no access to SD slot (which is a good thing) and I have no experience on reliability especially in a noisy emc environment and a higher frequency vibrations.

If I manage to get the kernel built and seeing as only mmc.c has changed, is there a file (module, library etc) that I can simply copy across to working device with my old version and simply create new SD card for flashing? This would be so much faster than creating new (still old 3.8.x) image and then patching and installing for our setup.

I would think this would be possible (how many times has this been said in ignorance) but I am not sure which file/module etc I would need to copy across.

It’s not an external module, the patch touches something “built-in” mmc… You’ll need to swap the “vmlinuz-*” file along with every module it uses…

Thanks