Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yaboot problem "Unable to open file, Invalid device" ibmp595
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
linuxale
n00b
n00b


Joined: 11 Jan 2006
Posts: 34

PostPosted: Thu Mar 06, 2008 4:37 pm    Post subject: yaboot problem "Unable to open file, Invalid device&quo Reply with quote

Hi dear,
I'v installed a new gentoo system on a p595's VIO client using xfs as root fs.
Follow the partition table
/dev/sda1 PPC PReP Boot
/dev/sda2 swap
/dev/sda3 / xfs

After all installation process I've configured yaboot following the instruction here:
http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?part=1&chap=10#yaboot-ibm

device=/disk@0:
partition=3
root=/dev/sda3
default=linux
timeout=50

image=/boot/vmlinux
label=linux
append="root=/dev/sda2"
read-only



Everything seems ok...butttt when I reboot I arrive to the boot prompt but the I get the follow errors:
Unable to open file, Invalid device

I've tried to change the parameter device with onfly at boot partition with:
device=/dev/sda:3,/boot/vmlinux
device=/dev/hda:3,/boot/vmlinux
device=sda:3,/boot/vmlinux
device=hda:3,/boot/vmlinux

Nothing Nothing Nothing!!! :-(
Have you any ideas...?

Thanks a lot
Alex
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Fri Mar 07, 2008 1:25 pm    Post subject: Reply with quote

Yaboot cannot read into XFS iirc. If you want to use XFS, consider making a mountpoint (or several) using XFS -or- if you want your root-fs to be XFS, then create a ext2/ext3 /boot partition. Stick your kernels there. And then be sure to make a /etc/yaboot.conf in the /boot and symlink your rootfs /etc/yaboot.conf to it. This way yaboot will be able to read the yaboot.conf file and obtain kernels from an ext2/3 disk filesystem. FAT or reiser should also work too.

Remember to tweak your yaboot.conf after making these changes as the location of the kernels will have changed.

If you have questions, you can ask on #gentoo-powerpc as well.
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
linuxale
n00b
n00b


Joined: 11 Jan 2006
Posts: 34

PostPosted: Mon Mar 17, 2008 11:01 am    Post subject: [Solved] yaboot problem "Unable to open file, Invalid d Reply with quote

Hi Rangerpb,
thanks a lot for your info.

Now my gentoo partition is booting! :-D
I try to resume my situation and the correct configuration:

VIO P595 partition
Table Partition
Code:
  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           8        8176   41  PPC PReP Boot
/dev/sda2               9         104       98304   83  Linux               ###### /boot    ext2 ######
/dev/sda3             987       13072    12376064   83  Linux         ###### /           xfs #######
/dev/sda4             105         986      903168   82  Linux swap / Solaris

/boot/yaboot.conf and /etc/yaboot.conf must be identical.
Code:
#device=hd:
#partition=2
root=/dev/sda3
timeout=30
default=Linux

image=/vmlinux-2.6.23-hardened-r8
        label=Linux
        append="root=/dev/sda3"
        root=/dev/sda3
        read-only


The main problem was that I specified the device and partition options but, like you said, these are not needed in IBM Architecture, instead it is an error. Remember to specify the correct root=ROOT_DEVICE

I've looked and relooked the documentation http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?part=1&chap=10#doc_chap3

and there is written to specify device and partition option...I think that piece of doc should be updated.
Thanks a lot rangerpb.

Alex
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