Re: [U-Boot] SPL Dfu update

2013-11-08 Thread Michael Trimarchi
Hi Tom On Thu, Oct 31, 2013 at 2:20 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 09:11:43PM +0100, Wolfgang Denk wrote: >> Dear Michael Trimarchi, >> >> In message >> you >> wrote: >> > >> > > This does not answer Stefano's question: why do it in SPL, what's >> > > wrong with loading the real

Re: [U-Boot] SPL Dfu update

2013-10-31 Thread Tom Rini
On Wed, Oct 30, 2013 at 09:11:43PM +0100, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: > > > > > This does not answer Stefano's question: why do it in SPL, what's > > > wrong with loading the real U-Boot for this purpose? > > > > Because it's not possible, inte

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:53 PM, Otavio Salvador wrote: > Hello Michael, > > On Wed, Oct 30, 2013 at 6:35 PM, Michael Trimarchi > wrote: >> On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: >>> Dear Michael Trimarchi, >>> >>> In message >>> you >>> wrote: > This does not ans

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Otavio Salvador
Hello Michael, On Wed, Oct 30, 2013 at 6:35 PM, Michael Trimarchi wrote: > On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: >> Dear Michael Trimarchi, >> >> In message >> you >> wrote: >>> >>> > This does not answer Stefano's question: why do it in SPL, what's >>> > wrong with loading th

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > This does not answer Stefano's question: why do it in SPL, what's >> > wrong with loading the real U-Boot for this purpose? >> >> Because it's not possible, internal memory

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > This does not answer Stefano's question: why do it in SPL, what's > > wrong with loading the real U-Boot for this purpose? > > Because it's not possible, internal memory size of some cpus. You need > to have a way to load the second stage and

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Eric Nelson
Hi Wolfgang, On 10/30/2013 01:01 PM, Wolfgang Denk wrote: Dear Eric Nelson, In message <52711896.6010...@boundarydevices.com> you wrote: In the case of our i.MX boards that boot to SPI-NOR, it would be nice to simply load an SPL image over the i.MX downloader and have immediate access to DFU

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Wolfgang On Wed, Oct 30, 2013 at 9:03 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > That's the reason I do not understand why we have to push DFU into SPL. >> > Maybe we both are missing something. >> >> It's simple: >> >> - first stage boot can be

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:58:14PM +0100, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: > > > > > Apart of the fact that is possible to add DFU to SPL, I am missing which > > > is the real advantage. One goal of having split U-Boot into two images > > > (SPL and

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:58:23PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 8:47 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: > >> Hi Tom > >> > >> On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > >> > On Wed, Oct 30, 2013 a

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > That's the reason I do not understand why we have to push DFU into SPL. > > Maybe we both are missing something. > > It's simple: > > - first stage boot can be sent over the otg > - using dfu to flash the u-boot.img, kernel .. etc Why shoul

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Eric Nelson, In message <52711896.6010...@boundarydevices.com> you wrote: > > In the case of our i.MX boards that boot to SPI-NOR, it would be > nice to simply load an SPL image over the i.MX downloader > and have immediate access to DFU so we can use it to > program the SPI-NOR. Rewrite thi

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:58 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > Apart of the fact that is possible to add DFU to SPL, I am missing which >> > is the real advantage. One goal of having split U-Boot into two images >> > (SPL and U-Boot) is

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:47 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: >> Hi Tom >> >> On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: >> > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: >> >> Hi >> >> >> >> On Wed, Oct 30, 2

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > Apart of the fact that is possible to add DFU to SPL, I am missing which > > is the real advantage. One goal of having split U-Boot into two images > > (SPL and U-Boot) is also to get a simpler and smaller image, letting the > > main U-Boot im

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: > Hi Tom > > On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: > >> Hi > >> > >> On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > >> > Hi Otavio, > >> >

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Tom On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: >> Hi >> >> On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: >> > Hi Otavio, >> > >> > On 30/10/2013 15:19, Otavio Salvador wrote: >> > >> >>> OMAP4/3 can boot over t

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 02:52:25PM +0100, Michael Trimarchi wrote: > Hi Tom > > On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: > >> Hi > >> > >> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > >> > Hi Lukasz, hi Mic

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > > Hi Otavio, > > > > On 30/10/2013 15:19, Otavio Salvador wrote: > > > >>> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the > >>> second st

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:32 PM, Eric Nelson wrote: > On 10/30/2013 07:24 AM, Stefano Babic wrote: >> >> Hi Otavio, >> >> On 30/10/2013 15:19, Otavio Salvador wrote: >> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the second stage boot. We have already

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > Hi Otavio, > > On 30/10/2013 15:19, Otavio Salvador wrote: > >>> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the >>> second stage boot. We have already SPL USBETH in u-boot but in production >>> otg flashing can

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Eric Nelson
On 10/30/2013 07:24 AM, Stefano Babic wrote: Hi Otavio, On 30/10/2013 15:19, Otavio Salvador wrote: OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the second stage boot. We have already SPL USBETH in u-boot but in production otg flashing can be very useful. Think SPL as

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Stefano Babic
Hi Otavio, On 30/10/2013 15:19, Otavio Salvador wrote: >> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the >> second stage boot. We have already SPL USBETH in u-boot but in production >> otg flashing can be very useful. Think SPL as a differently configured U-BOOT >> doe

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Otavio Salvador
Michael, On Wed, Oct 30, 2013 at 11:52 AM, Michael Trimarchi wrote: > On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: >> On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: >>> Hi >>> >>> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: >>> > Hi Lukasz, hi Michael, >>> > >>

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Tom On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: >> Hi >> >> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: >> > Hi Lukasz, hi Michael, >> > >> > On 30/10/2013 13:58, Lukasz Majewski wrote: >> > >> >> In general t

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > > Hi Lukasz, hi Michael, > > > > On 30/10/2013 13:58, Lukasz Majewski wrote: > > > >> In general the presented structure is correct. > >> > >> However, I've got othe

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Stefano Babic
Hi Lukasz, hi Michael, On 30/10/2013 13:58, Lukasz Majewski wrote: > In general the presented structure is correct. > > However, I've got other concerns: > > The DFU + composite + gadget + UDC driver code is large (around 24KiB > in binary size [1] for the TRATS). > > I'm not sure if this siz

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > Hi Lukasz, hi Michael, > > On 30/10/2013 13:58, Lukasz Majewski wrote: > >> In general the presented structure is correct. >> >> However, I've got other concerns: >> >> The DFU + composite + gadget + UDC driver code is large (around 24KiB

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Lukasz On Wed, Oct 30, 2013 at 1:58 PM, Lukasz Majewski wrote: > Hi Michael, > >> Hi >> >> On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi >> wrote: >> > Hi Lukasz >> > >> > We have discussed during the u-boot mini-summit the possibility to >> > have the dfu update from SPL. Right now I'm

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Lukasz Majewski
Hi Michael, > Hi > > On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi > wrote: > > Hi Lukasz > > > > We have discussed during the u-boot mini-summit the possibility to > > have the dfu update from SPL. Right now I'm trying to understand > > what is the best way to do: > > > > > > void spl_dfu_

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi wrote: > Hi Lukasz > > We have discussed during the u-boot mini-summit the possibility to have > the dfu update from SPL. Right now I'm trying to understand what is the best > way to do: > > > void spl_dfu_load_image() > { > int rv; >