Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yaboot and PPC64 (unable to open file) [Solved]
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
mand
n00b
n00b


Joined: 20 Jul 2005
Posts: 9

PostPosted: Sun May 27, 2007 12:32 pm    Post subject: Yaboot and PPC64 (unable to open file) [Solved] Reply with quote

I keep getting a error when trying to boot. I get this error (or very similar)

sd:4,/boot/kernalpath unable to open file, unknown device

^ Or something like that

Right, here's some data

livecd / # mac-fdisk -l
Code:
dev/sda
        #                    type name                  length   base      ( size )  system
/dev/sda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/sda2         Apple_Bootstrap bootstrap               1600 @ 64        (800.0k)  NewWorld bootblock
/dev/sda3         Apple_UNIX_SVR2 swap                 2097152 @ 1664      (  1.0G)  Linux swap
/dev/sda4         Apple_UNIX_SVR2 linux              236978176 @ 2098816   (113.0G)  Linux native
/dev/sda5              Apple_Free Extra                1044736 @ 239076992 (510.1M)  Free space

Block size=512, Number of Blocks=240121728
DeviceType=0x0, DeviceId=0x0


My yaboot.conf

cat /etc/yaboot.conf

Code:

boot=/dev/sda2
device=sd:
partition=4
delay=10
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot


image=/boot/kernel-genkernel-ppc64-2.6.20-gentoo-r5
  label=Linux
  root=/dev/ram0
  partition=4
  sysmap=/boot/System.map-genkernel-ppc64-2.6.20-gentoo-r5
  append="real_root=/dev/sda4 init=/boot/initramfs-genkernel-ppc64-2.6.20-gentoo-r5"
  read-only



ls /boot/ -alh


Code:
total 13M
drwxr-xr-x  2 root root  280 May 27 13:31 .
drwxr-xr-x 19 root root  552 Apr 23 15:23 ..
-rw-r--r--  1 root root    0 Apr 23 15:23 .keep
-rw-r--r--  1 root root 1.7M May 27 13:28 System.map-genkernel-ppc64-2.6.20-gentoo-r5
lrwxrwxrwx  1 root root    1 May 27 13:01 boot -> .
-rw-r--r--  1 root root 839K May 27 13:31 initramfs-genkernel-ppc64-2.6.20-gentoo-r5
-rwxr-xr-x  1 root root  11M May 27 13:28 kernel-genkernel-ppc64-2.6.20-gentoo-r5
livecd etc #


If someone could point me in the right direction, i would appriciate it.

Thanks in advance.
Mand


Last edited by mand on Sun May 27, 2007 12:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Sun May 27, 2007 12:40 pm    Post subject: Reply with quote

I have a very similar yaboot.conf file. One difference is that I have a of path for the device parameter. Mine looks like:

device=/ht@0,f2000000/pci@9/k2-sata-root@c/k2-sata@0/disk@0:



Trying running ofpath /dev/sda and changing yours. Remember to run ybin -v afterwards. Changes you make to yaboot.conf dont take unless you do (unless you are running ibm hw)
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
mand
n00b
n00b


Joined: 20 Jul 2005
Posts: 9

PostPosted: Sun May 27, 2007 12:49 pm    Post subject: Reply with quote

rangerpb wrote:
Trying running ofpath /dev/sda and changing yours. Remember to run ybin -v afterwards.


Worked!

Thanks!!!

I still couldt boot, something with ufs-fs No partion found, but... thats another issue, i guess i left something out when compiling the kernel. I will have a look at that.

But i consider this question solved
Back to top
View user's profile Send private message
Gustav IV
n00b
n00b


Joined: 10 Jan 2007
Posts: 69
Location: Copenhagen

PostPosted: Tue May 29, 2007 7:25 am    Post subject: Reply with quote

Hey Mand

I if you're still having problems booting your system, I think you should check this in your yaboot configuration:

Code:
image=/boot/kernel-genkernel-ppc64-2.6.20-gentoo-r5
  label=Linux
  root=/dev/ram0
  partition=4
  sysmap=/boot/System.map-genkernel-ppc64-2.6.20-gentoo-r5
  append="real_root=/dev/sda4 init=/boot/initramfs-genkernel-ppc64-2.6.20-gentoo-r5"
  read-only


root=/dev/ram0 should like be root=/dev/sda4

This is probably why you are getting a filesystem error:
Quote:
ufs-fs No partion found


Best wishes,
Gustav
_________________
"Hey, hey, hey — don't be mean. No need to be mean. 'Cause, remember: no matter where you go... there you are." - Buckaroo Banzai
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