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 53076C433F5 for ; Fri, 22 Oct 2021 08:48:41 +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 C2C0060FF2 for ; Fri, 22 Oct 2021 08:48:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C2C0060FF2 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 3C22D82D6F; Fri, 22 Oct 2021 10:48:39 +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="AAmxfZLi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B213B80601; Fri, 22 Oct 2021 10:48:37 +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 4AB1280601 for ; Fri, 22 Oct 2021 10:48:32 +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=pali@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id 95A4460FF2; Fri, 22 Oct 2021 08:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634892510; bh=v67LhLFOi0+Ke13qp7WB4qTo7kGx2Gg19q6PjUzH5R8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AAmxfZLiCbzRu0quZwLByEJYYbH+ZeZzLm1Ml3JvaVD2YZgHlbdMCOc8f5Wt4jP/R 0a0KM/ztA8a6LmtqwdfJK9Tv4KyEMRpWCXH/WgWL/ZKFpB19og+fl4kLiEjwo5o9aF X56QOFuVj5+UTptNjRMCzQ+HZOmSvg/HttG/rhTvF1Z9ywXeSEplR50Gu3YE8wcZAY Dcq1Oi47V1dltNqESx82LvaWRtBrUoE7Q+DEWno+5EDZuy4I+xnzwde/w7UCuzgRlR a45/BjpQCGxjc9DR9tTKWCQrcmV+VVGrAAhwMvZpgSg1szfqI9gtMJ0WafYjozzmCi JB7ZSMRKJ85yQ== Received: by pali.im (Postfix) id 462E97F6; Fri, 22 Oct 2021 10:48:28 +0200 (CEST) Date: Fri, 22 Oct 2021 10:48:28 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Stefan Roese Cc: Marek =?utf-8?B?QmVow7pu?= , u-boot@lists.denx.de, Marek =?utf-8?B?QmVow7pu?= Subject: Re: [PATCH u-boot-marvell v3 00/39] kwboot higher baudrate Message-ID: <20211022084828.355oc7bqgm3spaay@pali> References: <20210924210716.29752-1-kabel@kernel.org> <20210930181419.ylymgidnzzifpz2x@pali> <4dc716e5-3d86-1b81-d761-08713a824f6d@denx.de> <20211001092856.gpagytudmfu45oht@pali> <20211001100904.n6njnf7bdfrqym2h@pali> <20211001123613.5ee89266@thinkpad> <71b0a466-c60e-94e5-7870-b755bb4e18f1@denx.de> <20211001124556.79bd6a18@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 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 Friday 22 October 2021 10:38:16 Stefan Roese wrote: > Hi Marek, Hi Pali, > > since now all is merged into master, I'm testing on my AXP target > again. Please see below. > > On 01.10.21 12:45, Marek BehĂșn wrote: > > On Fri, 1 Oct 2021 12:40:29 +0200 > > Stefan Roese wrote: > > > > > U-Boot SPL 2021.10-rc5-00431-g6c96332441cf-dirty (Oct 01 2021 - 12:38:55 > > > +0200) > > > High speed PHY - Version: 2.1.5 (COM-PHY-V20) > > > High speed PHY - Ended Successfully > > > DDR3 Training Sequence - Ver 5.7.4 > > > DDR3 Training Sequence - Ended Successfully > > > Trying to boot from BOOTROM > > > Returning to BootROM (return address 0xffff0aa0)... > > > rc=-1 errno=110 allow_non_xm=1 *non_xm_print=1 > > > > > > > > > xmodem: Connection timed out > > > > No ACK from BootROM. It is possible that return_from_bootrom() was not > > called, or failed, somehow in SPL. > > I'm not getting this when using master: > > [stefan@ryzen u-boot (master)]$ ./tools/kwboot -B 230400 -p -b > u-boot-spl.kwb -t > /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A1019EGY-if00-port0 > Patching image boot signature to UART > Injecting binary header code for changing baudrate to 230400 Bd > Injecting code for changing baudrate back > Aligning image header to Xmodem block size > Sending boot message. Please reboot the target.../ > Waiting 2s and flushing tty > Sending boot image header (90496 bytes)... > 0 % > [......................................................................] > 10 % > [......................................................................] > 19 % > [......................................................................] > 29 % > [......................................................................] > 39 % > [......................................................................] > 49 % > [......................................................................] > 59 % > [......................................................................] > 69 % > [......................................................................] > 79 % > [......................................................................] > 89 % > [......................................................................] > 99 % [....... ] > Done > > U-Boot SPL 2021.10-00815-gf200a4bcecf1-dirty (Oct 22 2021 - 10:33:19 +0200) > High speed PHY - Version: 2.1.5 (COM-PHY-V20) > High speed PHY - Ended Successfully > DDR3 Training Sequence - Ver 5.7.4 > DDR3 Training Sequence - Ended Successfully > Trying to boot from BOOTROM > Returning to BootROM (return address 0xffff0aa0)... > > Changing baudrate to 230400 Bd > Baudrate was not changed > > > xmodem: Protocol error > > It works with the standard 115k. Any ideas why switching baudrate fails > on AXP? When 115k baudrate is specified (or no baudrate is specified) then kwboot does not inject any code for changing baudrate (as 115k is default). So it looks like that issue is with switching. I have already some more "fixup" patches for kwboot and kwbimage, which are fixing some issues which I found. So it is possible that you hit some of that issue. I will pass patches to Marek and after some testing we will send them to mailing list for review. I do not have any AXP board, so I cannot test or debug it manually.