# Question about functionality support in radxa rock 5b

**URL:** <https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178>\
**Category:** General Discussion\
**Created:** [15 December 2024 14:38 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178 "2024-12-15T14:38:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GremlineQ](https://dietpi.com/forum/user_avatar/dietpi.com/gremlineq/32/4702_2.png) [@GremlineQ](https://dietpi.com/forum/u/GremlineQ)\
**Post date:** [15 December 2024 14:38 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/1 "2024-12-15T14:38:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [16 December 2024 11:50 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/2 "2024-12-16T11:50:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GremlineQ](https://dietpi.com/forum/user_avatar/dietpi.com/gremlineq/32/4702_2.png) [@GremlineQ](https://dietpi.com/forum/u/GremlineQ)\
**Post date:** [16 December 2024 12:46 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/3 "2024-12-16T12:46:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [16 December 2024 13:08 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/4 "2024-12-16T13:08:46Z")

</div>

Right. Note that you need to adjust the overlay prefix in `/boot/dietpiEnv.txt` to load this overlay. By default it is `rk3588`.

---

<div class="post-metadata">

**Author:** ![GremlineQ](https://dietpi.com/forum/user_avatar/dietpi.com/gremlineq/32/4702_2.png) [@GremlineQ](https://dietpi.com/forum/u/GremlineQ)\
**Post date:** [16 December 2024 13:36 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/5 "2024-12-16T13:36:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [16 December 2024 14:08 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/6 "2024-12-16T14:08:40Z")

</div>

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

```sh
for prefix in ${overlay_prefix}; do

```

loop when loading overlays. Then multiple prefixes could be added separated by space.

---

<div class="post-metadata">

**Author:** ![GremlineQ](https://dietpi.com/forum/user_avatar/dietpi.com/gremlineq/32/4702_2.png) [@GremlineQ](https://dietpi.com/forum/u/GremlineQ)\
**Post date:** [16 December 2024 20:30 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/7 "2024-12-16T20:30:25Z")

</div>

so if I change the prefix to rock 5b, it should work then? or will I have to add sata in the overlays variable?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [17 December 2024 04:14 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/8 "2024-12-17T04:14:28Z")

</div>

Yes, then `sata` to the overlays variable. The boot script checks for

```sh
/boot/dtb/overlay/$overlay_prefix-$overlay.dtbo

```

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [15 June 2025 04:15 UTC](https://dietpi.com/forum/t/question-about-functionality-support-in-radxa-rock-5b/22178/9 "2025-06-15T04:15:07Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
