From patchwork Tue Sep 4 01:39:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Araneda X-Patchwork-Id: 965655 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=198.137.202.133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i5ESry7Z"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iqH2TSQu"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4248k33tJ1z9s3Z for ; Tue, 4 Sep 2018 11:43:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X5OT8JsdYXgqfxQkdJB5mk8/ZoljdHM6KYQvYFqpPJs=; b=i5ESry7Z5J4p0F gwAbqjzX5HQJUWgKcsrZP+QEYmWV82+KdyRDWcyWoA7ynCJHQ0ke0qXdJPy41oLvKx6v2wSkkrggj q+UNSfZMFJ0RWVoqOwSmMK2ERrqBbolIpcihrBUqLBEIoShc2ga4He2JHPJetsdyXWGRddYq/9d5K YKBhmoZQ7DqoOsbdTiFgk6p1LDnLdXdw1MwJrsO5Rvtzgkj1zN5MTIsqT0nPwf3gsPfLPBnvMjINu ujqHLvTHOlgD0rZjNiIWZoIgB6ZkaP5aTKVAAK88gN4JsqZhj0AW4RNFuH7rzxevPbMHwrhdYmm+c ZY9tiqB0JkAM/r/Ckfaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx0N8-0005jY-8I; Tue, 04 Sep 2018 01:43:14 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx0LA-0004lt-5l for openwrt-devel@lists.openwrt.org; Tue, 04 Sep 2018 01:41:14 +0000 Received: by mail-qk1-x741.google.com with SMTP id c126-v6so1400221qkd.7 for ; Mon, 03 Sep 2018 18:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qBgkyoWar2paPAqcThmnIT03Lobxlgbz25T4GIGfuoc=; b=iqH2TSQuxJW/4hAXx/k2PliibJtEDWory2PPHuEY7av+T76tRRzlexz0n9v9adgfPX yumoGQkFtvNbF1v4MIQUUsWtUJV075czC9dBQ+IKmk31Qxsu9SzfGt0S8vAmUbw0/dt/ +ZKhxS5R687x2QtuzyNvv9EdIIhQd8n2y4rF8PYRJrWCbfOq9+oPgRnsujcGEjiR7L4N YcS3Cu8wHi4ummG8sIC6kfULi0ySpqDpdKfYsgxK7q5FsuZx3PbPzgIb+tzji3ek1w+x 4cJcJ5mjrDmw7uzWfCUZ84CEwu3/+YGREy6dAowe4lw5CDIP/Jltyam+Ugr13i49FgVH Zlcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qBgkyoWar2paPAqcThmnIT03Lobxlgbz25T4GIGfuoc=; b=KZzN0aIuX4eeqx/ygHgnkuOaatHWC1ntsJpvwwDX4ca1p7atfnnNuXBkh+y++p0J1O J20UvhuJ8C46pZj2VnHzNKz9aftrbwwXL7vA/yH+l4phw14pvP1/YTsz2jukACzJh/dT sjqLIQhzd/eOwg/s+I5M0iTLmmQhaFkQxaoik10wK4Wj2VZglgzGsDs6TxHpJU+vGMHX OSOvwiS8Ij6qtjh/GM/EBwE4B87h5HVM2JGkhsv2bU+Kc432PSi55tvxzXRuA14MYNU8 klifLpD2bhb2cO+s00G0HKZ8t4+RVUdCYXfKSyRL0gqGlucVmDHrV+qeYieXyBxnKymD z8Gg== X-Gm-Message-State: APzg51A4EjC/Fd4tfntgMMN9Gtay/V39j8zK0Vam22tuZZ3Dg/dJT7P+ yPo/wMk6p8lzmrqxDfEiltUNndNc X-Google-Smtp-Source: ANB0VdaRY1cXg4tzB7rmGbqiyqebO5QWF7GizYwQkzkBbrVbSkStnSQu+fSNvduxCc//HPvIPrW5Ow== X-Received: by 2002:a37:18e5:: with SMTP id 98-v6mr26548545qky.205.1536025260927; Mon, 03 Sep 2018 18:41:00 -0700 (PDT) Received: from localhost.localdomain (186-106-140-63.baf.movistar.cl. [186.106.140.63]) by smtp.gmail.com with ESMTPSA id b3-v6sm12779471qtb.80.2018.09.03.18.40.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 18:41:00 -0700 (PDT) From: Luis Araneda To: openwrt-devel@lists.openwrt.org Date: Mon, 3 Sep 2018 22:39:59 -0300 Message-Id: <20180904014002.30336-5-luaraneda@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904014002.30336-1-luaraneda@gmail.com> References: <20180904014002.30336-1-luaraneda@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180903_184112_293381_A5B6A389 X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:741 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (luaraneda[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 4/7] uboot-zynq: use a file to modify the default environment X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Luis Araneda MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Follow the strategy of other targets and create a default environment file, uEnv.txt, to configure the behavior of U-Boot. For now, use it to pass bootargs to the kernel Signed-off-by: Luis Araneda --- package/boot/uboot-zynq/Makefile | 2 ++ package/boot/uboot-zynq/files/uEnv-default.txt | 1 + 2 files changed, 3 insertions(+) create mode 100644 package/boot/uboot-zynq/files/uEnv-default.txt diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile index 31575d7cae..2e4c6cc034 100644 --- a/package/boot/uboot-zynq/Makefile +++ b/package/boot/uboot-zynq/Makefile @@ -20,6 +20,7 @@ define U-Boot/Default BUILD_TARGET:=zynq UBOOT_IMAGE:=spl/boot.bin u-boot.img UBOOT_CONFIG:=zynq_$(1) + UENV:=default HIDDEN:=1 endef @@ -53,6 +54,7 @@ define Build/InstallDev $(INSTALL_DIR) $(STAGING_DIR_IMAGE) $(CP) $(PKG_BUILD_DIR)/spl/boot.bin $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-boot.bin $(CP) $(PKG_BUILD_DIR)/u-boot.img $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-u-boot.img + $(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-uEnv.txt endef define Package/u-boot/install/default diff --git a/package/boot/uboot-zynq/files/uEnv-default.txt b/package/boot/uboot-zynq/files/uEnv-default.txt new file mode 100644 index 0000000000..5030b07784 --- /dev/null +++ b/package/boot/uboot-zynq/files/uEnv-default.txt @@ -0,0 +1 @@ +bootargs=console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rootwait earlyprintk