Skip to contentSkip to conversation

configs/friendlyarm_nanopi_r2s: new defconfig

PATCH Applied Gilles Talis 3 participants 4 messages Jan 30, 2022 – Feb 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 configs/friendlyarm_nanopi_r2s: new defconfig

The NanoPi R2S is a FriendlyElec mini-router based on:

- Rockchip RK3328 SoC
- 1GB (or 2GB) DDR4 RAM
- Gigabit Ethernet (WAN)
- Gigabit Ethernet (USB3) (LAN)
- USB 2.0 Host Port
- MicroSD slot
- Reset button
- WAN - LAN - SYS LED

https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282

---
Changes v1 -> v2:
- Drop VFAT partition (kernel, DTB and ext4linux.conf in ext4 partition)

Changes v2 -> v3:
- Use fixed versions of u-boot, kernel and TF-A

---
 DEVELOPERS                                 |  2 +
 board/friendlyarm/nanopi-r2s/extlinux.conf |  4 ++
 board/friendlyarm/nanopi-r2s/genimage.cfg  | 22 +++++++++
 board/friendlyarm/nanopi-r2s/post-build.sh |  5 ++
 board/friendlyarm/nanopi-r2s/readme.txt    | 57 ++++++++++++++++++++++
 configs/friendlyarm_nanopi_r2s_defconfig   | 41 ++++++++++++++++
 6 files changed, 131 insertions(+)
 create mode 100644 board/friendlyarm/nanopi-r2s/extlinux.conf
 create mode 100644 board/friendlyarm/nanopi-r2s/genimage.cfg
 create mode 100755 board/friendlyarm/nanopi-r2s/post-build.sh
 create mode 100644 board/friendlyarm/nanopi-r2s/readme.txt
 create mode 100644 configs/friendlyarm_nanopi_r2s_defconfig
DEVELOPERS +2 -0
index fe8de1916e..f8a062558c 100644
@@ -1073,7 +1073,9 @@ F:	configs/qemu_*
 
 N:	Gilles Talis <[email protected]>
 F:	board/freescale/imx8mmevk/
+F:	board/friendlyarm/nanopi-r2s/
 F:	configs/freescale_imx8mmevk_defconfig
+F:	configs/friendlyarm_nanopi_r2s_defconfig
 F:	package/cctz/
 F:	package/faad2/
 F:	package/fdk-aac/
board/friendlyarm/nanopi-r2s/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..1ea0cdd8a5
@@ -0,0 +1,4 @@
+label NanoPi R2S linux
+  kernel /boot/Image
+  devicetree /boot/rk3328-nanopi-r2s.dtb
+  append root=/dev/mmcblk0p1 rw rootwait
board/friendlyarm/nanopi-r2s/genimage.cfg new file +22 -0
new file mode 100644
index 0000000000..a686b4f14e
@@ -0,0 +1,22 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition u-boot-tpl-spl-dtb {
+		in-partition-table = "no"
+		image = "idbloader.img"
+		offset = 32K
+	}
+
+	partition u-boot-dtb {
+		in-partition-table = "no"
+		image = "u-boot.itb"
+		offset = 8M
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		offset = 16M
+		image = "rootfs.ext4"
+	}
+}
board/friendlyarm/nanopi-r2s/post-build.sh new file +5 -0
new file mode 100755
index 0000000000..1f5ff6a611
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
board/friendlyarm/nanopi-r2s/readme.txt new file +57 -0

57 lines not on this page · raw message

configs/friendlyarm_nanopi_r2s_defconfig new file +41 -0

41 lines not on this page · raw message

Signature · 6 lines
2.32.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Giles,

Quoted 72 lines · Gilles Talis

The NanoPi R2S is a FriendlyElec mini-router based on:

- Rockchip RK3328 SoC
- 1GB (or 2GB) DDR4 RAM
- Gigabit Ethernet (WAN)
- Gigabit Ethernet (USB3) (LAN)
- USB 2.0 Host Port
- MicroSD slot
- Reset button
- WAN - LAN - SYS LED

https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282

---
Changes v1 -> v2:
- Drop VFAT partition (kernel, DTB and ext4linux.conf in ext4 partition)

Changes v2 -> v3:
- Use fixed versions of u-boot, kernel and TF-A

