Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install on DP1.8 G5 powermac using ppc64 2004.3beta live cd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
sivad
n00b
n00b


Joined: 09 Sep 2004
Posts: 19
Location: State College, PA

PostPosted: Fri Oct 29, 2004 5:08 pm    Post subject: install on DP1.8 G5 powermac using ppc64 2004.3beta live cd Reply with quote

I have been working on installing gentoo ppc64 on my DP1.8 G5 powermac using the recently released 2004.3 live cd (http://dev.gentoo.org/~tgall). It is the first live cd that I have found that will boot my computer. I installed using the stage3 tarball and portage snapshot listed under 2004.3 stages. On the site it warns against emerge sync, so I didn't. The problem that I am running into is that the live CD uses kernel from gentoo-dev-sources 2.6.9-r1 while the portage snapshot has only 2.6.8-r3 as most recent. I went ahead and used 2.6.8-r3 with the default config and of course my computer hangs at boot just like on 2004.2 live CD.

I can install 2.6.9-r1 by using ~ppc64 and emerge sync, but I am afraid to do so because of warning against it during install. So how can I compile a 2.6.9-r1 kernel that matches that of the 2004.3 live cd to fix my system. Can I:

1) use emerge sync and live with any unwanted consequences?
2) manually download 2.6.9-r1 sources and find the 'live CD' config file somewhere else?
3) find and manually download e-build for 2.6.9-r1 and use it with emerge without updating portage
4) use emerge to only update the gentoo-dev-sources
5) something else?

Any help/suggestions would be greatly appreciated. I apologize for not using irc but I have never done so (and am lazy at the moment).

-sivad
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Fri Oct 29, 2004 5:50 pm    Post subject: Reply with quote

The portage version of 2.6.9-r1 works well for me, even if it is in ~ppc64. It is the first kernel that does not oops when plugging my UPS (an APC BX 1000), so it is the first kernel that allows me to use apcupsd (now if I could only find a way to convince my G5 to power on automatically once the power is restored... :roll:). To unmask it, edit /etc/portage/package.keywords (create it if necessary) and insert the line:
Code:
sys-kernel/gentoo-dev-sources -* ~ppc64

and then emerge gentoo-dev-sources.

As for a config, you could start from mine. It is for a dual 2GHz G5 (PowerMac7,2).

Hope this helps,
Stefan
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
simon_b
n00b
n00b


Joined: 03 Jun 2004
Posts: 46
Location: Hamilton, NZ

PostPosted: Fri Oct 29, 2004 9:01 pm    Post subject: Reply with quote

thats strange... i've had no problems with the kernel at all and i used the config file from the ppc64 ftp site, the only problems im having is stuff like xfree not wanting to compile.
Back to top
View user's profile Send private message
sivad
n00b
n00b


Joined: 09 Sep 2004
Posts: 19
Location: State College, PA

PostPosted: Fri Oct 29, 2004 9:09 pm    Post subject: that most definitely helped Reply with quote

Stefan,

Thanks for the help. I tried the following:
1) created the /etc/portage/package.keywords file as you suggested
2) flailed around on lynx until I figured out how to manually download the ebuild for 2.6.9-r1 and placed it under /usr/portage/sys-kernel/gentoo-dev-sources.
3) after getting a very helpfull error message after running "emerge gentoo-dev-sources" I typed "ebuild gentoo-dev-sources-r1.ebuild digest"
and again "emerge gentoo-dev-sources".
4) compiled with supplied configuration file ( from arch/) for g5, reboot, momentarily saw the double tux's and then the screen went blank.
5) recompiled the kernel after downloading your configuration file (with no changes) and booted the image successfully. I don't have time to test anything until next week but the only obvious problem from using your configuration file is that the fans are not being controlled. I hope it will be easy to figure out how to fix this by adjusting the configuration.

Thanks again for your help.

-Todd
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Oct 30, 2004 2:36 am    Post subject: Reply with quote

That's strange, my fans are alright. But then you have a newer machine, this could make the difference. I have unfortunately no sugestion on the matter. Good luck!
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
modorf
n00b
n00b


Joined: 02 Nov 2004
Posts: 1

PostPosted: Tue Nov 02, 2004 9:04 pm    Post subject: Reply with quote

This is what I did to get my system working with heat management.
Booted with live cd 2004.3 beta1 - stage 1, portage image 20041020

I DID NOT do an emerg sync -- That downloads old portage image

emerge gentoo-dev sources
downloaded the .config file from the ftp site
make menuconfig and

Building a kernel
Device Drivers\macintosh device drivers\support for thermal Management on PowerMac G5

The main gentoo user manual should for the most part be correct. When you get to building a kernel tho, that's where things are a bit different. You'll want to emerge gentoo-dev-sources and build those. For the config use the defaults in arch/ppc64/configs with devfs and automount for devfs or get the right config from ftp.linuxppc64.org/pub/people/tgall/gentoo-ppc64
yaboot-static

