From patchwork Tue Dec 22 10:32:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 346623 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5205923jai; Tue, 22 Dec 2020 02:32:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWzyMjfiBw2ty8vCFyMStGsBIix3c2fH4xM9ODfPRydx4iYwGIrryU0uymkUus+Oz94Nu2 X-Received: by 2002:a17:907:971c:: with SMTP id jg28mr19278854ejc.85.1608633169003; Tue, 22 Dec 2020 02:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608633168; cv=none; d=google.com; s=arc-20160816; b=CznayP2WiPqSOI3YYhodtXknmXksVz6plQNfL5FUUKWpejz498TRzIWxRrYetcjHIf XGMFizoyDrBCJI3xQVN9YkWMTRON6stiN/aoQ/jcUQhHck6ZPbQSgOPfpJX9XiNT6I1q r64YCqGYDFDMNf++4BlFMcr4KepBC2eBvvnFrycEX/BzxpTXS4kfzZICEC/+YsLg6fey T3UVDZgLnEkWipsruMpD27C7kPwOMguEvqbTELWEmJ5G53zCkZ08FYe4+VsVGFf3GVja jDz5BmH55z4QqYAbutl/bANSyG66aoIvni3sU6zC5Fau8WDax8W5dNhvYH8TaXXxNK/D NwLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:cms-type:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=vMEpSNt0W6L80pYJxff0PMUcpqP+x5p4VM0mjY2ffz0=; b=epR8I2/fFR5fMc2eatp4hQpav2RVEPML9/XzmaXL5rpEh1mF82535kCtpHFhg4dloz oEq4DBaElwPzXa+/dTvIyCFRQRMD0c/8Z5LfbKK+1dkMblzhtVkypYmCmVrq+4kjHpCt G162x0yn1twyWxV6sUiEBgnUZB9l/kXNKbIKukI2f0WeKzc2fIRmhax4cTtl6vTU7by/ fTQIaS3DXdx+zuzNwYXg2F2vR7ivvoUF8XqGNQVqvW4IzogcSKsn7Y5XsSp6OpPJdzWA 4rACEj9g+i0O/V1gEziZaPFnHzRldEWWmOo93MOHh+l3s7bwSeIYemTg3yQMfMs/3ueH pHbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RaaNzyaX; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id l11si11542659ejx.183.2020.12.22.02.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 02:32:48 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RaaNzyaX; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CD83382A4B; Tue, 22 Dec 2020 11:32:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="RaaNzyaX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE8C082A4B; Tue, 22 Dec 2020 11:32:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E56B482757 for ; Tue, 22 Dec 2020 11:32:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m.szyprowski@samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20201222103234euoutp01acd0434aa19117166ce18ba8f1092ac4~TA1Sx2jLo3188331883euoutp01O for ; Tue, 22 Dec 2020 10:32:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20201222103234euoutp01acd0434aa19117166ce18ba8f1092ac4~TA1Sx2jLo3188331883euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608633154; bh=vMEpSNt0W6L80pYJxff0PMUcpqP+x5p4VM0mjY2ffz0=; h=From:To:Cc:Subject:Date:References:From; b=RaaNzyaXfyphgNP2eEiULHXhi2oj4lDcwknRcbGZGSOz0oxKwleyOvy3uf5ZMIIWz db65KI9vixJbSL1ldFe1Qe5QpQhfhRKc7ire9f0w9pyAakzkEyV6X0PoxEVAE2c0QU sg3QOxuyykTxx4tVVV9gLvZtEn4/8EaPw4JimYI4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201222103233eucas1p25b646e4e8a4cd0cc8a9c17f289650ff6~TA1SYVw_X1212712127eucas1p2B; Tue, 22 Dec 2020 10:32:33 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 4D.40.44805.14BC1EF5; Tue, 22 Dec 2020 10:32:33 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201222103233eucas1p2d45814bc4422357471529ebc9dfbad8b~TA1R0P0Io1211412114eucas1p2B; Tue, 22 Dec 2020 10:32:33 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201222103233eusmtrp221dce4b1058aecc83f553772e0eaf559~TA1RvUbID1881618816eusmtrp2N; Tue, 22 Dec 2020 10:32:33 +0000 (GMT) X-AuditID: cbfec7f4-b4fff7000000af05-a7-5fe1cb41caf6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 61.EB.21957.04BC1EF5; Tue, 22 Dec 2020 10:32:32 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201222103232eusmtip278d45a41de1448ad89ad4bce63fe41cb~TA1RX6cNq2525025250eusmtip2c; Tue, 22 Dec 2020 10:32:32 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Cc: Marek Szyprowski , Lukasz Majewski , Marek Vasut , Jaehoon Chung , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 0/5] DFU: new entity types and minor improvements Date: Tue, 22 Dec 2020 11:32:19 +0100 Message-Id: <20201222103224.9018-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAA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AAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsVy+t/xe7qOpx/GG6yVt9g4Yz2rxY1fbawW z99dZrJYe+Quu8WbtkZGi7d7O9kd2DzmzTrB4nH2zg5Gj74tqxgDmKP0bIryS0tSFTLyi0ts laINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLLUov07RL0Mm5d/8VSsIu34uD8z0wNjNO5 uhg5OSQETCT6tv5m7WLk4hASWMoosW3PFmaIhIzEyWkNrBC2sMSfa11sEEWfGCXeLp7CApJg EzCU6HoLkuDkEBGQkPjVf5URpIhZ4DKjxObzp8ASwgIuEmsXrwNrYBFQlVi/ZD8jiM0rYCOx deoxNogN8hKrNxxgnsDIs4CRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgoG079nPzDsZ5 rz7qHWJk4mA8xCjBwawkwmsmdT9eiDclsbIqtSg/vqg0J7X4EKMp0L6JzFKiyfnAUM8riTc0 MzA1NDGzNDC1NDNWEufdOndNvJBAemJJanZqakFqEUwfEwenVAPTgfxra64WrL5YpNsxP7x9 5uWwVZc5V6YZyB601/Q+FJR35G22PHNK8gre0wdn8nRsTI9c4LdtIvM/pfdpt55O/l4dXrNa +97GztiwxJwGSYFf8+Y7PUniXn+Gv/u/3rqKCdNU+U0fBDF/PLZvJ/eR17n3ZdSXzt5g5rzg uVH8HdXOuYwWj+/Pd3BnTuxPn2R656mumavNm/2yjJs0KlMz5tusnPt9kcXl2jgu7k23as+E Rl8tZPPcM2tJzTp55S3bzvwv7p72e8nEGV2XnofrrHu5b2ZK2Uux2mufWNvnxX8/11qQ1mrz R/IEE0s+u7NukVPi2enlnZlxC0Ta6vYWT28ufrxyPreo5UMmx5BbSizFGYmGWsxFxYkAPLjF g70CAAA= X-CMS-MailID: 20201222103233eucas1p2d45814bc4422357471529ebc9dfbad8b X-Msg-Generator: CA X-RootMTR: 20201222103233eucas1p2d45814bc4422357471529ebc9dfbad8b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201222103233eucas1p2d45814bc4422357471529ebc9dfbad8b References: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Hi All, This patchset adds support for SKIP and SCRIPT entity types to the DFU subsystem. They significantly extends the flexibility of the storage flashing commands. Together with the recently posted 'Add MBR partition table creation and verify command' patchset and proper script it allows to create the whole partition table during the board flashing. It also easies the flashing by allowing to use the same images for different board variants/types, as each board can now use only the relevant images and skip the other ones without returning a failure. Best regards Marek Szyprowski Samsung R&D Institute Poland Changelog: v2: - updated the "dfu: add 'SKIP' entity" patch to the latest version - added 'SCRIPT' DFU entity docs v1: https://lists.denx.de/pipermail/u-boot/2020-December/435214.html - initial version Patch summary: Jaehoon Chung (1): dfu: add 'SKIP' entity Marek Szyprowski (4): dfu: mmc: use the default MMC device if entity specifies it as -1 dfu: add 'SCRIPT' entity dfu: add support for the dfu_alt_info reintialization from the flashed script thor: add support for the dfu_alt_info reintialization from the flashed script cmd/dfu.c | 14 ++++++++++++- cmd/thordown.c | 19 +++++++++++------- common/dfu.c | 3 +++ doc/README.dfu | 30 +++++++++++++++++++++++++++- drivers/dfu/dfu.c | 7 ++++++- drivers/dfu/dfu_mmc.c | 39 ++++++++++++++++++++++++++++++++----- drivers/usb/gadget/f_thor.c | 3 +++ include/dfu.h | 4 ++++ include/thor.h | 2 ++ 9 files changed, 106 insertions(+), 15 deletions(-) -- 2.17.1