View previous topic :: View next topic |
Author |
Message |
hare n00b
Joined: 30 Apr 2004 Posts: 28
|
Posted: Sun Sep 25, 2005 10:19 am Post subject: [Solved] emerge problem with yaboot |
|
|
hi,
after the stage1 installation of gentoo 2005.1 on a PPC RS6000 IBM machine,
i get problems with emerge yaboot now.
The list is very long before emerge break down.
For example:
fs_of.c:(.text+0x184): undefined reference to '.strncpy'
fs_ext2.c:(.text+0xe8): undefined reference to '.strncpy'
malloc.c:(.text+0x244): undefined reference to '.strnlen'
fs_reiserfs.c:(.text+0xe8): undefined reference to '.strncpy'
!!! ERROR: sys-boot/yaboot-1.3.12-r1 failed
My make.conf looks like this in a short overview:
CFLAGS="-O2 -pipe -mcpu=power3"
CXXFLAGS="powerpc64-unknown-linux-gnu"
MAKEOPTS="-J2"
Do you have an idea ?
Thank you and
best regards
hare
Last edited by hare on Mon Sep 26, 2005 6:33 pm; edited 1 time in total |
|
Back to top |
|
|
patxurrin n00b
Joined: 28 Oct 2004 Posts: 15
|
Posted: Sun Sep 25, 2005 10:39 am Post subject: |
|
|
Try yaboot-static. |
|
Back to top |
|
|
hare n00b
Joined: 30 Apr 2004 Posts: 28
|
Posted: Sun Sep 25, 2005 3:43 pm Post subject: |
|
|
patxurrin wrote: | Try yaboot-static. |
Thank you,
but now after using mkofboot i've got the error: Error in /etc/yaboot.conf: 'magicboot' scripts cannot be used with fstype=raw
My partition-table is:
/dev/sda1 = PPC PRep Boot
/dev/sda2 = ext2 (boot)
/dev/sda3 = ext3 (root)
/dev/sda4 = swap
regards
hare |
|
Back to top |
|
|
patxurrin n00b
Joined: 28 Oct 2004 Posts: 15
|
Posted: Mon Sep 26, 2005 11:13 am Post subject: |
|
|
My yaboot.conf is:
## Change `unconfigured' to your bootstrap partition eg: /dev/hda2
boot=/dev/sdb4
## device is the OpenFirmware device path to the disk containing
## kernel images. if your disk is /dev/hda you can find the
## OpenFirmware path by running the command: ofpath /dev/hda DO NOT
## specify a partition number for this! On IBM hardware you can
device=sd1:
## partition is the partition number where the kernel images are
## located.
partition=6
## delay is the amount of time in seconds the dual boot menu (if one
## is configured, by the presense of macos, macosx, etc options here)
## will wait before choosing the default OS (GNU/Linux or the value of
## defaultos=). If you omit this then the value of timeout=
## (converted to seconds) will be used.
delay=10
## timeout is the amount of time in tenths of a second that yaboot
## will wait before booting the default kernel image (the first image=
## section in this config file or the value of default=).
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
## Change the default colors, fgcolor is the text color, bgcolor is
## the screen background color. (default: fgcolor=white, bgcolor=black)
#fgcolor=black
#bgcolor=green
## Password supplied in plaintext, required for yaboot to boot, unless
## restricted is also present (see below). Be sure to
## chmod 600 /etc/yaboot.conf if you set this!
#password=secret
## Password supplied as an md5 hash, see above
#password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/
## A password is only required to boot an image specified here if
## parameters are specified on the command line or if the user enters
## an image is not specified in the configuration file at all (ie.
## arbitrary file load). restricted can also be placed in an image
## section in that case any image not including the restricted keyword
## will be fully password protected.
#restricted
ofboot=sd1:4
image=/boot/vmlinux
label=Linux
sysmap=/boot/System.map
root=/dev/sdb6
read-only
append="video=radeonfb:1680x1050@60"
enableofboot
enablecdboot
macosx=sd0:3
#### The firts Serial ATA device is sd0
#### The second SATA device is sd1
#### Also enable ofboot . It is on partition 4 off second SATA disk= sd1:4
### On my G5 ist not neccesary a separate boot parttion.
My fstab is:
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime1 2
/dev/sdb6 / ext3 noatime 1 1
/dev/sdb5 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noe |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Mon Sep 26, 2005 1:21 pm Post subject: |
|
|
What kind of RS/6k is this? On PReP machines, there is no need to use yaboot, it should boot straight from the firmware. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
hare n00b
Joined: 30 Apr 2004 Posts: 28
|
Posted: Mon Sep 26, 2005 4:18 pm Post subject: |
|
|
Thank you
@JoseJX: My RS/6000 is a 44p-170. And i think with yaboot it is easier to work with different kernels ?!
@patxurrin: I have tried some configurations to find a solution. But i cannot install yaboot on the bootstrap partiiton.
Only the error message is my success.
1. I created the partition with the type 0x41.
2. mount -o bind /dev /mnt/gentoo/dev
3. mount -t proc none /mnt/gentoo/proc
4. mount /dev/sda3 /mnt/gentoo
5. mount /dev/sda2 /mnt/gentoo/boot
6. chroot /mnt/gentoo /bin/bash
7. /usr/sbin/env-update && source /etc/profile
8 mkofboot -v or mkofboot -b /dev/sda1 -v
9. Error in /etc/yaboot.conf: 'magicboot' scripts cannot be used with fstype=raw
My last yaboot.conf is:
## Change `unconfigured' to your bootstrap partition eg: /dev/hda2
boot=/dev/sda1
## device is the OpenFirmware device path to the disk containing
## kernel images. if your disk is /dev/hda you can find the
## OpenFirmware path by running the command: ofpath /dev/hda DO NOT
## specify a partition number for this! On IBM hardware you can
#device=sd1:
## partition is the partition number where the kernel images are
## located.
partition=2
## delay is the amount of time in seconds the dual boot menu (if one
## is configured, by the presense of macos, macosx, etc options here)
## will wait before choosing the default OS (GNU/Linux or the value of
## defaultos=). If you omit this then the value of timeout=
## (converted to seconds) will be used.
delay=10
## timeout is the amount of time in tenths of a second that yaboot
## will wait before booting the default kernel image (the first image=
## section in this config file or the value of default=).
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
## Change the default colors, fgcolor is the text color, bgcolor is
## the screen background color. (default: fgcolor=white, bgcolor=black)
#fgcolor=black
#bgcolor=green
## Password supplied in plaintext, required for yaboot to boot, unless
## restricted is also present (see below). Be sure to
## chmod 600 /etc/yaboot.conf if you set this!
#password=secret
## Password supplied as an md5 hash, see above
#password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/
## A password is only required to boot an image specified here if
## parameters are specified on the command line or if the user enters
## an image is not specified in the configuration file at all (ie.
## arbitrary file load). restricted can also be placed in an image
## section in that case any image not including the restricted keyword
## will be fully password protected.
#restricted
image=/vmlinux
label=Linux
root=/dev/sda3
read-only
append="video=matroxfb:1600x1200@75"
Best regards
hare |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Mon Sep 26, 2005 5:18 pm Post subject: |
|
|
The reason why I asked your model # is that older RS/6k PReP machines *can't* use yaboot, but yes, it should work on your machine. You'll need to remove the magicboot line, as it says in the man page for yaboot.conf, that option is for PowerMacs only. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
hare n00b
Joined: 30 Apr 2004 Posts: 28
|
Posted: Mon Sep 26, 2005 5:33 pm Post subject: [Solved] emerge problem with yaboot |
|
|
At first thanks to all, who helped me.
I found the tool dd to copy a file to a partition.
With 'dd if=/usr/lib/yaboot/yaboot of=/dev/sda1' i copied yaboot to the boot-partition.
And it runs.
Regards
hare |
|
Back to top |
|
|
|