From: Michal Simek <michal.simek@amd.com>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: u-boot@lists.denx.de, git@xilinx.com,
Algapally Santosh Sagar <santoshsagar.algapally@amd.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Masahisa Kojima <masahisa.kojima@linaro.org>,
Shiji Yang <yangshiji66@outlook.com>,
Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Subject: Re: [PATCH] arm64: zynqmp: Do not describe u-boot.itb if SPL is disabled
Date: Tue, 12 Mar 2024 16:25:36 +0100 [thread overview]
Message-ID: <f8f8c6f4-87ca-42b1-a561-0de81dbf3ced@amd.com> (raw)
In-Reply-To: <503983a7-89a2-4673-a2f5-1d6396ea63b4@gmx.de>
On 3/12/24 13:29, Heinrich Schuchardt wrote:
> On 05.03.24 16:47, Ilias Apalodimas wrote:
>> On Fri, Feb 23, 2024 at 05:18:42PM +0100, Michal Simek wrote:
>>> There is no reason to describe u-boot.itb on system without SPL. Pretty
>>> much this is cover all systems which are using only boot.bin which contains
>>> all images inside.
>>>
>>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>>> ---
>>>
>>> board/xilinx/common/board.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
>>> index 9641ed307b75..4f38b7d27684 100644
>>> --- a/board/xilinx/common/board.c
>>> +++ b/board/xilinx/common/board.c
>>> @@ -43,7 +43,7 @@ struct efi_fw_image fw_images[] = {
>>> .image_index = 1,
>>> },
>>> #endif
>>> -#if defined(XILINX_UBOOT_IMAGE_GUID)
>>> +#if defined(XILINX_UBOOT_IMAGE_GUID) &&
>>> defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
>>
>> What happens if this is defined with CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="" ?
>
> CONFIG_SPL_FS_LOAD_PAYLOAD_NAME depends on SPL_FS_EXT4 || SPL_FS_FAT ||
> SPL_FS_SQUASHFS || SPL_SEMIHOSTING. So it is only defined if SPL could
> load a file.
>
> CONFIG_SPL_FS_LOAD_PAYLOAD_NAME defaults to a non-blank name. If a user
> provides an invalid name, SPL will not be able to load the file.
>
> What is wrong here is to assume that *.itb has to be load as a file. We
> can configure U-Boot SPL to load the itb from a raw partition.
>
> The check might be too restrictive.
I am not sure I fully follow what you are saying here.
All current dfu rules via set_dfu_alt_info() (board/xilinx/zynqmp/zynqmp.c) are
using CONFIG_SPL_FS_LOAD_PAYLOAD_NAME for second location description.
Obviously in qspi boot mode it is description for RAW. In sd one it is
description with using fat.
Description for two guids make only sense in connection to using U-Boot SPL
only. Because if SPL is not used likely you are going to use standard Xilinx
solution which is pretty much all in one inside boot.bin which is described
already.
This patch is just trying to get rid of description for second firmware if non
SPL bootflow is used because pointer is likely not correct.
Thanks,
Michal
next prev parent reply other threads:[~2024-03-12 15:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 16:18 [PATCH] arm64: zynqmp: Do not describe u-boot.itb if SPL is disabled Michal Simek
2024-03-05 15:47 ` Ilias Apalodimas
2024-03-06 7:48 ` Michal Simek
2024-03-12 6:14 ` Ilias Apalodimas
2024-03-12 15:54 ` Michal Simek
2024-03-12 19:12 ` Ilias Apalodimas
2024-03-13 6:42 ` Michal Simek
2024-03-13 7:01 ` Ilias Apalodimas
2024-03-14 8:34 ` Ilias Apalodimas
2024-03-14 8:42 ` Michal Simek
2024-03-12 12:29 ` Heinrich Schuchardt
2024-03-12 15:25 ` Michal Simek [this message]
2024-03-22 11:57 ` Michal Simek
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=f8f8c6f4-87ca-42b1-a561-0de81dbf3ced@amd.com \
--to=michal.simek@amd.com \
--cc=git@xilinx.com \
--cc=ilias.apalodimas@linaro.org \
--cc=masahisa.kojima@linaro.org \
--cc=santoshsagar.algapally@amd.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=venkatesh.abbarapu@amd.com \
--cc=xypron.glpk@gmx.de \
--cc=yangshiji66@outlook.com \
--cc=ycliang@andestech.com \
/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.