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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00BC5C433FE for ; Mon, 25 Oct 2021 14:39:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D64ED60E0B for ; Mon, 25 Oct 2021 14:39:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D64ED60E0B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 73FC180F0E; Mon, 25 Oct 2021 16:39:54 +0200 (CEST) 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=1635172794; bh=iAADgBacHYcobcLb/MzMnT7xsCOmFCc1D1hkVbUafLI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=I57Gwg7Td7zBjFq0wHFdo5J+eGkRigaQpV8WcSMaZ+q9YBEibu9ElMyPTJkVB5btm banU91G3Jw8Ta33NlAYILtCgei+OLzdh9BNPPgBo8zpQjI8m8G8q3EvWhydsBBYHig /AT+H8mVvH7ahH4mDrqkDIFBUwwB+clcOKihU0FDFYgzziObW17El85qIsvloQbTTG Yi+gzy47k14PvGzhUTiF7VaMBVDd359JwZbe0JTsFnOHEz34jvIeApbjsij/3N20tM z2xPOtdFVx/eUs8AE5rn20Hbj39W/4cEmKZ1uJyBxPrI7Dg9jdLMRAbDeKMCC6vVsq YuVUd02Et1D/g== Received: by phobos.denx.de (Postfix, from userid 109) id 1076C83461; Mon, 25 Oct 2021 16:39:53 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [91.198.250.253]) (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 18C7280323 for ; Mon, 25 Oct 2021 16:39:50 +0200 (CEST) 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 smtp102.mailbox.org (unknown [91.198.250.119]) (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-204.mailbox.org (Postfix) with ESMTPS id 4HdHfY51yzzQjfx; Mon, 25 Oct 2021 16:39:49 +0200 (CEST) Subject: Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de, =?UTF-8?Q?Pali_Roh=c3=a1r?= , =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20211025131304.21310-1-kabel@kernel.org> From: Stefan Roese Message-ID: Date: Mon, 25 Oct 2021 16:39:44 +0200 MIME-Version: 1.0 In-Reply-To: <20211025131304.21310-1-kabel@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4020B1312 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Hi Marek, On 25.10.21 15:12, Marek Behún wrote: > From: Marek Behún > > Hello Stefan, > > these are another improvements for kwboot, please apply only after series > arm: mvebu: nandpagesize support for kwbimage v1 I'm checking right now and have applied the 3 NAND patches on current master. But this patchset fails at this one: tools: kwboot: Do not modify kwbimage header before increasing its size [stefan@ryzen u-boot-marvell (kwboot-test1)]$ git am -3 ~/tmp/kwboot2/* Applying: tools: kwboot: Initialize rfds to zero Applying: tools: kwboot: Fix initialization of tty device Applying: tools: kwboot: Reserve enough space for patching kwbimage in memory Applying: tools: kwboot: Validate 4-byte image data checksum Applying: tools: kwboot: Inject baudrate change back code after data part Applying: tools: kwboot: Recalculate 4-byte data checksum after injecting baudrate code Applying: tools: kwboot: Correctly set configuration of UART for BootROM messages Applying: tools: kwboot: Show verbose message when waiting for baudrate change magic Applying: tools: kwboot: Simplify code for aligning image header Applying: tools: kwboot: Do not modify kwbimage header before increasing its size error: sha1 information is lacking or useless (tools/kwboot.c). error: could not build fake ancestor Patch failed at 0010 tools: kwboot: Do not modify kwbimage header before increasing its size hint: Use 'git am --show-current-patch=diff' to see the failed patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". Any idea what's missing here? Thanks, Stefan > The main improvement is in patch 5, which changes where we inject the code > for changing baudrate back to 115200 Baud after fast upload. Instead of > injecting it before the main data image, we now inject it after. > > This is because there are some kwb images that upload at address 0, and > injecting the code before that doesn't work, since there is no RAM mapped > at 0xfffff000. > > Marek & Pali > > Pali Rohár (13): > tools: kwboot: Initialize rfds to zero > tools: kwboot: Fix initialization of tty device > tools: kwboot: Reserve enough space for patching kwbimage in memory > tools: kwboot: Validate 4-byte image data checksum > tools: kwboot: Inject baudrate change back code after data part > tools: kwboot: Recalculate 4-byte data checksum after injecting > baudrate code > tools: kwboot: Correctly set configuration of UART for BootROM > messages > tools: kwboot: Show verbose message when waiting for baudrate change > magic > tools: kwboot: Simplify code for aligning image header > tools: kwboot: Do not modify kwbimage header before increasing its > size > tools: kwboot: Calculate real used space in kwbimage header when > calling kwboot_img_grow_hdr() > tools: kwboot: Change retry loop from decreasing to increasing > tools: kwboot: Resend first 3 xmodem retry packets immediately > > tools/kwboot.c | 178 +++++++++++++++++++++++++++++++++---------------- > 1 file changed, 120 insertions(+), 58 deletions(-) > Viele Grüße, Stefan -- 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