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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 48C69C25B0E for ; Fri, 19 Aug 2022 07:31:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 96D8984ACE; Fri, 19 Aug 2022 09:31:02 +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=1660894263; bh=UpKEVMd4tXkPXXiQ+2VOrcjCvFuSv2DFtnBihqGuaCo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZmOp9e1olyMVxtDKeVPhThLmlemCo5HvyZh4sEOPJpm9wHREmo+lFVh8XvWnVTf0k pWoffpsqioDitrECMYD26uh6dKyddjys2mjxymSMTB8BrDswetGrMwqSNV5m82QIUO qxVwBR1l1bImqlSubrk6y3mCBUzDq43BcOpz220EOMIJP3rFYAvrsQuXuO6dDX/PXz M8NRqzdpq23CVTuRupAINtaeF4JDTCI0ojMggsb4OEP4ifRYBIWnxMhThGhXhVhpnC J2gBaxM8ZBb+A0nQ/+4KeaSPfF+Sedl0NSxlekBc1hsGHzdCOYP9A9JGmL9QGs1qTX 4+AL6bLsLhjyw== Received: by phobos.denx.de (Postfix, from userid 109) id 4C7388402E; Fri, 19 Aug 2022 09:31:00 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (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 22CF884A7B for ; Fri, 19 Aug 2022 09:30:58 +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 smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4M8D281Z9Cz9sS0; Fri, 19 Aug 2022 09:30:56 +0200 (CEST) Message-ID: Date: Fri, 19 Aug 2022 09:30:55 +0200 MIME-Version: 1.0 Subject: Re: Fix KWBOOT_MSG_RSP_TIMEO_AXP in kwboot for Armada XP Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de References: <20220506090517.5935-1-pali@kernel.org> <20220506090517.5935-3-pali@kernel.org> <20220506120937.c6ywndaa5pcbddsv@pali> <391324c8-c2e3-8aba-af13-cdba4921a2f4@denx.de> <20220506124448.lpl7gcsy2juorhjd@pali> <20220601102733.qt46tliiiehetfle@pali> <1df9c209-de86-8a71-0208-69a88293db44@denx.de> <20220601105428.mgsfflrrrxofo4fk@pali> <20220816184121.yypiy3fvxlxhg3ng@pali> From: Stefan Roese In-Reply-To: <20220816184121.yypiy3fvxlxhg3ng@pali> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Pali, On 16.08.22 20:41, Pali Rohár wrote: > On Wednesday 01 June 2022 12:54:28 Pali Rohár wrote: >> On Wednesday 01 June 2022 12:44:01 Stefan Roese wrote: >>> Hi Pali, >>> >>> On 01.06.22 12:27, Pali Rohár wrote: >>>> On Friday 06 May 2022 14:44:48 Pali Rohár wrote: >>>>> On Friday 06 May 2022 14:35:55 Stefan Roese wrote: >>>>>> While doing this I noticed though, that kwboot UART booting only worked >>>>>> in roughly 1 out of 2 cases. With no progress after this line: >>>>>> >>>>>> Sending boot message. Please reboot the target...\ >>>>>> >>>>>> IIRC, this worked more reliable a few weeks ago. Any idea, what might >>>>>> have caused this regression - if I am correct here? >>>>> >>>>> There were changes in handling of bootrom boot message. There is option >>>>> -s which can change default timeout option. And plus there is option -a >>>>> which sets this timeout option to AXP value. >>>>> >>>>> Default value is 50 and for AXP default value is 1000. >>>>> >>>>> Maybe it is needed to tune AXP value... Try to call with -s option >>>>> between 50 and 1000... >>>> >>>> Hello Stefan! Have you tried to tune kwboot's -s or -a option for AXP board? >>> >>> Thanks for getting back on this. I totally forgot about it. >>> >>> '-a' makes it actually worse. Zero success with 5 tries. '-s 10' worked >>> 5 out of 5 times. So I'll stick with this version I think. >>> >>> Thanks, >>> Stefan >> >> Ok! So I think that you could change KWBOOT_MSG_RSP_TIMEO_AXP value in >> tools/kwboot.c to 10 if it works fine for your AXP board. So '-a' option >> would work better. > > Hello! I would like to remind this issue. Could you look at it, so we do > not have broken '-a' option in kwboot? Thanks for the reminder. I've checked again and "-a" is not working reliable on my AXP platform (any more?). Using "-s 10" seem to be much better. So we should either remove this -a option completely or change the define to 10 instead of 1000 IMHO. Thanks, Stefan