configs/friendlyarm_nanopi_r3s_defconfig: new defconfig
PATCH v3 1/1 configs/friendlyarm_nanopi_r3s_defconfig: new defconfig
This patch adds basic support for the new FriendlyARM NanoPi R3S board:
- https://www.friendlyelec.com/index.php?route=product/product&product_id=303
- https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R3S
Hardware Spec:
- CPU: Rockchip RK3566, Quad-core Cortex-A55
- RAM: 2GB LPDDR4X
- Ethernet: one Native Gigabit Ethernet, and one PCIe Gigabit Ethernet
- USB3.0 Host: Type-A x1
- Storage: MicroSD Slot x 1, and on-board 32GB eMMC
- Debug Serial Port: 3.3V TTL, 3-pin 2.54mm pitch connector, 1500000 bauds
- LED: LED x 3
- RTC: One low-power RTC, support backup battery input
- Buttons: 1x User button, 1x MASK button for eMMC flashing via USB-C
- Display: 1x MIPI-DSI 30-Pin FPC connector
BSP includes the following components:
- mainline ATF v2.12
- mainline U-Boot v2025.04-rc2
- mainline Linux kernel v6.13.4
---
Changes v2->v3:
- Renamed file genimage.cfg to genimage.cfg.in
- Renamed file extlinux.conf to extlinux.conf.in
- Changed post-build.sh file
- Simplified kernel.config file (make linux-update-defconfig)
Changes v1->v2:
- Added firmware for RTL8169
- Improved files: post-build.sh, extlinux.conf, kernel.config
- Bumped Linux Kernel version to 6.13.4
--- board/friendlyarm/nanopi-r3s/extlinux.conf.in | 4 + board/friendlyarm/nanopi-r3s/genimage.cfg.in | 19 +++ board/friendlyarm/nanopi-r3s/kernel.config | 118 ++++++++++++++++++ .../arm-trusted-firmware.hash | 2 + .../patches/linux-headers/linux-headers.hash | 1 + .../nanopi-r3s/patches/linux/linux.hash | 2 + .../nanopi-r3s/patches/uboot/uboot.hash | 2 + board/friendlyarm/nanopi-r3s/post-build.sh | 7 ++ board/friendlyarm/nanopi-r3s/readme.txt | 39 ++++++ .../rootfs_overlay/etc/network/interfaces | 8 ++ configs/friendlyarm_nanopi_r3s_defconfig | 43 +++++++ 11 files changed, 245 insertions(+) create mode 100644 board/friendlyarm/nanopi-r3s/extlinux.conf.in create mode 100644 board/friendlyarm/nanopi-r3s/genimage.cfg.in create mode 100644 board/friendlyarm/nanopi-r3s/kernel.config create mode 100644 board/friendlyarm/nanopi-r3s/patches/arm-trusted-firmware/arm-trusted-firmware.hash create mode 120000 board/friendlyarm/nanopi-r3s/patches/linux-headers/linux-headers.hash create mode 100644 board/friendlyarm/nanopi-r3s/patches/linux/linux.hash create mode 100644 board/friendlyarm/nanopi-r3s/patches/uboot/uboot.hash create mode 100755 board/friendlyarm/nanopi-r3s/post-build.sh create mode 100644 board/friendlyarm/nanopi-r3s/readme.txt create mode 100644 board/friendlyarm/nanopi-r3s/rootfs_overlay/etc/network/interfaces create mode 100644 configs/friendlyarm_nanopi_r3s_defconfig
board/friendlyarm/nanopi-r3s/extlinux.conf.in new file +4 -0
@@ -0,0 +1,4 @@ +LABEL default + kernel /boot/Image + devicetreedir /boot + append root=PARTUUID=%PARTUUID% rootwait
board/friendlyarm/nanopi-r3s/genimage.cfg.in new file +19 -0
@@ -0,0 +1,19 @@ +image sdcard.img { + hdimage { + partition-table-type = "gpt" + gpt-no-backup = true + } + + partition uboot { + in-partition-table = false + image = "u-boot-rockchip.bin" + offset = 32K + } + + partition rootfs { + offset = 16M + image = "rootfs.ext4" + partition-uuid = %PARTUUID% + bootable = true + } +}
board/friendlyarm/nanopi-r3s/kernel.config new file +118 -0
118 lines not on this page · raw message
board/friendlyarm/nanopi-r3s/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 06b35a3596b8417bf66f7bfdd7acd181bcb53fc36dc13216227b5cae154e0219 arm-trusted-firmware-v2.12-git4.tar.gz
board/friendlyarm/nanopi-r3s/patches/linux-headers/linux-headers.hash new file +1 -0
@@ -0,0 +1 @@ +../linux/linux.hash
board/friendlyarm/nanopi-r3s/patches/linux/linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc +sha256 b80e0bc8efbc31e9ce5a84d1084dcccfa40e01bea8cc25afd06648b93d61339e linux-6.13.4.tar.xz
board/friendlyarm/nanopi-r3s/patches/uboot/uboot.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 e54102f17328397d5d63b00865e9108d5806d18018509fc24ce6e7e3fe6a12f1 u-boot-2025.04-rc2.tar.bz2
board/friendlyarm/nanopi-r3s/post-build.sh new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/sh +BOARD_DIR="$(dirname "$0")" +PARTUUID="$("$HOST_DIR"/bin/uuidgen)" + +install -d "$TARGET_DIR/boot/extlinux/" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf.in" > "$TARGET_DIR/boot/extlinux/extlinux.conf" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg.in" > "$BINARIES_DIR/genimage.cfg"
board/friendlyarm/nanopi-r3s/readme.txt new file +39 -0
@@ -0,0 +1,39 @@ +FriendlyARM NanoPi R3S +======================= +https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R3S + +How to build +============ + $ make friendlyarm_nanopi_r3s_defconfig + $ make + +Files created in output directory +================================= + +output/images +. +├── bl31.elf +├── genimage.cfg +├── Image +├── rk3566_ddr_1056MHz_v1.18.bin +├── rockchip +│ └── rk3566-nanopi-r3s.dtb +├── rootfs.ext2 +├── rootfs.ext4 -> rootfs.ext2 +├── sdcard.img +├── u-boot.bin +└── u-boot-rockchip.bin + + +How to write the SD card +======================== + +Once the build process is finished you will have an image called "sdcard.img" +in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an SD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync + +Insert the micro SDcard in your Nanopi R3S and power it up. +The console is on the serial line, 1500000 8N1.
board/friendlyarm/nanopi-r3s/rootfs_overlay/etc/network/interfaces new file +8 -0
@@ -0,0 +1,8 @@ +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +auto eth1 +iface eth1 inet dhcp
configs/friendlyarm_nanopi_r3s_defconfig new file +43 -0
43 lines not on this page · raw message
Signature · 6 lines
2.45.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Sergey,
Thanks for the updated patch!
While I tested this patch in the Buildroot reference Docker image used by our CI, I observed few u-boot build failures. I tested with the following commands:
utils/docker-run
make friendlyarm_nanopi_r3s_defconfig
make
The failures are due to missing u-boot host dependencies. See my comments below in friendlyarm_nanopi_r3s_defconfig.
Quoted 18 lines · Sergey Kuzminov
This patch adds basic support for the new FriendlyARM NanoPi R3S board:
-
https://www.friendlyelec.com/index.php?route=product/product&product_id=303
- https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R3SHardware Spec:
- CPU: Rockchip RK3566, Quad-core Cortex-A55
- RAM: 2GB LPDDR4X
- Ethernet: one Native Gigabit Ethernet, and one PCIe Gigabit Ethernet
- USB3.0 Host: Type-A x1
- Storage: MicroSD Slot x 1, and on-board 32GB eMMC
- Debug Serial Port: 3.3V TTL, 3-pin 2.54mm pitch connector, 1500000
bauds
- LED: LED x 3
- RTC: One low-power RTC, support backup battery input
- Buttons: 1x User button, 1x MASK button for eMMC flashing via USB-C
- Display: 1x MIPI-DSI 30-Pin FPC connector
Quoted 4 lines
BSP includes the following components:
- mainline ATF v2.12
- mainline U-Boot v2025.04-rc2
- mainline Linux kernel v6.13.4
Also, could you add a note in the commit log, justifying why you chose a RC version of u-boot please? Something like:
"""
Note: this defconfig is using U-Boot v2025.04-rc2 because the NanoPi R3S support was added in upstream commit [1] first included in v2025.04-rc1.
[1] https://source.denx.de/u-boot/u-boot/-/commit/bf4a33e725ae02cae064a03ea90c45779780f323
"""
Quoted 1 line
Signed-off-by Sergey Kuzminov <[email protected]>
[...]
Quoted 6 lines
configs/friendlyarm_nanopi_r3s_defconfig new file +0
-0@@ -0,0 +1,43 @@
[...]
configs/friendlyarm_nanopi_r3s_defconfig line 38
Quoted 5 lines
configs/friendlyarm_nanopi_r3s_defconfig new file +5
-0+BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2025.04-rc2" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r3s-rk3566"
We need to add here:
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
Quoted 1 line
+BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y
and here:
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
configs/friendlyarm_nanopi_r3s_defconfig line 43
Quoted 4 lines
configs/friendlyarm_nanopi_r3s_defconfig new file +4
-0+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y +BR2_TARGET_UBOOT_NEEDS_ROCKCHIP_RKBIN=y +BR2_PACKAGE_HOST_GENIMAGE=y
Could you send an updated patch please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot