configs/friendlyarm_nanopi_r2s: bump Linux to 6.6.18 and U-Boot to 2024.01
PATCH 1/1 configs/friendlyarm_nanopi_r2s: bump Linux to 6.6.18 and U-Boot to 2024.01
The ATF firmware also bumps to version 2.7, and the bootloader image only needs the u-boot-rockchip.bin file.
This commit adds support for internal ethernet port (RTL8211E), and also adds USB 3.0 ethernet port firmware for RTL8153B chip on the board.
The associated board files are also updated, notes for the NEO3 board is removed from the readme file.
The .checkpackageignore file is updated accordingly (the entry for post-build.sh is removed).
Tested on the NanoPi R2S board.
Wiki link for the board:
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2S
--- .checkpackageignore | 1 - board/friendlyarm/nanopi-r2s/extlinux.conf | 4 +-- board/friendlyarm/nanopi-r2s/genimage.cfg | 10 ++---- board/friendlyarm/nanopi-r2s/post-build.sh | 4 +-- board/friendlyarm/nanopi-r2s/readme.txt | 20 ++++------- configs/friendlyarm_nanopi_r2s_defconfig | 39 +++++++++++++++++----- 6 files changed, 43 insertions(+), 35 deletions(-)
.checkpackageignore +0 -1
@@ -33,7 +33,6 @@ board/cubietech/cubieboard2/post-image.sh Shellcheck board/freescale/common/imx/imx8-bootloader-prepare.sh Shellcheck board/freescale/common/mxs/post-image.sh Shellcheck board/freescale/imx6sabre/patches/uboot/0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch Upstream -board/friendlyarm/nanopi-r2s/post-build.sh Shellcheck board/hardkernel/odroidc2/post-image.sh Shellcheck board/hardkernel/odroidc2/rootfs_overlay/etc/init.d/S09modload Shellcheck Variables board/hardkernel/odroidxu4/post-image.sh EmptyLastLine Shellcheck
board/friendlyarm/nanopi-r2s/extlinux.conf +2 -2
@@ -1,4 +1,4 @@ -label NanoPi R2S linux +label friendlyarm-nanopi-buildroot kernel /boot/Image devicetree /boot/rk3328-nanopi-r2s.dtb - append root=/dev/mmcblk0p1 rw rootwait + append console=ttyS2,1500000 earlyprintk root=/dev/mmcblk0p1 rootwait
board/friendlyarm/nanopi-r2s/genimage.cfg +2 -8
@@ -4,19 +4,13 @@ image sdcard.img { partition u-boot-tpl-spl-dtb { in-partition-table = "no" - image = "idbloader.img" + image = "u-boot-rockchip.bin" 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" + offset = 10M } }
board/friendlyarm/nanopi-r2s/post-build.sh +2 -2
@@ -1,5 +1,5 @@ #!/bin/sh -BOARD_DIR="$(dirname $0)" +BOARD_DIR="$(dirname "$0")" -install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf +install -m 0644 -D "${BOARD_DIR}/extlinux.conf" "${TARGET_DIR}/boot/extlinux/extlinux.conf"
board/friendlyarm/nanopi-r2s/readme.txt +6 -14
@@ -2,11 +2,11 @@ Intro ===== This default configuration will allow you to start experimenting with the -buildroot environment for the Nanopi R2S. With the current configuration +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 +Wiki link: +https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2S This configuration uses ATF, U-Boot mainline and kernel mainline.
@@ -25,9 +25,6 @@ Files created in output directory output/images ├── bl31.elf -├── boot.vfat -├── extlinux -├── idbloader.img ├── Image ├── rk3328-nanopi-r2s.dtb ├── rootfs.ext2
@@ -35,7 +32,7 @@ output/images ├── rootfs.tar ├── sdcard.img ├── u-boot.bin -└── u-boot.itb +└── u-boot-rockchip.bin How to write the SD card ========================
@@ -46,12 +43,7 @@ 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 + $ sync -Insert the micro SDcard in your Nanopi R2S and power it up. The console +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 +31 -8
@@ -1,42 +1,65 @@ +# Architecture BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y + +# Linux headers same as kernel, a 6.6 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y + +# System BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s" BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328" +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y + +# Image 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" + +# Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" 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 + +# Filesystem BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + +# Firmware 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_CUSTOM_VERSION_VALUE="v2.7" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="" BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y + +# Bootloader 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_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y 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_TARGET_UBOOT_SPL_NAME="u-boot-rockchip.bin" + +# Ethernet firmware for RTL8153B +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_RTL_815X=y + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y -BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_MTOOLS=y
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Scott,
please read all before changing,
Quoted 6 lines · Scott Fan
The ATF firmware also bumps to version 2.7, and the bootloader image only needs the u-boot-rockchip.bin file.
This commit adds support for internal ethernet port (RTL8211E), and also adds USB 3.0 ethernet port firmware for RTL8153B chip on the board.
Quoted 8 lines
The associated board files are also updated, notes for the NEO3 board is removed from the readme file.
The .checkpackageignore file is updated accordingly (the entry for
post-build.shis removed).Tested on the NanoPi R2S board.
Can you please list all the points using "*" like below?
This commit:
* bump u-boot version to 2024.01
* bump Linux version to 6.6.18
* update ATF version to 2.7
* switch u-boot image to u-boot-rockchip.bin since ATF 2.7 requires it
* ...
etc.
This way everything is clearer
Quoted 30 lines
Wiki link for the board:
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2SSigned-off-by Scott Fan <[email protected]>--- .checkpackageignore | 1 - board/friendlyarm/nanopi-r2s/extlinux.conf | 4 +-- board/friendlyarm/nanopi-r2s/genimage.cfg | 10 ++---- board/friendlyarm/nanopi-r2s/post-build.sh | 4 +-- board/friendlyarm/nanopi-r2s/readme.txt | 20 ++++------- configs/friendlyarm_nanopi_r2s_defconfig | 39 +++++++++++++++++----- 6 files changed, 43 insertions(+), 35 deletions(-).checkpackageignore +0
-1@@ -33,7 +33,6 @@ board/cubietech/cubieboard2/post-image.sh Shellcheck board/freescale/common/imx/imx8-bootloader-prepare.sh Shellcheck board/freescale/common/mxs/post-image.sh Shellcheck board/freescale/imx6sabre/patches/uboot/0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch Upstream -board/friendlyarm/nanopi-r2s/post-build.sh Shellcheck board/hardkernel/odroidc2/post-image.sh Shellcheck board/hardkernel/odroidc2/rootfs_overlay/etc/init.d/S09modload Shellcheck Variables board/hardkernel/odroidxu4/post-image.sh EmptyLastLine Shellcheckboard/friendlyarm/nanopi-r2s/extlinux.conf +0
-0
board/friendlyarm/nanopi-r2s/extlinux.conf line 1
Quoted 2 lines
board/friendlyarm/nanopi-r2s/extlinux.conf +1
-1@@ -1,4 +1,4 @@ -label NanoPi R2S linux +label friendlyarm-nanopi-buildroot
Please add this change to commit log(* update extlinux.conf label name to friendlyarm-nanopi-buildroot).
board/friendlyarm/nanopi-r2s/extlinux.conf line 4
Quoted 4 lines
board/friendlyarm/nanopi-r2s/extlinux.conf +1
-1kernel /boot/Image devicetree /boot/rk3328-nanopi-r2s.dtb - append root=/dev/mmcblk0p1 rw rootwait + append console=ttyS2,1500000 earlyprintk root=/dev/mmcblk0p1 rootwait
why is console required now? Please add it to commit log
Quoted 14 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +1
-2@@ -4,19 +4,13 @@ image sdcard.img { partition u-boot-tpl-spl-dtb { in-partition-table = "no" - image = "idbloader.img" + image = "u-boot-rockchip.bin" offset = 32K } - partition u-boot-dtb {
board/friendlyarm/nanopi-r2s/genimage.cfg image sdcard.img { · line 14
Quoted 10 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +1
-6- in-partition-table = "no" - image = "u-boot.itb" - offset = 8M - } - partition rootfs { partition-type = 0x83 - offset = 16M image = "rootfs.ext4" + offset = 10M
Please keep the offset position the same and document the reason in commit log
board/friendlyarm/nanopi-r2s/post-build.sh line 3
Quoted 11 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +0
-0} }board/friendlyarm/nanopi-r2s/post-build.sh +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -BOARD_DIR="$(dirname $0)" +BOARD_DIR="$(dirname "$0")"
Is this mandatory? What changed compared to previous version?
board/friendlyarm/nanopi-r2s/post-build.sh line 5
Quoted 3 lines
board/friendlyarm/nanopi-r2s/post-build.sh +1
-1-install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf +install -m 0644 -D "${BOARD_DIR}/extlinux.conf" "${TARGET_DIR}/boot/extlinux/extlinux.conf"
Same here for "..."
Please update commit log with it.
board/friendlyarm/nanopi-r2s/readme.txt Intro · line 5
Quoted 10 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1@@ -2,11 +2,11 @@ Intro ===== This default configuration will allow you to start experimenting with the -buildroot environment for the Nanopi R2S. With the current configuration +buildroot environment for the NanoPi R2S. With the current configuration
Here the same
board/friendlyarm/nanopi-r2s/readme.txt Intro · line 9
Quoted 6 lines
board/friendlyarm/nanopi-r2s/readme.txt +2
-2it 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 +Wiki link: +https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2S
This too: * update board URL in readme.txt
Quoted 23 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-4This configuration uses ATF, U-Boot mainline and kernel mainline.@@ -25,9 +25,6 @@ Files created in output directory output/images ├── bl31.elf -├── boot.vfat -├── extlinux -├── idbloader.img ├── Image ├── rk3328-nanopi-r2s.dtb ├── rootfs.ext2@@ -35,7 +32,7 @@ output/images ├── rootfs.tar ├── sdcard.img ├── u-boot.bin -└── u-boot.itb +└── u-boot-rockchip.bin How to write the SD card ========================
board/friendlyarm/nanopi-r2s/readme.txt in the output/images/ directory. · line 46
Quoted 5 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1@@ -46,12 +43,7 @@ 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 + $ sync
Ditto
board/friendlyarm/nanopi-r2s/readme.txt in the output/images/ directory. · line 48
Quoted 3 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1-Insert the micro SDcard in your Nanopi R2S and power it up. The console +Insert the micro SDcard in your NanoPi R2S and power it up. The console
Ditto but you can group this with 2 points above without adding a dedicated one
Quoted 74 lines
board/friendlyarm/nanopi-r2s/readme.txt +0
-5is 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 +23
-7@@ -1,42 +1,65 @@ +# Architecture BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y + +# Linux headers same as kernel, a 6.6 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y + +# System BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s" BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328" +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y + +# Image 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" + +# Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" 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 + +# Filesystem BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + +# Firmware 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_CUSTOM_VERSION_VALUE="v2.7" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="" BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y + +# Bootloader 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_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y 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_TARGET_UBOOT_SPL_NAME="u-boot-rockchip.bin"
configs/friendlyarm_nanopi_r2s_defconfig line 65
Quoted 10 lines
configs/friendlyarm_nanopi_r2s_defconfig +8
-1+ +# Ethernet firmware for RTL8153B +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_RTL_815X=y + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y -BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_MTOOLS=y
I think you should split this patch into 2:
1) the versions bumps
2) the beautify of the code
This is because there are many changes and it's difficult to check them, for me at least.
Best regards
Signature · 6 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
I'll follow your advice in the next few days.
Scott Fan
Quoted 275 lines · Giulio Benetti
Hi Scott,
please read all before changing,
Quoted 6 lines · Scott Fan
The ATF firmware also bumps to version 2.7, and the bootloader image only needs the u-boot-rockchip.bin file.
This commit adds support for internal ethernet port (RTL8211E), and also adds USB 3.0 ethernet port firmware for RTL8153B chip on the board.
Quoted 8 lines
The associated board files are also updated, notes for the NEO3 board is removed from the readme file.
The .checkpackageignore file is updated accordingly (the entry for
post-build.shis removed).Tested on the NanoPi R2S board.
Can you please list all the points using "*" like below?
This commit:
* bump u-boot version to 2024.01
* bump Linux version to 6.6.18
* update ATF version to 2.7
* switch u-boot image to u-boot-rockchip.bin since ATF 2.7 requires it
* ...
etc.This way everything is clearer
Quoted 30 lines
Wiki link for the board:
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2SSigned-off-by Scott Fan <[email protected]>--- .checkpackageignore | 1 - board/friendlyarm/nanopi-r2s/extlinux.conf | 4 +-- board/friendlyarm/nanopi-r2s/genimage.cfg | 10 ++---- board/friendlyarm/nanopi-r2s/post-build.sh | 4 +-- board/friendlyarm/nanopi-r2s/readme.txt | 20 ++++------- configs/friendlyarm_nanopi_r2s_defconfig | 39 +++++++++++++++++----- 6 files changed, 43 insertions(+), 35 deletions(-).checkpackageignore +0
-1@@ -33,7 +33,6 @@ board/cubietech/cubieboard2/post-image.sh Shellcheck board/freescale/common/imx/imx8-bootloader-prepare.sh Shellcheck board/freescale/common/mxs/post-image.sh Shellcheck board/freescale/imx6sabre/patches/uboot/0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch Upstream -board/friendlyarm/nanopi-r2s/post-build.sh Shellcheck board/hardkernel/odroidc2/post-image.sh Shellcheck board/hardkernel/odroidc2/rootfs_overlay/etc/init.d/S09modload Shellcheck Variables board/hardkernel/odroidxu4/post-image.sh EmptyLastLine Shellcheckboard/friendlyarm/nanopi-r2s/extlinux.conf +0
-0board/friendlyarm/nanopi-r2s/extlinux.conf line 1
Quoted 2 lines
board/friendlyarm/nanopi-r2s/extlinux.conf +1
-1@@ -1,4 +1,4 @@ -label NanoPi R2S linux +label friendlyarm-nanopi-buildrootPlease add this change to commit
log(* update extlinux.conf label name to friendlyarm-nanopi-buildroot).board/friendlyarm/nanopi-r2s/extlinux.conf line 4
Quoted 4 lines
board/friendlyarm/nanopi-r2s/extlinux.conf +1
-1kernel /boot/Image devicetree /boot/rk3328-nanopi-r2s.dtb - append root=/dev/mmcblk0p1 rw rootwait + append console=ttyS2,1500000 earlyprintk root=/dev/mmcblk0p1 rootwaitwhy is console required now? Please add it to commit log
Quoted 14 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +1
-2@@ -4,19 +4,13 @@ image sdcard.img { partition u-boot-tpl-spl-dtb { in-partition-table = "no" - image = "idbloader.img" + image = "u-boot-rockchip.bin" offset = 32K } - partition u-boot-dtb {board/friendlyarm/nanopi-r2s/genimage.cfg image sdcard.img { · line 14
Quoted 10 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +1
-6- in-partition-table = "no" - image = "u-boot.itb" - offset = 8M - } - partition rootfs { partition-type = 0x83 - offset = 16M image = "rootfs.ext4" + offset = 10MPlease keep the offset position the same and document the reason in commit log
board/friendlyarm/nanopi-r2s/post-build.sh line 3
Quoted 11 lines
board/friendlyarm/nanopi-r2s/genimage.cfg +0
-0} }board/friendlyarm/nanopi-r2s/post-build.sh +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -BOARD_DIR="$(dirname $0)" +BOARD_DIR="$(dirname "$0")"Is this mandatory? What changed compared to previous version?
board/friendlyarm/nanopi-r2s/post-build.sh line 5
Quoted 3 lines
board/friendlyarm/nanopi-r2s/post-build.sh +1
-1-install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf +install -m 0644 -D "${BOARD_DIR}/extlinux.conf" "${TARGET_DIR}/boot/extlinux/extlinux.conf"Same here for "..."
Please update commit log with it.
board/friendlyarm/nanopi-r2s/readme.txt Intro · line 5
Quoted 10 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1@@ -2,11 +2,11 @@ Intro ===== This default configuration will allow you to start experimenting with the -buildroot environment for the Nanopi R2S. With the current configuration +buildroot environment for the NanoPi R2S. With the current configurationHere the same
board/friendlyarm/nanopi-r2s/readme.txt Intro · line 9
Quoted 6 lines
board/friendlyarm/nanopi-r2s/readme.txt +2
-2it 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 +Wiki link: +https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2SThis too: * update board URL in readme.txt
Quoted 23 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-4This configuration uses ATF, U-Boot mainline and kernel mainline.@@ -25,9 +25,6 @@ Files created in output directory output/images ├── bl31.elf -├── boot.vfat -├── extlinux -├── idbloader.img ├── Image ├── rk3328-nanopi-r2s.dtb ├── rootfs.ext2@@ -35,7 +32,7 @@ output/images ├── rootfs.tar ├── sdcard.img ├── u-boot.bin -└── u-boot.itb +└── u-boot-rockchip.bin How to write the SD card ========================board/friendlyarm/nanopi-r2s/readme.txt in the output/images/ directory. · line 46
Quoted 5 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1@@ -46,12 +43,7 @@ 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 + $ syncDitto
board/friendlyarm/nanopi-r2s/readme.txt in the output/images/ directory. · line 48
Quoted 3 lines
board/friendlyarm/nanopi-r2s/readme.txt +1
-1-Insert the micro SDcard in your Nanopi R2S and power it up. The console +Insert the micro SDcard in your NanoPi R2S and power it up. The consoleDitto but you can group this with 2 points above without adding a dedicated one
Quoted 74 lines
board/friendlyarm/nanopi-r2s/readme.txt +0
-5is 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 +23
-7@@ -1,42 +1,65 @@ +# Architecture BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y + +# Linux headers same as kernel, a 6.6 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y + +# System BR2_TARGET_GENERIC_HOSTNAME="rk3328-nanopi-r2s" BR2_TARGET_GENERIC_ISSUE="Welcome to Nanopi R2S RK3328" +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y + +# Image 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" + +# Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" 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 + +# Filesystem BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + +# Firmware 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_CUSTOM_VERSION_VALUE="v2.7" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="rk3328" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="" BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y + +# Bootloader 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_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y 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_TARGET_UBOOT_SPL_NAME="u-boot-rockchip.bin"configs/friendlyarm_nanopi_r2s_defconfig line 65
Quoted 10 lines
configs/friendlyarm_nanopi_r2s_defconfig +8
-1+ +# Ethernet firmware for RTL8153B +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_RTL_815X=y + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y -BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_MTOOLS=yI think you should split this patch into 2:
1) the versions bumps
2) the beautify of the code
Quoted 7 lines
This is because there are many changes and it's difficult to check them, for me at least.
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot