All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 2/4] configs/stm32mp157*: use trusted configuration
Date: Wed, 14 Oct 2020 19:02:28 +0200	[thread overview]
Message-ID: <20201014190228.6eb7b739@windsurf> (raw)
In-Reply-To: <20201007144945.1697081-2-shlomi.39sd@gmail.com>

Hello,

On Wed,  7 Oct 2020 17:49:43 +0300
Shlomi Vaknin <shlomi.39sd@gmail.com> wrote:

> Adding support for trusted configuration for stm32mp157c-dk2 and stm32mp157a-dk1.
> This patch change using uboot spl as fsbl to using arm trusted firmware.
> The reason for this change is that st recommends to use this configuration (or optee)
> and not the basic.
> In addition, this commit enables gadget support in `linux.config`.
> 
> In addition, removing partition-type from genimage.cfg is mandatory,
> since it creates a hybrid MBR partition table which causes ATF to not find ssbl parition.
> 
> Signed-off-by: Shlomi Vaknin <shlomi.39sd@gmail.com>

Thanks, I have applied, with some changes. See below.

> +main()
> +{
> +	local ATFBIN="$(atf_image)"
> +	local GENIMAGE_CFG="$(mktemp --suffix genimage.cfg)"
> +	local GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
> +
> +	sed -e "s/%ATFBIN%/${ATFBIN}/" \
> +
> board/stmicroelectronics/common/stm32mp157/genimage.cfg.template >
> ${GENIMAGE_CFG} +
> +	rm -rf "${GENIMAGE_TMP}"
> +
> +	genimage \
> +		--rootpath "${TARGET_DIR}" \
> +		--tmppath "${GENIMAGE_TMP}" \
> +		--inputpath "${BINARIES_DIR}" \
> +		--outputpath "${BINARIES_DIR}" \
> +		--config "${GENIMAGE_CFG}"
> +
> +	rm -f ${GENIMAGE_CFG}
> +
> +	exit $?
> +}

I have replaced the manual call to genimage by a call to
support/scripts/genimage.sh.

> diff --git a/board/stmicroelectronics/stm32mp157a-dk1/linux.config b/board/stmicroelectronics/stm32mp157a-dk1/linux.config
> index 95c834e431..47729ea97c 100644
> --- a/board/stmicroelectronics/stm32mp157a-dk1/linux.config
> +++ b/board/stmicroelectronics/stm32mp157a-dk1/linux.config

I have dropped those changes to the Linux kernel configuration, as they
are not related to the switch to a trusted configuration.

> diff --git a/board/stmicroelectronics/stm32mp157c-dk2/linux.config b/board/stmicroelectronics/stm32mp157c-dk2/linux.config
> index 878a0c39f1..c03eb748b4 100644
> --- a/board/stmicroelectronics/stm32mp157c-dk2/linux.config
> +++ b/board/stmicroelectronics/stm32mp157c-dk2/linux.config

Same.

> +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y

I have changed to used a fixed version of arm-trusted-firmware, i.e
v2.2, so that the defconfig will always use the same configuration
instead of "the latest".

> +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y

Same here.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  parent reply	other threads:[~2020-10-14 17:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-07 14:49 [Buildroot] [PATCH v3 1/4] boot/uboot: add stm32 binary format Shlomi Vaknin
2020-10-07 14:49 ` [Buildroot] [PATCH v3 2/4] configs/stm32mp157*: use trusted configuration Shlomi Vaknin
2020-10-12 18:08   ` Bartosz Bilas
2020-10-12 20:11     ` Shlomi Vaknin
2020-10-13 17:29       ` Bartosz Bilas
2020-10-14 17:02   ` Thomas Petazzoni [this message]
2020-10-07 14:49 ` [Buildroot] [PATCH v3 3/4] configs/stm32mp157*: bump kernel version Shlomi Vaknin
2020-10-14 17:02   ` Thomas Petazzoni
2020-10-07 14:49 ` [Buildroot] [PATCH v3 4/4] configs/stm32mp157c-dk2: add support for wifi Shlomi Vaknin
     [not found]   ` <15798cdd-e335-a291-53d4-1ac03d1bbd6c@grinn-global.com>
2020-10-07 19:27     ` Bartosz Bilas
2020-10-07 20:16       ` Shlomi Vaknin
2020-10-08 17:31         ` Bartosz Bilas
2020-10-08 20:45           ` Shlomi Vaknin
2020-10-09 16:49             ` Bartosz Bilas
2020-10-09 19:13               ` Shlomi Vaknin
2020-10-10 15:41                 ` Bartosz Bilas
2020-10-10 18:08                   ` Shlomi Vaknin
2020-10-10 18:59                     ` Shlomi Vaknin
2020-10-10 19:01                   ` Bartosz Bilas
2020-10-10 20:48                     ` Shlomi Vaknin
2020-10-12 14:49                       ` Bartosz Bilas
2020-10-12 17:35                         ` Shlomi Vaknin
2020-10-12 18:15                           ` Bartosz Bilas
2020-10-14 17:02   ` Thomas Petazzoni
2020-11-01 11:08   ` Sergey Matyukevich
2020-10-14 17:00 ` [Buildroot] [PATCH v3 1/4] boot/uboot: add stm32 binary format Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201014190228.6eb7b739@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.