]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: add partition support for MTD backend
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 14 Oct 2019 07:28:05 +0000 (09:28 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 31 Oct 2019 11:12:31 +0000 (12:12 +0100)
commitd5640f700d0413059b39cdd621c9401ef90d08fa
tree20d08acceb7b209750e69596dc14ea12f7abc3f6
parent6015af28ee6d44d6c7b21f3844c90df9239f66f4
dfu: add partition support for MTD backend

Add the support of MTD partition for the MTD backend.

The expected dfu_alt_info for one alternate on the mtd device :
<name> part <part_id>
        <name> partubi <part_id>

"partubi" also erase up to the end of the partition after write operation.

For example: dfu_alt_info = "spl part 1;u-boot part 2; UBI partubi 3"

U-Boot> dfu 0 mtd nand0

Acked-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
doc/README.dfu
drivers/dfu/dfu_mtd.c
include/dfu.h