Compiling a kernel for the cube (was: Re: Gc-linux-devel digest, Vol 1 #4 - 12 msgs)

Samuli Tuomola <[email protected]>
Newsgroups gmane.linux.ports.game-cube.devel
Message-ID <[email protected]>
[email protected] wrote:
> 
> Heh, thanks :) I've just updated it, and diffs's are uploading as we
> speak. Give em 5 min and they'll be up..
> -Alan

Oh, hey thanks, didn't notice this post at first. Yep, seems to apply 
with few offsets to 2.6.1 also, except for one Makefile, but that's 
trivial just need to copy the image offsets in place by hand. Thanks, 
great work :), is there something particular that you'll continuing the 
work with?

To anyone who wants to try this but is not familiar with linux kernel or 
just wants a jumpstart, make sure you have devkitcube crosscompiler from 
http://heliscar.com/greg/ (there's one with better build environment and 
couple of samples at http://www.hangar-eleven.de/en/) and that shell is 
able to find it (export PATH=/usr/local/devkitcube/bin:$PATH).
Then go to your kernel tree, do "make mrproper; patch -p1 
<../patchfile.diff" (fix arch/ppc/boot/simple/Makefile according to 
Makefile.rej if you're using 2.6.1), do the "powerpc-eabi-elf-gcc -r -o 
built-in.o *[^w].c" in arch/ppc/cube/mygcn as Alan says on his webpage, 
then back to kernel root, "cp .config2 .config; make menuconfig", save 
and "make", if you want a .dol to run on the cube, do 
"powerpc-eabi-elf-objcopy -O binary zImage.elf zImage.elf.dol" in 
arch/ppc/boot/images/, good luck :).

-stt



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.