I’m using OrangePi PC Plus with DietPi 144 (base plus Squeezebox server and squeezelite), and everything runs just fine from SD card, no troubles at all
However, I would like to move everything to emmc and remove the SD card completely…
The instructons for OrangePi Plus don’t work - when using “blkid”, I don’t see /dev/mmcblk1 at all, just /dev/mmcblk0p1 (and /dev/mmcblk0p2).
So, what I’ve done is make an image of my “live” SD card system (e.g. “working.img”), put it on an external USB flash dongle, booted armbian from another SD card, and did a “dd” copy of the image stored on the external USB to /dev/mmcblk1 - which worked OK, the image was copied to emmc (/dev/mmcblk1), since armibian sees the emmc just fine, under /dev/mmcblk1(xxx)
But, when I remove the SD card, the OrangePi won’t boot from emmc and the copied DietPi image. I also set the “boot” partition as bootable - that didn’t change anything, still no go…
Emmc is working, previously I could boot the Chinese Android that came with it - and the armbian can see it and mount the DietPi partitions on it when I boot armbian from the SD card.
Perhaps there is something I need to change in the config - what puzzles me is that with DietPi I could not see the /dev/mmcblk1 at all, just the SD card (/dev/mmcblk0p1 and /dev/mmcblk0p2…) - therefore the trick with the armbian SD card, which I used to copy my working DietPi image to emmc…
It is obvious that it sees both the mmcblk0 (SD card from which it booted Armbian desktop) and mmcblk1 (the emmc memory, where I managed to install armbian server version with the same kernel as listed above under “armbian”).
So, it’s obvious that Armbian desktop version has normal access to emmc…
ARMbian 5.25 (kernel 3.4.113) current, breaks EMMC detection on your board. Nothing we can do about that. I believe if you run apt-get update and apt-get dist-upgrade on the ARMbian image, issue should re-occur once 5.25 is installed via their repo (which we use).
You could try (if its disabling EMMC when SD is plugged in):
One thing I noticed - on the Github issues, you marked this topic as “Opi Plus”. I have an OPi PC Plus - so i’ts not exactly the same board (although DietPi installs and runs quite nice, thank you…
Also, I’ve successfully installed Armbian 5.25 (server version, no desktop) to emmc, using the armbian “nand-sata-install” script: the script offered me the option to “boot from emmc, run from emmc” (or something like that), and I chose that and started the emmc copy.
After a while, the script installed the system to emmc, I shut the system down, took out the SD card, and booted from emmc without any issues.
BTW, kernel for that Armbian server (5.25) I have is:
root@orangepipcplus:~# uname -a
Linux orangepipcplus 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l GNU/Linux
So, I somehow suspect that it’s not the kernel issue… since this arbian version uses the same kernel.
As for your final suggestion, that is exactly what I did: I used armbian SD image to boot the Opi PC Plus, and copied the DietPi image (which I had copied on an external USB flash) to the emmc. The copy went without any issues, but when I took out the Armbian SD card, and tried to boot from emmc, no dice… - although the complete (working) DietPi image was copied to emmc (using “dd”)
I also marked the boot partition as bootable, just in case (using gparted in armbian desktop booted from SD card), but that didn’t help, either…
The above solution works for installing to emmc from scratch (“fresh” downloaded DietPi image).
Would it be possible to “clone” the existing DietPi system which is already installed and set up on the SD card?
I have a system installed on SD card, with everything I need, with lots of additions and custom installs, etc… which works the way I want.
Now, instead of redoing and reinstalling everything from scratch on a “virgin” (new) DietPi install to the emmc, would it be possible to just “clone” everything from root partition on the SD card to root partition on the emmc? That would save me a lot of trouble and repetitive work (and I’m not even sure I would be able to repeat everything “just right”
It took some fiddling to get this done, but it was my fault: I messed up firmware, by using the command “update firmware”, and now upon boot, the system throws some complaints, but boots anyway
So, I finally managed to clone my existing root partition from the SD card to emmc, and it works now.
I also had some issues with wifi, but managed to sort it out. It wasn’t exactly “plug and play”, but I have a working system now
I might try this again on another, fresh Opi PC Plus, and see if it will go faster (and easier) next time…