linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: struct bd_info
  2000-03-03 14:31 struct bd_info Sebastien Articlaux
@ 2000-03-03  6:24 ` Dan Malek
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2000-03-03  6:24 UTC (permalink / raw)
  To: Sebastien Articlaux; +Cc: embedded linuxppc


Sebastien Articlaux wrote:

> Someone could explain to me what to put on the
> structure board info?


I created that when I did the original 8xx port of Linux/PPC.
It served as a model to provide some information to an
embedded kernel.  Normally, Linux/PPC gets lots of information
from the OF data structures, and in the embedded systems
we don't have such capability.

> ie , I just want to know, for instance, if ,for the
> size of DRAM memory I must put the real size
> of DRAM in hex,

Hex, decimal, octal, it doesn't really matter :-).
It has to be the size of DRAM (or the size you offer
Linux to use).  It is used during the Linux memory
initialization.


> .... or if it's a offset in relation with
> the chipset select or something else...

It was modelled after the data structure EPPC-Bug provides
to a program when it is started.  The board information
structure are not all identical, although I would like them
that way.  It includes information about memory location and
sizes, processor/bus speed, console baud rate, Ethernet address,
and so on.  If you have a system with discontiguous memory
spaces, you will have to modify the structure to accomodate this.
I would recommend making arrays for the start and size information.

For systems where I wrote the boot rom, it creates the board
information structure and passes it to the Linux image.  Most
other boards create a board information structure in
arch/ppc/mbxboot/embed_config.c and pass that to the Linux kernel.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* struct bd_info
@ 2000-03-03 14:31 Sebastien Articlaux
  2000-03-03  6:24 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Articlaux @ 2000-03-03 14:31 UTC (permalink / raw)
  To: embedded linuxppc


hi,

Someone could explain to me what to put on the
structure board info?
ie , I just want to know, for instance, if ,for the
size of DRAM memory I must put the real size
of DRAM in hex, or if it's a offset in relation with
the chipset select or something else...

thank you!

sebastien

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-03 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-03 14:31 struct bd_info Sebastien Articlaux
2000-03-03  6:24 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).