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 2ACFDC6FA83 for ; Sun, 11 Sep 2022 11:49:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CE3784B7F; Sun, 11 Sep 2022 13:48:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com 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=intel.com header.i=@intel.com header.b="hSqirtyp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1BFC982119; Sun, 11 Sep 2022 13:48:02 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 4B8EB84B84 for ; Sun, 11 Sep 2022 13:47:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jitloonl@ecsmtp.png.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662896872; x=1694432872; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WZICfTABICI6LjY2EGbPhlFWEFKasrRxujzkpGJQ6uA=; b=hSqirtypLqfofoTr6Qv3ovAkEf7TJ8rs4B+4NkFQeJ6sBwBQYSbpA7aa 8Vtu6GW6wh4If87gloEk3osEwBuIustZfnWbwSUarxIcwRzUKM2Bm6KTT USzUL7SEH1D36kuybysb5f+aj3327jkVUR/RQ+OflJA0BjoTcG32/nD1G B6WmlFRvDudkRSo93bWUu3UAq8lgR0wfx+/fQJdcnEYW3e4SW6x3eIDMN 61nHPEgt1Z4mytbe/10ILU8ZIml8FADbO8uXhnXJmgRlT5EhAkrEza7Jp Cb5f9bRZai6foQYIqz2/HoLAmcJsHGWPouB/sW+Ee5pvvrQS0euETr9Uv A==; X-IronPort-AV: E=McAfee;i="6500,9779,10466"; a="296452683" X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="296452683" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 04:47:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="860876388" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga006.fm.intel.com with ESMTP; 11 Sep 2022 04:47:48 -0700 Received: from localhost (pgli0028.png.intel.com [10.221.84.177]) by pglmail07.png.intel.com (Postfix) with ESMTP id D9C7A32FD; Sun, 11 Sep 2022 19:47:42 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id D758BE00414; Sun, 11 Sep 2022 19:47:42 +0800 (+08) From: Jit Loon Lim To: u-boot@lists.denx.de Cc: Jagan Teki , Vignesh R , Marek , Simon , Tien Fong , Kok Kiang , Siew Chin , Sin Hui , Raaj , Dinesh , Boon Khai , Alif , Teik Heng , Hazim , Jit Loon Lim , Sieu Mun Tang , Ley Foon Tan Subject: [PATCH 7/7] configs: HSD #1507526426-10: configs: socfpga: agilex: Add NAND boot support Date: Sun, 11 Sep 2022 19:47:40 +0800 Message-Id: <20220911114740.24447-7-jit.loon.lim@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20220911114740.24447-1-jit.loon.lim@intel.com> References: <20220911114740.24447-1-jit.loon.lim@intel.com> MIME-Version: 1.0 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 From: Ley Foon Tan Add NAND boot env settings Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index ec283a9307..85f42d92c0 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -77,6 +77,11 @@ "scriptfile=u-boot.scr\0" \ "fatscript=if fatload mmc 0:1 ${scriptaddr} ${scriptfile};" \ "then source ${scriptaddr}; fi\0" \ + "nandroot=/dev/mtdblock5\0" \ + "nandload=nand read ${loadaddr} kernel; nand read ${fdt_addr} dtb\0" \ + "nandboot=setenv bootargs " CONFIG_BOOTARGS \ + " root=${nandroot} rw rootwait rootfstype=jffs2; " \ + "booti ${loadaddr} - ${fdt_addr}\0" \ "socfpga_legacy_reset_compat=1\0" /* -- 2.26.2