From patchwork Wed Aug 16 12:55:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 110243 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp742128qge; Wed, 16 Aug 2017 05:56:34 -0700 (PDT) X-Received: by 10.80.176.35 with SMTP id i32mr1933513edd.146.1502888194124; Wed, 16 Aug 2017 05:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502888194; cv=none; d=google.com; s=arc-20160816; b=Z7ZuP4zMhVGmnbFm0xla14jvJ57BDaAUnDEpyKVa9WOGwM9bMhvHbqnO+mC3bBf/tz hYB3vqz7+o/Vx6asFY0Ihwh762cD/bNhSTVV7UzzQUWulUZmQG8Cf7mCrjFHKyPfV9QI 2V7BQZGRtWV7aMSxO2LBvpWj2kfrCziahjKHFMAPYqIx3RZF8CMdSwfZ7/c68VLEVIZA 5qp3DiRmNG0qL+QTjBvRQKS5PxEYnsAFmIKTO3ULcCWJ4T7AkvqSgFhblU1lUvXyt46E uMOlHSypj19i9NLuFGBKuhfpZvAxxl1B0RhVrjFgSFuyUa4ya1IrreldzRLI+xy25dd/ 7ydw== 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=oThtlcVHim3e4SQoD+e2wAZ1pJATUhnCOwAQrsOPAaw=; b=oieRu1dqmYfO4njev+1P6eWTk4MzzmrN88vb6Wi8qvYsPRtmJIZkgpu9sNqdWnMge+ L1JqVz9vOc2pkJ/khFoLOW3vepX2ZjSshRG08W/4AIriU/ruRGzPysi+dplb9v3g3q4G Dh2VCFVDKRH8ysAS3xwjCbTjwRlnjx2KFEAwhDPhwAfIQcaOHHTuScIghueT7G8xz/HP 8pcwAg0aX0Gv/jc4GEy0uFMuw1C05B9xxXwkrZs1vi8YlKzauJ40k3nVAcjUj/rM3lWI 6pnFy5Pbhloxq0xyhVAfMqy1Qs2I42qfBBAPuSTD1Fuc78wOpQcoMIf/68Jzi7aUV4B9 Hjkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Zxqpebog; 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 b3si1120101edh.43.2017.08.16.05.56.33; Wed, 16 Aug 2017 05:56:34 -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=Zxqpebog; 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 A0A01C21E2F; Wed, 16 Aug 2017 12:56:12 +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 4E956C21E45; Wed, 16 Aug 2017 12:56:10 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 809B9C21E24; Wed, 16 Aug 2017 12:56:01 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.denx.de (Postfix) with ESMTPS id 23453C21E24 for ; Wed, 16 Aug 2017 12:55:58 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id y15so15966895lfd.5 for ; Wed, 16 Aug 2017 05:55:58 -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=RxNxLqb46K5lp/RdH4G6iToxgAU5byjOKEqe57rcwqk=; b=ZxqpebogJLhDO8kmSso6LU9BjKAaI7g2Ta23QnXsSDh2Lj+NeMdvTCdQiJ4QyD4iEE njPK5SrXd7+k4vTRhOLHQzWk4lntL9pHdnL0Hd5ZzzylVfQ9PYxvv8e9lh4z9wRBIyIL b6VikccCZoPem0DzCpcet+zK2/2dtI+eauyp4= 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=RxNxLqb46K5lp/RdH4G6iToxgAU5byjOKEqe57rcwqk=; b=Ta8HJp2ASMWLNi2RkSfqtuVhyWmZ14OC7amcEvHSWh50AQNlL2gk2fyMrfCvL3lngP AsGAXw3trRYkHLA2WlEfkwK1lwX7XYJ0wzz7aHESsqne7hVB2rxOewo3xDtCamGNAjNo Khx7uDXftaaDV4k+MjiKtH3LQrw5VQ3NCZs5E0HT0k1hykxa2f7Z7vtYtbvgviLRvju0 wktzL+U6NcCHF2HI86BKM0gnfgL+KOfMjaKq3KwNdI0KvMIvqOH6XvoMbjRWGPVIVwzm gGmZ214VlZbUAGV1asCpM9u5aOnEmmWkoVWqz80Nk6fAXq+975x34DRAFd0BJy2oIWo/ QQuA== X-Gm-Message-State: AHYfb5ideYgVys3NlkdxpJvwXgKKpCEdKTOqXIL7AbTiyXE/ihNS1oPo 1oUfhUvspeKpACLnL0cO2Q== X-Received: by 10.25.59.203 with SMTP id d72mr712396lfl.57.1502888157385; Wed, 16 Aug 2017 05:55:57 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id h13sm228682lfl.5.2017.08.16.05.55.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Aug 2017 05:55:55 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Wed, 16 Aug 2017 15:55:48 +0300 Message-Id: <20170816125550.26472-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170816125550.26472-1-semen.protsenko@linaro.org> References: <20170816125550.26472-1-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH v2 1/3] arm: omap: Define command for booting Android from eMMC 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" If SD card is present -- try to boot from it first. If no -- try to boot Android from eMMC. Signed-off-by: Sam Protsenko --- Changes in v2: - Do not remove the attempt to boot regular Linux from eMMC (just add Android boot in the end of the cycle) include/environment/ti/boot.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 1c3ae40a99..a05f5ba9bd 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -28,7 +28,24 @@ "vram=16M\0" \ "partitions=" PARTS_DEFAULT "\0" \ "optargs=\0" \ - "dofastboot=0\0" + "dofastboot=0\0" \ + "emmc_android_boot=" \ + "setenv eval_bootargs setenv bootargs $bootargs; " \ + "run eval_bootargs; " \ + "setenv mmcdev 1; " \ + "setenv fdt_part 3; " \ + "setenv boot_part 9; " \ + "setenv machid fe6; " \ + "mmc dev $mmcdev; " \ + "mmc rescan; " \ + "part start mmc ${mmcdev} ${fdt_part} fdt_start; " \ + "part size mmc ${mmcdev} ${fdt_part} fdt_size; " \ + "part start mmc ${mmcdev} ${boot_part} boot_start; " \ + "part size mmc ${mmcdev} ${boot_part} boot_size; " \ + "mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \ + "mmc read ${loadaddr} ${boot_start} ${boot_size}; " \ + "echo Booting from eMMC ...; " \ + "bootm $loadaddr $loadaddr $fdtaddr;\0" #ifdef CONFIG_OMAP54XX @@ -76,6 +93,7 @@ "setenv bootpart 1:2; " \ "setenv mmcroot /dev/mmcblk0p2 rw; " \ "run mmcboot;" \ + "run emmc_android_boot; " \ "" #endif /* CONFIG_OMAP54XX */