[U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Andre Renaud
Hello, I am working on an i.MX25 board, and would like to know the recommended mechanism for putting code in before the first instruction in the executable, but outside the *_spl system. Basically, the i.MX25 has a smart boot rom in the CPU, which will extract the first block, and interpret it (as

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Simon Glass
Hi Andre, On Thu, Jul 7, 2011 at 2:38 PM, Andre Renaud wrote: > Hello, > I am working on an i.MX25 board, and would like to know the recommended > mechanism for putting code in before the first instruction in the > executable, but outside the *_spl system. > > Basically, the i.MX25 has a smart b

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Andre Renaud
Hi Simon, > We have a similar thing with Tegra, and have built something into the > USB download script which prepends the needed data. In this case it > needs to be signed so it isn't possible to just include it in the U-Boot > source, anyway. > > I suppose > > cat preload.bin u-boot.bin >u-boot

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Fabio Estevam
Hi Andre, On Thu, Jul 7, 2011 at 6:38 PM, Andre Renaud wrote: > Hello, > I am working on an i.MX25 board, and would like to know the recommended > mechanism for putting code in before the first instruction in the > executable, but outside the *_spl system. > > Basically, the i.MX25 has a smart bo

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Andre Renaud
Hi Fabio, On 08/07/11 12:54, Fabio Estevam wrote: > Just to make sure I understand: you want to boot MX25 from internal > mode (from ROM), correct? Yes, I am booting in internal mode, so that I can load U-Boot from NAND (or SPI flash). > We currently do this on the MX51 and we pass the DDR timing

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Fabio Estevam
Hi Andre, On Thu, Jul 7, 2011 at 10:20 PM, Andre Renaud wrote: .. > Just out of interest, how does the imximage.cfg file work? I can't see > any reference to that file in any of the build system, so how do you get > it prepended to the image? Please check doc/README.imximage file for details reg

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Andre Renaud
Hi Fabio, > Please check doc/README.imximage file for details regarding the > generation of the u-boot.imx image. > > I think that it would be nice if you include such file for your board > so that the same approach as in MX51/MX53 can be used. This is basically exactly what I was after. Thanks f

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-07 Thread Stefano Babic
On 07/08/2011 03:20 AM, Andre Renaud wrote: > Hi Fabio, > On 08/07/11 12:54, Fabio Estevam wrote: >> Just to make sure I understand: you want to boot MX25 from internal >> mode (from ROM), correct? > Hi Andre, > Just out of interest, how does the imximage.cfg file work? I can't see > any referen

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-10 Thread Andre Renaud
Hi Fabio, On 08/07/11 12:54, Fabio Estevam wrote: > Just to make sure I understand: you want to boot MX25 from internal > mode (from ROM), correct? > > We currently do this on the MX51 and we pass the DDR timings, IOMUX, > etc via the DCD (Device Configuration Data) mechanism. > > You can refer

Re: [U-Boot] cpu/arm926ejs/start.S question

2011-07-11 Thread Fabio Estevam
Hi Andre, On Mon, Jul 11, 2011 at 1:59 AM, Andre Renaud wrote: ... > I have basically got this working, but I have to put the final > u-boot.imx image into the SPI flash at address 0x400, not the base (the > image that I had essentially padded it out to 0x400). Is there any > reason that imximage