From patchwork Tue Aug 15 13:30:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 110161 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5674319qge; Tue, 15 Aug 2017 06:31:05 -0700 (PDT) X-Received: by 10.80.147.91 with SMTP id n27mr27194653eda.84.1502803865404; Tue, 15 Aug 2017 06:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502803865; cv=none; d=google.com; s=arc-20160816; b=FE80Qruao30zWcNN1w+ZhtOiqBvUfNjehL/vfuggd1hlcrTzk80fJMkP0+7e4zhEwJ Vf9DvNTR3KbKJ15MV0WoJTICwM1Mu9HAxQ5tc1bemAk8a0CJNQT4hktQcVCcNz6BwbST PvtmQnD9VASeRoo83RcX7lfKuzdJnNv23ZGNQBjJgbEzxc+K3weVuxQLGdaCLU+O1cwV /Bsv46MzV4poxa0LpQuYmDUXVJecu1A/xkHu/0wo+WE0FLjqF5uKYzmZgPwdGL+Xh966 ZBDZbyTdiYT2s9Mty/Ub3c70CvhqyUUax0122Vy0Lsgp/zL12SLobwPors3XLaJbYkoQ rkkA== 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=W9EwuryVDDhHWsT7lc48qpVWV3rKmBUAkley+FG3Hig=; b=D2SY9xevkYjtyvTjN2oJ6IAMkNmUzchCgImeco+qWtjtiG44n5coTuKnmf7i7YOw3U CTtoA9v8vIP7N7VlHf0Dp6MVrkMGV1c+hjHw35N9x/HpvWUSEGmpjD7+ORK5UOy2N6Tg LO8CSDUNJyJaZ53Khl2djyBJcpMiDRT780Rk2YjEMABE7y0v9aZny0VlFEcDuqsSGYQz tMI0fUEXYsZIIxJnbQj9AXooEmgIvcsU/EDKiyJe/8kLjgpcxRSNaXX1JkuHkOf86cQ+ x/fUPez7p0P4m6ERB4M/NZGvR9M8flJA1A61WY3e1HtazgGlhw4CRXJtIl3BKkSeBvVH D1qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L7gbZRL0; 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 r1si9534944edr.191.2017.08.15.06.31.05; Tue, 15 Aug 2017 06:31:05 -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=L7gbZRL0; 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 F2ACBC21DE6; Tue, 15 Aug 2017 13:30:25 +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 5B3AEC21DE6; Tue, 15 Aug 2017 13:30:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B1354C21DA5; Tue, 15 Aug 2017 13:30:08 +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 080F6C21D8D for ; Tue, 15 Aug 2017 13:30:08 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id g25so3759094lfh.1 for ; Tue, 15 Aug 2017 06:30:08 -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=ZA099/l6qTSzneW5g+rjeDILDU3M0WFhtSvw0KhqNdQ=; b=L7gbZRL0PP7fABJ11JUWTvF9RCB3mmHiPjdktEjLgiiFFpOy+Jjbfa+coZs2cPVds/ g7ZdZV3/DBuYtpb2lLwyXOIUJVTeUCyJDU7KFX0Td/iehd/TuCGSP44PFAy5Tx9fOH7o 72BYcx0IZDUo0Eru+Gd2MEaADh9B1n2gqnxu0= 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=ZA099/l6qTSzneW5g+rjeDILDU3M0WFhtSvw0KhqNdQ=; b=Y+vcwTryXPoU6NEBePFSyT5Pt/xcWRT4DLNZp4HO8psNDEHEZllvOkJW0qGQ9cTcIB kih6Clwz4YnGdZVCj/0HBAcZKWnR4wtaGdtNWkkVkUCJ0M/VA1cdr8WUGnzB6/voL7fm RfRd7BkrrRSb99yQchjgm+4F2sGzqt68Go43aSnoG+wM9RtvAm9dWlj42at8NW8FeCdx UDACP6sBxLpzAiWgh+jMFtt7B6V7mzDhH9aemLh7hI82fd9QZApZVV+UbF8fHmULz6ru 3s6wYkXl1sfDLU4QYl0VF/Ayj258dzGMGAhMEfuYGbtp3wum1cha9ne5GZ8tLGGsr4gL VjuA== X-Gm-Message-State: AHYfb5ifjevboOHA7M/zkmrYzTeBQyDlrlSqmrFtoPvtfgRytRvva/15 5GqyO2wnwbqBmpQ9J/M7Ow== X-Received: by 10.25.142.68 with SMTP id q65mr7986704lfd.9.1502803807246; Tue, 15 Aug 2017 06:30:07 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 67sm1624389lja.19.2017.08.15.06.30.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Aug 2017 06:30:06 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 15 Aug 2017 16:30:01 +0300 Message-Id: <20170815133003.17187-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170815133003.17187-1-semen.protsenko@linaro.org> References: <20170815133003.17187-1-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH 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 --- include/environment/ti/boot.h | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 1c3ae40a99..121a668e78 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 @@ -72,10 +89,7 @@ "run findfdt; " \ "run envboot; " \ "run mmcboot;" \ - "setenv mmcdev 1; " \ - "setenv bootpart 1:2; " \ - "setenv mmcroot /dev/mmcblk0p2 rw; " \ - "run mmcboot;" \ + "run emmc_android_boot; " \ "" #endif /* CONFIG_OMAP54XX */