[U-Boot] [PATCH 06/14] dfu: add backend for MTD device

Patrick DELAUNAY patrick.delaunay at st.com
Tue Sep 17 11:40:01 UTC 2019


Hi,

> From: Lukasz Majewski <lukma at denx.de>
> Sent: mardi 17 septembre 2019 12:36
> 
> Hi Patrick,
> 
> > Add DFU backend for MTD device: allow to read and write on any MTD
> > device (RAW or SPI)
> >
> > For example :
> > > set dfu_alt_info "nand_raw raw 0x0 0x100000"
> > > dfu 0 mtd nand0
> >
> > This MTD backend provides the same level than dfu nand
>                                      ^^^^^ - shouldn't there be
>                                      "functionality" or such?
> 
> > backend for NAND in RAW mode and sf backend for NOR; So it can replace
> > booth of them but it can also add support of spi-nand.
> 
> If I understood correctly - it allows reading "raw" data from MTD device - NAND,
> SPI-NOR and SPI-NAND?

Yes, "all MTD devices" :  NAND, SPI-NOR, SPI-NAND

My message wasn't clear except if you know the driver organization, I update it in V2

	drivers/mtd/raw 
	drivers/mtd/nand
	drivers/mtd/spi

and potentially also ONENAND als o (not tested) with drivers/mtd/onenand

> >
> > > set dfu_alt_info "nand_raw raw 0x0 0x100000"
> > > dfu 0 mtd spi-nand0
> >
> > The backend code is based on the MTD command introduced by commit
> > 5db66b3aee6f ("cmd: mtd:
> > add 'mtd' command")
> >
> > Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> > ---
> 
> 
> 
> Best regards,
> 
> Lukasz Majewski
> 
> --
> 

Beast regards

Patrick


More information about the U-Boot mailing list