Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65A56C2BA4C for ; Wed, 26 Jan 2022 15:46:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9226783A8A; Wed, 26 Jan 2022 16:43:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1643211813; bh=WKC1LGaNunKjAJe97835dmJI/z73pbiBT6CPaEg5UfU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vlIFEj61cw3557zIRnGtP0bNHBBWJ7dEfq7+p/5Rlx4alzoxoujUGQVvfI9CTmmIq hwoKrI+L52YNiGGBzy5/DcbgHfWpTFRRUjn/D4lTczME4EtCuey6gc9FIB0o+hxYj3 8pROBMn7Bv13c8omSxLDK4jZy4Qj9WJV6XehNKcRev19KdYyqYGsd9Wjm0RbK3sVJV gFPTROLFmuLVp2DtJdbdvkheBo0cCJUyxxFpRhvie46vIIl2SOEil2kNU24TOs7Rux NaO4Xp7UjlUq+H2WokJ9L3Psy2CJNz81iS/S1HTC3wMJqDcmVyZJ2xgLg16JudpGR4 DA/hMP7NCT9Lw== Received: by phobos.denx.de (Postfix, from userid 109) id F390E8312A; Wed, 26 Jan 2022 16:42:54 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7023183090 for ; Wed, 26 Jan 2022 16:42:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4JkSfN08bgz9skp; Wed, 26 Jan 2022 16:42:52 +0100 (CET) Message-ID: <319b6f69-a86e-4792-d8dd-db1c2a376bc5@denx.de> Date: Wed, 26 Jan 2022 16:42:47 +0100 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell 14/14] tools: kwboot: Set debug flag to 1 Content-Language: en-US To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de, pali@kernel.org, =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20220125171313.14498-1-kabel@kernel.org> <20220125171313.14498-15-kabel@kernel.org> From: Stefan Roese In-Reply-To: <20220125171313.14498-15-kabel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 1/25/22 18:13, Marek Behún wrote: > From: Pali Rohár > > 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 > Signed-off-by: Marek Behún Reviewed-by: Stefan Roese 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