From patchwork Thu Sep 21 19:37:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113928 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2406829qgf; Thu, 21 Sep 2017 12:39:24 -0700 (PDT) X-Received: by 10.80.173.80 with SMTP id z16mr2314770edc.133.1506022764574; Thu, 21 Sep 2017 12:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506022764; cv=none; d=google.com; s=arc-20160816; b=rkBd8X532fzLLtWkagH6jTEv5DLrnaTHGIAO1zdc0qpha56OKP0JPvGVJMqwPDTHV4 3f5BaceowNDWGH6KNBtP5Oq06p1V7ryMZgRoQ4hfvcvrFC1gVHNcsmtVFA0wjsPNX1lS B7hzyVlIxru24XlJaoXugGzEe+HoS3tE4oYVtwiFMfsnDbxkrXYro+N0zyq5TkVLwQo/ fn352oRtm3VDUKXvTenwAnWtWRoOCjnGWp4wOlN+S5Fx/kICJqexEUMWjml3l6heq2Kh KMpDJ1N4Xhc9i/QmoHB+tZcQSkFJ/hDTu7CZAWUH8A5jgtepRBYKNPvmWR/C4f7rdsE9 VHEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=UUTWAa5Kbet5KkVtd+G6CLb31Y+5rEp4VoCdUZRjg9Y=; b=05LuEcKc3BkfvQZvVSBBGwEQawY8DUR37xZJv6yam7dWLnKH79p7fj07eWGj6wdNVn SLt3lM7mPocgZYgZNUBL/D2WdM4iZRgFEbgPz96BSaQTt2YgPooiVat2YcTsYKbNfGYO 8IVAqc+UhaS/4dkSoWtfzSZpLegfdkAhns7iLafDnIq8ojK0QOl0fULpTHqgIGOuvEdT nHy6RMfWk3EkeM1e0TFt0O8Akda1mVsFlD/D7CUWEtqvRuojtsPIQtlOt/1AFQeVMW2t otyoUmO7wtLBpq17nYrIcHt66avEKUXTC3bSwdls5gMwJuI48lSPEx7CQc9aJwgvZ6p5 yWTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gd/DANAM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id j88si2105806edd.203.2017.09.21.12.39.23; Thu, 21 Sep 2017 12:39:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gd/DANAM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 70D6EC21D09; Thu, 21 Sep 2017 19:38:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BBF7AC21F07; Thu, 21 Sep 2017 19:38:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F4087C21EB1; Thu, 21 Sep 2017 19:38:11 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.denx.de (Postfix) with ESMTPS id 53E05C21EA5 for ; Thu, 21 Sep 2017 19:38:07 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id y187so6784062lfc.8 for ; Thu, 21 Sep 2017 12:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T47orzbeliOqrqWlP1ZPUfuOEaxCAmmWlGSlue+gwiU=; b=Gd/DANAMGPhsv/eVBTyzxnFIsTuXggtoVl00L3CgNJKbm5nviZntXW3+8ZEXSyXcTT Hm94bbCugp4k/2BfZ1tkHvbjVExvafnrwVwCNIHORTKZGkKL6ZEIfX1IBqsmt4cDYsK/ sX5r53ndanDtN6bo6bNufrJ472jga0bcQ/Bz8= 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=T47orzbeliOqrqWlP1ZPUfuOEaxCAmmWlGSlue+gwiU=; b=BtSfctS0C39e8P5C7/c3xVxHj7qMIDZwEp6lhayo3sz2/msyOKdk6RIRfP3z+gENqC Kp2aeii+DgBhwONwNpNCfKZmhstlPQNak8SdSbY+VKHNnSrO8u3kj5Vnm1KLbvlGPPkb 9sTcV7ICCuS6hSW3Tvdu/zBkGjspFZnyLPoBAIL31FHFxdVZ2Hyr/UAPerVGXf68BsDD idksxSJqcXPVQEkV5LxSiCJ4XAYk2IvmuE4udyNA6vk66olX2bW4SJV1wR++cfUKO8Ah BSKiqyObQDe4nlEwgdZH07DJo2+8hpB3RcHS5byWzeZanfoTytSbJBK5ztpUr7DwGroI +dTg== X-Gm-Message-State: AHPjjUjC8yrEvHxyGFKkS212kx7Yh94XY/xdgtCOHZJHPZcgASl/qdL0 e2zfRBTwOWOkGik+J8+7cXJLyi59idE= X-Google-Smtp-Source: AOwi7QA6abzspa4rn9jE5Jp1gQei8++b2CTTEWZZlWWjzjk+Ll1DQvkeqwHX+dFNtX7Hs+wHdz6VHA== X-Received: by 10.25.23.80 with SMTP id n77mr1184471lfi.121.1506022686492; Thu, 21 Sep 2017 12:38:06 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 1sm451946ljp.29.2017.09.21.12.38.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 12:38:05 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 22:37:58 +0300 Message-Id: <20170921193759.3914-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170921193759.3914-1-semen.protsenko@linaro.org> References: <20170921193759.3914-1-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH 3/4] env: ti: boot: Extract command for eMMC Linux boot X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Extract commands for booting Linux from eMMC to separate command. It seems more logical that way, and allows us to run the whole command set from U-Boot shell with only one command. Signed-off-by: Sam Protsenko Reviewed-by: Tom Rini --- include/environment/ti/boot.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 5b1b97bafe..2306d3cdf0 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -29,6 +29,11 @@ "partitions=" PARTS_DEFAULT "\0" \ "optargs=\0" \ "dofastboot=0\0" \ + "emmc_linux_boot=" \ + "setenv mmcdev 1; " \ + "setenv bootpart 1:2; " \ + "setenv mmcroot /dev/mmcblk0p2 rw; " \ + "run mmcboot;\0" \ "emmc_android_boot=" \ "setenv eval_bootargs setenv bootargs $bootargs; " \ "run eval_bootargs; " \ @@ -93,10 +98,7 @@ "run findfdt; " \ "run envboot; " \ "run mmcboot;" \ - "setenv mmcdev 1; " \ - "setenv bootpart 1:2; " \ - "setenv mmcroot /dev/mmcblk0p2 rw; " \ - "run mmcboot;" \ + "run emmc_linux_boot; " \ "run emmc_android_boot; " \ ""