Odroid XU4 eMMC Boot Fails

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | 9.7
  • Distro version | n/a
  • Kernel version | n/a
  • Architecture | n/a
  • SBC model | Odroid XU4
  • Power supply used | 5V 6A
  • SD card used | eMMC - Hardkernel Ubuntu for XU4

Steps to reproduce

  1. New eMMC from Odroid - preinstalled with their Ubuntu 22.04 (Tested OK)
  2. Flashed DietPi image with Etcher
  3. Boot fails and drops to initramfs
  4. Flashed XU4 eMMC recovery image from Odroid
  5. Booted to the Andriod OS that puts on eMMC - OK
  6. Re-flashed DietPi
  7. Boot fails
  8. Flashed back original Odroid Ubuntu image
  9. Boots OK
  10. Flashed DietPi img again
  11. Boot fails

Expected behaviour

  • Boots

Actual behaviour

  • Not booting
  • Messages below

Extra details


mmc_host mmc0: There is no candidates value about clksmpl!
mmc0: tuning execution failed: -5
mmc0: error -5 whilst initializing MMC card

Gave up waiting for root file system device. Common problems:
...
ALERT! UUID=7fdb5035-1637-4a78-b6f1-5775a14ceebf does not exist. Dropping to a shell!
  • The DietPi image was downloaded from DietPi site yesterday.
  • The image was flashed to eMMC with Hardkernel eMMC/SD adaptor in Transcend SD/USB
  • Etcher used for flashing
    • Tried Etcher both on Windows and Mint
    • Same result

In the past when flashing Armbian, pre-flashing the XU4 eMMC partition recovery solved eMMC issues. Not this time.

I know there are plenty of other similar topics - but they seem to be resolved by flashing the recovery image first, which I already tried (multiple times).

I also tried updating uboot whilst running on the Odroid Ubuntu OS (as indicated on their recovery page) - no change.

Any help appreciated as I would like to give DietPi a try!

Thanks
Jules.

maybe something for @MichaIng to have a look on. Probably something with the bootloader.

Hmm, generally the Armbian build system uses the original Hardkernel U-Boot sources, without any apparent patches which look like they could break it. But I do see that the function which flashes U-Boot does it differently when doing to eMMC, as there are these /dev/mmcblk0boot0 like special devices. Of course when preparing an image, it can only be flashed the regular way, so maybe it does generally not work to have an image which boots from eMMC right away without flashing U-Boot this special way first.

Can you try this:

  1. Flash DietPi to an SD card and boot that one.
  2. Then run the following, BUT check whether /dev/mmcblk0 is the eMMC, as might might be /dev/mmcblk1 (and the other one the SD card). Or just flash to both:
    source /usr/lib/u-boot/platform_install.sh
    write_uboot_platform "$DIR" /dev/mmcblk0
    

Then try to boot again from eMMC.

1 Like

thank you, i had the same problem, and it works for me.