All times are UTC-06:00




Post new topic  Reply to topic  [ 40 posts ] 
Author Message
 Post subject: how to build kernel
PostPosted: Thu Aug 02, 2007 2:12 pm 
Offline

Joined: Thu Aug 02, 2007 12:56 pm
Posts: 9
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?


Top
   
 Post subject:
PostPosted: Thu Aug 02, 2007 2:26 pm 
Offline

Joined: Mon Mar 27, 2006 12:16 pm
Posts: 79
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.


Top
   
 Post subject:
PostPosted: Thu Aug 02, 2007 9:07 pm 
Offline

Joined: Thu Aug 02, 2007 12:56 pm
Posts: 9
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.


Top
   
 Post subject:
PostPosted: Fri Aug 03, 2007 8:50 am 
Offline

Joined: Thu Aug 02, 2007 12:56 pm
Posts: 9
BTW. Is the vmlinux, located in the top directory after kernel build, the one to give to OF to boot?


Top
   
 Post subject:
PostPosted: Fri Aug 03, 2007 9:26 am 
Offline

Joined: Mon Mar 27, 2006 12:16 pm
Posts: 79
no, you want zImage.chrp in arch/powerpc/boot


Top
   
 Post subject:
PostPosted: Sat Aug 04, 2007 8:34 am 
Offline

Joined: Thu Aug 02, 2007 12:56 pm
Posts: 9
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 :!:


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 4:49 am 
Offline

Joined: Mon Nov 19, 2007 5:22 pm
Posts: 12
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


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 5:12 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
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.

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 8:47 am 
Offline

Joined: Mon Mar 27, 2006 12:16 pm
Posts: 79
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.


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 10:05 am 
Offline

Joined: Mon Nov 19, 2007 5:22 pm
Posts: 12
does that mean, that i could use vanilia 2.6.24? or are there still some patches needed? thx for all your help!


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 10:52 am 
Offline

Joined: Mon Mar 27, 2006 12:16 pm
Posts: 79
yes and yes :P

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


Top
   
 Post subject:
PostPosted: Wed Nov 21, 2007 2:30 pm 
Offline

Joined: Mon Nov 19, 2007 5:22 pm
Posts: 12
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


Top
   
 Post subject:
PostPosted: Wed Nov 21, 2007 2:35 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
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

_________________
Matt Sealey


Last edited by Neko on Wed Nov 21, 2007 2:37 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Nov 21, 2007 2:36 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
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"?

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Fri Nov 23, 2007 1:14 pm 
Offline

Joined: Mon Nov 19, 2007 5:22 pm
Posts: 12
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 40 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group