Ok first you emerge yaboot-static. NOT yaboot. This is important.

If you are mac user, everything is the same as ppc32 system as far as their yaboot is concerned.

-----------
mac-linux ~ # uname -a
Linux mac-linux 2.6.9 #1 SMP Wed Oct 27 17:42:45 EDT 2004 ppc64 PPC970FX, altivec supported PowerMac7,3 GNU/Linux

mac-linux ~ # cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2500.000000MHz
revision : 3.0

processor : 1
cpu : PPC970FX, altivec supported
clock : 2500.000000MHz
revision : 3.0

timebase : 33333333
machine : PowerMac7,3
motherboard : PowerMac7,3 MacRISC4 Power Macintosh
detected as : 336 (PowerMac G5)
pmac flags : 00000000
pmac-generation : NewWorld
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Wed Nov 03, 2004 4:55 pm    Post subject: Reply with quote

the livecd beta3 seem to have a nice patch already applied. indeed the newer powermac 7,3 need a fixed therm_pm72 module. the patch is found on several kernel cvs-commit mailing list archives. unfortunately i think it is patched against cvs version of the kernel. i cured myself by using the 2.6.10-rc1-mm sources which include these patches.

you can check the changelog of the drvers/macintosh/therm_pm72.c file:
Code:
 *  Oct. 20, 2004 : 1.1
 *      - Add device-tree lookup for fan IDs, should detect liquid cooling
 *        pumps when present
 *      - Enable driver for PowerMac7,3 machines
 *      - Split the U3/Backside cooling on U3 & U3H versions as Darwin does
 *      - Add new CPU cooling algorithm for machines with liquid cooling
 *      - Workaround for some PowerMac7,3 with empty "fan" node in the devtree
 *      - Fix a signed/unsigned compare issue in some PID loops


on another note:
i think emerge sync is safe. it was just that, the devs changed a lot of stuff for the ebuilds which have not been added to cvs immediatly. a couple of days have passed now since beta3 so i guess the critical updates should have found their way int the cvs.

yet another addition:
simon_b still having problem emerge xfree/xorg? i think this is related to the beta3. it installs 2.6 kernel headers instead of the 2.4. there are problems compiling some programs with that version like gpm for example. try emerging the 2.4 headers and recompile.
Back to top
View user's profile Send private message
sivad
n00b
n00b


Joined: 09 Sep 2004
Posts: 19
Location: State College, PA

PostPosted: Wed Nov 03, 2004 6:06 pm    Post subject: Reply with quote

On the live-cd my fans are recognized by "PowerMac G5 thermal control driver 1.1b3". I tried to download the patch and apply it to gentoo-dev-sources-2.6.9-r1 but not really knowing what I was doing I wasn't able to make it work.

Tuna - From your post do I understand that you emerged "mm-sources" and did a manual configuration? If so, since it it not listed as available for ppc64 how do you emerge mm-sources?

Also, how long do you think it will be before the 2.6.10 tree will be available in gentoo-dev-sources?

thanks for your post.
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Thu Nov 04, 2004 10:11 am    Post subject: Reply with quote

yes the ebuilds lack support for ppc64. i think i just hacked the ebuild and added ppc64 or ~ppc64 to the ebuild's KEYWORDS manually. this may not be the correct way but it gets your kernel installed and that was the important for me.

every kernel comes with a nice preconfigured kernel config for g5. just copy arch/ppc64/configs/g5_defconfig to your .config file and start configuring additional things with make menuconfig. enable devfs if your not going with udev.. enable addiditonal scsi controller etc..

cant say how long 2.6.10 will take to get in gentoo-dev-sources. 2.6.10 should be released first and we are just at rc1. so expect 2.6.10 to take a few weeks from today or even longer. and then some time until someone patches the gentoo stuff in it.. test it.. and put in in cvs.. .. .
Back to top
View user's profile Send private message
sivad
n00b
n00b


Joined: 09 Sep 2004
Posts: 19
Location: State College, PA

PostPosted: Thu Nov 04, 2004 6:33 pm    Post subject: Reply with quote

Thanks Tuna. I followed your advice
and now have fan control.

I now am having usb difficulties. I
had trackball->keyboard->monitor->
computer working fine with liveCD or
2.6.9-r1 kernel. Now I can only use
keyboard by unplugging trackball and
plugging directly into the computer.
Annoying, but much better than those
fans at full speed!
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Fri Nov 05, 2004 9:53 am    Post subject: Reply with quote

yes i know what you mean. that is maybe a missing kernel option or bug. as i use this machine as a server i dont really care. you dont even have to unplug your devices.. you just have to wait a minute or so and the devices are online. it seems some devices get initialized post boot. maybe you want to fill a bug at bugs.gentoo.org the devs are really helpfull in the ppc64 section :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum