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 501F0C433F5 for ; Wed, 3 Nov 2021 07:47:06 +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 9BF0861175 for ; Wed, 3 Nov 2021 07:47:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BF0861175 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 5311B8362C; Wed, 3 Nov 2021 08:46:54 +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=1635925614; bh=4O0gLW4I4IfzaQlSxDBipAZeHzHdZLmLSlnXjOx4h88=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZV4FLF6dE7tyTNQC6IUW518en8dUsQ1GWJK3a2kaB1StfUHWthcJ4SkIGv1E2WMBO u1WqtlraY7CK+ivPSLi+As2rYxsX6HcolqsdNz90OxX8/kDGdGI2m0NlxP1Wo6X9hU tfYXsf+68l+t4d3GeUCA0xQD/OHZ4WecTh7bW52RIex2gRPWpnAyd4zWlPD45c7QiX Cq/Cil+uRDiKV1AOmpVN+wdiX/IEWv1/R85lhGbTImLqxyWGOwyK2y7SxZ0zhONcqT AekOYfdoGG1vYZo5QE+xSo7sP+UGTzqqmCe0tgi6CW+rZGxwgd2eTt9ci9ArlQSsV3 oZic+e4kfIStw== Received: by phobos.denx.de (Postfix, from userid 109) id 6FEF78363B; Wed, 3 Nov 2021 08:46:52 +0100 (CET) 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 081638347E for ; Wed, 3 Nov 2021 08:46:49 +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 smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4: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-204.mailbox.org (Postfix) with ESMTPS id 4Hkf3r3fsGzQl8F; Wed, 3 Nov 2021 08:46:48 +0100 (CET) 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: <99a075e4-e635-0df9-1d1b-8bf4fea210b0@denx.de> Date: Wed, 3 Nov 2021 08:46:44 +0100 MIME-Version: 1.0 In-Reply-To: <20211025131304.21310-1-kabel@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 35D741313 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 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 > > 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(-) > Applied to u-boot-marvell/master Thanks, Stefan