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 8B34BC433EF for ; Fri, 1 Oct 2021 10:49:54 +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 D8087604DC for ; Fri, 1 Oct 2021 10:49:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D8087604DC 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 BDF3E80C83; Fri, 1 Oct 2021 12:49:50 +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="ifddVLa1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D538480C83; Fri, 1 Oct 2021 12:49:47 +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 96E8781F0C for ; Fri, 1 Oct 2021 12:49:42 +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 E062F61A56; Fri, 1 Oct 2021 10:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633085380; bh=mvfBRdGycORRhZq3H2sYnnozC3xfjtnkb9zNf2y5NoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ifddVLa1dR/qrZuEg7PyR0G4Ol2etcrs5VBIYdeeyOR/IyA1bkfBLavjYk3IUY6TU WA9ppocVot5jkvfow9C8IpOW3k+YfSHB5fVPMjBfrP5qOaBO604Y8/sfDQ8LFmB/fr ktX29Zf4YM8W33dPilfOg0GpHukOlxIO/AL3M+K2mLbJQcM1igj0z0v/7nxLtNYPMd VRnQ8f7+FbVg6I8lJpIHe3dFXlo2Ola3NiW5DCeNqclEFvz0guATD4SO1hFqUZBojW p35f639guWrt4zyaSnyx0zYNLMIoTsPXoCZahmiWINx2jZY5/8CtmK0biofPUxcnap efNoL/ZtUKFQQ== Received: by pali.im (Postfix) id 9485D821; Fri, 1 Oct 2021 12:49:37 +0200 (CEST) Date: Fri, 1 Oct 2021 12:49:37 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Stefan Roese Cc: Marek =?utf-8?B?QmVow7pu?= , 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: <20211001104937.326b7gm226sliefs@pali> References: <20210924210716.29752-1-kabel@kernel.org> <20210930181419.ylymgidnzzifpz2x@pali> <4dc716e5-3d86-1b81-d761-08713a824f6d@denx.de> <20211001092856.gpagytudmfu45oht@pali> <20211001100904.n6njnf7bdfrqym2h@pali> <39d82d32-0cdb-7a27-a328-d5aa312a746a@denx.de> <20211001103919.2nk5rauti7ckh6fm@pali> <220b95d3-fdb1-f196-fa38-498e2bebfed6@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <220b95d3-fdb1-f196-fa38-498e2bebfed6@denx.de> 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 01 October 2021 12:43:19 Stefan Roese wrote: > On 01.10.21 12:39, Pali Rohár wrote: > > Hello! > > > > On Friday 01 October 2021 12:28:34 Stefan Roese wrote: > > > First the test on "next" without the 39 patches: > > > > > > [stefan@ryzen u-boot (next)]$ ./tools/kwboot -p -b u-boot-spl.kwb -t > > ... > > > DDR3 Training Sequence - Ended Successfully > > > Trying to boot from BOOTROM > > > Returning to BootROM (return address 0xffff0aa0)... > > > +xmodem: Protocol error > > > > > > > > > Not working! > > > > > > And now test on "master" without the 39 patches: > > > > > > [stefan@ryzen u-boot (master)]$ ./tools/kwboot -p -b u-boot-spl.kwb -t > > ... > > > > > > Seems to okay. > > > > > > Thanks, > > > Stefan > > > > So something is broken in next branch. I have looked at kwboot and > > kwbimage code and there is no change in next branch which is not in > > master branch. > > > > So it looks like that something not related to kwboot broke it in next > > branch. And seems that git bisect on AXP hw would be required. But I do > > not own AXP board, so I cannot do it. > > I can try to do this here later, if I find the time. > > Did you try booting on some other MVEBU SoC (e.g. A38x) using "next" > as base? Now I tested "next" branch (commit 7fde64c004ea) on A38x and it is working fine. $ ./tools/kwboot -b ./u-boot-spl.kwb -t /dev/ttyUSB0 Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 2 % [......................................................................] 3 % [......................................................................] 4 % [......................................................................] 5 % [......................................................................] 6 % [......................................................................] 7 % [......................................................................] 8 % [......................................................................] 9 % [......................................................................] 10 % [......................................................................] 11 % [......................................................................] 12 % [....................................................... U-Boot SPL 2021.10-rc5-00392-g7fde64c004ea (Oct 01 2021 - 12:46:16 +0200) High speed PHY - Version: 2.0 MiniPCIe/mSATA card detection... MiniPCIe Detected Device ID 6820 board SerDes lanes topology details: | Lane # | Speed | Type | -------------------------------- | 0 | 5 | PCIe0 | | 1 | 5 | USB3 HOST0 | | 2 | 5 | PCIe1 | | 3 | 5 | USB3 HOST1 | | 4 | 5 | PCIe2 | | 5 | 0 | SGMII2 | -------------------------------- :** Link is Gen1, check the EP capability PCIe, Idx 0: remains Gen1 :** Link is Gen1, check the EP capability PCIe, Idx 1: remains Gen1 :** Link is Gen1, check the EP capability PCIe, Idx 2: remains Gen1 High speed PHY - Ended Successfully mv_ddr: 14.0.0 DDR3 Training Sequence - Switching XBAR Window to FastPath Window mv_ddr: completed successfully Disabling MCU watchdog... disabled Trying to boot from BOOTROM Returning to BootROM (return address 0xffff05c4)... ...............] 13 % [......................................................................] 14 % [......................................................................] 15 % [......................................................................] ... 95 % [......................................................................] 96 % [......................................................................] 97 % [......................................................................] 98 % [......................................................................] 99 % [................] [Type Ctrl-\ + c to quit] U-Boot 2021.10-rc5-00392-g7fde64c004ea (Oct 01 2021 - 12:46:16 +0200) SoC: MV88F6820-A0 at 1600 MHz DRAM: 2 GiB (800 MHz, 32-bit, 2T, ECC not enabled) WDT: Started watchdog@20300 with servicing (60s timeout) MMC: mv_sdh: 0 Loading Environment from SPIFlash... SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB OK Model: Turris Omnia Turris Omnia: RAM size: 2048 MiB Serial Number: 0000000B00007B3C Regdomain set to ** Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000 =>