configs/microchip_mpfs_icicle_defconfig: fix zicsr build error
PATCH 1/1 configs/microchip_mpfs_icicle_defconfig: fix zicsr build error
Build is failing with an unrecognised opcode error due to missing zicsr extension requirement. This is introduced with GCC version 12. When binutils was updated to v2.38 they updated to the default ISA spec version 20191213. In this version the original i extension split into i, Zicsr and Zifencei. A fix for this has been added since U-Boot version 2022.01 to detect new Zicsr and Zifencei extensions and enable it when needed therefore, an updated U-Boot tag to our latest 2023.09 release will fix this as in our latest release we have updated to U-Boot version 2023.07. Update the kernel verion in line with the U-Boot release version to ensure compatiblities and latest features and fixes are included. Remove riscv_g selection as it is now selected by default.
--- configs/microchip_mpfs_icicle_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
configs/microchip_mpfs_icicle_defconfig +2 -3
@@ -1,12 +1,11 @@ BR2_riscv=y -BR2_riscv_g=y BR2_RISCV_ISA_RVC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y BR2_TARGET_GENERIC_HOSTNAME="mpfs_icicle" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/microchip/mpfs_icicle/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1-mchp+fpga)/linux4microchip+fpga-2023.06.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1-mchp+fpga)/linux4microchip+fpga-2023.09.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="mpfs" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/linux.fragment" BR2_LINUX_KERNEL_DTS_SUPPORT=y
@@ -16,7 +15,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire-soc,u-boot)linux4microchip+fpga-2023.06.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire-soc,u-boot)linux4microchip+fpga-2023.09.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="microchip_mpfs_icicle" BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/uboot-fragment-rootfs.config" BR2_TARGET_UBOOT_NEEDS_DTC=y
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi all,
Is there anything missing/stopping this patch from being merged? It fixes the reported microchip_mpfs_icicle_defconfig build error.
Thanks,
Jamie.
Quoted 51 lines · Jamie Gibbons
Build is failing with an unrecognised opcode error due to missing
zicsrextension requirement. This is introduced with GCC version 12. When binutils was updated to v2.38 they updated to the default ISA spec
version 20191213. In this version the original i extension split into i,
Zicsr and Zifencei. A fix for this has been added since U-Boot version 2022.01 to detect new Zicsr and Zifencei extensions and enable it when needed
therefore, an updated U-Boot tag to our latest 2023.09 release will fix
this as in our latest release we have updated to U-Boot version 2023.07.
Update the kernel verion in line with the U-Boot release version to ensure compatiblities and latest features and fixes are included. Removeriscv_gselection as it is now selected by default.Signed-off-by Jamie Gibbons <[email protected]>---
configs/microchip_mpfs_icicle_defconfig | 5 ++---1 file changed, 2 insertions(+), 3 deletions(-)configs/microchip_mpfs_icicle_defconfig +0
-0@@ -1,12 +1,11 @@BR2_riscv=y
-BR2_riscv_g=y
BR2_RISCV_ISA_RVC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y BR2_TARGET_GENERIC_HOSTNAME="mpfs_icicle" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/microchip/mpfs_icicle/post-image.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1- mchp+fpga)/linux4microchip+fpga-2023.06.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1- mchp+fpga)/linux4microchip+fpga-2023.09.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="mpfs" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/l inux.fragment"
BR2_LINUX_KERNEL_DTS_SUPPORT=yconfigs/microchip_mpfs_icicle_defconfig +0
-0@@ -16,7 +15,7 @@ BR2_TARGET_ROOTFS_EXT2_4=yBR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
Quoted 8 lines
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire- soc,u-boot)linux4microchip+fpga-2023.06.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire- soc,u-boot)linux4microchip+fpga-2023.09.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="microchip_mpfs_icicle" BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/u boot-fragment-rootfs.config"
BR2_TARGET_UBOOT_NEEDS_DTC=y
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedJamie, All,
On 2023-10-02 11:53 +0100, Jamie Gibbons via buildroot spake thusly:
Quoted 12 lines
Build is failing with an unrecognised opcode error due to missing
zicsrextension requirement. This is introduced with GCC version 12. When binutils was updated to v2.38 they updated to the default ISA spec version 20191213. In this version the original i extension split into i, Zicsr and Zifencei. A fix for this has been added since U-Boot version 2022.01 to detect new Zicsr and Zifencei extensions and enable it when needed therefore, an updated U-Boot tag to our latest 2023.09 release will fix this as in our latest release we have updated to U-Boot version 2023.07. Update the kernel verion in line with the U-Boot release version to ensure compatiblities and latest features and fixes are included. Removeriscv_gselection as it is now selected by default.
Quoted 1 line
Signed-off-by Jamie Gibbons <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 38 lines
--- configs/microchip_mpfs_icicle_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)configs/microchip_mpfs_icicle_defconfig +2
-3@@ -1,12 +1,11 @@ BR2_riscv=y -BR2_riscv_g=y BR2_RISCV_ISA_RVC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y BR2_TARGET_GENERIC_HOSTNAME="mpfs_icicle" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/microchip/mpfs_icicle/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1-mchp+fpga)/linux4microchip+fpga-2023.06.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,linux-6.1-mchp+fpga)/linux4microchip+fpga-2023.09.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="mpfs" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/linux.fragment" BR2_LINUX_KERNEL_DTS_SUPPORT=y@@ -16,7 +15,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire-soc,u-boot)linux4microchip+fpga-2023.06.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,polarfire-soc,u-boot)linux4microchip+fpga-2023.09.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="microchip_mpfs_icicle" BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/microchip/mpfs_icicle/uboot-fragment-rootfs.config" BR2_TARGET_UBOOT_NEEDS_DTC=ySignature · 6 lines
2.34.1 _______________________________________________ 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