mbox series

[0/5] DFU: new entity types and minor improvements

Message ID 20201217121030.6352-1-m.szyprowski@samsung.com
Headers show
Series DFU: new entity types and minor improvements | expand

Message

Marek Szyprowski Dec. 17, 2020, 12:10 p.m. UTC
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

Comments

Jaehoon Chung Dec. 20, 2020, 10:17 p.m. UTC | #1
Hi Marek,

On 12/17/20 9:10 PM, Marek Szyprowski wrote:
> 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.


I sent the patch about skip entity. At that time, Lukasz mentioned to update dfu documentation.

https://patchwork.ozlabs.org/project/uboot/patch/20201109115757.24601-1-jh80.chung@samsung.com/

Could you update also README.dfu and Minkyu's reviewed-tag about my patch?

Best Regards,
Jaehoon Chung

> 

> 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(-)

>
Marek Szyprowski Dec. 21, 2020, 7:29 a.m. UTC | #2
Hi Jaehoon,

On 20.12.2020 23:17, Jaehoon Chung wrote:
> On 12/17/20 9:10 PM, Marek Szyprowski wrote:

>> 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.

> I sent the patch about skip entity. At that time, Lukasz mentioned to update dfu documentation.

>

> https://patchwork.ozlabs.org/project/uboot/patch/20201109115757.24601-1-jh80.chung@samsung.com/

>

> Could you update also README.dfu and Minkyu's reviewed-tag about my patch?


Thanks for pointing this. I missed that. I will include your v2 patch 
and also update the readme about the SCRIPT type.

Best regards

-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland