Skip to contentSkip to conversation

Kernel and monitor program

DISCUSSION S C 2 participants 2 messages Jun 10, 2004 MIPS

lore
Share & tools
lore

S C

author
#0 lore raw

Hello all,

Please pardon the newbie question, but I was wondering what a kernel in general expects a monitor program/bootloader like YAMON to do for it beforehand, if anything at all. I know the answer is very board specific, but if there are any generic things that a kernel expects ready for it before it starts running (caches initialized already? SDRAM control regs set up? Or maybe the kernel has no expectations at all?), I'd be grateful if someone could point them out.

TIA,
-S.

_________________________________________________________________
Watch the online reality show Mixed Messages with a friend and enter to win a trip to NY http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/

#1 lore raw
Quoted 9 lines · S C

Hello all,

Please pardon the newbie question, but I was wondering what a kernel in general expects a monitor program/bootloader like YAMON to do for it beforehand, if anything at all. I know the answer is very board specific, but if there are any generic things that a kernel expects ready for it before it starts running (caches initialized already? SDRAM control regs set up? Or maybe the kernel has no expectations at all?), I'd be grateful if someone could point them out.

This is almost an FAQ. (although I don't know if I am giving the same answer each time ;0)

. initialize system RAM and its controller
. copy kernel to RAM (in normal cases, unless you do XIP) . initialize and enable cache
. (optionally) pass some args to kernel
. (optionally) initial some board hw. This is really a negotiation
between loader and linux board setup routine.

Jun