From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 28 May 2013 23:01:09 +0200 Subject: [U-Boot] dfu: dfu and UBI Volumes In-Reply-To: <20130528172309.GF5829@bill-the-cat> References: <20130527090254.5071e4fd@amdc308.digital.local> <7E1B5EF8-454B-4AD4-A49F-D5752EA7036C@antoniou-consulting.com> <20130527204127.GY17119@bill-the-cat> <20130527212552.C08F2380E6A@gemini.denx.de> <20130527233735.GZ17119@bill-the-cat> <20130528055046.4258C38116A@gemini.denx.de> <20130528150159.GC5829@bill-the-cat> <53FA5D9D-DA5D-409C-A262-0427569C250C@antoniou-consulting.com> <1905526685.1261642.1369758701313.JavaMail.root@advansee.com> <20130528172309.GF5829@bill-the-cat> Message-ID: <20130528210109.1CC2B3831A2@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 Tom, In message <20130528172309.GF5829@bill-the-cat> you wrote: > > > Of course this can't yet apply to writing files on file systems since the > > current API in U-Boot misses the append feature, but this could be applied to > > program raw memory partitions, including UBI images. > > Correct. We can write a whole UBI image, today, of NAND size, > regardless of DDR size. But modifying UBI volumes (so UBIFS or your I don't think so. To write a UBI volume on an existing UBI device, you would use the "ubi write" command. This translates into a call of ubi_volume_write(char *volume, void *buf, size_t size) which means the size must be known before you start writing; as far as I can tell ubi_volume_write() does not support incremental write operations of individual "parts" of a volume. 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 Its always easier short term to pee in the pond than install a toilet - it's just not a good long term plan. - Alan Cox in <20100101145701.6432e7b7@lxorguk.ukuu.org.uk>