Re: [PATCH u-boot-marvell 14/14] tools: kwboot: Set debug flag to 1

Stefan Roese
2022-01-26T15:46:40Z

On 1/25/22 18:13, Marek Behún wrote:
> From: Pali Rohár <pali@kernel.org>
>
> This should enable BootROM output on UART.
>
> (At least on A385 BootROM this is broken, BootROM ignores this debug
> flag and does not enable its output on UART if some valid image is
> available in SPI-NOR.)
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Signed-off-by: Marek Behún <marek.behun@nic.cz>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
> tools/kwboot.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index 859559fb72..2684f0e75a 100644
> --- a/tools/kwboot.c
> +++ b/tools/kwboot.c
> @@ -1631,6 +1631,7 @@ kwboot_img_patch(void *img, size_t *size, int baudrate)
> * baudrate (which should be 115200) and do not touch
> * UART MPP configuration.
> */
> + hdr->flags |= 0x1;
> hdr->options &= ~0x1F;
> hdr->options |= MAIN_HDR_V1_OPT_BAUD_DEFAULT;
> hdr->options |= 0 << 3;

Viele Grüße,
Stefan Roese

--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de