Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A Gentoo newbie's 2004.0 story
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
lcs
n00b
n00b


Joined: 03 Mar 2004
Posts: 4

PostPosted: Wed Mar 03, 2004 9:21 pm    Post subject: A Gentoo newbie's 2004.0 story Reply with quote

Problems encountered while trying to install Gentoo on my stock 1.8
GHz UP G5 PowerMac:

1) The full LiveCD (install-universal-ppc-2004.0.iso) boots just fine
using the G5 kernel, but the keyboard is totally dead at the time the
login prompt appears. No matter what options I try (single, debug,
various video parameters etc), the result is the same. I had to use
the prerelease G5 LiveCD instead, which works just fine.

2) The manual is confusing to a Mac and Linux/PPC newbie like me. I
created the Apple_Bootstrap partition per the instructions. Then, in
the next chapter, I mounted this partition as /boot, which is not
really a good idea, since there is no way the kernels will fit!

3) (genkernel will not work, probably because I booted using the wrong
LiveCD. I symlinked /usr/share/genkernel/ppc/kernel-config-2.4-g5 to
kernel-config-2.4 and it started to compile).

4) genkernel failed with the error message

| /usr/bin/genkernel: line 212: /sbin/splash: No such file or directory
| * gen_die(): could not copy 800x600 bootsplash

I rerun genkernel using the --no-bootsplash switch.

5) When the time to run yabootconfig came, it did not find my kernel
(which was named /boot/kernel-2.4.24-ppc-r2), probably because of
using the wrong LiveCD. Worse, /etc/mtab was very weired:

| /dev/ROOT / xfs rw 0 0

I changed it to

| /dev/sda6 / ext3 rw 0 0

which seemed to be more appropriate (since / is an ext3 partition
located on /dev/sda6!) Not that it helped ...

| yabootconfig: Unable to determine OpenFirmware device name to
| /dev/sda, aborting ...

6) While instead trying to update /etc/yaboot.conf manually, I notice
that ofboot /dev/sda results in

| ofpath: /dev/sda: Device not configured

Oh well. I guessed "hd:" for the device parameter and filled in the
rest. Needless to say, mkofboot did not work either, so I don't know
why I bothered.

7) After finishing the rest of the installation, I rebooted using the
LiveCD and booted linux using "hd:6,/boot/kernel-2.4.24-ppc-r2" at the
yaboot prompt. I logged in and tried to rerun yabootconfig. I had more
luck this time, but the kernel was still not auto-detected and

| hpmount: /dev/sda3: This is not a HFS+ volume (Unknown error 4294967295)

does not sound quite right, so I added "macosx=/dev/sda3" to
/etc/yaboot.conf, executed "ybin -v", said a short prayer and
rebooted.

Hey. It can boot into Linux!

Unfortunately, with no working network. Adding
"initrd=/boot/initrd-2.4.24-ppc-r2" to /etc/yaboot.conf just makes the
kernel hang at

| Gentoo initrd startup...
| STEP 1: Command-line parsing
| STEP 2: Module loading
| STEP 3: Mounting necessary filesystems per boot options
| Started device management daemon v1.3.25 for /dev

And not too surprisingly, I can no longer boot MacOSX. Pressing 'x' in
the yaboot menu just displays some funny colors and hangs the
computer. Thanks God for the OSX CDs.

But I'm almost there now. Time to rebuild the kernel once again, I
think.
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Wed Mar 03, 2004 9:50 pm    Post subject: Reply with quote

the apple_bootstrap partition is a special partition which you create and then never do anything with. (yaboot gets installed there I think).

your /boot directory should either live in the partition that your / directory is in, or you can make a separate partition for it (which is what I do, see the link in my signature for my partition layout)
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
lcs
n00b
n00b


Joined: 03 Mar 2004
Posts: 4

PostPosted: Wed Mar 03, 2004 10:03 pm    Post subject: Reply with quote

zojas wrote:
the apple_bootstrap partition is a special partition which you create and then never do anything with. (yaboot gets installed there I think).

your /boot directory should either live in the partition that your / directory is in, or you can make a separate partition for it (which is what I do, see the link in my signature for my partition layout)


Yeah, I know that now. I just think the documentation was not very clear about this. First, the PPC-specific chapter talks about creating two filesystem partitions+swap, then the netx, generic, chapter has an example where two partitions are mounted on /mnt/gentoo and /mnt/gentoo/boot ...
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Thu Mar 04, 2004 7:04 pm    Post subject: Re: A Gentoo newbie's 2004.0 story Reply with quote

lcs wrote:
Problems encountered while trying to install Gentoo on my stock 1.8
GHz UP G5 PowerMac:

1) The full LiveCD (install-universal-ppc-2004.0.iso) boots just fine
using the G5 kernel, but the keyboard is totally dead at the time the
login prompt appears. No matter what options I try (single, debug,
various video parameters etc), the result is the same. I had to use
the prerelease G5 LiveCD instead, which works just fine.


Are you using a bluetooth keyboard?

lcs wrote:

