[{"id":1758039,"web_url":"http://patchwork.ozlabs.org/comment/1758039/","msgid":"<CAPnjgZ1iVyjcy0AoZCo8zEgvb1SbrdpUReDcCZ6VsHWjhE5OWg@mail.gmail.com>","list_archive_url":null,"date":"2017-08-26T13:38:40","subject":"Re: [U-Boot] [PATCH v3 5/5] spl: fit: Add booting OS first","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"On 15 August 2017 at 12:14, York Sun <york.sun@nxp.com> wrote:\n> If CONFIG_SPL_OS_BOOT is enabled, boot OS if kernel image is found\n> in FIT structure.\n>\n> Signed-off-by: York Sun <york.sun@nxp.com>\n> Reviewed-by: Tom Rini <trini@konsulko.com>\n>\n> ---\n> This presums the kernel image doesn't exist in a FIT image intended for\n> U-Boot. If kernel image normally co-exists with U-Boot and other images\n> and user intends to boot U-Boot, this patch needs to rewrite to favor\n> \"loadables\" over either \"firmware\" or \"kernel\" so user can select which\n> image to boot.\n>\n> Changes in v3:\n> Update doc/uImage.FIT/multi_spl.its to explain the priority of booting image.\n>\n> Changes in v2:\n> Split from previous patch, rebased on top of \"SPL: FIT: allow loading\n> multiple images\" by Andre Przywara.\n>\n>  common/spl/spl_fit.c         | 60 ++++++++++++++++++++++++++++++--------------\n>  doc/uImage.FIT/multi_spl.its |  7 ++++++\n>  2 files changed, 48 insertions(+), 19 deletions(-)\n\nReviewed-by: Simon Glass <sjg@chromium.org>","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\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"L8EFTVYv\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"NCu1jCA5\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xffwH1Jtwz9t3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 27 Aug 2017 00:06:39 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid CBD0FC22142; Sat, 26 Aug 2017 13:53:27 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A4D5EC220BE;\n\tSat, 26 Aug 2017 13:53:24 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 5ADE1C2207E; Sat, 26 Aug 2017 13:39:06 +0000 (UTC)","from mail-qt0-f175.google.com (mail-qt0-f175.google.com\n\t[209.85.216.175])\n\tby lists.denx.de (Postfix) with ESMTPS id 753E2C2207A\n\tfor <u-boot@lists.denx.de>; Sat, 26 Aug 2017 13:39:02 +0000 (UTC)","by mail-qt0-f175.google.com with SMTP id u11so9835026qtu.1\n\tfor <u-boot@lists.denx.de>; Sat, 26 Aug 2017 06:39:02 -0700 (PDT)","by 10.200.52.117 with HTTP; Sat, 26 Aug 2017 06:38:40 -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=google.com;\n\ts=20161025; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=PdteB6CxcgWmR6C+v5cyTe7JMA+D1nxqiEpFzVXvvV8=;\n\tb=L8EFTVYvFKVSRz/DnyIBdMjmcth2C3Vo+jc//b0NnKLmOtdBQUIwG7qGgBOTuC4CPm\n\tDyuyI60pJAZJr8isJ1FduFx4063To3DL63AbwxKc80QyMdtREvqF8aL+ggvl1pDbrcki\n\t1SbN7xF75J+wjv+c4Fmup/ur5l60nobcFxd1dOrG2EyIUsfmIMXq335HyrC5DOVzGciL\n\tON5ZABo0ecnyQ6txB35VmoGlSxuYeSwXs3qXcwsAnvyICQnN2PypKecyB5Dh+3Yjnb2D\n\tyF/RnmorRB+zMaBbJ5dVdCwSFh8s1YU0p4UdqJB+bqI2/3/9nW0jm096ihzO4THaN6T2\n\thYpA==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=PdteB6CxcgWmR6C+v5cyTe7JMA+D1nxqiEpFzVXvvV8=;\n\tb=NCu1jCA59ykd+6KtSl3rGZjaQ/Wropx8B9QyGDT29Q3p/R9PvXl6Vjm405ueuwKyUo\n\tKZUcZH6sjGbP4bzendmlCdWIlbb+pxUPsn9FZMEApMae6OHwidwS0tRLmTM/wsEZ9yEE\n\tSDwufiTogHmdJwVDC46mjcNUej1LfwFP+KG2I="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=PdteB6CxcgWmR6C+v5cyTe7JMA+D1nxqiEpFzVXvvV8=;\n\tb=i3cWBw8XnCK7UHGOoy0NiJFZ/NkEy2YpL3zFBWSsGwr0KylGK+FSmArOXWTd4qmUnJ\n\t/gmykcTi4eZtdEiysIeR2tHNsvydbUhPJZI5bzqC5LirReb6m5u5lLfw72CmiNnp0660\n\tTsw0xidowgVs5TOg2bljryQmLpffTmdjih9XsFPSmGZukCd3mvAbdmjVkvLqEERXZsfo\n\tKnvME9VkNNA79u0nGB6j2492jSTEypuiuUs5kpGO2wYsnx/XE98VVhHOALL7OxIkh/T4\n\tv+PF4/J1n/EXvqP5mwXo6pGC6U2aEV2n7gk5/Fjry+wfAYRVYbqPjMjPiMxZqR6xQFuB\n\t88WQ==","X-Gm-Message-State":"AHYfb5h0BygbHpnjr1skI4snlkiMMndtHFFXIAuDsQJpwnZRMbh1znGq\n\tOVLQjai41Bu4hTVOLwPLTo/gD1OYZtK7","X-Google-Smtp-Source":"ADKCNb5Iqf5VWVMHSx7pt0Q/4BgiR3WBTphrHrirm+RPKvc9uyKR75/MHNk5DutitXsFRc51YpSa1SDDqzDqXBi65BQ=","X-Received":"by 10.200.2.172 with SMTP id p44mr2325123qtg.68.1503754741278;\n\tSat, 26 Aug 2017 06:39:01 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<1502820885-10346-6-git-send-email-york.sun@nxp.com>","References":"<1502820885-10346-1-git-send-email-york.sun@nxp.com>\n\t<1502820885-10346-6-git-send-email-york.sun@nxp.com>","From":"Simon Glass <sjg@chromium.org>","Date":"Sat, 26 Aug 2017 07:38:40 -0600","X-Google-Sender-Auth":"jFpAGDqTtpK2YTHdMK9oGzSxaVg","Message-ID":"<CAPnjgZ1iVyjcy0AoZCo8zEgvb1SbrdpUReDcCZ6VsHWjhE5OWg@mail.gmail.com>","To":"York Sun <york.sun@nxp.com>","Cc":"Andre Przywara <andre.przywara@arm.com>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>,\n\tJagan Teki <jagan@openedev.com>, Lokesh Vutla <lokeshvuta@ti.com>,\n\t\"Cooper Jr. Franklin\" <fcooper@ti.com>","Subject":"Re: [U-Boot] [PATCH v3 5/5] spl: fit: Add booting OS first","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>","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>"}},{"id":1767460,"web_url":"http://patchwork.ozlabs.org/comment/1767460/","msgid":"<VI1PR04MB20782C608B348F310DBDC7D39A6E0@VI1PR04MB2078.eurprd04.prod.outlook.com>","list_archive_url":null,"date":"2017-09-13T02:22:35","subject":"Re: [U-Boot] [PATCH v3 5/5] spl: fit: Add booting OS first","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On 08/15/2017 11:15 AM, York Sun wrote:\n> If CONFIG_SPL_OS_BOOT is enabled, boot OS if kernel image is found\n> in FIT structure.\n> \n> Signed-off-by: York Sun <york.sun@nxp.com>\n> Reviewed-by: Tom Rini <trini@konsulko.com>\n> \n> ---\n> This presums the kernel image doesn't exist in a FIT image intended for\n> U-Boot. If kernel image normally co-exists with U-Boot and other images\n> and user intends to boot U-Boot, this patch needs to rewrite to favor\n> \"loadables\" over either \"firmware\" or \"kernel\" so user can select which\n> image to boot.\n> \n> Changes in v3:\n> Update doc/uImage.FIT/multi_spl.its to explain the priority of booting image.\n> \n> Changes in v2:\n> Split from previous patch, rebased on top of \"SPL: FIT: allow loading\n> multiple images\" by Andre Przywara.\n\nApplied to fsl-qoriq master.\n\nYork","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=nxp.com header.i=@nxp.com header.b=\"e1FWLoW1\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsQVM6dv4z9t30\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 12:24:59 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid B168CC22349; Wed, 13 Sep 2017 02:23:43 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 30556C22333;\n\tWed, 13 Sep 2017 02:23:41 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 356CEC2228B; Wed, 13 Sep 2017 02:22:37 +0000 (UTC)","from EUR03-VE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr50085.outbound.protection.outlook.com [40.107.5.85])\n\tby lists.denx.de (Postfix) with ESMTPS id 07999C22333\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 02:22:37 +0000 (UTC)","from VI1PR04MB2078.eurprd04.prod.outlook.com (10.166.43.18) by\n\tVI1PR04MB2078.eurprd04.prod.outlook.com (10.166.43.18) with Microsoft\n\tSMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.35.12; Wed, 13 Sep 2017 02:22:35 +0000","from VI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::6943:4a49:ab20:5920]) by\n\tVI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::6943:4a49:ab20:5920%13]) with mapi id 15.20.0035.021;\n\tWed, 13 Sep 2017 02:22:35 +0000"],"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_H2, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=iP3ildY+uU+1Nsp/j59KRzvoLAPPmX74n7Kzb+7nxX8=;\n\tb=e1FWLoW1X1/Y+mi7WwZ62rCTtqr6SQODBeWhwqy0sm3kACMMJHA2CVty3cgs3wf8aE992/cHCCd//P1gpgIR49t3OgbyXUhCUM27GNd25V//23UCJkQmjVjIIq/2n0z4B12y0lNlas3oxVXD61VaTetgGs4HJFf9Zq3nYyciCZg=","From":"York Sun <york.sun@nxp.com>","To":"U-Boot Mailing List <u-boot@lists.denx.de>","Thread-Topic":"[PATCH v3 5/5] spl: fit: Add booting OS first","Thread-Index":"AQHTLDcpGNJnduCofk6jtRZsd6J72Q==","Date":"Wed, 13 Sep 2017 02:22:35 +0000","Message-ID":"<VI1PR04MB20782C608B348F310DBDC7D39A6E0@VI1PR04MB2078.eurprd04.prod.outlook.com>","References":"<1502820885-10346-1-git-send-email-york.sun@nxp.com>\n\t<1502820885-10346-6-git-send-email-york.sun@nxp.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","x-originating-ip":"[24.56.243.53]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; VI1PR04MB2078;\n\t6:yff7JdT21Ll6d0e9BFCg/WRdMoLPQPHZLWckQSuIyroLX8Bjv3vEpvLLA1A4BrZJrg2XjSZF48kzFRfiM1seB7TrPSxekdwnPto3BWuAzSIygYOQ5JyRRyW25LzTMvLtBnna69p8+ydAvVFq0lzv+waVQbDiaMgXuBiMbXZhrAvGFZowKXbnhIcxGIBtI4Nxd0EzXT4jKu78O7Svz6ydXqKhTaboqn4W/nvzYzNFN4U2aW7ena43ZuF/ulHCIKSXkDd0PINOWCbuTVjumd6U3mPnSby6NEUmnfkvgSXhSnQLgcyrOR9CvCx9I+EywRvyVvn+6U9WbBS9jqTO4iAZIw==;\n\t5:qQSSqXyX5U7kpVd/XRwgzBVgfxqLVTyFcsQVUu6z5cPUYE8bWpaiS0m3PwfSeExa7nR041FbzrHKBZa6akLPg0othqZvw7Xho8UnV4PuFLz4QBv8OJ0v5P2B2b/TeJW6WKxWXG/4gYyFgrk+2/KhKw==;\n\t24:BSmPZytyfcGzagQRhw6C1LatFCp1jfdQ0R6bpfPbxPMOyDZfrmhBRUZ0s88E25Mj4CxtggKvT/YjbHOwnn8z4OACXmHf5evzIPNfPzbhBSw=;\n\t7:MNZwI+QWcKrhPaSpBDOdwBzcNciZ54rFqt3pz4/zuc2/P4BnsUHo+HWoyIBezWXw8NYpKywuleuQDmI3koHi8hdnzT8wAnHHelTYol6PaXRYdKrqBao+YdZBpPCUG8chvFYHz0Mya4xAnv0LybhLrus4otGXwtUQGAYud39MvrQoIT46w7+tWSo3rq3ZR79pFSqiZCabvB0tRw6ywWPD2hHR8ldqwJKluIdXho96DqU=","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;","x-ms-office365-filtering-correlation-id":"81e74970-30af-431b-69ef-08d4fa4e4bf9","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:VI1PR04MB2078; ","x-ms-traffictypediagnostic":"VI1PR04MB2078:","x-exchange-antispam-report-test":"UriScan:(185117386973197);","x-microsoft-antispam-prvs":"<VI1PR04MB20786244DA4CA550FEAD01B69A6E0@VI1PR04MB2078.eurprd04.prod.outlook.com>","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:VI1PR04MB2078; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:VI1PR04MB2078; ","x-forefront-prvs":"042957ACD7","x-forefront-antispam-report":"SFV:NSPM;\n\tSFS:(10009020)(6009001)(39860400002)(346002)(376002)(366002)(189002)(199003)(377454003)(24454002)(14454004)(478600001)(97736004)(25786009)(189998001)(68736007)(66066001)(86362001)(6506006)(2900100001)(6436002)(229853002)(105586002)(106356001)(43066003)(3846002)(74316002)(101416001)(7696004)(5660300001)(102836003)(6916009)(6116002)(7736002)(3660700001)(3450700001)(81156014)(53936002)(81166006)(305945005)(8676002)(3280700002)(110136004)(53546010)(6246003)(33656002)(5250100002)(4326008)(2906002)(316002)(9686003)(54906002)(55016002)(99286003)(76176999)(50986999)(8936002)(54356999);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB2078;\n\tH:VI1PR04MB2078.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","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=nxp.com header.i=@nxp.com header.b=\"e1FWLoW1\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-originalarrivaltime":"13 Sep 2017 02:22:35.3549\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"VI1PR04MB2078","Cc":"Andre Przywara <andre.przywara@arm.com>, Jagan Teki <jagan@openedev.com>,\n\tLokesh Vutla <lokeshvuta@ti.com>, \"Cooper Jr. Franklin\" <fcooper@ti.com>","Subject":"Re: [U-Boot] [PATCH v3 5/5] spl: fit: Add booting OS first","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>","Reply-To":"York Sun <york.sun@nxp.com>","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>"}}]