board/olimex/a64-olinuxino: bump
cover board/olimex/a64-olinuxino: bump
Finally I've found an a64-olinuxino and I could test the following patch and it works correctly.
Best regards
Giulio
Giulio Benetti (1):
configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.4, u-boot
2021.10 and ATF v2.5
board/olimex/a64-olinuxino/genimage.cfg | 10 +--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 13 insertions(+), 102 deletions(-) delete mode 100644 board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch delete mode 100644 board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5
Bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5 Note:
1) now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed /dev/null as we do in this case.
2) we now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's not produced by u-boot anymore.
3) u-boot 2021.10 requires python 3 and openssl so let's enable them.
4) remove local patches for uboot and linux.
5) remove global patches path from defconfig.
--- board/olimex/a64-olinuxino/genimage.cfg | 10 +--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 13 insertions(+), 102 deletions(-) delete mode 100644 board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch delete mode 100644 board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch
board/olimex/a64-olinuxino/genimage.cfg +2 -8
@@ -16,15 +16,9 @@ image sdcard.img { partition spl { in-partition-table = "no" - image = "sunxi-spl.bin" + image = "u-boot-sunxi-with-spl.bin" offset = 8K - } - - partition u-boot { - in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch deleted +0 -52
52 lines not on this page · raw message
board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 -From: Peter Robinson <[email protected]> -Date: Thu, 30 Jan 2020 09:37:15 +0000 -Subject: [PATCH] Remove redundant YYLOC global declaration - -Same as the upstream fix for building dtc with gcc 10. - -Signed-off-by: Peter Robinson <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index fd825ebba6..24af549977 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.20.1 -
configs/olimex_a64_olinuxino_defconfig +11 -14
@@ -2,33 +2,30 @@ BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -# System -BR2_GLOBAL_PATCH_DIR="board/olimex/a64-olinuxino/patches" - -# Linux headers same as kernel, a 5.0 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Firmware BR2_TARGET_ARM_TRUSTED_FIRMWARE=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=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="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=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="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"
@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.4" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/1] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5
Hi Giulio,
I have a few minor comments on this patch. I would normally just change them
while committing, but since I know you're very reactive and you would test those changes better than I would, I'll leave it to you!
Quoted 2 lines · Giulio Benetti
Bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5 Note:
(nitpick) these two lines are not useful, just make the points. Also we like
to have proper sentences, starting with a capital.
Quoted 24 lines
1) now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) we now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's not produced by u-boot anymore.
3) u-boot 2021.10 requires python 3 and openssl so let's enable them.
4) remove local patches for uboot and linux.
5) remove global patches path from defconfig.Signed-off-by Giulio Benetti <[email protected]>--- board/olimex/a64-olinuxino/genimage.cfg | 10 +--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 13 insertions(+), 102 deletions(-)delete mode 100644
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patchdelete mode 100644board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +0
-0
board/olimex/a64-olinuxino/genimage.cfg image sdcard.img { · line 17
Quoted 2 lines
board/olimex/a64-olinuxino/genimage.cfg +0
-0@@ -16,15 +16,9 @@ image sdcard.img { partition spl {
Since the partition now contains U-Boot (including SPL), I think it's better
to call it "u-boot". (Also nitpick)
Quoted 15 lines
board/olimex/a64-olinuxino/genimage.cfg +2
-8in-partition-table = "no" - image = "sunxi-spl.bin" + image = "u-boot-sunxi-with-spl.bin" offset = 8K - } - - partition u-boot { - in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {
[snip]
Quoted 7 lines
# Bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=yboard/olimex/a64-olinuxino/genimage.cfg +1
-1-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino"
board/olimex/a64-olinuxino/genimage.cfg
Quoted 10 lines
board/olimex/a64-olinuxino/genimage.cfg +3
-3BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=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="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
And here's the big comment: this is not actually the SPL image, it's in fact
the full U-Boot image. I think that what you end up with with this is that in addition to this file, there's another file (u-boot.bin?) that gets installed into images but that is in fact useless.
Therefore, I think you should instead set BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
to u-boot-sunxi-with-spl.bin and remove BR2_TARGET_UBOOT_SPL.
Does that work?
Regards,
Arnout
Quoted 6 lines
board/olimex/a64-olinuxino/genimage.cfg +1
-0+BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"
board/olimex/a64-olinuxino/genimage.cfg BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot · line 39
Quoted 8 lines
board/olimex/a64-olinuxino/genimage.cfg +1
-1@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.4" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.7, u-boot 2021.10 and ATF v2.5
1) Now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed /dev/null as we do in this case.
2) We now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's produced by u-boot anymore.
3) U-Boot 2021.10 requires python 3 and openssl so let's enable them.
4) Remove local patches for uboot and linux.
5) Remove global patches path from defconfig.
---V1->V2:
as pointed by Arnout:
* improve commit log by removing repeated summary and using capital letters to begin a phrase
* changed partition spl to partition u-boot in genimage.cfg since the pointed image is exactly the entire u-boot image and not the spl.
* substituted BR2_TARGET_UBOOT_SPL/_SPL_NAME with BR2_TARGET_UBOOT_FORMAT_CUSTOM/_CUSTOM_NAME since again we don't deal with spl file but with spl+u-boot entire image.
--- board/olimex/a64-olinuxino/genimage.cfg | 12 ++--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 14 insertions(+), 103 deletions(-) delete mode 100644 board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch delete mode 100644 board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch
board/olimex/a64-olinuxino/genimage.cfg +3 -9
@@ -14,17 +14,11 @@ image sdcard.img { hdimage { } - partition spl { - in-partition-table = "no" - image = "sunxi-spl.bin" - offset = 8K - } - partition u-boot { in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch deleted +0 -52
52 lines not on this page · raw message
board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 -From: Peter Robinson <[email protected]> -Date: Thu, 30 Jan 2020 09:37:15 +0000 -Subject: [PATCH] Remove redundant YYLOC global declaration - -Same as the upstream fix for building dtc with gcc 10. - -Signed-off-by: Peter Robinson <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index fd825ebba6..24af549977 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.20.1 -
configs/olimex_a64_olinuxino_defconfig +11 -14
@@ -2,33 +2,30 @@ BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -# System -BR2_GLOBAL_PATCH_DIR="board/olimex/a64-olinuxino/patches" - -# Linux headers same as kernel, a 5.0 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Firmware BR2_TARGET_ARM_TRUSTED_FIRMWARE=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=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="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=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="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"
@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.7" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedRe: [Buildroot] [PATCH v2] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.7, u-boot 2021.10 and ATF v2.5
Quoted 10 lines · Giulio Benetti
1) Now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) We now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's produced by u-boot anymore.
3) U-Boot 2021.10 requires python 3 and openssl so let's enable them.
4) Remove local patches for uboot and linux.
5) Remove global patches path from defconfig.Signed-off-by Giulio Benetti <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 186 lines
---
V1->V2:
as pointed by Arnout:
* improve commit log by removing repeated summary and using capital letters to begin a phrase
* changed partition spl to partition u-boot in genimage.cfg since the pointed image is exactly the entire u-boot image and not the spl.
* substituted BR2_TARGET_UBOOT_SPL/_SPL_NAME with BR2_TARGET_UBOOT_FORMAT_CUSTOM/_CUSTOM_NAME since again we don't deal with spl file but with spl+u-boot entire image.--- board/olimex/a64-olinuxino/genimage.cfg | 12 ++--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 14 insertions(+), 103 deletions(-)delete mode 100644
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patchdelete mode 100644board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +3
-9@@ -14,17 +14,11 @@ image sdcard.img { hdimage { } - partition spl { - in-partition-table = "no" - image = "sunxi-spl.bin" - offset = 8K - } - partition u-boot { in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch deleted +0
-52@@ -1,52 +0,0 @@ -From f9df4186c17d686f1ca38f973d7a3a49e8e37c01 Mon Sep 17 00:00:00 2001 -From: Dirk Mueller <[email protected]> -Date: Tue, 14 Jan 2020 18:53:41 +0100 -Subject: [PATCH] scripts/dtc: Remove redundant YYLOC global declaration - -gcc 10 will default to -fno-common, which causes this error at link -time: - - (.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here - -This is because both dtc-lexer as well as dtc-parser define the same -global symbol yyloc. Before with -fcommon those were merged into one -defintion. The proper solution would be to to mark this as "extern", -however that leads to: - - dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls] - 26 | extern YYLTYPE yylloc; - | ^~~~~~ -In file included from dtc-lexer.l:24: -dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here - 127 | extern YYLTYPE yylloc; - | ^~~~~~ -cc1: all warnings being treated as errors - -which means the declaration is completely redundant and can just be -dropped. - -Signed-off-by: Dirk Mueller <[email protected]> -Signed-off-by: David Gibson <[email protected]> -[robh: cherry-pick from upstream] -Cc: [email protected] -Signed-off-by: Rob Herring <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index 06c040902444..d1b3810156c7 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.25.1 -board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch deleted +0
-28@@ -1,28 +0,0 @@ -From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 -From: Peter Robinson <[email protected]> -Date: Thu, 30 Jan 2020 09:37:15 +0000 -Subject: [PATCH] Remove redundant YYLOC global declaration - -Same as the upstream fix for building dtc with gcc 10. - -Signed-off-by: Peter Robinson <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index fd825ebba6..24af549977 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.20.1 -configs/olimex_a64_olinuxino_defconfig +10
-13@@ -2,33 +2,30 @@ BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -# System -BR2_GLOBAL_PATCH_DIR="board/olimex/a64-olinuxino/patches" - -# Linux headers same as kernel, a 5.0 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Firmware BR2_TARGET_ARM_TRUSTED_FIRMWARE=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=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="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=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="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"
configs/olimex_a64_olinuxino_defconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot · line 39
Quoted 8 lines
configs/olimex_a64_olinuxino_defconfig +1
-1@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.7" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedRe: [Buildroot] [PATCH v2] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.7, u-boot 2021.10 and ATF v2.5
Giulio, All,
On 2021-12-12 16:12 +0100, Arnout Vandecappelle spake thusly:
Quoted 10 lines · Giulio Benetti
Quoted 9 lines
1) Now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) We now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's produced by u-boot anymore.
3) U-Boot 2021.10 requires python 3 and openssl so let's enable them.
4) Remove local patches for uboot and linux.
5) Remove global patches path from defconfig.
Quoted 3 lines
Quoted 1 line
Signed-off-by Giulio Benetti <[email protected]>Applied to master, thanks.
Arnout and I stepped on each other's toe when applying, and Arnout ran away before he got the opportunity to push the patches he applied. So I did.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 197 lines
Regards,
ArnoutQuoted 181 lines
---
V1->V2:
as pointed by Arnout:
* improve commit log by removing repeated summary and using capital letters to begin a phrase
* changed partition spl to partition u-boot in genimage.cfg since the pointed image is exactly the entire u-boot image and not the spl.
* substituted BR2_TARGET_UBOOT_SPL/_SPL_NAME with BR2_TARGET_UBOOT_FORMAT_CUSTOM/_CUSTOM_NAME since again we don't deal with spl file but with spl+u-boot entire image.--- board/olimex/a64-olinuxino/genimage.cfg | 12 ++--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 14 insertions(+), 103 deletions(-) delete mode 100644 board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch delete mode 100644 board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +3
-9@@ -14,17 +14,11 @@ image sdcard.img { hdimage { } - partition spl { - in-partition-table = "no" - image = "sunxi-spl.bin" - offset = 8K - } - partition u-boot { in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch deleted +0
-52@@ -1,52 +0,0 @@ -From f9df4186c17d686f1ca38f973d7a3a49e8e37c01 Mon Sep 17 00:00:00 2001 -From: Dirk Mueller <[email protected]> -Date: Tue, 14 Jan 2020 18:53:41 +0100 -Subject: [PATCH] scripts/dtc: Remove redundant YYLOC global declaration - -gcc 10 will default to -fno-common, which causes this error at link -time: - - (.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here - -This is because both dtc-lexer as well as dtc-parser define the same -global symbol yyloc. Before with -fcommon those were merged into one -defintion. The proper solution would be to to mark this as "extern", -however that leads to: - - dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls] - 26 | extern YYLTYPE yylloc; - | ^~~~~~ -In file included from dtc-lexer.l:24: -dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here - 127 | extern YYLTYPE yylloc; - | ^~~~~~ -cc1: all warnings being treated as errors - -which means the declaration is completely redundant and can just be -dropped. - -Signed-off-by: Dirk Mueller <[email protected]> -Signed-off-by: David Gibson <[email protected]> -[robh: cherry-pick from upstream] -Cc: [email protected] -Signed-off-by: Rob Herring <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index 06c040902444..d1b3810156c7 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.25.1 -board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch deleted +0
-28@@ -1,28 +0,0 @@ -From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 -From: Peter Robinson <[email protected]> -Date: Thu, 30 Jan 2020 09:37:15 +0000 -Subject: [PATCH] Remove redundant YYLOC global declaration - -Same as the upstream fix for building dtc with gcc 10. - -Signed-off-by: Peter Robinson <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index fd825ebba6..24af549977 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.20.1 -configs/olimex_a64_olinuxino_defconfig +10
-13@@ -2,33 +2,30 @@ BR2_aarch64=y BR2_cortex_a53=y BR2_ARM_FPU_VFPV4=y -# System -BR2_GLOBAL_PATCH_DIR="board/olimex/a64-olinuxino/patches" - -# Linux headers same as kernel, a 5.0 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Firmware BR2_TARGET_ARM_TRUSTED_FIRMWARE=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=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="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=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="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"configs/olimex_a64_olinuxino_defconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot · line 39
Quoted 8 lines
configs/olimex_a64_olinuxino_defconfig +1
-1@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.7" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.7, u-boot 2021.10 and ATF v2.5
Quoted 16 lines
Il giorno 12 dic 2021, alle ore 17:00, Yann E. MORIN <[email protected]> ha scritto:
Giulio, All,
On 2021-12-12 16:12 +0100, Arnout Vandecappelle spake thusly:
Quoted 10 lines
Quoted 10 lines · Giulio Benetti
1) Now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) We now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's produced by u-boot anymore.
3) U-Boot 2021.10 requires python 3 and openssl so let's enable them.
4) Remove local patches for uboot and linux.
5) Remove global patches path from defconfig.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Giulio Benetti <[email protected]>Applied to master, thanks.
Arnout and I stepped on each other's toe when applying, and Arnout ran away before he got the opportunity to push the patches he applied. So I did.
Sure, no problem!
Thank you
Giulio
Quoted 195 lines
Applied to master, thanks.
Regards,
Yann E. MORIN.Quoted 189 lines
Regards,
ArnoutQuoted 185 lines
---
V1->V2:
as pointed by Arnout:
* improve commit log by removing repeated summary and using capital letters to begin a phrase
* changed partition spl to partition u-boot in genimage.cfg since the pointed image is exactly the entire u-boot image and not the spl.
* substituted BR2_TARGET_UBOOT_SPL/_SPL_NAME with BR2_TARGET_UBOOT_FORMAT_CUSTOM/_CUSTOM_NAME since again we don't deal with spl file but with spl+u-boot entire image.
---board/olimex/a64-olinuxino/genimage.cfg | 12 ++--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 14 insertions(+), 103 deletions(-)delete mode 100644
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patchdelete mode 100644board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +3
-9@@ -14,17 +14,11 @@ image sdcard.img { hdimage { } - partition spl { - in-partition-table = "no" - image = "sunxi-spl.bin" - offset = 8K - } - partition u-boot { in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch deleted +0
-52@@ -1,52 +0,0 @@ -From f9df4186c17d686f1ca38f973d7a3a49e8e37c01 Mon Sep 17 00:00:00 2001 -From: Dirk Mueller <[email protected]> -Date: Tue, 14 Jan 2020 18:53:41 +0100 -Subject: [PATCH] scripts/dtc: Remove redundant YYLOC global declaration - -gcc 10 will default to -fno-common, which causes this error at link -time: - - (.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here - -This is because both dtc-lexer as well as dtc-parser define the same -global symbol yyloc. Before with -fcommon those were merged into one -defintion. The proper solution would be to to mark this as "extern", -however that leads to: - - dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls] - 26 | extern YYLTYPE yylloc; - | ^~~~~~ -In file included from dtc-lexer.l:24: -dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here - 127 | extern YYLTYPE yylloc; - | ^~~~~~ -cc1: all warnings being treated as errors - -which means the declaration is completely redundant and can just be -dropped. - -Signed-off-by: Dirk Mueller <[email protected]> -Signed-off-by: David Gibson <[email protected]> -[robh: cherry-pick from upstream] -Cc: [email protected] -Signed-off-by: Rob Herring <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index 06c040902444..d1b3810156c7 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.25.1 -board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patch deleted +0
-28@@ -1,28 +0,0 @@ -From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 -From: Peter Robinson <[email protected]> -Date: Thu, 30 Jan 2020 09:37:15 +0000 -Subject: [PATCH] Remove redundant YYLOC global declaration - -Same as the upstream fix for building dtc with gcc 10. - -Signed-off-by: Peter Robinson <[email protected]> -Signed-off-by: Giulio Benetti <[email protected]> ---- - scripts/dtc/dtc-lexer.l | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l -index fd825ebba6..24af549977 100644 ---- a/scripts/dtc/dtc-lexer.l -+++ b/scripts/dtc/dtc-lexer.l -@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ --- -2.20.1 -configs/olimex_a64_olinuxino_defconfig +0
-0@@ -2,33 +2,30 @@ BR2_aarch64=yBR2_cortex_a53=y
BR2_ARM_FPU_VFPV4=yconfigs/olimex_a64_olinuxino_defconfig +2
-5-# System -BR2_GLOBAL_PATCH_DIR="board/olimex/a64-olinuxino/patches" - -# Linux headers same as kernel, a 5.0 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y# Firmware
BR2_TARGET_ARM_TRUSTED_FIRMWARE=yconfigs/olimex_a64_olinuxino_defconfig +3
-4-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1" -BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64"BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
# Bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=yconfigs/olimex_a64_olinuxino_defconfig +1
-1-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino"
BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM=yconfigs/olimex_a64_olinuxino_defconfig +2
-3-BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb" -BR2_TARGET_UBOOT_SPL=y -BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null"BR2_PACKAGE_HOST_UBOOT_TOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot.cmd"
configs/olimex_a64_olinuxino_defconfig +0
-0@@ -36,7 +33,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/olimex/a64-olinuxino/boot # KernelBR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=yconfigs/olimex_a64_olinuxino_defconfig +1
-1-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.7"
Quoted 16 lines
Quoted 8 lines
Quoted 4 lines
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-olinuxino"
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootSignature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/1] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5
In reply to Arnout VandecappelleHi Arnout,
Quoted 5 lines · Arnout Vandecappelle
Hi Giulio,
I have a few minor comments on this patch. I would normally just change them
while committing, but since I know you're very reactive and you would test those changes better than I would, I'll leave it to you!
Sure, it's a pleasure :-)
Quoted 6 lines · Giulio Benetti
Quoted 2 lines
Bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5 Note:
(nitpick) these two lines are not useful, just make the points. Also we like
to have proper sentences, starting with a capital.
+1, now I see especially here it doesn't make sense to repeat the summary.
Quoted 25 lines
Quoted 25 lines
1) now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) we now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's not produced by u-boot anymore.
3) u-boot 2021.10 requires python 3 and openssl so let's enable them.
4) remove local patches for uboot and linux.
5) remove global patches path from defconfig.Signed-off-by Giulio Benetti <[email protected]>--- board/olimex/a64-olinuxino/genimage.cfg | 10 +--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 13 insertions(+), 102 deletions(-)delete mode 100644
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patchdelete mode 100644board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +0
-0@@ -16,15 +16,9 @@ image sdcard.img {
Quoted 4 lines
board/olimex/a64-olinuxino/genimage.cfg image sdcard.img { · line 17
Quoted 1 line
board/olimex/a64-olinuxino/genimage.cfg +0
-0partition spl {Since the partition now contains U-Boot (including SPL), I think it's better
to call it "u-boot". (Also nitpick)
+1
Quoted 31 lines
Quoted 15 lines
board/olimex/a64-olinuxino/genimage.cfg +2
-8in-partition-table = "no" - image = "sunxi-spl.bin" + image = "u-boot-sunxi-with-spl.bin" offset = 8K - } - - partition u-boot { - in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {[snip]
Quoted 14 lines
# Bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=yboard/olimex/a64-olinuxino/genimage.cfg +3
-3-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y -BR2_TARGET_UBOOT_FORMAT_CUSTOM=y -BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
Quoted 8 lines
board/olimex/a64-olinuxino/genimage.cfg
Quoted 3 lines
BR2_TARGET_UBOOT_SPL=y
board/olimex/a64-olinuxino/genimage.cfg +1
-1-BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"And here's the big comment: this is not actually the SPL image, it's in fact
the full U-Boot image. I think that what you end up with with this is that in addition to this file, there's another file (u-boot.bin?) that gets installed into images but that is in fact useless.
+1
Quoted 4 lines
Therefore, I think you should instead set
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
to u-boot-sunxi-with-spl.bin and removeBR2_TARGET_UBOOT_SPL.Does that work?
Yes it works, just tested on target right now and sent the v2 patch[1] :-)
Thanks for reviewing! Ah, I've bumped Linux to 5.15.7, before it was 5.15.6 and I've realized only now I didn't put it on V1->V2.
[1]: https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Kind regards
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/1] configs/olimex_a64_olinuxino: bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5
Quoted 97 lines · Giulio Benetti
Hi Arnout,
Quoted 5 lines · Arnout Vandecappelle
Hi Giulio,
I have a few minor comments on this patch. I would normally just change them
while committing, but since I know you're very reactive and you would test those changes better than I would, I'll leave it to you!Sure, it's a pleasure :-)
Quoted 6 lines · Giulio Benetti
Quoted 2 lines
Bump to Linux kernel 5.15.4, u-boot 2021.10 and ATF v2.5 Note:
(nitpick) these two lines are not useful, just make the points. Also we like
to have proper sentences, starting with a capital.+1, now I see especially here it doesn't make sense to repeat the summary.
Quoted 25 lines
Quoted 25 lines
1) now u-boot needs SCP environment variable specified that can point to the or1k coprocessor firmware while if coprocessor is not used it must be passed
/dev/nullas we do in this case.
2) we now use the u-boot-sunxi-with-spl.bin instead of u-boot.itb since it's not produced by u-boot anymore.
3) u-boot 2021.10 requires python 3 and openssl so let's enable them.
4) remove local patches for uboot and linux.
5) remove global patches path from defconfig.Signed-off-by Giulio Benetti <[email protected]>--- board/olimex/a64-olinuxino/genimage.cfg | 10 +--- ...ve-redundant-YYLOC-global-declaratio.patch | 52 ------------------- ...e-redundant-YYLOC-global-declaration.patch | 28 ---------- configs/olimex_a64_olinuxino_defconfig | 25 ++++----- 4 files changed, 13 insertions(+), 102 deletions(-)delete mode 100644
board/olimex/a64-olinuxino/patches/linux/0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patchdelete mode 100644board/olimex/a64-olinuxino/patches/uboot/0001-Remove-redundant-YYLOC-global-declaration.patchboard/olimex/a64-olinuxino/genimage.cfg +0
-0@@ -16,15 +16,9 @@ image sdcard.img {Quoted 4 lines
board/olimex/a64-olinuxino/genimage.cfg image sdcard.img { · line 17
Quoted 1 line
board/olimex/a64-olinuxino/genimage.cfg +0
-0partition spl {Since the partition now contains U-Boot (including SPL), I think it's better
to call it "u-boot". (Also nitpick)+1
Quoted 31 lines
Quoted 15 lines
board/olimex/a64-olinuxino/genimage.cfg +2
-8in-partition-table = "no" - image = "sunxi-spl.bin" + image = "u-boot-sunxi-with-spl.bin" offset = 8K - } - - partition u-boot { - in-partition-table = "no" - image = "u-boot.itb" - offset = 40K - size = 1M # 1MB - 40K + size = 1032K # 1MB - 8KB + 16KB(GPT) } partition boot {[snip]
Quoted 14 lines
# Bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=yboard/olimex/a64-olinuxino/genimage.cfg +3
-3-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="a64-olinuxino" BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y -BR2_TARGET_UBOOT_FORMAT_CUSTOM=y -BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"Quoted 8 lines
board/olimex/a64-olinuxino/genimage.cfg
Quoted 3 lines
BR2_TARGET_UBOOT_SPL=y
board/olimex/a64-olinuxino/genimage.cfg +1
-1-BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin" +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"And here's the big comment: this is not actually the SPL image, it's in fact
the full U-Boot image. I think that what you end up with with this is that in addition to this file, there's another file (u-boot.bin?) that gets installed into images but that is in fact useless.+1
Quoted 3 lines
Therefore, I think you should instead set
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
to u-boot-sunxi-with-spl.bin and removeBR2_TARGET_UBOOT_SPL.
Quoted 6 lines
Quoted 1 line
Does that work?
Yes it works, just tested on target right now and sent the v2 patch[1] :-)
Thanks for reviewing! Ah, I've bumped Linux to 5.15.7, before it was 5.15.6 and I've realized only now I didn't put it on
V1->V2.
s/5.15.6/5.15.4
I run too much
Quoted 5 lines
[1]:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/Kind regards
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot