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 D071FC433EF for ; Tue, 26 Oct 2021 15:34:13 +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 02ADF60F9D for ; Tue, 26 Oct 2021 15:34:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 02ADF60F9D 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 48EA080615; Tue, 26 Oct 2021 17:34:11 +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="GZichbpX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 51BD780185; Tue, 26 Oct 2021 17:34:09 +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 4968D80615 for ; Tue, 26 Oct 2021 17:34:06 +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 2659460F0F; Tue, 26 Oct 2021 15:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635262444; bh=ncwjvOIIhb4a9Jx7a/hniffzCAnxA/Zrckzj45FEXGk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GZichbpXFXO1Dk4UKDX0T+7Ot8AUiz9HYZAq+Nz/aU/pBDnS2nqcRWLkfKiRA7B8b bs/TZ3TAthrqD7EKDzvHYojdL3UEde4EL5wLZYLgUAeo+xJHIzWZWor8dkSm96+lGJ c3TkSBtI2kzgdDf/bsMo9nUEgXi8N18oJk6ilSx1MBo1OvlI5vjMuYyeeHbMNoFuF4 CEAQyV0T0lrt2wZTxDBNyxGCkgx9cDUtHhci1yFUs9zr0HFqegbOhmMZBuMlqMJS0n gJoWUxFtttyNl9NKtPuw9r5tme5xy0HjvbIg9kHFfVTVKgPg79ElOWOVWJ4Dw6KHuX GlZk57j2Mi7uw== Date: Tue, 26 Oct 2021 17:34:01 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Stefan Roese Cc: Pali =?UTF-8?B?Um9ow6Fy?= , u-boot@lists.denx.de, Marek =?UTF-8?B?QmVow7pu?= Subject: Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements Message-ID: <20211026173401.593bae4c@thinkpad> In-Reply-To: <20a2bb76-f0b8-17b9-18a9-91d742ae8426@denx.de> References: <20211025131304.21310-1-kabel@kernel.org> <20211025144237.667ktcmuge4r2tpw@pali> <20211026083305.bm3lvoevgp62y4fe@pali> <1d9e63ba-bb86-8a86-d7f0-02fdf6e1da52@denx.de> <20211026090620.eilcjqkc33wavm5b@pali> <872e26ac-77ff-f19b-b3c9-debff1af58b0@denx.de> <20211026124048.lprqsoqow63cwqom@pali> <20211026144803.ebibqo5qmnkor5wx@pali> <0b09b3b7-503c-748e-4a79-aff2dff0411c@denx.de> <20211026172007.0c8fc6f3@thinkpad> <20a2bb76-f0b8-17b9-18a9-91d742ae8426@denx.de> 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 Tue, 26 Oct 2021 17:25:10 +0200 Stefan Roese wrote: > On 26.10.21 17:20, Marek Beh=C3=BAn wrote: > > On Tue, 26 Oct 2021 17:13:05 +0200 > > Stefan Roese wrote: > > =20 > >> Here is now just hangs forever. No output from main U-Boot proper at > >> all. This happed every time, when the baudrate is changed, meaning a > >> non 115200 -B is passed to kwboot. I checked with 115201 and here no > >> U-Boot proper output is printed as well. > >> =20 > >>> If there are timeout errors related to "Waiting 1s for baudrate change > >>> magic" then increasing 1s (1000 ms value) to e.g. 10s could help. =20 > >> > >> I changed the timeout to 10s without any change. It did not help. =20 > >=20 > > At what address is the image being sent to? Please send dumpimage > > output for the kwb image. =20 >=20 > [stefan@ryzen u-boot-marvell (kwboot-test1)]$ ./tools/dumpimage -l=20 > u-boot-spl.kwb > Image Type: MVEBU Boot from spi Image > Image version:1 > BIN Hdr Size: 89196 Bytes =3D 87.11 KiB =3D 0.09 MiB > Data Size: 548604 Bytes =3D 535.75 KiB =3D 0.52 MiB > Load Address: 00800000 > Entry Point: 00800000 I think the baudrate changing code is not the problem, because it executes correctly in the binhdr when increasing the baudrate. Otherwise Changing baudrate to 230400 Bd wouldn't be printed. Stefan, did it previously work on this board? I mean at the time the patches were first merged into u-boot-marvell Did the problem start occuring only now, when the code is merged in u-boot master? > > Is it possible to connect JTAG to the board? =20 >=20 > It is. But this would be a bit difficult for me, to dig all these old > tools out and find the correct configuration of the BDI. Yes, lets keep that as last resort. Marek