From: Marc Singer <elf@buici.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] New x86 board booted...now the hard part
Date: Tue, 27 May 2003 10:36:33 -0700 [thread overview]
Message-ID: <20030527173633.GA7367@buici.com> (raw)
In-Reply-To: <20030527063419.F1D3CC6162@atlas.denx.de>
On Tue, May 27, 2003 at 08:34:14AM +0200, Wolfgang Denk wrote:
> I see. The usual problem.
>
> So far there are two approaches in U-Boot to solve this problem:
>
> 1) Some devices provide on-chip memory which can be used to hold
> initial data and stack, like the dual-ported RAM on MPC8xx and
> some other processors; depending on your hardware there might be
> other similar resources. Just a few kB are sufficient.
There is none.
> 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.
>
> > > Name it mem_init, and implement mem_init() in a source file whichgets
> > > compiled only for sc520 boards.
> >
> > Presently, this mem_init function is part of the lib_i386 library.
> > Are you OK with IFDEF's in lib_i386/Makefile? Or, would you rather
> > this be put into the BSP directory somehow?
>
> Please do not add board specific definitions to the Makefiles.
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
...
MEM_INIT()
...
> Fine. So I found another supporter to back me when I strive for small
> footprint.
%^)
next prev parent reply other threads:[~2003-05-27 17:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-23 19:00 [U-Boot-Users] New x86 board booted...now the hard part Marc Singer
2003-05-26 6:35 ` Daniel Engström
2003-05-26 19:09 ` Marc Singer
2003-05-26 19:48 ` Wolfgang Denk
2003-05-26 23:08 ` Marc Singer
2003-05-27 6:34 ` Wolfgang Denk
2003-05-27 17:36 ` Marc Singer [this message]
2003-05-27 20:08 ` Wolfgang Denk
2003-05-27 20:30 ` Marc Singer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030527173633.GA7367@buici.com \
--to=elf@buici.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox