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 A6184C43217 for ; Tue, 26 Oct 2021 15:40:46 +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 2ABDC60F92 for ; Tue, 26 Oct 2021 15:40:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2ABDC60F92 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 9876083457; Tue, 26 Oct 2021 17:40:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635262844; bh=S6FIScvCBwESysWN7k6PBbzJNb40WBpDs58Wg0VaqQo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AgH++8mVZfMLj/UVYGR1W/2niDzzXBCAhNJmrvZUJfdqTYrsVHpoCP1sRZ1ol3+5D 6PcfAsFcVVRi/OQqlFq+akYiKJqmZ1A3iAzrnbDjAfKrAtoizKkGF7Ul698XUv1SAh fhYhuKB8XMp+35RUI45AfrKPeUyK5I/VfJd8ViG/xOhquC1YbjAUFiQsrT3V5MSOs3 S1Tifcmk9NQVMEZErtF2a4meyXlpzMw0cA3YPJRzxkRALYMfWGcfPPWXUDNbMA5p2f iClrpkOjgP41kl+vKeW28lBc4wft9kvhycy0WaY10JUi8YkPeIDIFaJ5O2DD5LR7d8 6/K0dhB9/bH5A== Received: by phobos.denx.de (Postfix, from userid 109) id 1B6FB83431; Tue, 26 Oct 2021 17:40:41 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:1::465:107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4A6B982127 for ; Tue, 26 Oct 2021 17:40:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (unknown [91.198.250.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4HdwyF5jVnzQl6l; Tue, 26 Oct 2021 17:40:37 +0200 (CEST) Subject: Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: =?UTF-8?Q?Pali_Roh=c3=a1r?= , u-boot@lists.denx.de, =?UTF-8?Q?Marek_Beh=c3=ban?= 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> <20211026173401.593bae4c@thinkpad> From: Stefan Roese Message-ID: Date: Tue, 26 Oct 2021 17:40:33 +0200 MIME-Version: 1.0 In-Reply-To: <20211026173401.593bae4c@thinkpad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: A8176183A 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 26.10.21 17:34, Marek BehĂșn wrote: > On Tue, 26 Oct 2021 17:25:10 +0200 > Stefan Roese wrote: > >> On 26.10.21 17:20, Marek BehĂșn wrote: >>> On Tue, 26 Oct 2021 17:13:05 +0200 >>> Stefan Roese wrote: >>> >>>> 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. >>>> >>>>> 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. >>>> >>>> I changed the timeout to 10s without any change. It did not help. >>> >>> At what address is the image being sent to? Please send dumpimage >>> output for the kwb image. >> >> [stefan@ryzen u-boot-marvell (kwboot-test1)]$ ./tools/dumpimage -l >> u-boot-spl.kwb >> Image Type: MVEBU Boot from spi Image >> Image version:1 >> BIN Hdr Size: 89196 Bytes = 87.11 KiB = 0.09 MiB >> Data Size: 548604 Bytes = 535.75 KiB = 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. Okay. Still it's unclear, why I don't see any speedup in the download time here. > Stefan, did it previously work on this board? No... > 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? ... Meaning, it still works when the baudrate is not changed at all. I never tried with a baudrate != 115200 until your work in this area here. >>> Is it possible to connect JTAG to the board? >> >> 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. Agreed. Thanks, Stefan