Skip to contentSkip to conversation

mbxboot->head.S

DISCUSSION Konstantin 2 participants 2 messages Oct 15, 2000

lore
Share & tools
lore

Konstantin

author
#0 lore raw

I try to port Kernel to custom MPC860 board.
BSEIP architecture is close to my board.
I used pROBE to load zvmImage on my board . ELF loader put .text
section straight into 0x180000.
With current head.S you lose value of R7 which should contain zImage length.
I fixed it and I pass to Kernel R3 through R7 registers with valid context.

Still, nothing happen. In log_buf I see that kernel reports 0 K ( and some negative values ) memory allocation for its buffers and pages.

The question is what else, besides R3-R7 wee need to pass to kernel to make it work?
I assume that MMU and other hardware already set up.

Any idea are welcome.

Constantine.

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

#1 lore raw

In message <[email protected]>

Quoted 3 lines · Konstantin Sabodash

I try to port Kernel to custom MPC860 board.
BSEIP architecture is close to my board.

What firmware do you have on your board?

Quoted 2 lines

I used pROBE to load zvmImage on my board . ELF loader put .text
section straight into 0x180000.

First, the code in mbxboot/head.S expects that some configuration parameters are being passed from the firmware in a "board info" structure. Make sure you feed correct values into the code, or this won't work.

Also, make sure that you don't just load the standard ELF sections (text, data, bss), but also the Linux specific extensions (image, ramdisk).

Quoted 5 lines

I fixed it and I pass to Kernel R3 through R7 registers with valid context.

Still, nothing happen. In log_buf I see that kernel reports 0 K ( and some negative values ) memory allocation for its buffers and pages.

Seems you have problems with parameter passing.

Quoted 2 lines

The question is what else, besides R3-R7 wee need to pass to kernel to make it work?

Simply put, youneed to pass correctly initialized hardware, and a board info structure with correct values.

Quoted 1 line

Any idea are welcome.

If you have some firmware on your board, adapt the pre-kernel code in mbxboot/ to your needs. If you don't have firmware yet, or find it not ideal for use with Linux, have a look at PPCBoot which was speci- fically designed and implemented with Linux in mind (see the project page at http://ppcboot.sourceforge.net , or get a tarball with source code from ftp://ftp.denx.de/pub/ppcboot/ ).

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected]
Accident: A condition in which presence of mind is good, but absence of body is better.

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