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 CA121C4332F for ; Fri, 14 Oct 2022 09:49:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22AB384D99; Fri, 14 Oct 2022 11:49:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=semihalf.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=semihalf.com header.i=@semihalf.com header.b="CgzTGNbj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02BB184E8D; Fri, 14 Oct 2022 11:49:46 +0200 (CEST) Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E4B2E84EA5 for ; Fri, 14 Oct 2022 11:49:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=semihalf.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pan@semihalf.com Received: by mail-lf1-x135.google.com with SMTP id g1so6353762lfu.12 for ; Fri, 14 Oct 2022 02:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EC4IPvXw2lrL/MqNEFluCaMqCzM7tpRvmEgvmLpCYZw=; b=CgzTGNbjdLPYTB6XGTV5LZfqKIR4v9tB0F8Vp20hJK1yHARYuhwGK20ZBEQ35P4xxk bgrkog9N4ftzbQQq70sEm1VHMVdRevUaFED6JTCSz0kympb2CTj5RxnNRy1bt4iTZPI4 tWfW995U5Ch2xVicGmYGxgg4A7sqpAEZURRYksYSTWyvATzXYt3GYcNB8i9awmvq0cuB VBvGT99A1Erto6Ob7jNiEeNMUb81mm62O1I3jKfYW+SDq4CUq4WGHJsddcT61mIfWmmo AdwnrqV5kP557xuBG1Evkjkp0LkiTDwOp9bZpzNvtC6BxwLL/CFOllC1u/TypAKDN9rJ MrVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EC4IPvXw2lrL/MqNEFluCaMqCzM7tpRvmEgvmLpCYZw=; b=opP13tfCg+GmRqTaNynjAdjZy7bHggLICA6VCBIEtvUcrYXTtTGiKBdzLMwfD3Jy/H +nUX17Upzt2SHTEI37OinY4Y5PnwBZ8IKpPhMr0LAckvbhyDkKwgTweyJcCayW248uVa 9huyJPe1bAFUbFCpklF6GVWHPUN7hFsSteb2CEfiK2WAj0F9jH8T1CtxFymc1IJo6rfI hjxHEskhFOC+3mjIjQv0US6203t//Y14yp22P+M2gxoNL+CR7TmUtlzKHwclDY3Jv3QS yHhPGan4saV+gHP48tNlk/dech2JwCvC0KM76GETaSl/MCql7cPEMST8f5JYJ7ZAB2g/ e9GQ== X-Gm-Message-State: ACrzQf3Q754d1uSBut5NY3qw3Pkv+IGefFVqoK8drIuKa6Yb5C2u9wkp DhwtMinvMCJKhVoDVTa/v/jrZPyGNhTQPg== X-Google-Smtp-Source: AMsMyM4XLlloRuKAJGc87rsjQOKX5PMgAqkniLQTxY8ovsZNjd+Tb93zrJ927/jYmx+GFDe3vFLu2Q== X-Received: by 2002:a19:7609:0:b0:4a2:426d:f70d with SMTP id c9-20020a197609000000b004a2426df70dmr1492353lff.317.1665740980303; Fri, 14 Oct 2022 02:49:40 -0700 (PDT) Received: from panikiel.wifi.semihalf.net ([83.142.187.86]) by smtp.gmail.com with ESMTPSA id x4-20020a19f604000000b004a2386b8cf4sm271730lfe.258.2022.10.14.02.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 02:49:39 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= To: u-boot@lists.denx.de, marex@denx.de, simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com Cc: sjg@chromium.org, ka@semihalf.com, mw@semihalf.com, amstan@chromium.org, =?UTF-8?q?Pawe=C5=82=20Anikiel?= Subject: [PATCH v2 2/6] socfpga: chameleonv3: Move environment to a text file Date: Fri, 14 Oct 2022 11:49:31 +0200 Message-Id: <20221014094935.653862-3-pan@semihalf.com> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog In-Reply-To: <20221014094935.653862-1-pan@semihalf.com> References: <20221014094935.653862-1-pan@semihalf.com> 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 Move the environment to an easily editable text file in the boot partition Signed-off-by: Paweł Anikiel --- board/google/chameleonv3/environment.txt | 13 +++++++++++++ include/configs/socfpga_chameleonv3.h | 9 ++++----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 board/google/chameleonv3/environment.txt diff --git a/board/google/chameleonv3/environment.txt b/board/google/chameleonv3/environment.txt new file mode 100644 index 0000000000..52aedbb90a --- /dev/null +++ b/board/google/chameleonv3/environment.txt @@ -0,0 +1,13 @@ +# MMC boot command +bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm + +# Network boot command and vars +bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm +autoload=no +serverip=192.168.0.1 + +# U-Boot will run this after loading this file +bootcmd_txt=run bootcmd_mmc + +# Kernel cmdline +bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rootflags=subvol=root rw rootwait diff --git a/include/configs/socfpga_chameleonv3.h b/include/configs/socfpga_chameleonv3.h index 75d2081fac..4c43d89a20 100644 --- a/include/configs/socfpga_chameleonv3.h +++ b/include/configs/socfpga_chameleonv3.h @@ -21,11 +21,10 @@ #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200} #define CONFIG_EXTRA_ENV_SETTINGS \ - "autoload=no\0" \ - "bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rw rootwait\0" \ - "distro_bootcmd=bridge enable; run bootcmd_mmc\0" \ - "bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm\0" \ - "bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm\0" + "distro_bootcmd=bridge enable; " \ + "load mmc 0:1 ${loadaddr} u-boot.txt; " \ + "env import -t ${loadaddr}; " \ + "run bootcmd_txt\0" /* * L4 OSC1 Timer 0 -- 2.38.0.413.g74048e4d9e-goog