mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
6015af28ee
commit
d5640f700d
3 changed files with 103 additions and 1 deletions
|
@ -62,6 +62,8 @@ struct mtd_internal_data {
|
|||
/* RAW programming */
|
||||
u64 start;
|
||||
u64 size;
|
||||
/* for ubi partition */
|
||||
unsigned int ubi;
|
||||
};
|
||||
|
||||
struct nand_internal_data {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue