Rock5A emmc issue

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | the last
  • Distro version |
  • Kernel version |
  • Architecture |
  • SBC model | Rock 5A
  • Power supply used |
  • SD card used | SanDisk Extrem 32Go
  • emmc : emmc module v1.2 Radxa 32Go

Steps to reproduce

  1. Flash with Balene the emmc
  2. Try to boot

Actual behaviour

  • Nothing, no boot

Extra details

I have no issue to boot with a sdcar
the emmc works with a debian version

the issuearrives after an update a few month ago
before the update, everything was ok with emmc

could you please help me?

thx

Which image exactly? Debian != Debian, the bootloader and kernel are relevant, whether it is mainline Linux, or some vendor Linux build, and if so which one.

When you boot from SD card, can you mount and access the attached eMMC module? Which kernel version has it installed? You can see in the /boot directory of the mounted eMMC image.

And do you have a UART adapter to check serial console logs?

thx for your reply

the name of the debian release is: rock-5a_debian_bullseye_kde_b17.img.xz
I can mount the emmc yes but i don’t have the /boot directory to check the kernel version
image

no i don’t have en UART adapter

you would need to enter the drive mounted. Actually, you are still at /mnt which is not the mounted drive

1 Like

is it what you need?

i saw some stuff about hs400 and hs200
when it use hs200, and not with hs400
but I don’t know what is hs200 and hs400

So Linux 6.1 vendor kernel, okay.

HS200 and HS400 are protocol modes to access the eMMC, allowing 200 MB/s and 400 MB/s respectively.

Looks like this fixed the issue: arm64: dts: rock-5a: pull down data-strobe to fix emmc compatibility · armbian/linux-rockchip@7628960 · GitHub
I’ll build a new kernel and image.

… ah wait, looks like the kernel you use has this included already :thinking:.

Maybe indeed enabling HS400ES caused the issue: Enable HS400ES on Rock 5A · armbian/linux-rockchip@1447ae0 · GitHub
Regardless, probably it was fixed in another way. I’ll generate an image with fresh kernel first to test. If this does not work, I’ll generate one with HS400ES disabled, reverting the linked patch.

Same was done on ROCK 5B. Need to keep this in mind in case other report issues booting from eMMC on ROCK 5B as well: Enable HS400ES on Rock 5B · armbian/linux-rockchip@6ccac54 · GitHub

thx for your help
is it something that I can modify by myself? or I have to wait a new image? (sorry if my question is stupid)

Wait for the new image. I’ll keep you posted :slightly_smiling_face:.

Image ready to test: Index of /downloads/images/testing

i test it immediatly

it looks fine! it boots and the install process is starting :slight_smile:
juste have to wait until the end :slight_smile:

thx @MichaIng , it’s perfect :slight_smile:
does it mean that I have to avoid the futur updates?

Awesome. I’ll push the new kernel and bootloader to our APT repo then, so updates can safely be applied.

thx a lot for your help

1 Like