From: Wolfgang Denk Date: Mon, 27 May 2013 18:25:51 +0200 Subject: [U-Boot] dfu: dfu and UBI Volumes In-Reply-To: <51A30F34.7030603@denx.de> References: <519F97CA.4060901@denx.de> <6AD958CB-3CFC-4362-B72D-511147D041AC@antoniou-consulting.com> <20130524171213.GT17119@bill-the-cat> <51A1B522.2050405@denx.de> <20130527090254.5071e4fd@amdc308.digital.local> <51A30B24.8080405@denx.de> <806D7741-02D5-4D95-9A66-E492ED30A4B1@antoniou-consulting.com> <51A30F34.7030603@denx.de> Message-ID: <20130527162551.65FFD380E6A@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko Schocher, In message <51A30F34.7030603@denx.de> you wrote: > > But how to handle a raw nand partition and a ubi partition on one > nand? > > If ubi is a new dfu interface, somebody must start dfu on u-boot > with "dfu nand .." or "dfu ubi .." dependent on which partition > has to be updated ... before using dfu-util on the host side ... > and start dfu-util for the correct partition... > > This seems not really userfriendly to me ... if I have to use the Indeed, this makes no sense and breaks the whole concept of DFU to be able to download a sinlge firmware image with one, simple command. > Is ubi really a "interface" as nand or mmc ... ? No, it is not. It could be considered a "partition type" at best. > > Looks like it's simple enough; erase (but don't step over the wear counters) > > , write (but skip over the wear counters). > > Yep, or load the complete image in ram, and write it with "ubi write ..." Not "or". When dealing with UBI volumes, then "ubi write" (or the equivalent C API) is the way to go. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All a hacker needs is a tight PUSHJ, a loose pair of UUOs, and a warm place to shift.