My Rock Pi4 boots just fine from eMMC, but I want to use my SD cards for storage.
However if a newly formatted SD card is in the SD card slot, the board will no longer boot (I dont have any output at that stage though.) But remove the SD card and it boots from the emmc just fine again.
I I am making a small cluster project, and have 6 of these Rock Pi 4A Ver 1.4 boards to boot from eMMC Plan is to use the SD cards in the SD slots for storage using GlusterFS)
(I am using the latest dietpi image)
Does anyone know how I can change the sbc to only try to boot from eMMC?
From what I have been able to find, the boot order is present in the boot loader (u-boot). So to change boot order from SD to eMMC, one will need to update u-boot.
A workaround (not tested yet) is to partition the SD card in such a way that there is empty space in the beginning, and then the storage partition starts. The empty space in the beginning can be upto 16Mb (as found on Slarm64), and can be zeroed out as suggested here:
In the meantime I have just tested that the SD was not set as bootable, or something like that.
The eMMc shows up as mmcblk2 and the SD card as mmcblk1 (so it stands to reason that it tries the SD card first).
Before booting, partition SD card such that around 1Gb unformatted space is left for it to expand, and create data partition in the rest.
System boots from SD card. After boot and setting up username etc, edit /boot/armbianEnv.txt and set rootdevice=UUID={uuid-of-your-emmc}.
Hopefully someone can provide a better solution which does not involve booting from SD card at all.
P.S.
A question: If all else fails, would it be possible to use USB device for storage? Something like an external hardisk. Those would provide faster storage besides getting rid of this issue.
hi, well I bought about 8 x 64GB Pro extreme A2 mSD storage cards, so I will stick with that if I can. I want to fast IO more than the throughput for when I add GlusterFS on top of it all.
Think that until a u-boot solution is available I will stick with just booting without SD cards in.
Using Python fabric I should be able to mount and init stuff once all is booted in one go. (just a little bothersome but hopefully I will not be booting too often.)
adding OS to both emmc and SD seems prone to issue, so will avoid that option for now, but thank you for helping out on a solution and the feedback, really great of you to help.
It’s wrong. Head of idbloader isn’t erased. Idbloader begining at 64 sectors (=512), not 1k bs. Uboot and trust modules was don’t erased all.
I have no problem with SDcard. If I remove boot flag from all partition on SD, then boot first parttition with boot flag from emmc.