From patchwork Thu Dec 17 12:10:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 344931 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp1110054jai; Thu, 17 Dec 2020 04:11:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJziIlJDvNOZyx35Cun1MG7SB1MI6l3tBnNuRhFlcvs5Sk9s/CQnSpdrIIYB8TTWvG+Qd4h/ X-Received: by 2002:a17:906:edc4:: with SMTP id sb4mr34128624ejb.21.1608207116621; Thu, 17 Dec 2020 04:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608207116; cv=none; d=google.com; s=arc-20160816; b=dXb69NUFVfH4FwsFEp3w0KJmkBAuLIle2Lme4MW9SaujsruPWqv+vxz9yWEad1YAsT 1Zb9qezIyqBhuPpj1po+hzLI0PEVrK8EKiiVto95PIriBO8pTOZwwAdIl6Zsgs+KSuZw l4WLkSqZ4oJAkf7eE1oaNTngDvJZbpY5YeGGz/RRpDvcL07CAqcpoY6eHWLq38HtrJ9u xUtbEsIEg601hX9WvcfEoNzRqivv124FuSdOfv6Fk7kXD9pj+Ej0khA9R5UNsIlP/GHZ O79IR3jDjchd9Ts1rVupHQGcLu7qx7QqGd7l/uLAsq5MTWdW+2PWjk92giFQpwfSz/o3 FMTg== 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=u1COgBKRJgzzrobMWOd74b9TNAZjAdPOsiGm4fvkZMs=; b=QbOicd5T33wUYMQFDAKqd4iPVIJ0pbjm27yMMFe2GPjEd2f9FjYl+IuyBYsRNEPCvJ KRU/Z4VOtpRnsOOIVcim3YEgC8QejaIzoTBGjtQ7h7Df1JsRucGxgsv+icL3RNZ1BC2o 9TyDVvqL2bV9xoZC8+i1i6kINcjxGzS+gpuJSCVorvLQW3v1SfMehyqmZbcX0A9PwsO1 GU+EirzjVFLpSXmhHoNFk9wGyqEaRwfjrBufbBXi+wBYZU5rBaAySMeV5M9rcHuaYcO+ RRp/5X+BPFt7wzZirZCCQtL5Z262P11KZQbciuFtXYBSt6SUYtDFIp8kOYh6PpgLfkzf S78Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XvYoUBia; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id e5si4230060edc.19.2020.12.17.04.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 04:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XvYoUBia; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 E587582BD5; Thu, 17 Dec 2020 13:11:20 +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="XvYoUBia"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1025F82BC6; Thu, 17 Dec 2020 13:11:04 +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 608A682BA0 for ; Thu, 17 Dec 2020 13:10:57 +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 20201217121047euoutp017e813caed832468b95325484e8922f05~Rf8njP0Al1824218242euoutp01v for ; Thu, 17 Dec 2020 12:10:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20201217121047euoutp017e813caed832468b95325484e8922f05~Rf8njP0Al1824218242euoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608207047; bh=u1COgBKRJgzzrobMWOd74b9TNAZjAdPOsiGm4fvkZMs=; h=From:To:Cc:Subject:Date:References:From; b=XvYoUBiaYZG7UOa2fdZ8HSLDJrCMosE5pKYpJ+4KMi8n8yn/LKpOIifb24mhlIwyh HvreoGeojFNcI8MOf0XSMa1u+wLt6AuU/JVlu+ROwk0ZESnYhMWR0d2EhPb/Ds5LaC ixZYFaWt9LtcBLd+XjJiNxGJkx+Rio9AuAXP5p6U= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201217121041eucas1p1c85d87334ef258644c150e0afe8e9bef~Rf8iZxqcD0442704427eucas1p10; Thu, 17 Dec 2020 12:10:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 48.A0.45488.1CA4BDF5; Thu, 17 Dec 2020 12:10:41 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201217121041eucas1p1eec10651cccd484e989f38310883b14d~Rf8h-sow-1504015040eucas1p1p; Thu, 17 Dec 2020 12:10:41 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201217121041eusmtrp181be37d2d54f3284983e0ddda6f529e7~Rf8h-FodU3076830768eusmtrp11; Thu, 17 Dec 2020 12:10:41 +0000 (GMT) X-AuditID: cbfec7f5-c5fff7000000b1b0-35-5fdb4ac14ae1 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0F.6A.21957.0CA4BDF5; Thu, 17 Dec 2020 12:10:40 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201217121040eusmtip1a52d5f2007c2a87926ba6a40ce5e3426~Rf8hoWKBM0934909349eusmtip1G; Thu, 17 Dec 2020 12:10:40 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Cc: Marek Szyprowski , Lukasz Majewski , Marek Vasut , Jaehoon Chung , Bartlomiej Zolnierkiewicz Subject: [PATCH 0/5] DFU: new entity types and minor improvements Date: Thu, 17 Dec 2020 13:10:25 +0100 Message-Id: <20201217121030.6352-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsWy7djP87oHvW7HG2zcImmxccZ6Vosbv9pY LZ6/u8xksfbIXXaLN22NjBZv93ayO7B5zJt1gsXj7J0djB59W1YxBjBHcdmkpOZklqUW6dsl cGXsWvqOtWAKd8XE92+YGhjXcHQxcnJICJhI/Nnzkb2LkYtDSGAFo0THnuXMEM4XRokls+9D ZT4zSsxZsZwNpuXB2kMsEInljBIti24htJw6/R2sik3AUKLrbReYLSIgIfGr/yojiM0scJFR 4vd/4y5GDg5hAUeJQ7/jQMIsAqoSl38cYAexeQVsJG7ObWGEWCYvsXrDAWYI+yO7xL9eTQjb ReLIro9QcWGJV8e3sEPYMhKnJ/eAHSch0Mwo8fDcWnYIp4dR4nLTDKip1hJ3zv1iAzmCWUBT Yv0ufYiwo8SCW9eZQcISAnwSN94KQpzMJzFp23SoMK9ER5sQRLWaxKzj6+DWHrxwCeocD4lX c28wgpQLCcRK/Oi2nsAoNwth1QJGxlWM4qmlxbnpqcXGeanlesWJucWleel6yfm5mxiB0X76 3/GvOxhXvPqod4iRiYPxEKMEB7OSCG/CgZvxQrwpiZVVqUX58UWlOanFhxilOViUxHl3bV0T LySQnliSmp2aWpBaBJNl4uCUamBissvhrt2/7UPrQZ4pV/hVTlwWPMZj9CfqjVlk/3HhCY9O ZJcKTt/lxlQ+T+nmxhNdkZNNVt5Ueas9tTdwmWz4hMwLX1f4MJt3cPh4zTBMOZHJfK/i8+lX /jPXNN1lbzec+KBOKuPSPpvHT9e2ny8/YsHhteTes99q/Cl5ZyR1hEVD58xgORblYSJVZvDq bNPuX7czA+JEhQ7rre65+2ZToIVB0oc/h1zfxpQtUTi9YM+DxeYZbKWRM0SmXVsc+Ec12lfu 0oWNjEE1KsWpvXvvZWz8WFMw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eec10651cccd484e989f38310883b14d X-Msg-Generator: CA X-RootMTR: 20201217121041eucas1p1eec10651cccd484e989f38310883b14d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201217121041eucas1p1eec10651cccd484e989f38310883b14d 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 DFU subsystem. Together with the recently posted 'Add MBR partition table creation and verify command' patchset it allows to create the whole partition table during the board flashing when one prepares a proper script. 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 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 +++ drivers/dfu/dfu.c | 6 +++++- drivers/dfu/dfu_mmc.c | 39 ++++++++++++++++++++++++++++++++----- drivers/usb/gadget/f_thor.c | 3 +++ include/dfu.h | 4 ++++ include/thor.h | 2 ++ 8 files changed, 76 insertions(+), 14 deletions(-) -- 2.17.1