---
  DEVELOPERS                                 |  2 +
  board/friendlyarm/nanopi-r2s/extlinux.conf |  4 ++
  board/friendlyarm/nanopi-r2s/genimage.cfg  | 22 +++++++++
  board/friendlyarm/nanopi-r2s/post-build.sh |  5 ++
  board/friendlyarm/nanopi-r2s/readme.txt    | 57 ++++++++++++++++++++++
  configs/friendlyarm_nanopi_r2s_defconfig   | 41 ++++++++++++++++
  6 files changed, 131 insertions(+)

create mode 100644 board/friendlyarm/nanopi-r2s/extlinux.conf create mode 100644 board/friendlyarm/nanopi-r2s/genimage.cfg create mode 100755 board/friendlyarm/nanopi-r2s/post-build.sh create mode 100644 board/friendlyarm/nanopi-r2s/readme.txt create mode 100644 configs/friendlyarm_nanopi_r2s_defconfig

DEVELOPERS +2 -0
index fe8de1916e..f8a062558c 100644
@@ -1073,7 +1073,9 @@ F:	configs/qemu_*
 
  N:	Gilles Talis <[email protected]>
  F:	board/freescale/imx8mmevk/
+F:	board/friendlyarm/nanopi-r2s/
  F:	configs/freescale_imx8mmevk_defconfig
+F:	configs/friendlyarm_nanopi_r2s_defconfig
  F:	package/cctz/
  F:	package/faad2/
  F:	package/fdk-aac/
board/friendlyarm/nanopi-r2s/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..1ea0cdd8a5
@@ -0,0 +1,4 @@
+label NanoPi R2S linux
+  kernel /boot/Image
+  devicetree /boot/rk3328-nanopi-r2s.dtb
+  append root=/dev/mmcblk0p1 rw rootwait
board/friendlyarm/nanopi-r2s/genimage.cfg new file +8 -0
new file mode 100644
index 0000000000..a686b4f14e
@@ -0,0 +1,22 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition u-boot-tpl-spl-dtb {
+		in-partition-table = "no"
+		image = "idbloader.img"
+		offset = 32K

board/friendlyarm/nanopi-r2s/genimage.cfg line 18

Quoted 10 lines
board/friendlyarm/nanopi-r2s/genimage.cfg new file +10 -0
+	}
+
+	partition u-boot-dtb {
+		in-partition-table = "no"
+		image = "u-boot.itb"
+		offset = 8M
+	}
+
+	partition rootfs {
+		partition-type = 0x83

This ^^^ will fail due to latest genimage version. You can't specify partition-type anymore but you have to specify:
partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae

That means "Root partition (64-bit ARM/AArch64)", check this out:
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs

Quoted 84 lines
board/friendlyarm/nanopi-r2s/genimage.cfg new file +4 -0
+		offset = 16M
+		image = "rootfs.ext4"
+	}
+}
board/friendlyarm/nanopi-r2s/post-build.sh new file +5 -0
new file mode 100755
index 0000000000..1f5ff6a611
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
board/friendlyarm/nanopi-r2s/readme.txt new file +57 -0
new file mode 100644
index 0000000000..6d291cdd60
@@ -0,0 +1,57 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Nanopi R2S. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Nanopi R2S link:
+https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282
+
+This configuration uses ATF, U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+    $ make friendlyarm_nanopi_r2s_defconfig
+    $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+Files created in output directory
+=================================
+
+output/images
+
+├── bl31.elf
+├── boot.vfat
+├── extlinux
+├── idbloader.img
+├── Image
+├── rk3328-nanopi-r2s.dtb
+├── rootfs.ext2
+├── rootfs.ext4 -> rootfs.ext2
+├── rootfs.tar
+├── sdcard.img
+├── u-boot.bin
+└── u-boot.itb
+
+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
+  $ sudo sync
+
+Insert the micro SDcard in your Nanopi R2S and power it up. The console
+is on the serial line, 1500000 8N1.
+
+Notes
+=====
+
+This configuration can also be used to drive the Friendlyarm Nanopi Neo3 board.
configs/friendlyarm_nanopi_r2s_defconfig new file +0 -0
new file mode 100644
index 0000000000..6fcfcd7159

