{"id":817161,"url":"http://patchwork.ozlabs.org/api/patches/817161/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170921193759.3914-3-semen.protsenko@linaro.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170921193759.3914-3-semen.protsenko@linaro.org>","list_archive_url":null,"date":"2017-09-21T19:37:57","name":"[U-Boot,2/4] arm: dra7xx: Fix Linux boot from eMMC","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"0087a94432b6b15b9708a7d18c24e02b5ec5cae7","submitter":{"id":68333,"url":"http://patchwork.ozlabs.org/api/people/68333/?format=json","name":"Sam Protsenko","email":"semen.protsenko@linaro.org"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170921193759.3914-3-semen.protsenko@linaro.org/mbox/","series":[{"id":4473,"url":"http://patchwork.ozlabs.org/api/series/4473/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=4473","date":"2017-09-21T19:37:59","name":"arm: am57xx/dra7xx: Improve eMMC Linux boot","version":1,"mbox":"http://patchwork.ozlabs.org/series/4473/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/817161/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/817161/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"d86hIQiA\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xypY32vP1z9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 06:45:59 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 6F7F9C21F43; Thu, 21 Sep 2017 19:39:15 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 8DC8DC21E0E;\n\tThu, 21 Sep 2017 19:38:28 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 0F1E2C21DEF; Thu, 21 Sep 2017 19:38:09 +0000 (UTC)","from mail-lf0-f52.google.com (mail-lf0-f52.google.com\n\t[209.85.215.52])\n\tby lists.denx.de (Postfix) with ESMTPS id 99245C21E0E\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 19:38:05 +0000 (UTC)","by mail-lf0-f52.google.com with SMTP id y187so6783993lfc.8\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 12:38:05 -0700 (PDT)","from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id\n\tl28sm447145ljb.41.2017.09.21.12.38.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 21 Sep 2017 12:38:03 -0700 (PDT)"],"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,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=hCz/mSt16rJsnk6BEwOzrXVriZv6KlM0EdyPddLwlIk=;\n\tb=d86hIQiA8MkvS13ZQW+4TswkXX6IBli1YLwrQFwDg9Nh68OnsL3FK8qHAFqDkeyE8c\n\t2y+VuPOmQitrfeAUlxLfHjBaIOZ6CNAD7queb9jj9kxczMQQifWu2CDLw1ikPdoxlky9\n\t6hAGlmIaePc93H3TJUuvfriNQcXiS3uBeJkjU=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=hCz/mSt16rJsnk6BEwOzrXVriZv6KlM0EdyPddLwlIk=;\n\tb=lMCaEDj5WNduPt8ijCNsoDFPg77mF6vq5nQ/OXcLRemLZ89MhEOZTTH+N0Z6PFqUvX\n\tOmfBBSV54tqE4p+BwT2MTWim2ARz3EA02EIhbxxm0wizEYWWB0jN9L7SWw/gN1dUgrMR\n\t75EQfmBUyhdqfQmw57DWYViFmk5M/dA52F95GaT7xFpzAI8+PVqjF0jsxzqAj2G33Yl/\n\tUjzG0sJs8BVKFuLstCZwa6TJhC6ZV8oHOUZXF9ouioe8cAK5cSwigpB1C6vhjZtOIl8A\n\tupHvLbu/vRtb6tnUKJDmA+w/DRQJ3ch2SfqwKBmSa97a72tW8nkPrYOK5G2gQ00NAUEN\n\tpBEw==","X-Gm-Message-State":"AHPjjUj43jfZMpAmIJz7GUCTEqKdfE/eEoV5+S1MeNxXK3dWfvglxSfe\n\tpO2qfKMeRbMFK6JuC26y4TSSlYxNLPc=","X-Google-Smtp-Source":"AOwi7QCYtDYkeX3AhDq4hIk09siVFnUUmb3T5/qFRjaYbRtFq87QTMR6nxApPfKHstKVKPHF6NmeBw==","X-Received":"by 10.46.20.27 with SMTP id u27mr1408245ljd.39.1506022684705;\n\tThu, 21 Sep 2017 12:38:04 -0700 (PDT)","From":"Sam Protsenko <semen.protsenko@linaro.org>","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 <trini@konsulko.com>, Praneeth Bajjuri <praneeth@ti.com>","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 <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Right now on OMAP5-based boards we have only one partition defined for\nLinux boot, which is rootfs. That doesn't work with bootpart=1:2 (that\nis defined in include/environment/ti/boot.h). To fix Linux boot we may\neither:\n\n 1. Change bootpart to be 1:1\n 2. Or add preceding partition, so that rootfs is actually 1:2\n\nSecond choice seems more reasonable, as DFU is already using similar\npartition table and can rely on bootpart to be 1:2.\n\nThis patch adds \"bootloader\" partition. So now eMMC layout for Linux\nboot looks like this:\n\noffset               content                 size          partition\n(KiB)                                        (KiB)","diff":"=======================================================================\n\n0       +--------------------------------+\n        | MBR/GPT header                 |   128           -\n128     +--------------------------------+\n        | MLO                            |   256           -\n384     +--------------------------------+\n        | u-boot.img                     |   1792          bootloader\n2176    +--------------------------------+\n        | //////////// hole //////////// |   256           -\n2432    +--------------------------------+\n        | U-Boot environment             |   128           -\n2560    +--------------------------------+\n        | U-Boot environment (redundant) |   128           -\n2688    +--------------------------------+\n        | rootfs                         |   remaining     rootfs\nend     +--------------------------------+\n\n=======================================================================\n\nGuard hole appears because U-Boot environment offset was calculated for\nAndroid partition table, which has two additional partitions in place of\nthat hole (\"environment\" and \"misc\" partitions).\n\nThis patch also changes rootfs offset from 2 MiB further to 2688 KiB,\nso that there won't be any collisions with U-Boot environment when we\nflash rootfs.\n\nSigned-off-by: Sam Protsenko <semen.protsenko@linaro.org>\n---\n include/configs/dra7xx_evm.h | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\ndiff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h\nindex 6c0fc35d3a..1555fc1b50 100644\n--- a/include/configs/dra7xx_evm.h\n+++ b/include/configs/dra7xx_evm.h\n@@ -51,7 +51,8 @@\n #define PARTS_DEFAULT \\\n \t/* Linux partitions */ \\\n \t\"uuid_disk=${uuid_gpt_disk};\" \\\n-\t\"name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\\0\" \\\n+\t\"name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};\" \\\n+\t\"name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\\0\" \\\n \t/* Android partitions */ \\\n \t\"partitions_android=\" \\\n \t\"uuid_disk=${uuid_gpt_disk};\" \\\n","prefixes":["U-Boot","2/4"]}