Is there any mender support for friendlyelec nanopi R5S device?

i want to use nanopi r5s device, but its partition layout and final image creation process is confusing.
it’s official image has 9 partitions that has diffrent partitions for kernel, dtb.

how can i use mender in this device?
is such partitioning can be used by mender?
or can i use mender partitioning for this device?


Hi @chezgi,

Thanks for reaching out! What means are you planning to create the image? Looking at the wiki, there seems to be no Yocto support, and I also could not spot anything in the various Rockchip-related public layers.

Once you have decided upon a strategy to proceed, you can look into integration details. I’m pretty sure the high partition count is just a particular design decision and you can replace it with a much simpler scheme.

The integration of Mender requires a bit of bootloader integration to do the A/B strategy, so you need a way to get that into your build at least. On top, Mender prefers to have kernel and devicetree on the rootfs partition to make it self-contained for a system update. You can work around that, but its always error-prone and reduces the features you can use, so definitely discouraged.

Generally speaking, the support is best when going the Yocto route, probably you can get started by looking at meta-rockchip and meta-mender-rockchip. The latter requires bumping to kirkstone too, though. Maybe I can help with that.


I have meta-mender-rockchip updated to kirkstone as I’m currently working on support for rk3328 (rock-pi-e board) and push it shortly.

Quick look at meta-rockchip show that r5s device is not supported by mainline. Use proprietary u-boot can be tricky. Which layers do you use for building image ATM? Thanks.

Please see PR here: Rockchip kirkstone updates by nandra · Pull Request #336 · mendersoftware/meta-mender-community · GitHub

i used meta-rockchip and some bbappend files for kernel and uboot in my layer.
it creates kernel and uboot successfully.

SRC_URI = "git://;protocol=https;nobranch=1;branch=nanopi5-v5.10.y_opt;"


SRC_URI = " \
	git://;protocol=https;branch=rkbin;name=rkbin;destsuffix=rkbin; \


SOC_FAMILY ?= "rk3568"
PREFERRED_VERSION_linux-rockchip ?= "5.10%"
LINUXLIBCVERSION ?= "5.10-custom%"

require conf/machine/include/

MALI_GPU := "bifrost-g52"
MALI_VERSION ?= "g2p0"


UBOOT_MACHINE = "nanopi5_defconfig"


	drm-cursor \

KERNEL_DEVICETREE = "rockchip/rk3568-nanopi5-rev01.dtb"

Which one please? :slight_smile: See: [yocto] [meta-rockchip] The various rockchip layers

I think you use Rockchip flavour with custom u-boot + kernel. Then I’ve asked also there: Mender support · Issue #61 · JeffyCN/meta-rockchip · GitHub :smiley:

As stated in commend on meta-rockchip you would need to use mainline u-boot instead of rockchip one. At least I’m not sure if this would be possible to backport to mainline u-boot.

i used u-boot provided by friendlyarm, and rockchip version not used here.

Looks like friendly-arm just forked rockchip u-boot: uboot-rockchip/Makefile at nanopi4-v2017.09 · friendlyarm/uboot-rockchip · GitHub (version is same as for rockchip uboot).

use nanopi5-v2017.09 branch for r5s
This branch is 2399 commits ahead, 7 commits behind nanopi4-v2017.09.

OK it’s same 2017.09 u-boot

@chezgi I’ll try to integrate mender to my radxa board which using same u-boot but earliest next week can start looking into it :wink:

thanks @MarekBelisko, i will wait for it.

@chezgi please check radxa integration: Preliminary radxa support · nandra/meta-mender-community@96d3dde · GitHub You can get some inspiration how to do it for your board.

Also this for config: Radxa Compute Module 3 - #3 by MarekBelisko

thanks @MarekBelisko for your helps,
I apologize for the late reply.
I am currently working on another field.