Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle
@ 2023-08-21 11:30 Jamie Gibbons via buildroot
  2023-08-21 11:30 ` [Buildroot] [PATCH 1/2] board/microchip/mpfs_icicle: update post-image script Jamie Gibbons via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jamie Gibbons via buildroot @ 2023-08-21 11:30 UTC (permalink / raw)
  To: buildroot
  Cc: Conor Dooley, Nicolas Ferre, Ludovic Desroches, Thomas Petazzoni,
	Valentina Fernandez Alanis, Jamie Gibbons

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(-)

-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] board/microchip/mpfs_icicle: update post-image script
  2023-08-21 11:30 [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Jamie Gibbons via buildroot
@ 2023-08-21 11:30 ` Jamie Gibbons via buildroot
  2023-08-21 11:30 ` [Buildroot] [PATCH 2/2] configs/microchip_mpfs_icicle_defconfig: update RVC config option Jamie Gibbons via buildroot
  2023-08-21 13:05 ` [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Thomas Petazzoni via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Jamie Gibbons via buildroot @ 2023-08-21 11:30 UTC (permalink / raw)
  To: buildroot
  Cc: Conor Dooley, Nicolas Ferre, Ludovic Desroches, Thomas Petazzoni,
	Valentina Fernandez Alanis, Jamie Gibbons

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.

Signed-off-by: Jamie Gibbons <jamie.gibbons@microchip.com>
---
 board/microchip/mpfs_icicle/post-image.sh | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/board/microchip/mpfs_icicle/post-image.sh b/board/microchip/mpfs_icicle/post-image.sh
index 04b34bbd40..596bb21d78 100755
--- a/board/microchip/mpfs_icicle/post-image.sh
+++ b/board/microchip/mpfs_icicle/post-image.sh
@@ -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
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] configs/microchip_mpfs_icicle_defconfig: update RVC config option
  2023-08-21 11:30 [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Jamie Gibbons via buildroot
  2023-08-21 11:30 ` [Buildroot] [PATCH 1/2] board/microchip/mpfs_icicle: update post-image script Jamie Gibbons via buildroot
@ 2023-08-21 11:30 ` Jamie Gibbons via buildroot
  2023-08-21 13:05 ` [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Thomas Petazzoni via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Jamie Gibbons via buildroot @ 2023-08-21 11:30 UTC (permalink / raw)
  To: buildroot
  Cc: Conor Dooley, Nicolas Ferre, Ludovic Desroches, Thomas Petazzoni,
	Valentina Fernandez Alanis, Jamie Gibbons

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

Signed-off-by: Jamie Gibbons <jamie.gibbons@microchip.com>
---
 configs/microchip_mpfs_icicle_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/microchip_mpfs_icicle_defconfig b/configs/microchip_mpfs_icicle_defconfig
index a3b3093982..54a4d55a5f 100644
--- a/configs/microchip_mpfs_icicle_defconfig
+++ b/configs/microchip_mpfs_icicle_defconfig
@@ -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"
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle
  2023-08-21 11:30 [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Jamie Gibbons via buildroot
  2023-08-21 11:30 ` [Buildroot] [PATCH 1/2] board/microchip/mpfs_icicle: update post-image script Jamie Gibbons via buildroot
  2023-08-21 11:30 ` [Buildroot] [PATCH 2/2] configs/microchip_mpfs_icicle_defconfig: update RVC config option Jamie Gibbons via buildroot
@ 2023-08-21 13:05 ` Thomas Petazzoni via buildroot
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-21 13:05 UTC (permalink / raw)
  To: Jamie Gibbons via buildroot
  Cc: Valentina Fernandez Alanis, Jamie Gibbons, Ludovic Desroches,
	Conor Dooley, Nicolas Ferre

On Mon, 21 Aug 2023 12:30:32 +0100
Jamie Gibbons via buildroot <buildroot@buildroot.org> wrote:

> 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
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-21 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 11:30 [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Jamie Gibbons via buildroot
2023-08-21 11:30 ` [Buildroot] [PATCH 1/2] board/microchip/mpfs_icicle: update post-image script Jamie Gibbons via buildroot
2023-08-21 11:30 ` [Buildroot] [PATCH 2/2] configs/microchip_mpfs_icicle_defconfig: update RVC config option Jamie Gibbons via buildroot
2023-08-21 13:05 ` [Buildroot] [PATCH 0/2] Fixes for Microchip MPFS Icicle Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox