]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwboot: Set debug flag to 1
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:13 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
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>
tools/kwboot.c

index 859559fb723fabbb920e7a4e219ce1b282842fd8..2684f0e75a563b3bd8586d345247078bdd7f2f3d 100644 (file)
@@ -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;