Radxa rock 5B has a function to use the m.2 e port as a sata port using an adapter and overlay, I would like to know how to use it in dietpi? I don’t have the opportunity to check the answer yet because I first want to know if such an option exists at all
Do you want to boot from that SATA drive or just use it as additional data storage?
I currently cannot check it as I am on the road, but if you have the SBC booted already from SD card or so, you can check in /boot/dtb/overlay
whether there is a matching one. I remember for some SBCs this exists.
To boot from an M.2 SATA drive, there is however a different bootloader build needed. If generally supported, this is also shipped with the image, in /usr/lib/linux-u-boot*/
. In case, there are two U-Boot binaries, one of them with sata
suffix. It can be flashed via script located in /usr/lib/u-boot/
. dietpi-config
so far only flashes the default/NVMe binary.
I was going to use this as an additional space.
so if there is a file like rock-5b-sata.dtbo in this folder …/overlay/ the m.2 e port will be used as a sata port?
Right. Note that you need to adjust the overlay prefix in /boot/dietpiEnv.txt
to load this overlay. By default it is rk3588
.
will I have to replace rk3588 or write it after a comma or should I change the name of this file rock-5b-sata.dtbo to rk3588-rock-5b-sata.dtbo or what?
Change the prefix to rock-5b
. Actually I always wanted to add support for multiple prefixes, which is quite simple to achieve in /boot/boot.cmd
doing another nested
for prefix in ${overlay_prefix}; do
loop when loading overlays. Then multiple prefixes could be added separated by space.
so if I change the prefix to rock 5b, it should work then? or will I have to add sata in the overlays variable?
Yes, then sata
to the overlays variable. The boot script checks for
/boot/dtb/overlay/$overlay_prefix-$overlay.dtbo