2) The manual is confusing to a Mac and Linux/PPC newbie like me. I
created the Apple_Bootstrap partition per the instructions. Then, in
the next chapter, I mounted this partition as /boot, which is not
really a good idea, since there is no way the kernels will fit!


Have forwarded this to the documentation team.

Quote:

3) (genkernel will not work, probably because I booted using the wrong
LiveCD. I symlinked /usr/share/genkernel/ppc/kernel-config-2.4-g5 to
kernel-config-2.4 and it started to compile).


The best way to build a kernel right now is to:

emerge genkernel
emerge ppc-development-sources
cp /usr/share/genkernel/<a_good_config> /usr/src/linux/.config
cd /usr/src/linux
make dep clean vmlinux modules modules_install
mount /boot
cp vmlinux /boot

Quote:

4) genkernel failed with the error message

| /usr/bin/genkernel: line 212: /sbin/splash: No such file or directory
| * gen_die(): could not copy 800x600 bootsplash

I rerun genkernel using the --no-bootsplash switch.


genkernel should disabled bootsplash per default on ppc until somebody ports it to ppc. forwarded to the genkernel maintainer

Quote:

5) When the time to run yabootconfig came, it did not find my kernel
(which was named /boot/kernel-2.4.24-ppc-r2), probably because of
using the wrong LiveCD. Worse, /etc/mtab was very weired:

| /dev/ROOT / xfs rw 0 0

I changed it to

| /dev/sda6 / ext3 rw 0 0

which seemed to be more appropriate (since / is an ext3 partition
located on /dev/sda6!) Not that it helped ...


The configuration of fstab should be described in the manual.

Quote:

| yabootconfig: Unable to determine OpenFirmware device name to
| /dev/sda, aborting ...


The section about configuring yaboot on a G5 found in this document:
http://www.os3.nl/~visser2d/g5install.html
should be added to the ppc specific parts in the handbook.


Quote:

6) While instead trying to update /etc/yaboot.conf manually, I notice
that ofboot /dev/sda results in

| ofpath: /dev/sda: Device not configured

Oh well. I guessed "hd:" for the device parameter and filled in the
rest. Needless to say, mkofboot did not work either, so I don't know
why I bothered.


See that manual

Quote:

7) After finishing the rest of the installation, I rebooted using the
LiveCD and booted linux using "hd:6,/boot/kernel-2.4.24-ppc-r2" at the
yaboot prompt. I logged in and tried to rerun yabootconfig. I had more
luck this time, but the kernel was still not auto-detected and

| hpmount: /dev/sda3: This is not a HFS+ volume (Unknown error 4294967295)

does not sound quite right, so I added "macosx=/dev/sda3" to
/etc/yaboot.conf, executed "ybin -v", said a short prayer and
rebooted.

Hey. It can boot into Linux!

Unfortunately, with no working network. Adding
"initrd=/boot/initrd-2.4.24-ppc-r2" to /etc/yaboot.conf just makes the
kernel hang at

| Gentoo initrd startup...
| STEP 1: Command-line parsing
| STEP 2: Module loading
| STEP 3: Mounting necessary filesystems per boot options
| Started device management daemon v1.3.25 for /dev


That is a genkernel bug. Note for the genkernel developer:
can be solved by defaulting to the busybox devfsd instead of building your own. Imho devfsd is not needed for mounting a cd.

Thanks for trying Gentoo/ppc!

Pieter
Back to top
View user's profile Send private message
lcs
n00b
n00b


Joined: 03 Mar 2004
Posts: 4

PostPosted: Sat Mar 06, 2004 12:36 am    Post subject: Re: A Gentoo newbie's 2004.0 story Reply with quote

pvdabeel wrote:
lcs wrote:
1) The full LiveCD (install-universal-ppc-2004.0.iso) boots just fine
using the G5 kernel, but the keyboard is totally dead at the time the
login prompt appears. No matter what options I try (single, debug,
various video parameters etc), the result is the same. I had to use
the prerelease G5 LiveCD instead, which works just fine.


Are you using a bluetooth keyboard?


No, it's the standard USB keyboard.

pvdabeel wrote:
The best way to build a kernel right now is to:

emerge genkernel
emerge ppc-development-sources
cp /usr/share/genkernel/<a_good_config> /usr/src/linux/.config
cd /usr/src/linux
make dep clean vmlinux modules modules_install
mount /boot
cp vmlinux /boot


No, that did not work, but thanks for the hints! (Whenever I try to build a 2.6 kernel, it hangs even before the first line of text from the kernel is printed on-screen.)

However, using ppc-sources-dev (or was it ppc-sources) and backporting the sungem driver from 2.6, I now have a working kernel with network support. Whee! :D Not gigabit though, but it's ok for now.

Quote:
Thanks for trying Gentoo/ppc!

Pieter


My pleasure ... :wink:

Hmm how do I make X to work with the Geforce FX 5200? I tried the 'nv' driver, but my Cinema Display just went black and the power led started to blink. Didn't crash though, unlike the VGA driver which locked up the machine completly.
Back to top
View user's profile Send private message
lcs
n00b
n00b


Joined: 03 Mar 2004
Posts: 4

