{"id":817157,"url":"http://patchwork.ozlabs.org/api/patches/817157/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170921193759.3914-2-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-2-semen.protsenko@linaro.org>","list_archive_url":null,"date":"2017-09-21T19:37:56","name":"[U-Boot,1/4] arm: am57xx: Fix Linux boot from eMMC","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"ecadca32c1cb0d3034dfd2c181c371d04c149dc7","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-2-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/817157/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/817157/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=\"hhdpV7rA\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xypY310g9z9s2G\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 EDC38C21E7F; Thu, 21 Sep 2017 19:38:22 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id AA681C21F43;\n\tThu, 21 Sep 2017 19:38:14 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 197EAC21E26; Thu, 21 Sep 2017 19:38:07 +0000 (UTC)","from mail-lf0-f54.google.com (mail-lf0-f54.google.com\n\t[209.85.215.54])\n\tby lists.denx.de (Postfix) with ESMTPS id 25884C21C62\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 19:38:04 +0000 (UTC)","by mail-lf0-f54.google.com with SMTP id d4so6784761lfj.7\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 12:38:04 -0700 (PDT)","from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id\n\t37sm347883lfv.46.2017.09.21.12.38.01\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 21 Sep 2017 12:38:02 -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=Ez9gV4hLrE/1mVYqrhCoNodzCzCqV4uPrYKuJpKWiQY=;\n\tb=hhdpV7rAR5McsqBeZ/O5IK1paQS/VzXxEJ0DizyjJaaM9OORguRjxp2XDPUhc2XFXa\n\tHalcJOEvd7ESQDOhd9EjQ5nZeh8Q/UjjLYYPBS6BA7yJSYNMvErzLNzb/VlhQTzl2Eth\n\tHISmOv5yKtzxu+PVaVxZRQqc53v5pJQkgbqhI=","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=Ez9gV4hLrE/1mVYqrhCoNodzCzCqV4uPrYKuJpKWiQY=;\n\tb=k+qzOB186zYA5TS61hi5SeXGBzNqvEuvG9kr25wzCWJH1XLwjgSJoJU5ltaofiSl+k\n\ttPNXDJFYcMYZXi7hzgOhG6+syQ4I9c4AzDRZeVmpksN0MeXQLchN57MAI0H6eL0CDDGp\n\tYU0NQoOhlJFpvmSTnG1fuptrP/Ix5Xnznjfp/op9R2FCBN22s8ovnBRL98Rj5xj1JhYu\n\tsq2IeDrmIP+1hOMslRUS3mMRQEWQ/Vr+hCM4Iv3pHePwlwcTYk3XMcrHaVpuuclDzv5X\n\tHwy6Gz8WFUMFZgBScB7RL1rbD4E6Kb3sSXKWcoXFDVG0T7lUUPcwiMymEMXezjeDj5Oq\n\trzAg==","X-Gm-Message-State":"AHPjjUiLPZUOsA1jRFUsTKTMWTxzOqLpRjYrAlaXPC9VTgfc65kpvJSI\n\tMTirSX/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; \n\tThu, 21 Sep 2017 12:38:03 -0700 (PDT)","From":"Sam Protsenko <semen.protsenko@linaro.org>","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 <trini@konsulko.com>, Praneeth Bajjuri <praneeth@ti.com>","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 <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/am57xx_evm.h | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\ndiff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h\nindex 0c70c53050..bf555ccdc2 100644\n--- a/include/configs/am57xx_evm.h\n+++ b/include/configs/am57xx_evm.h\n@@ -44,7 +44,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","1/4"]}