Skip to contentSkip to conversation

struct bd_info

DISCUSSION Sebastien Articlaux 2 participants 2 messages Mar 3, 2000

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 2 lines · Sebastien Articlaux

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.

Quoted 3 lines

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.

Quoted 2 lines

.... 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/