PostPosted: Sat Mar 06, 2004 12:47 am    Post subject: Re: A Gentoo newbie's 2004.0 story Reply with quote

lcs wrote:
Hmm how do I make X to work with the Geforce FX 5200? I tried the 'nv' driver, but my Cinema Display just went black and the power led started to blink. Didn't crash though, unlike the VGA driver which locked up the machine completly.


Never mind. I found the FlatPanel option.
Back to top
View user's profile Send private message
lich
n00b
n00b


Joined: 04 Mar 2004
Posts: 4

PostPosted: Sat Mar 06, 2004 7:58 am    Post subject: Re: A Gentoo newbie's 2004.0 story Reply with quote

Quote:


Unfortunately, with no working network. Adding
"initrd=/boot/initrd-2.4.24-ppc-r2" to /etc/yaboot.conf just makes the
kernel hang at
Quote:

| Gentoo initrd startup...
| STEP 1: Command-line parsing
| STEP 2: Module loading
| STEP 3: Mounting necessary filesystems per boot options
| Started device management daemon v1.3.25 for /dev


That is a genkernel bug. Note for the genkernel developer:
can be solved by defaulting to the busybox devfsd instead of building your own. Imho devfsd is not needed for mounting a cd.

Thanks for trying Gentoo/ppc!

Pieter


I am experiencing the same problem on a G4 with kernel 2.6.3.
Can you develop the solution please ?
what is this busybox devfsd ??
I didn't know busybox included a dev fs daemon ? do you mean busybox's 'init' command ????
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Apr 02, 2004 5:48 pm    Post subject: Reply with quote

I'm trying to do the following steps

Quote:

emerge genkernel
emerge ppc-development-sources
cp /usr/share/genkernel/<a_good_config> /usr/src/linux/.config
cd /usr/src/linux
make dep clean vmlinux modules modules_install
mount /boot
cp vmlinux /boot


for a stage3 2004.0 (netless) CD1 install.
I've chrooted and trying to do

Quote:

emerge genkernel


but it keeps going to the internet to download
the relevant package (http:// ... /distfiles/genkernel.3.0.rc1.tar.bz2) which does not exist in my /usr/portage/distfiles.

I have missed something?

I suppose I must do this "emerge genkernel" to get a workable config?

By the way I did OK
Quote:

emerge ppc-development-sources


FYI, I have a powermac g5 dual 1.8.
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Fri Apr 02, 2004 5:52 pm    Post subject: Reply with quote

did you copy the distfiles from the cd to /usr/portage/distfiles ?
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Apr 02, 2004 6:05 pm    Post subject: Reply with quote

Quote:

did you copy the distfiles from the cd to /usr/portage/distfiles ?


Yes I did that as instructed in step 5e of the ppc manual i.e I did:
Quote:

# mkdir /mnt/gentoo/usr/portage/distfiles
# cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/


This is my first try at gentoo and I not sure perhaps I can how mount the cd again to see if genkernel is actually on the cd?
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Apr 02, 2004 6:27 pm    Post subject: Reply with quote

Update: I asked

Quote:
how mount the cd again to see if genkernel is actually on the cd?


I just did cntl alt F2 on the apple keyboard
and logged in as root (no password was needed since I did not set one yet!)

I then looked under /mnt/cdrom and could not find any genkernel type packages (I did
du -a | grep genk)
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Sat Apr 03, 2004 3:35 pm    Post subject: Reply with quote

du just tells you the sizes. to look for things based on filename, try this:

Code:

find . -type f |grep genk


I suspect its source code isn't on the cd, but that find command will tell you for sure.

be sure to add the -k flag to emerge to tell it to use any available binary packages first
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Apr 03, 2004 6:45 pm    Post subject: A Gentoo newbie's 2004.0 story, G5 config file need Reply with quote

Update again!

I got to the end of the stage3 netless install.
But the kernel hung when I booted into (os x booted ok , so my yaboot.conf seems ok :-).

I skipped the emerge genkernel, I don't know if this is important, any ideas anybody?
By the way this emerge kernel not working is also on other gentoo forums but no solution.

I looked at YDL 2.6.1 config file and tried to recompile (the 2.6.3) but the kernel again hangs at
Quote:

mice: PS/2 mouse device common for all mice


I tried a 3rd time (by comparing again to the YDL config) but the same error message.

OK, what should I do now? Does anybody think that I could now perhaps get onto the net and do a emerge -uD system to see if that helps?
Maybe it's worth someone posting their working .config file for the powermac G5?
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Apr 03, 2004 7:01 pm    Post subject: Reply with quote

Quote:
Does anybody think that I could now perhaps get onto the net and do a emerge -uD system to see if that helps?


Sorry ignore my above query since it would only work on a working system (which I have not since the kernel won't boot)
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Tue Apr 06, 2004 4:11 pm    Post subject: Reply with quote

I started a new thread in which I get some progress. It's titled "My Powermac G5 2004.0 install problems so far ... "
i.e https://forums.gentoo.org/viewtopic.php?t=157765

Sorry for not doing it in the first place.
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