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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E843AC433F5 for ; Fri, 1 Oct 2021 10:36:27 +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 2860261A7D for ; Fri, 1 Oct 2021 10:36:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2860261A7D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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 611DB820E3; Fri, 1 Oct 2021 12:36:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="cz4XBhpD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A49A82D13; Fri, 1 Oct 2021 12:36:23 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F09F48187B for ; Fri, 1 Oct 2021 12:36:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id CCD4761361; Fri, 1 Oct 2021 10:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633084578; bh=J+4ygBvY0Br0pd+bL2ocknmyiW2B7Th10+j9Ng5KIKY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cz4XBhpDzvtNYtoBAFnS8zZZ5r3LzSfhkhSMor6U+D4m8Vfn0uzZwvgstLs1ywjV5 bxKCtDMYQ3+Rk1wpI6NzRAU/o2XOarhhaTwD/5HWam0tkEXNjiLg9G81MJDATCf414 Li0tVruPPVNNRgbP6Au1ZrcYliFBPcR0FZ0jScLMQdpUfZ563fniS+47WRXcL9V5gI h+XdxtOdqlO5QudfT3DZPZzBd+cSGMdpxA5V+CcSB8bCx9hPPPACFdmZ0sdeukJY9a wig0F2ynDgKe/jF/gBrpPgD3x9Ojt7TfGoXsPfNkGVsUBYsS8aj6Y99XrhDYkaCSmW x97+3l4QbTOUA== Date: Fri, 1 Oct 2021 12:36:13 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Stefan Roese , u-boot@lists.denx.de, Chris Packham , Baruch Siach , Dennis Gilmore , Mario Six , Jon Nettleton , Marek =?UTF-8?B?QmVow7pu?= Subject: Re: [PATCH u-boot-marvell v3 00/39] kwboot higher baudrate Message-ID: <20211001123613.5ee89266@thinkpad> In-Reply-To: <20211001100904.n6njnf7bdfrqym2h@pali> References: <20210924210716.29752-1-kabel@kernel.org> <20210930181419.ylymgidnzzifpz2x@pali> <4dc716e5-3d86-1b81-d761-08713a824f6d@denx.de> <20211001092856.gpagytudmfu45oht@pali> <20211001100904.n6njnf7bdfrqym2h@pali> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 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, 1 Oct 2021 12:09:04 +0200 Pali Roh=C3=A1r wrote: > Hello! >=20 > On Friday 01 October 2021 11:58:14 Stefan Roese wrote: > > I checked by quickly starting a terminal app and it does not seem that > > the CPU did go through a reboot. Nothing on the UART at this stage. > >=20 > > BUT: > > The tests I did in this mail were done with your 39 patches applied > > on top of "master-kwboot" [1]. Here booting with 115k works as explained > > below. > >=20 > > Now I applied the same 39 patches on top of "next" [2]. And here not > > even booting with 115k works on my AXP target. It always hangs at this > > stage: =20 >=20 > So default baudrate 115200 works fine on master+39patches and does not > work on next+39patches? Could you check if it works on next without > applying any patch? This seems as if the ACK was not sent by the BootROM. Stefan, could you apply the patch below, recompile and then send the output= again? diff --git a/tools/kwboot.c b/tools/kwboot.c index 6a1a030308..d433ec6d9c 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -865,6 +865,7 @@ kwboot_xm_recv_reply(int fd, char *c, int allow_non_xm,= int *non_xm_print, while (1) { rc =3D kwboot_tty_recv(fd, c, 1, timeout); if (rc) { + printf("rc=3D%i errno=3D%i allow_non_xm=3D%i *non_xm_print=3D%i\n", rc,= errno, allow_non_xm, allow_non_xm ? *non_xm_print : -1); if (errno !=3D ETIMEDOUT) return rc; else if (allow_non_xm && *non_xm_print)