[U-Boot-Users] New x86 board booted...now the hard part

Marc Singer elf at buici.com
Tue May 27 22:30:43 CEST 2003


On Tue, May 27, 2003 at 10:08:12PM +0200, Wolfgang Denk wrote:
> Dear Marc,
> 
> in message <20030527173633.GA7367 at buici.com> you wrote:
> > 
> > > 2) If there is no such memory, you can probably lock some  parts  (or
> > >    all of) the cache and (mis-) use this as memory.
> > 
> > This may be possible, but it seems to me to be a lot of work just so
> > we can 'call' the routine that performs the SDRAM controller setup.
> 
> There is little choice. If you want to use C, you will have to  stick
> to  the  ABI,  and  you  will  have to provide a working stack. For a
> stack, you need some memory.

Hey, I want a stack as much as the next guy.

> > Then how about making this single function a configuration definition
> > and fixing the lib_i386 to use that constant.
> > 
> >   include/configs/thisboard
> > 
> > #define MEM_INIT mem_init_sc520
> > 
> >   lib-i386/board.c
> > 
> > ...
> #ifdef MEM_INIT
> > MEM_INIT()
> #endif
> > ... 
> 
> OK with me.

Excellent.  That's what I'll do.

Thanks.




More information about the U-Boot mailing list