configs/friendlyarm_nanopi_r2s_defconfig line 2

Quoted 2 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +2 -0
@@ -0,0 +1,41 @@
+BR2_aarch64=y
+BR2_ARM_FPU_VFPV4=y

On aarch64 this ^^^ became useless so you can drop it

Quoted 29 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +29 -0
+BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s"
+BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/friendlyarm/nanopi-r2s/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-r2s/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="rockchip/rk3328-nanopi-r2s"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES=""
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYTHON3=y

configs/friendlyarm_nanopi_r2s_defconfig line 41

Quoted 10 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +10 -0
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="idbloader.img"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y

Have you tested this defconfig with Gitlab-CI docker? registry.gitlab.com/buildroot.org/buildroot/base:20220105.2314

It helps to check if any possible host tool is missing.

Can you give a go with it?

Thank you!

Best regards

Signature · 6 lines
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hi Gilles,

Quoted 90 lines · Giulio Benetti

Hi Giles,

Quoted 72 lines · Gilles Talis

The NanoPi R2S is a FriendlyElec mini-router based on:

- Rockchip RK3328 SoC
- 1GB (or 2GB) DDR4 RAM
- Gigabit Ethernet (WAN)
- Gigabit Ethernet (USB3) (LAN)
- USB 2.0 Host Port
- MicroSD slot
- Reset button
- WAN - LAN - SYS LED

https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282

---
Changes v1 -> v2:
- Drop VFAT partition (kernel, DTB and ext4linux.conf in ext4 partition)

Changes v2 -> v3:
- Use fixed versions of u-boot, kernel and TF-A

---
   DEVELOPERS                                 |  2 +
   board/friendlyarm/nanopi-r2s/extlinux.conf |  4 ++
   board/friendlyarm/nanopi-r2s/genimage.cfg  | 22 +++++++++
   board/friendlyarm/nanopi-r2s/post-build.sh |  5 ++
   board/friendlyarm/nanopi-r2s/readme.txt    | 57 ++++++++++++++++++++++
   configs/friendlyarm_nanopi_r2s_defconfig   | 41 ++++++++++++++++
   6 files changed, 131 insertions(+)

create mode 100644 board/friendlyarm/nanopi-r2s/extlinux.conf create mode 100644 board/friendlyarm/nanopi-r2s/genimage.cfg create mode 100755 board/friendlyarm/nanopi-r2s/post-build.sh create mode 100644 board/friendlyarm/nanopi-r2s/readme.txt create mode 100644 configs/friendlyarm_nanopi_r2s_defconfig

DEVELOPERS +2 -0
index fe8de1916e..f8a062558c 100644
@@ -1073,7 +1073,9 @@ F:	configs/qemu_*
 
   N:	Gilles Talis <[email protected]>
   F:	board/freescale/imx8mmevk/
+F:	board/friendlyarm/nanopi-r2s/
   F:	configs/freescale_imx8mmevk_defconfig
+F:	configs/friendlyarm_nanopi_r2s_defconfig
   F:	package/cctz/
   F:	package/faad2/
   F:	package/fdk-aac/
