Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yabootconfig Problem
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Jun 14, 2004 5:28 am    Post subject: Reply with quote

The previous poster forgot a little detail in his/her otherwise
very good summary. In your yaboot.conf file you also have to
change the line:
Code:
partition=3

to
Code:
partition=4

As this number is must match the partition number where your
kernel is located. From my yaboot.conf file:
Code:
## partition is the partition number where the kernel images are
## located.  The kernel images should be on your root filesystem, so
## this is usually the same partition number as your root filesystem.
## so if root = /dev/hda3 (the 3rd partition) then you should have
## partition=3  This *MUST* be set correct or yaboot won't boot!  This
## option can be either set globally as shown here, or per image in
## the image= sections

partition=8


Once you've done that it should work.
Back to top
View user's profile Send private message
simon_b
n00b
n00b


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

PostPosted: Thu Oct 28, 2004 6:35 pm    Post subject: Reply with quote

Ok i have a problem with yaboot on my PPC64 installation... this is what happens

Code:

livecd root # yabootconfig -t /mnt/gentoo
yaboot is the Linux Loader for PowerPC.  yabootconfig sets up your system to boot directly
from your hard disk, without the need for a boot CD, floppy or a network boot.
Install yaboot bootstrap on /dev/sda2 to boot Linux from /dev/sda4? [Yes] Yes
Creating a simple /mnt/gentoo/etc/yaboot.conf...
hpmount: /dev/sda5: This is not a HFS+ volume (Unknown error 18446744073709551615)
hpmount: /dev/sda7: This is not a HFS+ volume (Unknown error 18446744073709551615)
Running mkofboot to make the disk bootable...
mkofboot: Warning: `nvsetenv' could not be found, nvram will not be updated
Done

Configuration complete.  If there are no errors above you should
have a working configuration.  see man yaboot.conf if you run into
any errors.


what does nvsetenv mean? also here is a copy of the yaboot.conf file

Code:

# yaboot.conf generated by yabootconfig 1.0.7
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/sda2
device=/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:
partition=4
root=/dev/sda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/vmlinux
        label=Linux
        read-only
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Thu Oct 28, 2004 7:40 pm    Post subject: Reply with quote

Code:
< turing:~ > qpkg -f `which nvsetenv`
sys-apps/powerpc-utils *

so try to emerge powerpc-utils (I have never understood why this is not a dependency of yaboot). If your bootstrap partition is before any Mac OS partition or if you don't have Mac OS on the machine whatsoever then you can also take the easy way our and just ignore the absence of nvsetenv.

The yaboot.conf file you include should work provided you name your kernel simply vmlinux (and the system map System.map) or have appropriate symlinks in place. I tend to not so this, so my yaboot.conf include something like this:
Code:
iimage=/boot/vmlinux-2.6.9-gentoo-r1
        label=linux
        root=/dev/sda5
        sysmap=/boot/System.map-2.6.9-gentoo-r1
        read-only

(not sure whether it will work without the root= binding).
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Thu Oct 28, 2004 7:44 pm    Post subject: Reply with quote

bruda wrote:
If your bootstrap partition is before any Mac OS partition or if you don't have Mac OS on the machine whatsoever then you can also take the easy way our and just ignore the absence of nvsetenv.


But you need to zap the PRAM before being able to boot into Linux if you have Mac OS and don't want to bother with nvsetenv. Sorry for the omission.
_________________
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: Thu Oct 28, 2004 8:55 pm    Post subject: Reply with quote

bruda wrote:
bruda wrote:
If your bootstrap partition is before any Mac OS partition or if you don't have Mac OS on the machine whatsoever then you can also take the easy way our and just ignore the absence of nvsetenv.


But you need to zap the PRAM before being able to boot into Linux if you have Mac OS and don't want to bother with nvsetenv. Sorry for the omission.


how do you zap the PRAM?
Back to top
View user's profile Send private message
simon_b
n00b
n00b


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

PostPosted: Thu Oct 28, 2004 8:57 pm    Post subject: Reply with quote

bruda wrote:
Code:
< turing:~ > qpkg -f `which nvsetenv`
sys-apps/powerpc-utils *

so try to emerge powerpc-utils (I have never understood why this is not a dependency of yaboot). If your bootstrap partition is before any Mac OS partition or if you don't have Mac OS on the machine whatsoever then you can also take the easy way our and just ignore the absence of nvsetenv.

The yaboot.conf file you include should work provided you name your kernel simply vmlinux (and the system map System.map) or have appropriate symlinks in place. I tend to not so this, so my yaboot.conf include something like this:
Code:
iimage=/boot/vmlinux-2.6.9-gentoo-r1
        label=linux
        root=/dev/sda5
        sysmap=/boot/System.map-2.6.9-gentoo-r1
        read-only

(not sure whether it will work without the root= binding).


my boot strap partition is sda2 my swap sda3 and root sda4 then comes the main HFS+ panther partition and another 20 gb partition... i also didnt metion in the post before that when i reboot the machine boots straight into mac os x and doesnt even show yaboot! I will try your suggestions and let you know how it goes.
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 12:50 am    Post subject: Reply with quote

simon_b wrote:
my boot strap partition is sda2 my swap sda3 and root sda4 then comes the main HFS+ panther partition and another 20 gb partition... i also didnt metion in the post before that when i reboot the machine boots straight into mac os x and doesnt even show yaboot! I will try your suggestions and let you know how it goes.

Install powerpc-utils then and you should be in business. You can also zap the PRAM, but why.
_________________
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 5:42 am    Post subject: Reply with quote

bruda wrote:
simon_b wrote:
my boot strap partition is sda2 my swap sda3 and root sda4 then comes the main HFS+ panther partition and another 20 gb partition... i also didnt metion in the post before that when i reboot the machine boots straight into mac os x and doesnt even show yaboot! I will try your suggestions and let you know how it goes.

Install powerpc-utils then and you should be in business. You can also zap the PRAM, but why.


i cant emerge powerpc-utils! it comes up the following error when its trying to compile, what can i do?

Code:

nvsetenv.c: In function `nvpack':
nvsetenv.c:198: warning: cast from pointer to integer of different size
trackpad.c:21:29: linux/adb_mouse.h: No such file or directory
clock.c: In function `main':
clock.c:245: warning: dereferencing type-punned pointer will break strict-aliasing rules
trackpad.c: In function `main':
trackpad.c:220: warning: implicit declaration of function `strcmp'
make: *** [trackpad] Error 1
make: *** Waiting for unfinished jobs....
nwnvsetenv.c: In function `nvstore':
nwnvsetenv.c:231: warning: unsigned int format, different type arg (arg 4)

!!! ERROR: sys-apps/powerpc-utils-1.1.3-r7 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)
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 7:34 am    Post subject: Reply with quote

Well i zapped the PRAM and what do you know... it now boots 64 bit Linux :D
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 1:10 pm    Post subject: Reply with quote

There you are, who cares then about powerpc-utils. :-) (sys-apps/powerpc-utils-1.1.3-r10 by the way works fine on my machine, maybe the older version you attempted to install have problems on PPC64.) In any case, as I was saying who cares, enjoy!
_________________
Quid latine dictum sit altum videtur
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
Goto page Previous  1, 2
Page 2 of 2

 
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