Error: [/dev/mmcblk0] does not exist

After the discussion about slow browsers on the BBB I thought I’d install an older version to see if there was the same ‘slowness’ as I don’t remember it being that pokey.

Although I can boot from the SD image to the console connected with a 3.3V TTL to USB from the on board connector the video never shows up after the initial ICON on the top left corner. Once I’ve logged in

debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2019-08-03
debian@beaglebone:~$ uname -a
Linux beaglebone 4.14.108-ti-r113 #1 SMP PREEMPT Wed Jul 31 00:01:10 UTC 2019 armv7l GNU/Linux
debian@beaglebone:~$

Here I’ve shutdown and restarted after editing uEnv.txt to force programming the eMMC. It fails with the topic error.

[    3.694659] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-musb-hdrc.1-1.1/input0
[    3.729103] input: Logitech USB Receiver as /devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input2
[    3.822341] hid-generic 0003:046D:C534.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-musb-hdrc.1-1.1/input1
starting version 232
[    3.912554] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.930772] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.942998] random: udevadm: uninitialized urandom read (16 bytes read)
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 ... Scanning for Btrfs filesystems
done.
Warning: fsck not present, so skipping root file system
[    9.896158] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20180412: all ssh regneration override...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Sat Jan  1 00:00:08 UTC 2000
----------------------------------------
==> Giving system time to stablize...
5 4 3 2 1
==> Preparing /tmp
==> Preparing sysctl
==> sysctl: vm.min_free_kbytes=[2654]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
----------------------------------------
==> root_drive=[/dev/mmcblk1p1]
====> Root drive identified at [/dev/mmcblk1p1]
==> Boot Drive [/dev/mmcblk1p1]
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk1]
====> Destination identified: [/dev/mmcblk0]
==> Figuring out machine
====> Machine is TI_AM335x_BeagleBone_Black
====> Machine is compatible with BeagleBone Black
================================================================================
5 4 3 2 1

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

================================================================================
Checking running system
==> Copying: [/dev/mmcblk1] -> [/dev/mmcblk0]
==> lsblk:
----------------------------------------
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:8    0    4M  1 disk
mmcblk1boot1 179:16   0    4M  1 disk
mmcblk1rpmb  179:24   0    4M  0 disk
----------------------------------------
==> df -h | grep rootfs:
----------------------------------------
!==> Error: [/dev/mmcblk0] does not exist
writing to [/dev/mmcblk0] failed...
==> Stopping Cylon LEDs ...
Traceback (last called is first):
     reset_leds() in /opt/scripts/tools/eMMC/functions.sh:433
     write_failure() in /opt/scripts/tools/eMMC/functions.sh:451
     check_running_system() in /opt/scripts/tools/eMMC/functions.sh:614
     main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:47
The command kill $CYLON_PID > /dev/null 2>&1 exited with exit code 2.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
blockdev: cannot open /dev/mmcblk0: No such file or directory
==> Stopping Cylon LEDs ...
==> Setting LEDs to
[   21.441996] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[   21.441996]
[   21.451201] CPU: 0 PID: 1 Comm: init-eMMC-flash Not tainted 4.14.108-ti-r113 #1
[   21.458541] Hardware name: Generic AM33XX (Flattened Device Tree)
[   21.464709] [<c0113180>] (unwind_backtrace) from [<c010d690>] (show_stack+0x20/0x24)
[   21.472500] [<c010d690>] (show_stack) from [<c0ce54b4>] (dump_stack+0x80/0x94)
[   21.479763] [<c0ce54b4>] (dump_stack) from [<c013f7f0>] (panic+0x100/0x284)
[   21.486766] [<c013f7f0>] (panic) from [<c0145678>] (complete_and_exit+0x0/0x2c)
[   21.494114] [<c0145678>] (complete_and_exit) from [<c0145714>] (do_group_exit+0x50/0xd0)
[   21.502245] [<c0145714>] (do_group_exit) from [<c01457b4>] (__wake_up_parent+0x0/0x30)
[   21.510210] [<c01457b4>] (__wake_up_parent) from [<c0108d40>] (ret_fast_syscall+0x0/0x54)
[   21.518452] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[   21.518452]
[   40.453522] random: crng init done
[   40.456947] random: 7 urandom warning(s) missed due to ratelimiting



Is there a way to rebuilt the eMMC? I can boot a working newer image.

Seems to be writing now. Inserted and removed the sd card a couple of times. This time it booted and is now busty copying rootfs …