Power Developer
https://powerdeveloper.org/forums/

how to build kernel
https://powerdeveloper.org/forums/viewtopic.php?f=8&t=1339
Page 1 of 3

Author:  teme [ Thu Aug 02, 2007 2:12 pm ]
Post subject:  how to build kernel

I quess this is quite basic question but I haven't been able to build functional Linux kernel for Efika.

First of all, I installed crosstool-0.43 and build environment demo-powerpc-603 (gcc-4.1.0-glibc-2.3.6).

Then I compiled efika kernel sources + configs, which I downloaded from www.efika.de and tried to boot the kernel via tftp. However it seems not to start.

The command for OF:

boot efika/vmlinux console=ttyPSC0,115200 ip=dhcp panic=3 root=/dev/nfs

After that command, I see that OF tries to download the kernel by looking tftp server logs but I get no other printouts from OF.

The prebuild kernel from efika.de works.

Could somebody explain to me step by step how to get functional kernel?

Author:  nixnut [ Thu Aug 02, 2007 2:26 pm ]
Post subject: 

Which efika kernel sources are you using? The 2.6.22-r1 from the efika overlay? If you are you can use my config as a starting point. There's also a prebuild kernel available.

Author:  teme [ Thu Aug 02, 2007 9:07 pm ]
Post subject: 

Quote:
Which efika kernel sources are you using? The 2.6.22-r1 from the efika overlay? If you are you can use my config as a starting point. There's also a prebuild kernel available.
Well my sources are directly from www.efika.de website. Version is linux-2.6.19-rc6_efika. I have downloaded also prebuild kernel from the same site and it seems to be working.

Author:  teme [ Fri Aug 03, 2007 8:50 am ]
Post subject: 

BTW. Is the vmlinux, located in the top directory after kernel build, the one to give to OF to boot?

Author:  nixnut [ Fri Aug 03, 2007 9:26 am ]
Post subject: 

no, you want zImage.chrp in arch/powerpc/boot

Author:  teme [ Sat Aug 04, 2007 8:34 am ]
Post subject: 

Quote:
no, you want zImage.chrp in arch/powerpc/boot
Oh, that did the trick! Feeling stupid :oops:

Anyhow studying continues... Thanks for your help :!:

Author:  h4nnib4l [ Tue Nov 20, 2007 4:49 am ]
Post subject: 

hello all!
I installed gentoo on my efika with kernels from the net (the bplan one)

I only need the net-port, the ata controller and the PCI slot (for a card of my choise) and the possiblity to complie new kernels...

so i downloaded a vanilia 2.6.23.8, after a few tests it boots and serrial terminal and ata where working fine. but right now iam not able to use the onboard net port or any PCI card (i liked to use a 2nd net card)
i have done it this way.
make pmac32_defconfig
make menuconfig
make

what must i do to use onboard net and a PCI card? Iam not a pro... but i think about to make a diff with the sources from bplan (2.6.19...) and with the vanilia to find out what to do

Author:  Neko [ Tue Nov 20, 2007 5:12 am ]
Post subject: 

Quote:
i have done it this way.
make pmac32_defconfig
make menuconfig
make

what must i do to use onboard net and a PCI card?
Don't configure it for a powermac.

You need efika-sources from the Gentoo Portage to get the right patches. It includes a config that works, you can look here for all the information and archives you need that aren't in Portage.

Author:  nixnut [ Tue Nov 20, 2007 8:47 am ]
Post subject: 

If you're going to use stuff from my overlay, stick with 2.6.22. There's a networking problem with my 2.6.23 patch set (at least I can't get the nic to actually do something useful). You could try the latest vanilla 2.6.24_rc3 kernel. Most of the patches for efika have been merged in it. Only sound is still missing I think.

Author:  h4nnib4l [ Tue Nov 20, 2007 10:05 am ]
Post subject: 

does that mean, that i could use vanilia 2.6.24? or are there still some patches needed? thx for all your help!

Author:  nixnut [ Tue Nov 20, 2007 10:52 am ]
Post subject: 

yes and yes :P

As I said, as far as I know only sound isn't in 2.6.24 yet.

Author:  h4nnib4l [ Wed Nov 21, 2007 2:30 pm ]
Post subject: 

thx for quick and good help!
now i used 2.6.23 + patch-2.6.24-rc3.
make menuconfig
make
but still got a litle problem:

WRAP arch/powerpc/boot/cuImage.52xx
/usr/src/linux-2.6.23/arch/powerpc/boot/wrapper: line 257: mkimage: command not found
make[1]: *** [arch/powerpc/boot/cuImage.52xx] Error 127
make: *** [zImage] Error 2

but i try to solve it... maybe just a little thing

Author:  Neko [ Wed Nov 21, 2007 2:35 pm ]
Post subject: 

Quote:
If you're going to use stuff from my overlay, stick with 2.6.22. There's a networking problem with my 2.6.23 patch set (at least I can't get the nic to actually do something useful). You could try the latest vanilla 2.6.24_rc3 kernel. Most of the patches for efika have been merged in it. Only sound is still missing I think.
You need the efika.forth Firmware patch to successfully use the new ethernet driver.

http://www.powerdeveloper.org/platforms ... devicetree

Author:  Neko [ Wed Nov 21, 2007 2:36 pm ]
Post subject: 

Quote:
thx for quick and good help!
now i used 2.6.23 + patch-2.6.24-rc3.
make menuconfig
make
but still got a litle problem:

WRAP arch/powerpc/boot/cuImage.52xx
/usr/src/linux-2.6.23/arch/powerpc/boot/wrapper: line 257: mkimage: command not found
make[1]: *** [arch/powerpc/boot/cuImage.52xx] Error 127
make: *** [zImage] Error 2

but i try to solve it... maybe just a little thing
Don't build for 52xx, try "make zImage.chrp" or "make zImage"?

Author:  h4nnib4l [ Fri Nov 23, 2007 1:14 pm ]
Post subject: 

smal board, great support & comunity ;)

i used efika.forth and "make zImage"

booting is possible but the onboard net and the one i pluged into pci is not working... but i will try to modify the kernel... i hope i just overseen something during config.

Page 1 of 3 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/