Thread (10 messages) 10 messages, 8 authors, 2004-08-26

Re: How to port ppc-linux to new custom boards? (virtexII)

From: Oliver Fuchs <hidden>
Date: 2004-08-24 08:01:01

Hi,

From:           	"Patrick Huesmann" <redacted>
Unfortunately, neither of these docs talks about tailoring the kernel to
custom hardware. They only state that "some changes" have to be applied to
the startup code. I need some more specific information, because I'm not a
expert PPC guru.
I had to get up the kernel on two boards (MPC857T and MPC8280)
recently. I use the ELDK3.0 with the kernel 2.4.24 shipped with it.

I had to modify the following files:
arch/ppc/config.in
	machine type (my board) added
arch/ppc/boot/simple/embed_config.c
	there is a function emebd_config() for every board selected by
	#ifdefs; so I added one for my board
arch/ppc/platforms
	there are header files for every board; so I added one for my board
include/asm-ppc/mpc8xx.h
	#include <platforms/myboard.h> added; selected by #ifdef

This was enough to get the kernel up with a serial i/f.
It may be necessary to modify the ethernet driver a little bit to
adapt it to your pin configuration.

Flash support was no problem for the CFI chips on the boards.

I'm just a newbie too, so don't kill me if there is something missed
or wrong.

HTH,
Oliver

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help