Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-29 Thread Tom Rini
On Wed, May 29, 2013 at 06:35:27AM +0200, Heiko Schocher wrote: > Hello Tom, > > Am 28.05.2013 23:16, schrieb Tom Rini: > > On Tue, May 28, 2013 at 11:01:09PM +0200, Wolfgang Denk wrote: > >> Dear Tom, > >> > >> In message <20130528172309.GF5829@bill-the-cat> you wrote: > >>> > Of course thi

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Heiko Schocher
Hello Tom, Am 28.05.2013 23:16, schrieb Tom Rini: > On Tue, May 28, 2013 at 11:01:09PM +0200, Wolfgang Denk wrote: >> 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-

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Tom Rini
On Tue, May 28, 2013 at 11:01:09PM +0200, Wolfgang Denk wrote: > 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 >

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Wolfgang Denk
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. > >

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Tom Rini
On Tue, May 28, 2013 at 06:31:41PM +0200, Beno??t Th??baudeau wrote: [snip] > 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.

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Pantelis Antoniou
Hi On May 28, 2013, at 7:43 PM, Benoît Thébaudeau wrote: > Hi Pantelis, > > On Tuesday, May 28, 2013 6:43:06 PM, Pantelis Antoniou wrote: >> Hi Benoît >> >> On May 28, 2013, at 7:31 PM, Benoît Thébaudeau wrote: >> >>> Dear Pantelis Antoniou, >>> >>> On Tuesday, May 28, 2013 5:05:12 PM, Pantel

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Benoît Thébaudeau
Hi Pantelis, On Tuesday, May 28, 2013 6:43:06 PM, Pantelis Antoniou wrote: > Hi Benoît > > On May 28, 2013, at 7:31 PM, Benoît Thébaudeau wrote: > > > Dear Pantelis Antoniou, > > > > On Tuesday, May 28, 2013 5:05:12 PM, Pantelis Antoniou wrote: > >> Hi Tom, > >> > >> On May 28, 2013, at 6:01 P

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Pantelis Antoniou
Hi Benoît On May 28, 2013, at 7:31 PM, Benoît Thébaudeau wrote: > Dear Pantelis Antoniou, > > On Tuesday, May 28, 2013 5:05:12 PM, Pantelis Antoniou wrote: >> Hi Tom, >> >> On May 28, 2013, at 6:01 PM, Tom Rini wrote: >> >>> On Tue, May 28, 2013 at 07:50:46AM +0200, Wolfgang Denk wrote: D

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Benoît Thébaudeau
Dear Pantelis Antoniou, On Tuesday, May 28, 2013 5:05:12 PM, Pantelis Antoniou wrote: > Hi Tom, > > On May 28, 2013, at 6:01 PM, Tom Rini wrote: > > > On Tue, May 28, 2013 at 07:50:46AM +0200, Wolfgang Denk wrote: > >> Dear Tom, > >> > >> In message <20130527233735.GZ17119@bill-the-cat> you wro

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Tom Rini
On Tue, May 28, 2013 at 08:24:06AM +0200, Heiko Schocher wrote: > Hello Wolfgang, > > Am 28.05.2013 07:58, schrieb Wolfgang Denk: > > Dear Heiko, > > > > In message <51a42ccd.1020...@denx.de> you wrote: > >> > >>> I would imagine, but testing and implementation might show a better way, > >>> we d

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Tom Rini
On Tue, May 28, 2013 at 07:55:03AM +0200, Wolfgang Denk wrote: > Dear Heiko, > > In message <51a427a8.8090...@denx.de> you wrote: > > > > > Where exactly is this 8 MB limit coming into play? > > > > You find this in drivers/dfu/dfu.c: > > > > static unsigned char __aligned(CONFIG_SYS_CACHELINE_S

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Pantelis Antoniou
Hi Tom, On May 28, 2013, at 6:01 PM, Tom Rini wrote: > On Tue, May 28, 2013 at 07:50:46AM +0200, Wolfgang Denk wrote: >> Dear Tom, >> >> In message <20130527233735.GZ17119@bill-the-cat> you wrote: >>> Where exactly is this 8 MB limit coming into play? >>> >>> In buffering the data. We ca

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-28 Thread Tom Rini
On Tue, May 28, 2013 at 07:50:46AM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20130527233735.GZ17119@bill-the-cat> you wrote: > > > > > Where exactly is this 8 MB limit coming into play? > > > > In buffering the data. We cannot write a chunk of a file to a > > filesystem and then a

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello Wolfgang, Am 28.05.2013 07:58, schrieb Wolfgang Denk: > Dear Heiko, > > In message <51a42ccd.1020...@denx.de> you wrote: >> >>> I would imagine, but testing and implementation might show a better way, >>> we do UBI as ubi ubiN volume-name, ie: >>> rootfs ubi ubi0 rootfs >>> user ubi ubi0 u

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Wolfgang Denk
Dear Heiko, In message <51a42ccd.1020...@denx.de> you wrote: > > > I would imagine, but testing and implementation might show a better way, > > we do UBI as ubi ubiN volume-name, ie: > > rootfs ubi ubi0 rootfs > > user ubi ubi0 user-data > > and so forth, and augment dfu_nand.c with UBI knowledge

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Wolfgang Denk
Dear Heiko, In message <51a427a8.8090...@denx.de> you wrote: > > > Where exactly is this 8 MB limit coming into play? > > You find this in drivers/dfu/dfu.c: > > static unsigned char __aligned(CONFIG_SYS_CACHELINE_SIZE) >dfu_buf[DFU_DATA_BUF_SIZE]; Ah, so it

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Wolfgang Denk
Dear Tom, In message <20130527233735.GZ17119@bill-the-cat> you wrote: > > > Where exactly is this 8 MB limit coming into play? > > In buffering the data. We cannot write a chunk of a file to a > filesystem and then append to it, we don't have the API today. Sorry, I still don't get it. Assumin

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello Tom, Am 27.05.2013 22:41, schrieb Tom Rini: > On Mon, May 27, 2013 at 07:29:02PM +0300, Pantelis Antoniou wrote: >> Hi >> >> On May 27, 2013, at 7:25 PM, Wolfgang Denk wrote: >> >>> Dear Heiko Schocher, >>> >>> In message <51a30f34.7030...@denx.de> you wrote: [...] >> I pretty much agree. UB

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello Tom, Am 27.05.2013 21:21, schrieb Tom Rini: > On Sun, May 26, 2013 at 09:09:22AM +0200, Heiko Schocher wrote: > > [snip] >> Ah, looking in drivers/dfu/dfu_mmc.c, they use dfu->layout >> for switching between DFU_RAW_ADDR, DFU_FS_FAT, DFU_FS_EXT4... >> >> After all ... should we add a DFU_UB

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello Wolfgang, Am 27.05.2013 23:25, schrieb Wolfgang Denk: > Dear Tom, > > In message <20130527204127.GY17119@bill-the-cat> you wrote: >> >> This _may_ be the hard part for UBI. When doing raw block writes for >> NAND/MMC, we're able to write them out quickly and thus support images >> larger t

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Tom Rini
On Mon, May 27, 2013 at 11:25:52PM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20130527204127.GY17119@bill-the-cat> you wrote: > > > > This _may_ be the hard part for UBI. When doing raw block writes for > > NAND/MMC, we're able to write them out quickly and thus support images > >

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Wolfgang Denk
Dear Tom, In message <20130527204127.GY17119@bill-the-cat> you wrote: > > This _may_ be the hard part for UBI. When doing raw block writes for > NAND/MMC, we're able to write them out quickly and thus support images > larger than RAM. But for filesystems we don't support that notion in > genera

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Tom Rini
On Mon, May 27, 2013 at 07:29:02PM +0300, Pantelis Antoniou wrote: > Hi > > On May 27, 2013, at 7:25 PM, Wolfgang Denk wrote: > > > Dear Heiko Schocher, > > > > In message <51a30f34.7030...@denx.de> you wrote: > >> > >> But how to handle a raw nand partition and a ubi partition on one > >> nand

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Tom Rini
On Sun, May 26, 2013 at 09:09:22AM +0200, Heiko Schocher wrote: [snip] > Ah, looking in drivers/dfu/dfu_mmc.c, they use dfu->layout > for switching between DFU_RAW_ADDR, DFU_FS_FAT, DFU_FS_EXT4... > > After all ... should we add a DFU_UBI and add this to > drivers/dfu/dfu_nand.c? Yes, I think we

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Pantelis Antoniou
Hi On May 27, 2013, at 7:25 PM, Wolfgang Denk wrote: > Dear Heiko Schocher, > > In message <51a30f34.7030...@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

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Wolfgang Denk
Dear Heiko Schocher, In message <51a30f34.7030...@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 u

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello, Am 27.05.2013 09:35, schrieb Pantelis Antoniou: > Hi Guys, > > On May 27, 2013, at 10:28 AM, Heiko Schocher wrote: > >> Hello Lukasz, >> >> Am 27.05.2013 09:02, schrieb Lukasz Majewski: >>> Hi Heiko, >>> Hello Tom, Am 24.05.2013 19:12, schrieb Tom Rini: > On Fri, May 24

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Pantelis Antoniou
Hi Guys, On May 27, 2013, at 10:28 AM, Heiko Schocher wrote: > Hello Lukasz, > > Am 27.05.2013 09:02, schrieb Lukasz Majewski: >> Hi Heiko, >> >>> Hello Tom, >>> >>> Am 24.05.2013 19:12, schrieb Tom Rini: On Fri, May 24, 2013 at 07:42:01PM +0300, Pantelis Antoniou wrote: > Hi Heiko, >

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Heiko Schocher
Hello Lukasz, Am 27.05.2013 09:02, schrieb Lukasz Majewski: > Hi Heiko, > >> Hello Tom, >> >> Am 24.05.2013 19:12, schrieb Tom Rini: >>> On Fri, May 24, 2013 at 07:42:01PM +0300, Pantelis Antoniou wrote: Hi Heiko, On May 24, 2013, at 7:39 PM, Heiko Schocher wrote: > Hello,

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-27 Thread Lukasz Majewski
Hi Heiko, > Hello Tom, > > Am 24.05.2013 19:12, schrieb Tom Rini: > > On Fri, May 24, 2013 at 07:42:01PM +0300, Pantelis Antoniou wrote: > >> Hi Heiko, > >> > >> On May 24, 2013, at 7:39 PM, Heiko Schocher wrote: > >> > >>> Hello, > >>> > >>> just digging in DFU support in U-Boot for an upcoming

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-26 Thread Heiko Schocher
Hello Tom, Am 24.05.2013 19:12, schrieb Tom Rini: > On Fri, May 24, 2013 at 07:42:01PM +0300, Pantelis Antoniou wrote: >> Hi Heiko, >> >> On May 24, 2013, at 7:39 PM, Heiko Schocher wrote: >> >>> Hello, >>> >>> just digging in DFU support in U-Boot for an upcoming board support >>> based on an AM3

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-24 Thread Wolfgang Denk
Dear Pantelis Antoniou, In message <6ad958cb-3cfc-4362-b72d-511147d04...@antoniou-consulting.com> you wrote: > > > How To do this? Current state on this board is to erase the rootfs > > mtd partition with a nand erase and write the new image using > > dfu_nand.c ... which calls in the end nand_w

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-24 Thread Tom Rini
On Fri, May 24, 2013 at 07:42:01PM +0300, Pantelis Antoniou wrote: > Hi Heiko, > > On May 24, 2013, at 7:39 PM, Heiko Schocher wrote: > > > Hello, > > > > just digging in DFU support in U-Boot for an upcoming board support > > based on an AM335x. This board support uses for example a rootfs in >

Re: [U-Boot] dfu: dfu and UBI Volumes

2013-05-24 Thread Pantelis Antoniou
Hi Heiko, On May 24, 2013, at 7:39 PM, Heiko Schocher wrote: > Hello, > > just digging in DFU support in U-Boot for an upcoming board support > based on an AM335x. This board support uses for example a rootfs in > an UBI Volume on a NAND flash, and this should be updated with dfu ... > > How To

[U-Boot] dfu: dfu and UBI Volumes

2013-05-24 Thread Heiko Schocher
Hello, just digging in DFU support in U-Boot for an upcoming board support based on an AM335x. This board support uses for example a rootfs in an UBI Volume on a NAND flash, and this should be updated with dfu ... How To do this? Current state on this board is to erase the rootfs mtd partition wi