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 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 3F7F2C54EE9 for ; Sun, 4 Sep 2022 01:30:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C02DB848F2; Sun, 4 Sep 2022 03:30:10 +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="eO/J+XXd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8C48E84957; Sun, 4 Sep 2022 03:30:08 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 6177D8490A for ; Sun, 4 Sep 2022 03:30:04 +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: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1080960E17 for ; Sun, 4 Sep 2022 01:30:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 504E0C433C1 for ; Sun, 4 Sep 2022 01:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662255002; bh=dWFX5eqhiXPyzTkIUsHJxastbs7tZAhWjMaIqEdBvD8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eO/J+XXdkGD2Hh72e/WgxThfckgSWtZ2U3aLKgsu3CsrllTsFhXPZjZtcVlRgXP0z NkLYbdjqosrmzi9+7CoqHnPUBf0b2R8oJt1uINFTjrqWqAlPfzU/ng2CqFXOQrrJi0 nbA3r06kxQbjMkNZuTS04heIp9dlxZiXn5tlVOMrAoW6YS9WDqwszyXGx2TjtvychX 3ObVNanIr06NyaJcmy5ps+EznAFi4+nDMuhHGNbRiw5M+461b3vY8agPPTp1QL8PSK +Ih0PfiNNEa6WoCHBKu857680z19tZXMnRSQcSMW1PCfoo0N63LpJQzgvW3PdUpxHd 4xbqFQb/4euVw== Received: by pali.im (Postfix) id B57644E0C; Sun, 4 Sep 2022 03:29:59 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: u-boot@lists.denx.de Subject: [PATCH 5/9] Nokia RX-51: Call bootm in test script only when image is valid Date: Sun, 4 Sep 2022 03:29:02 +0200 Message-Id: <20220904012906.17718-6-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220904012906.17718-1-pali@kernel.org> References: <20220904012906.17718-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 When reading of image fails then do not call bootm. This prevents false positive test result in case something bootable is present in memory. Signed-off-by: Pali Rohár --- test/nokia_rx51_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nokia_rx51_test.sh b/test/nokia_rx51_test.sh index abd1712fd791..d2417a98bf08 100755 --- a/test/nokia_rx51_test.sh +++ b/test/nokia_rx51_test.sh @@ -180,7 +180,7 @@ EOF # Generate bootmenu for OneNAND booting cat > bootmenu_nand << EOF -setenv bootmenu_0 'uImage-2.6.28-omap1 from OneNAND=mtd read initfs \${kernaddr}; setenv bootargs; setenv setup_omap_atag 1; bootm \${kernaddr}'; +setenv bootmenu_0 'uImage-2.6.28-omap1 from OneNAND=setenv bootargs; setenv setup_omap_atag 1; mtd read initfs \${kernaddr} && bootm \${kernaddr}'; setenv bootmenu_1; setenv bootmenu_delay 1; setenv bootdelay 1; -- 2.20.1