board/friendlyarm/nanopi-r2s/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..1ea0cdd8a5
@@ -0,0 +1,4 @@
+label NanoPi R2S linux
+  kernel /boot/Image
+  devicetree /boot/rk3328-nanopi-r2s.dtb
+  append root=/dev/mmcblk0p1 rw rootwait
board/friendlyarm/nanopi-r2s/genimage.cfg new file +8 -0
new file mode 100644
index 0000000000..a686b4f14e
@@ -0,0 +1,22 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition u-boot-tpl-spl-dtb {
+		in-partition-table = "no"
+		image = "idbloader.img"
+		offset = 32K

board/friendlyarm/nanopi-r2s/genimage.cfg line 18

Quoted 10 lines
board/friendlyarm/nanopi-r2s/genimage.cfg new file +10 -0
+	}
+
+	partition u-boot-dtb {
+		in-partition-table = "no"
+		image = "u-boot.itb"
+		offset = 8M
+	}
+
+	partition rootfs {
+		partition-type = 0x83

This ^^^ will fail due to latest genimage version. You can't specify partition-type anymore but you have to specify:
partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae

Quoted 2 lines

That means "Root partition (64-bit ARM/AArch64)", check this out:
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs

This is not true since you're not using "gpt" partition table. So you leave:
partition-type = 0x83

Sorry for the noise!

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 132 lines
Quoted 84 lines
board/friendlyarm/nanopi-r2s/genimage.cfg new file +4 -0
+		offset = 16M
+		image = "rootfs.ext4"
+	}
+}
board/friendlyarm/nanopi-r2s/post-build.sh new file +5 -0
new file mode 100755
index 0000000000..1f5ff6a611
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
board/friendlyarm/nanopi-r2s/readme.txt new file +57 -0
new file mode 100644
index 0000000000..6d291cdd60
@@ -0,0 +1,57 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Nanopi R2S. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Nanopi R2S link:
+https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282
+
+This configuration uses ATF, U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+    $ make friendlyarm_nanopi_r2s_defconfig
+    $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+Files created in output directory
+=================================
+
+output/images
+
+├── bl31.elf
+├── boot.vfat
+├── extlinux
+├── idbloader.img
+├── Image
+├── rk3328-nanopi-r2s.dtb
+├── rootfs.ext2
+├── rootfs.ext4 -> rootfs.ext2
+├── rootfs.tar
+├── sdcard.img
+├── u-boot.bin
+└── u-boot.itb
+
+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
+  $ sudo sync
+
+Insert the micro SDcard in your Nanopi R2S and power it up. The console
+is on the serial line, 1500000 8N1.
+
+Notes
+=====
+
+This configuration can also be used to drive the Friendlyarm Nanopi Neo3 board.
configs/friendlyarm_nanopi_r2s_defconfig new file +0 -0
new file mode 100644
index 0000000000..6fcfcd7159

configs/friendlyarm_nanopi_r2s_defconfig line 2

Quoted 2 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +2 -0
@@ -0,0 +1,41 @@
+BR2_aarch64=y
+BR2_ARM_FPU_VFPV4=y

On aarch64 this ^^^ became useless so you can drop it

Quoted 29 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +29 -0
+BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s"
+BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/friendlyarm/nanopi-r2s/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-r2s/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="rockchip/rk3328-nanopi-r2s"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES=""
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYTHON3=y

configs/friendlyarm_nanopi_r2s_defconfig line 41

Quoted 10 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +10 -0
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="idbloader.img"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y

Have you tested this defconfig with Gitlab-CI docker? registry.gitlab.com/buildroot.org/buildroot/base:20220105.2314

Quoted 7 lines

It helps to check if any possible host tool is missing.

Can you give a go with it?

Thank you!

Best regards

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Gilles Talis
Quoted 14 lines · Gilles Talis

The NanoPi R2S is a FriendlyElec mini-router based on:

- Rockchip RK3328 SoC
- 1GB (or 2GB) DDR4 RAM
- Gigabit Ethernet (WAN)
- Gigabit Ethernet (USB3) (LAN)
- USB 2.0 Host Port
- MicroSD slot
- Reset button
- WAN - LAN - SYS LED

https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=282

[snip]

configs/friendlyarm_nanopi_r2s_defconfig line 1

Quoted 7 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +1 -0
new file mode 100644
index 0000000000..6fcfcd7159
@@ -0,0 +1,41 @@
+BR2_aarch64=y

I've added an explicit BR2_cortex_a53=y

Quoted 20 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +20 -0
+BR2_ARM_FPU_VFPV4=y
+BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s"
+BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/friendlyarm/nanopi-r2s/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-r2s/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="rockchip/rk3328-nanopi-r2s"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5"

configs/friendlyarm_nanopi_r2s_defconfig line 31

Quoted 10 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +10 -0
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES=""
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYTHON3=y

python3 is not enough, it uses pylibfdt, so I added
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y

configs/friendlyarm_nanopi_r2s_defconfig line 38

Quoted 7 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +7 -0
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="idbloader.img"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y

Since you switch to ext4-only, dosfstools and mtools are not longer needed, so
I removed those.

configs/friendlyarm_nanopi_r2s_defconfig line 41

Quoted 3 lines
configs/friendlyarm_nanopi_r2s_defconfig new file +3 -0
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y

I don't think this is needed either, but I wasn't 100% sure so I kept it.

Applied to master with those changes, thanks.

Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot