From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3354CC432BE for ; Fri, 27 Aug 2021 01:32:24 +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 3FB6960EE0 for ; Fri, 27 Aug 2021 01:32:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3FB6960EE0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 ACAAC82EBB; Fri, 27 Aug 2021 03:32:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WSBnv0/m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C522483217; Fri, 27 Aug 2021 03:32:17 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 039D182A01 for ; Fri, 27 Aug 2021 03:32:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-io1-xd2f.google.com with SMTP id f6so6484281iox.0 for ; Thu, 26 Aug 2021 18:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QhhFJ7oVein5jZxDBd1k9iGsRrkNGTZr74+bbsZ2eWs=; b=WSBnv0/mFzjksrorvT3GZT43Qj0zWvA3uKM8ZG1ZX4y7Nn4gtuaHnfVQQ0PdPGaLME KNrjfw+KgtadO2DC23jssF8xnYoTAhmA0NKMOzDXqOjBVf5LGG2uTiPhKCJLyCtgKnNs bTtA7POezzoSg+RfhUCtJOtgzVePuq41fctUvixVbLiE2jMU5RbmLODk1saJpYPggK93 MtCSRPTWfn1VIvPYbiFcwrFl6Mn6JPt1Koy/hxxCdiU/8VFR4Wk2TdXpZMuMOZOFMagk WWICRaBPqQkc8dQUeKZhOZZdvETDgF6KeTB9QH1iEzhgNEwrlK5M1dtJeIe1KjRE9Ylc Wdng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QhhFJ7oVein5jZxDBd1k9iGsRrkNGTZr74+bbsZ2eWs=; b=fbCsYaE/XKnPwpCU6ILAm1g5HVJwihr2tVkmwk4aS9vAcg4rLPVQZukRXR+V8YLjqX GjTk6q9jqLK29plensn5ytEtO+pl0+GepBPLeicHbkW33o6196BiMV8VARg88HktI8sT 7xmBAQlAjByJra5Na3eHqSFTqVq0OcqCX/8ieuTuPma8Gd11kJa/ZOpKdjiWjVP7hhKF Vx8xGJ0Oc1zc7PiVGieZxkjUGl/tXBbErnTNltpZM+DMK3g1eRAr4u+GmlZBKjk0J7ml O/4yfI1dABU/YQiRq7XSnycLfUB2lNkOw5elyGwaqq23O8YarssUgZ9UOkbhfvNARm4T Rngw== X-Gm-Message-State: AOAM532qgy5VFgxTPEx4dFqtdMdOts19Sgtrg9tTWx1TzC5F26SCGrRW oDuOQf4++Hwquxps0H0Nk8ctTRM7pmAoYOUjyUQ= X-Google-Smtp-Source: ABdhPJxSBp2z8rGLb29UznXOFzEHrSBzMa42bYnKTbV6lBvpkzezP/gQ4PaEc86Na2TKcbqg/FltdsSomcvNwl3N9Uk= X-Received: by 2002:a5e:9819:: with SMTP id s25mr5426216ioj.63.1630027931547; Thu, 26 Aug 2021 18:32:11 -0700 (PDT) MIME-Version: 1.0 References: <20210825134634.3959-1-marek.behun@nic.cz> In-Reply-To: From: Chris Packham Date: Fri, 27 Aug 2021 13:32:00 +1200 Message-ID: Subject: Re: [PATCH u-boot-marvell 00/29] kwboot higher baudrate To: =?UTF-8?B?TWFyZWsgQmVow7pu?= Cc: Stefan Roese , u-boot , =?UTF-8?B?UGF2b2wgUm9ow6Fy?= , Baruch Siach , Dennis Gilmore , Mario Six , Jon Nettleton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Fri, Aug 27, 2021 at 1:16 PM Chris Packham wro= te: > > On Thu, Aug 26, 2021 at 1:46 AM Marek Beh=C3=BAn wro= te: > > > > Hello Stefan and others, > > > > this series adds support for booting Marvell platforms via UART (those > > bootable with kwboot) at higher baudrates. > > > > Tested on Turris Omnia up to 5.15 MBd, which is 44x faster than > > 115200 Bd. > > > > The user can direct kwboot to use higher baudrate via the -B option. > > (BTW this option was there before but did not work with the -b option.) > > > > Only the payload part of the KWB image is uploaded at this higher > > baudrate. The header part is still uploaded at 115200 Bd, since the cod= e > > that changes baudrate is injected into header as a binary extension. > > (The payload part makes up majority of the binary, though. On Turris > > Omnia the payload currently makes ~87%.) > > > > The series also contains various other fixes, refactors and improvement= s > > of the code, upon which the main change is done. > > > > Marek & Pali > > What tree/sha is this series based on. I've tried to apply them out of > patchwork and it fails at "tools: kwbimage: Simplify iteration over > version 1 optional headers" > Ah it needs http://patchwork.ozlabs.org/project/uboot/list/?series=3D257577 > > > > Marek Beh=C3=BAn (13): > > tools: kwbimage: Fix printf format warning > > tools: kwboot: Fix buffer overflow in kwboot_terminal() > > tools: kwboot: Make the quit sequence buffer const > > tools: kwboot: Refactor and fix writing buffer > > tools: kwboot: Fix comparison of integers with different size > > tools: kwboot: Use a function to check whether received byte is a > > Xmodem reply > > tools: kwboot: Print new line after SPL output > > tools: kwboot: Allow greater timeout when executing header code > > tools: kwbimage: Simplify iteration over version 1 optional headers > > tools: kwbimage: Refactor image_version() > > tools: kwbimage: Refactor kwbimage header size determination > > doc/kwboot.1: Update man page > > MAINTAINERS: Add entry for kwbimage / kwboot tools > > > > Pali Roh=C3=A1r (16): > > tools: kwboot: Print version information header > > tools: kwboot: Fix kwboot_xm_sendblock() function when > > kwboot_tty_recv() fails > > tools: kwboot: Fix return type of kwboot_xm_makeblock() function > > tools: kwboot: Fix printing progress > > tools: kwboot: Print newline on error when progress was not completed > > tools: kwboot: Split sending image into header and data stages > > tools: kwboot: Allow non-xmodem text output from BootROM only in a > > specific case > > tools: kwboot: Properly finish xmodem transfer > > tools: kwboot: Always call kwboot_img_patch_hdr() > > tools: kwboot: Don't patch image header if signed > > tools: kwboot: Patch source address in image header > > tools: kwboot: Patch destination address to DDR area for SPI image > > tools: kwboot: Round up header size to 128 B when patching > > tools: kwboot: Support higher baudrates when booting via UART > > tools: kwboot: Allow any baudrate on Linux > > tools: kwboot: Add Pali and Marek as authors > > > > MAINTAINERS | 10 + > > doc/kwboot.1 | 58 ++- > > tools/kwbimage.c | 127 ++--- > > tools/kwbimage.h | 93 +++- > > tools/kwboot.c | 1103 +++++++++++++++++++++++++++++++++++------ > > tools/termios_linux.h | 170 +++++++ > > 6 files changed, 1289 insertions(+), 272 deletions(-) > > create mode 100644 tools/termios_linux.h > > > > -- > > 2.31.1 > >