From patchwork Thu Sep 21 19:37:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113927 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2406061qgf; Thu, 21 Sep 2017 12:38:36 -0700 (PDT) X-Received: by 10.80.169.11 with SMTP id l11mr2263297edc.126.1506022716709; Thu, 21 Sep 2017 12:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506022716; cv=none; d=google.com; s=arc-20160816; b=dGRLD3Y0IbLAGFEayKC5Pr6jOnbXG56D9EaZCXBjmp6edp6zjK3Eb4UEXezxRC/Cv8 mtY8DFvON1fViWoXVqZcsq+1x7+NPDjYio0j7F+8f4z9FTNzuXc/Vsodb51jSUNcQ/S/ a9J/yonz/b0ern6PGOAeePjv+j6xjG/zrh8vwBXPk0KgqURVk0k6FSEkmMY5BJyrF8Fn c/3Ko6NL1dvbLAQpsmG7R9m1wDr1Edz58prXrG7Lvbo9obyQJsBzz/nsZ4ZEvOfaYYh8 rI/0ABZmYLx3/KbZmhwdZQsOlLYVAGR508eSkF1krvp80wyuYGnaBthOGhfNudwAZPz5 HDkA== 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=fqQhpOYNZdhifTh6BYYpoYZpd0bwGepGWH8cNgfLPjw=; b=I0BfZSEXhahkQw0AD2iP1kxlV20azApjZBRtZ18YFMOTM+LXD1Ch/uxTsChTXkR7TC OJqigARlDVRQ4YyyDxIe+b0w+yRa1Hnt+9eIcCjyquUiED/wbAjeStRKyyGKYC5Znp5O PmrZkIJsRxyHZcvjT1sUIXE2ebqbFikogehxEw+qxgnZtEHuWLRz09nz5g+rK9V5x7IU 44+uKrozMpswEkTUhZgRMJvkXVsi4ZFqKFTS//xaqoZmQXw5UViydxwhAoTmlTX1MmET aPv/swWdmugYbd/aLaFRYiJoX2Z7PJaeXlnrBiWt/12VCT7rW/I4i2lSH2eHaPWU8GNN JMOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hhdpV7rA; 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 k35si2100796eda.24.2017.09.21.12.38.36; Thu, 21 Sep 2017 12:38:36 -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=hhdpV7rA; 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 4E3C6C21F45; Thu, 21 Sep 2017 19:38:22 +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 AA681C21F43; Thu, 21 Sep 2017 19:38:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 197EAC21E26; Thu, 21 Sep 2017 19:38:07 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.denx.de (Postfix) with ESMTPS id 25884C21C62 for ; Thu, 21 Sep 2017 19:38:04 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id d4so6784761lfj.7 for ; Thu, 21 Sep 2017 12:38:04 -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=Ez9gV4hLrE/1mVYqrhCoNodzCzCqV4uPrYKuJpKWiQY=; b=hhdpV7rAR5McsqBeZ/O5IK1paQS/VzXxEJ0DizyjJaaM9OORguRjxp2XDPUhc2XFXa HalcJOEvd7ESQDOhd9EjQ5nZeh8Q/UjjLYYPBS6BA7yJSYNMvErzLNzb/VlhQTzl2Eth HISmOv5yKtzxu+PVaVxZRQqc53v5pJQkgbqhI= 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=Ez9gV4hLrE/1mVYqrhCoNodzCzCqV4uPrYKuJpKWiQY=; b=k+qzOB186zYA5TS61hi5SeXGBzNqvEuvG9kr25wzCWJH1XLwjgSJoJU5ltaofiSl+k tPNXDJFYcMYZXi7hzgOhG6+syQ4I9c4AzDRZeVmpksN0MeXQLchN57MAI0H6eL0CDDGp YU0NQoOhlJFpvmSTnG1fuptrP/Ix5Xnznjfp/op9R2FCBN22s8ovnBRL98Rj5xj1JhYu sq2IeDrmIP+1hOMslRUS3mMRQEWQ/Vr+hCM4Iv3pHePwlwcTYk3XMcrHaVpuuclDzv5X Hwy6Gz8WFUMFZgBScB7RL1rbD4E6Kb3sSXKWcoXFDVG0T7lUUPcwiMymEMXezjeDj5Oq rzAg== X-Gm-Message-State: AHPjjUiLPZUOsA1jRFUsTKTMWTxzOqLpRjYrAlaXPC9VTgfc65kpvJSI MTirSX/4saKjXY1l3VQR/jgp0reHSco= X-Google-Smtp-Source: AOwi7QApF+vaHyXqYsKYoftjT/H094rG+AVdN70ilSShAYkwi8hmiVtd7q+6dewd6S4K9crO+pBflA== X-Received: by 10.25.40.193 with SMTP id o184mr1206738lfo.136.1506022683003; Thu, 21 Sep 2017 12:38:03 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 37sm347883lfv.46.2017.09.21.12.38.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 12:38:02 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 22:37:56 +0300 Message-Id: <20170921193759.3914-2-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 1/4] arm: am57xx: Fix Linux boot 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" Right now on OMAP5-based boards we have only one partition defined for Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that is defined in include/environment/ti/boot.h). To fix Linux boot we may either: 1. Change bootpart to be 1:1 2. Or add preceding partition, so that rootfs is actually 1:2 Second choice seems more reasonable, as DFU is already using similar partition table and can rely on bootpart to be 1:2. This patch adds "bootloader" partition. So now eMMC layout for Linux boot looks like this: offset content size partition (KiB) (KiB) Reviewed-by: Tom Rini ======================================================================= 0 +--------------------------------+ | MBR/GPT header | 128 - 128 +--------------------------------+ | MLO | 256 - 384 +--------------------------------+ | u-boot.img | 1792 bootloader 2176 +--------------------------------+ | //////////// hole //////////// | 256 - 2432 +--------------------------------+ | U-Boot environment | 128 - 2560 +--------------------------------+ | U-Boot environment (redundant) | 128 - 2688 +--------------------------------+ | rootfs | remaining rootfs end +--------------------------------+ ======================================================================= Guard hole appears because U-Boot environment offset was calculated for Android partition table, which has two additional partitions in place of that hole ("environment" and "misc" partitions). This patch also changes rootfs offset from 2 MiB further to 2688 KiB, so that there won't be any collisions with U-Boot environment when we flash rootfs. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 0c70c53050..bf555ccdc2 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -44,7 +44,8 @@ #define PARTS_DEFAULT \ /* Linux partitions */ \ "uuid_disk=${uuid_gpt_disk};" \ - "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \ + "name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};" \ + "name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\0" \ /* Android partitions */ \ "partitions_android=" \ "uuid_disk=${uuid_gpt_disk};" \ From patchwork Thu Sep 21 19:37:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113930 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2407718qgf; Thu, 21 Sep 2017 12:40:32 -0700 (PDT) X-Received: by 10.80.219.66 with SMTP id b2mr2356248edl.256.1506022832443; Thu, 21 Sep 2017 12:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506022832; cv=none; d=google.com; s=arc-20160816; b=Brg+aEcCe6m+jtVntzHaM0hDYCf87g4oSC+21pNRMowzS08E8IoYLDWzG9n52vStbw nrvtG4YOj5cUHfWVzoQvSqUp5Ro8X8EcPMgvZmgZsnc1rKiLlIxo92PjauSB2SM+v6w6 5lh25WBnMPg5JT3xxIZ2917uamgE0G+AzandlotaOrQRxttfzlGepBXORUfAHSs/Nu2d YNcjleSDfme9jI3IAEbXL/3xeUrckSoFCb70NzWpwvJafbtUA8e43yFVs0wg/286oyr+ pDkE5ez/xVGpxkoLD1qHmoVarX4BCIAS7nmGzWA3Xjw9M59D2rVuaK9dsJyV/Ig3Mlk+ 1zxA== 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=PpUfMgYAGYryLw9UJF3LT+dnxPOCnx5ESNFSv5sRhA8=; b=myx6qezfOt6wQ8rDzTjRVLlAds0JUkF4b5nZ3PLZGAJCp09J98rZx0tZvrTvYrtbBO 2W6YMIrFeXM5bYFEROeB4LeEayBWbKDSsKLy8uSoKGHygfZROhBkvwrtcLBfQRGBudtm x0+IU3nkeF1MNimdpeGnKCoFT4Mw+V8qXxfKtKjIz55ydGM4Y12W3b62Ovw4kC5FQka/ chzddTt0OkmFUdwCi1F+WUNVUYjm2VP5Q9uWpNQgIpFqyVAvKmy0LBzP12jyHIoYm4zw B2So+QvvU3NLs+cFap5Zmnyhc307ZNaNeNTR9YY22JSAM05F2RBTBRB1MnTo51jw0toq +Q/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=d86hIQiA; 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 m26si2285902edc.113.2017.09.21.12.40.32; Thu, 21 Sep 2017 12:40:32 -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=d86hIQiA; 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 0B1EFC21D95; Thu, 21 Sep 2017 19:39:14 +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 8DC8DC21E0E; Thu, 21 Sep 2017 19:38:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0F1E2C21DEF; Thu, 21 Sep 2017 19:38:09 +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 99245C21E0E for ; Thu, 21 Sep 2017 19:38:05 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id y187so6783993lfc.8 for ; Thu, 21 Sep 2017 12:38:05 -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=hCz/mSt16rJsnk6BEwOzrXVriZv6KlM0EdyPddLwlIk=; b=d86hIQiA8MkvS13ZQW+4TswkXX6IBli1YLwrQFwDg9Nh68OnsL3FK8qHAFqDkeyE8c 2y+VuPOmQitrfeAUlxLfHjBaIOZ6CNAD7queb9jj9kxczMQQifWu2CDLw1ikPdoxlky9 6hAGlmIaePc93H3TJUuvfriNQcXiS3uBeJkjU= 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=hCz/mSt16rJsnk6BEwOzrXVriZv6KlM0EdyPddLwlIk=; b=lMCaEDj5WNduPt8ijCNsoDFPg77mF6vq5nQ/OXcLRemLZ89MhEOZTTH+N0Z6PFqUvX OmfBBSV54tqE4p+BwT2MTWim2ARz3EA02EIhbxxm0wizEYWWB0jN9L7SWw/gN1dUgrMR 75EQfmBUyhdqfQmw57DWYViFmk5M/dA52F95GaT7xFpzAI8+PVqjF0jsxzqAj2G33Yl/ UjzG0sJs8BVKFuLstCZwa6TJhC6ZV8oHOUZXF9ouioe8cAK5cSwigpB1C6vhjZtOIl8A upHvLbu/vRtb6tnUKJDmA+w/DRQJ3ch2SfqwKBmSa97a72tW8nkPrYOK5G2gQ00NAUEN pBEw== X-Gm-Message-State: AHPjjUj43jfZMpAmIJz7GUCTEqKdfE/eEoV5+S1MeNxXK3dWfvglxSfe pO2qfKMeRbMFK6JuC26y4TSSlYxNLPc= X-Google-Smtp-Source: AOwi7QCYtDYkeX3AhDq4hIk09siVFnUUmb3T5/qFRjaYbRtFq87QTMR6nxApPfKHstKVKPHF6NmeBw== X-Received: by 10.46.20.27 with SMTP id u27mr1408245ljd.39.1506022684705; Thu, 21 Sep 2017 12:38:04 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id l28sm447145ljb.41.2017.09.21.12.38.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 12:38:03 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 22:37:57 +0300 Message-Id: <20170921193759.3914-3-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 2/4] arm: dra7xx: Fix Linux boot 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" Right now on OMAP5-based boards we have only one partition defined for Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that is defined in include/environment/ti/boot.h). To fix Linux boot we may either: 1. Change bootpart to be 1:1 2. Or add preceding partition, so that rootfs is actually 1:2 Second choice seems more reasonable, as DFU is already using similar partition table and can rely on bootpart to be 1:2. This patch adds "bootloader" partition. So now eMMC layout for Linux boot looks like this: offset content size partition (KiB) (KiB) Reviewed-by: Tom Rini ======================================================================= 0 +--------------------------------+ | MBR/GPT header | 128 - 128 +--------------------------------+ | MLO | 256 - 384 +--------------------------------+ | u-boot.img | 1792 bootloader 2176 +--------------------------------+ | //////////// hole //////////// | 256 - 2432 +--------------------------------+ | U-Boot environment | 128 - 2560 +--------------------------------+ | U-Boot environment (redundant) | 128 - 2688 +--------------------------------+ | rootfs | remaining rootfs end +--------------------------------+ ======================================================================= Guard hole appears because U-Boot environment offset was calculated for Android partition table, which has two additional partitions in place of that hole ("environment" and "misc" partitions). This patch also changes rootfs offset from 2 MiB further to 2688 KiB, so that there won't be any collisions with U-Boot environment when we flash rootfs. Signed-off-by: Sam Protsenko --- include/configs/dra7xx_evm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 6c0fc35d3a..1555fc1b50 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -51,7 +51,8 @@ #define PARTS_DEFAULT \ /* Linux partitions */ \ "uuid_disk=${uuid_gpt_disk};" \ - "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \ + "name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};" \ + "name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\0" \ /* Android partitions */ \ "partitions_android=" \ "uuid_disk=${uuid_gpt_disk};" \ 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; " \ "" From patchwork Thu Sep 21 19:37:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113929 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2407013qgf; Thu, 21 Sep 2017 12:39:37 -0700 (PDT) X-Received: by 10.80.183.35 with SMTP id g32mr2357369ede.48.1506022777865; Thu, 21 Sep 2017 12:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506022777; cv=none; d=google.com; s=arc-20160816; b=J1co8N2XQ/pMODEPhapIp8e+uPVuCubueEsPwfJrGtTRGB7jjB9nwAUe/D7TUi2ioW NadjOosB5yVZMrNuxNBuB5FiNdMo4/JnbFgXnKbdO8RlQfJNuCK7uionTLIkCcYGWMh2 JlxNESV0zfqMZmCmdJStB/NOHMVz3HFdPa20up3M1r4dIIzUY5syXbKoVFUs9rVCdPY2 b7TvvC7cATxWiN0DqCnOjsRxOU6+HnLYNaCnWKJeL2csG2dUQX1Iy9EVhEbaHhEnuvGy Ujq9M13vNyUGRufhUCz0Ab7F+oe33e2Qb4iTcQvtfbIVnwh2g/QDVoj/TYcpiUPo23xM xX7A== 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=WR4ivZtS1IkzYZv1uUrV+NmkgESpxyFkrzyqTcq4HhE=; b=SrPhICHd5Wr/nqlLx9/wmCbRNlSlGSn1xMdULN+c8MhkN65P9CtgCl5iZg1jt/b352 CxysaUsPU6cOD23qL054UO+hjhoISBmHiPXIK2wQFqyvBQwOnNdLDjtqMgagR9M19sOI ItHvrp04S767Gvn4/QsBcuAtsw5ybcv3bdjWmbtXdWmbspPnaQh8dwEBEUkYWdlwP/EV 5XzhKqYx1cis67v7IS6gvDIsh87F68s8W9IzfmXUZJOS+R8CgkioPLxU9vFyOIH+IUpN uz3JJWvYhhldbTTGe4vhWhTqAZ5doVKi5BQOdJUj1c7F50lfgN1G79BkI76RdgELwvDr ImSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jEAHXNAd; 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 60si2029edb.246.2017.09.21.12.39.37; Thu, 21 Sep 2017 12:39:37 -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=jEAHXNAd; 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 71A9EC21EA5; Thu, 21 Sep 2017 19:38:40 +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 AF402C21F39; Thu, 21 Sep 2017 19:38:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5ED86C21DEF; Thu, 21 Sep 2017 19:38:12 +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 EFB3CC21F07 for ; Thu, 21 Sep 2017 19:38:08 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id b127so6754784lfe.9 for ; Thu, 21 Sep 2017 12:38: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=DRXhzDZEUb9xNU95YU0wxdRHD+2nnac5WDIj4xKu2po=; b=jEAHXNAdwCNWcYRgjzRbk3+ciDkHFrfExuL1ozjzs3G3Svi6+34YtFdNo1RPJJN9Of 47JBvdKCkioyqJmEW+Nj8IOnz5ZdRjIoXQIwy0/jOfhyvyWyd0azTwSFYCx8PKTDKV0+ N221ExSH1qIYGkFNHsHkKEr0eww9+lLYgObAM= 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=DRXhzDZEUb9xNU95YU0wxdRHD+2nnac5WDIj4xKu2po=; b=ks5SyF6qvL2dF7PRnxqWdpribf40jc8ptavmReuaPMKYtCwV1x2P6X+C+QsxlcfMjM 7Rzbze7EIXmJW2FE0BuH5Fes6uwbsIn5OhU8ux7PmUW4aLnCxE8V5i3+n2Zeas3+xq6/ 58CrOFWjtOaXLe8bmUoa9Pulw4o4IMMLqca89LUcEagsYIz/TbNksfZN1JVEhUzBWsRw 8aUcLjBLedRentNgHA96TpHEIwxX1WZMs6yeGthpdHSkxnayXuwl/jStlJ6ceN7ayJRZ 7AGVtSEzhKtrhYRCKScrPJZX8UkfrL7L2Y4MNB3RiUNkMNxnimk2RHUl+PPsn+C3OM3X zo3w== X-Gm-Message-State: AHPjjUi0de/Bc5pvVBIKESQDmUpsm8Txb+7pBESNdA/Y76Y6MdYV3D+V RjQQLxU1sgIcNv7XlmXjBUFFNlgE8/E= X-Google-Smtp-Source: AOwi7QBYEHjl4TqYKqSJTmY8lKEie1QbBJD/k9IYu8YKMCCOK61a4yyiWDKX9wPDhSjpNbrCs72Ldw== X-Received: by 10.25.21.8 with SMTP id l8mr1228929lfi.7.1506022688149; Thu, 21 Sep 2017 12:38:08 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id c185sm339159lfd.67.2017.09.21.12.38.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 12:38:07 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 22:37:59 +0300 Message-Id: <20170921193759.3914-5-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 4/4] env: ti: boot: Show boot status information 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" Add tracing printings to Linux/Android boot commands, so that we can see what's going on. Helps to trace possible bugs on early stages and improves the output for user (which is especially useful, because we have a bunch of boot commands executing one by one). Signed-off-by: Sam Protsenko Reviewed-by: Tom Rini --- include/environment/ti/boot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 2306d3cdf0..799d9840aa 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -30,11 +30,13 @@ "optargs=\0" \ "dofastboot=0\0" \ "emmc_linux_boot=" \ + "echo Trying to boot Linux from eMMC ...; " \ "setenv mmcdev 1; " \ "setenv bootpart 1:2; " \ "setenv mmcroot /dev/mmcblk0p2 rw; " \ "run mmcboot;\0" \ "emmc_android_boot=" \ + "echo Trying to boot Android from eMMC ...; " \ "setenv eval_bootargs setenv bootargs $bootargs; " \ "run eval_bootargs; " \ "setenv mmcdev 1; " \ @@ -49,7 +51,6 @@ "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