Booting via EMMC

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=21
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
bookworm
Orange Pi 5 Plus (aarch64)
Linux KHG 5.10.160-legacy-rk35xx #1 SMP Mon Aug 28 01:21:24 UTC 2023 aarch64 GNU/Linux
5V 4A
Samsung EVO 32 GB

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)
    60879d40-c57e-485b-8a15-8209f4040897

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. …Seit einer Woche versuche ich dem Orange Pi 5 das booten von emmc beizubringen. Kein Erfolg. Dann habe ich Armbian installiert und dort wird im armbian-config Menü gefragt ob man über emmc booten will. Angeklickt und läuft.
    Jetzt habe ich 2 Möglichkeiten: Stecke ich die Dietpi-SDCard ein,
    startet dietpi os. Entferne ich sie, dann startet Armbian.
    Ich möchte über emmc das Dietpi-OS starten. Gibt es da Hoffnung für mich?

Expected behaviour

Actual behaviour

Extra details

Wir nutzen denselben kernel und bootloader, das kann also eigentlich nur beides klappen oder nicht klappen :thinking:.

Was sind denn die Symptome? Irgendeine Ausgabe auf HDMI? Was zeigen die LEDs? Hast du einen USB-UART-Adapter um bootloader logs zu sehen?

Welche kernelversion hat das Armbian image genau?

uname -a

Ich versuche es nachher auch mal.

kernelversion: Linux KHG 5.10.160-legacy-rk35xx #1 SMP Mon Aug 28 01:21:24 UTC 2023 aarch64 GNU/Linux

Nach meinem Verständnis müssten die Partitionen auf emmc erst einmal formatiert werden, bevor der Dietpi-Bootloader darauf geschrieben wird. Derzeit startet de Pi mit SD-Card mit Dietpi und ohne Karte mit Armbian.

Ich meine dass sich DietPi und Armbian jeweils auf dem eMMC gleich verhalten müssten.

Wenn du das Image flashed, dann beinhaltet das sowohl die Partitionierung als auch den Bootloader.

Welche Kernel-Paketversion ist es?

dpkg -l linux-image-legacy-rk35xx

linux-image-legacy-rk35xx 23.08.0-trunk–5.10.160-S2c1d-Df1ec-P0000-C2d32Hfe66-HK01ba-Vc222-Be693 arm64

Wenn das so wäre, dann müsste nach der Dietpi-Installation und Entnahme der SDCard auch Dietpi starten. Es startet dann aber Armbian.

Hmm da sind höchstens ein paer Commits dazwischen. Beide sind 23.08.0-trunk–5.10.160.

Was ist bzgl. meiner anderen Fragen: Symptome, LED Aktivität, HDMI und/oder serielle Konsole Ausgabe?

EDIT: Achso, oder ist das Problem/die Frage einfach nur wie man unser Image auf das eMMC Modul bekommt?

Bei Neustart muß ich öfter mal den Ethernet-Manager neu aktivieren. Und Kodi funktioniert auch nicht, aber das ist ein anders Thema.

genau :slight_smile:

Okay wenn du von SD Karte DietPi bootest, dann zeigt lsblk das eMMC Modul, richtig?

Dann ist das einfachste vom DietPi System aus ein neues DietPi image herunterzuladen und per dd auf den eMMC zu flashen.

bei Armbian-config steht unter Install der Punkt 5. Der hat das Unmögliche möglich gemacht.

das hatte ich schon versucht, hatte aber nicht geklappt. ( Moving a running DietPi system to a USB stick/disk or an onboard eMMC)

Guys even if we have a couple of people who speak German, it would be appreciate if you could use English instead. We are an international community and the topic might be interesting for other as well :wink:

Thx for understanding.

1 Like

the contribution
“Moving a running DietPi system to a USB stick/disk or onboard eMMC”.
is probably the best guide for my problem.
It occurred to me that the shrinking process could also be automated:
If instead of fully expanding the partition right away, you expand the partition only when needed, then this point could be removed from the process.
An example: The partition is extended by 1GB during installation. In the future it is checked whether this limit is reached and 200MB before again extended by 1GB. Then one does not need to worry about this process any more.

Translated with DeepL Translate: The world's most accurate translator (free version)

Do you still have that problem, @Carl52? I have an OrangePi 5Plus that I can run of either the eMMC or an NVMe m.2 drive (and the latter is WAY preferable… roughly 10x faster).
IIRC (and I did this a couple of months ago), the trick was to make sure that the boot partition on the eMMC (or NVMe) is actually marked as active. At least back then that was missing in the instructions.

Thanks for the quick reply. The nas disk is already attached to the nvme. I don’t want to have the OS on it. Because I have no idea but much interest. Therefore emmc. Of which I have 2 (16 and 256GB). Could I partition the large emmc also with 128GB so I have not bought it for nothing?

I saw that you are working with the dietpie-imager - is my idea really not feasible?
from my point of view (half knowledge) i don’t see any sense in expanding the disk fully. Perhaps you could explain this to me briefly (this is just a request).

Translated with DeepL Translate: The world's most accurate translator (free version)

What would be the goal of using a larger EMMC of 256 GB but only creating a partition of 128 GB??

Personally, I’m running my OPi5 (nonPlus) from NVMe fully.

Could this procedure be an alternative?

I guess he already used the guide @StephanStS

I had read in the OrangePi forum that the Pi can only manage 128GB.