Skip to contentSkip to conversation

Fixes for Microchip MPFS Icicle

PATCH In review Jamie Gibbons via buildroot 1 participant 4 messages Aug 21, 2023

lore
Share & tools
lore
#0 lore raw

cover Fixes for Microchip MPFS Icicle

Hi all,

This patch series updates the microchip_mpfs_icicle_defconfig due to the latest update to the RISC-V instruction sets, renaming the RVC kconfig. Secondly, I have included a fix to the post-image script to allow an sdcard.img to be built for the Microchip MPFS Icicle kit. When merging, some changes were made that broke this. The hss-payload-generator tool looks for the u-boot.bin image in the directory this command is run from. This binary file is located in the output images directory. All changes to this script were made to try to ensure optimise paths and methods while achieving a working solution. Thanks to Yann for suggestions for optimisation.
This patch set is indended to be applied to the next branch as that is where the Microchip Icicle kit patch series has previously been applied.

Looking forward to your feedback.

Regards,
Jamie.

Jamie Gibbons (2):
board/microchip/mpfs_icicle: update post-image script configs/microchip_mpfs_icicle_defconfig: update RVC config option

 board/microchip/mpfs_icicle/post-image.sh | 19 ++++++++++++-------
 configs/microchip_mpfs_icicle_defconfig   |  2 +-
 2 files changed, 13 insertions(+), 8 deletions(-)
Signature · 6 lines
2.34.1

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

PATCH 1/2 board/microchip/mpfs_icicle: update post-image script

The hss-payload-generator cannot find where u-boot.bin is when looking for it using the config.yaml. Update syntax issues and working directories. Fix the post image script to allow an image to get built.

---
 board/microchip/mpfs_icicle/post-image.sh | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
board/microchip/mpfs_icicle/post-image.sh +12 -7
index 04b34bbd40..596bb21d78 100755
@@ -1,8 +1,13 @@
-#!/bin/sh
-HSS_PAYLOAD_GENERATOR=${HOST_DIR}/bin/hss-payload-generator
-MKIMAGE=${HOST_DIR}/bin/mkimage
+#!/bin/bash
+set -e
 
-"${HSS_PAYLOAD_GENERATOR}" -c board/microchip/mpfs_icicle/config.yaml "${BINARIES_DIR}"/payload.bin
-cp board/microchip/mpfs_icicle/mpfs_icicle.its "${BINARIES_DIR}"/mpfs_icicle.its
-(cd "${BINARIES_DIR}" && "${MKIMAGE}" -f mpfs_icicle.its mpfs_icicle.itb)
-support/scripts/genimage.sh -c board/microchip/mpfs_icicle/genimage.cfg
+HSS_PAYLOAD_GENERATOR="${HOST_DIR}"/bin/hss-payload-generator
+MKIMAGE="${HOST_DIR}"/bin/mkimage
+BOARD_DIR="$(pwd)"/"${0%/*}"
+
+pushd "${BINARIES_DIR}"
+"${HSS_PAYLOAD_GENERATOR}" -c "${BOARD_DIR}"/config.yaml payload.bin
+cp "${BOARD_DIR}"/mpfs_icicle.its "${BINARIES_DIR}"/mpfs_icicle.its
+"${MKIMAGE}" -f mpfs_icicle.its mpfs_icicle.itb
+popd
+support/scripts/genimage.sh -c "${BOARD_DIR}"/genimage.cfg
Signature · 6 lines
2.34.1

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

PATCH 2/2 configs/microchip_mpfs_icicle_defconfig: update RVC config option

In reply to Jamie Gibbons via buildroot

Update the RISCV_ISA_RVC config option to match updated RISCV kconfig instruction set options.

---
 configs/microchip_mpfs_icicle_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/microchip_mpfs_icicle_defconfig +1 -1
index a3b3093982..54a4d55a5f 100644
@@ -1,6 +1,6 @@
 BR2_riscv=y
 BR2_riscv_g=y
-BR2_RISCV_ISA_CUSTOM_RVC=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"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Jamie Gibbons via buildroot
Quoted 3 lines · On Mon, 21 Aug 2023 12:30:32 +0100 Jamie Gibbons via buildroot…

Jamie Gibbons (2):
board/microchip/mpfs_icicle: update post-image script configs/microchip_mpfs_icicle_defconfig: update RVC config option

Thanks, both applied to next!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot