Re: [PATCH 8/8] mx25 3ds: add support for boot from UART

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sascha,

On Thu, Jun 10, 2010 at 01:12:37PM +0200, Sascha Hauer wrote:
> On Wed, Jun 09, 2010 at 10:05:07AM +0300, Baruch Siach wrote:

[snip]

> > --- a/board/freescale-mx25-3-stack/3stack.c
> > +++ b/board/freescale-mx25-3-stack/3stack.c
> > @@ -44,7 +44,11 @@ extern unsigned long _stext;
> >  
> >  void __naked __flash_header_start go(void)
> >  {
> > +#if defined CONFIG_FREESCALE_MX25_3STACK_UART_BOOT
> > +	__asm__ (".word	exception_vectors\n");
> > +#else
> >  	__asm__ __volatile__("b exception_vectors\n");
> > +#endif
> 
> Do we need this change? I booted other i.MX SoCs without it. I really
> like to keep this because it enables to jump to the first address if
> booting second stage.

This is actually a (very) short "flash" header with only the 
app_code_jump_vector entry left. Only reverse engineering the Freescale ATK 
software revealed this secret. Reading through the i.MX25 Reference Manual I 
now see that there is an option to pass DCD separately, but it complicates the 
boot sequence.  This change only affects builds when this configuration 
option, and this option is disabled by default.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@xxxxxxxxxx - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux