Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.19-r5 - no such file or directory
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
mofa
n00b
n00b


Joined: 20 Jul 2006
Posts: 11

PostPosted: Fri Feb 02, 2007 9:37 pm    Post subject: 2.6.19-r5 - no such file or directory Reply with quote

hi there everybody,

i have a wired problem with the new kernel version gentoo-sources-2.6.19-r5. after copying vmlinux into /boot/, running ybin and rebooting the system yaboot can't find the kernel image - "no such file or directory". i doublechecked the filename and the entries in /etc/yaboot.conf, and can't see any mistakes, maybe anyone has a hint.

thanx
mofa
Back to top
View user's profile Send private message
ndansmith
n00b
n00b


Joined: 01 Aug 2005
Posts: 60

PostPosted: Sat Feb 03, 2007 12:38 am    Post subject: Reply with quote

Please post your yaboot.conf and the contents of /boot
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 03, 2007 1:44 am    Post subject: Reply with quote

And the output of mac-fdisk -l too:

# mac-fdisk -l
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mofa
n00b
n00b


Joined: 20 Jul 2006
Posts: 11

PostPosted: Sat Feb 03, 2007 10:40 am    Post subject: Reply with quote

here is my yaboot.conf:
Code:

boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda5
ofboot=hd:2
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/kernel-2.6.18-gentoo-r6
        label=2.6.18
        read-only

image=/kernel-2.6.19-gentoo-r5
        label=2.6.19-r5
        read-only


enablecdboot
enableofboot


ls -l /boot:
Code:

total 11136
-rw-r--r-- 1 root root  746495 Feb  2 23:09 System.map
lrwxrwxrwx 1 root root       1 Jan  1 17:16 boot -> .
-rwxr-xr-x 1 root root 5461349 Jan 11 21:35 kernel-2.6.18-gentoo-r6
-rwxr-xr-x 1 root root 5329054 Feb  2 23:09 kernel-2.6.19-gentoo-r5


and mac-fdisk -l:
Code:

/dev/hda
        #                    type name                 length   base     ( size )  system
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap untitled               1954 @ 64       (977.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 swap                1048576 @ 2018     (512.0M)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 boot                 204800 @ 1050594  (100.0M)  Linux native
/dev/hda5         Apple_UNIX_SVR2 root               33554432 @ 1255394  ( 16.0G)  Linux native
/dev/hda6         Apple_UNIX_SVR2 home               33554432 @ 34809826 ( 16.0G)  Linux native
/dev/hda7         Apple_UNIX_SVR2 macosx              9878718 @ 68364258 (  4.7G)  Linux native

Block size=512, Number of Blocks=78242976
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff
Back to top
View user's profile Send private message
buddha007
n00b
n00b


Joined: 22 Jan 2007
Posts: 21
Location: London

PostPosted: Sun Feb 04, 2007 12:02 pm    Post subject: Reply with quote

try replacing
    image=/kernel-2.6.19-gentoo-r5

with
Code:
 image=/linux-2.6.18-gentoo-r5


After problems with yaboot, I changed quite a few things to get it to work, I believe this was one of them.
_________________
Windows?? I'd rather rub my nostrils down a cactus :)
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Wed Feb 14, 2007 2:31 am    Post subject: Reply with quote

No, that's not it.

Your setup looks to me like it should be working.

In /etc/fstab, do you have the mount option "noauto" for /dev/hda4? If so, what happens when you temporarily remove that option?
Back to top
View user's profile Send private message
Gustav IV
n00b
n00b


Joined: 10 Jan 2007
Posts: 69
Location: Copenhagen

PostPosted: Thu Feb 15, 2007 6:41 am    Post subject: Reply with quote

I had this problem too.

The way i solved it was by making a copy of the kernel and giving it a simple name like gentoo. I configured the new name into the yaboot.conf file and was able to get the bootloader to recognise it. Previously, I would constantly get a message that no file or directory existed when the kernel was called linux-2.6.17-gentoo-r5.

Sincerely

Gustav IV
_________________
"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
Gustav IV
n00b
n00b


Joined: 10 Jan 2007
Posts: 69
Location: Copenhagen

PostPosted: Thu Feb 15, 2007 7:08 am    Post subject: Reply with quote

Hey, wait a minute!

lets take a look at your mac-fsdisk print-out first:
Code:
/dev/hda
        #                    type name                 length   base     ( size )  system
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap untitled               1954 @ 64       (977.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 swap                1048576 @ 2018     (512.0M)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 boot                 204800 @ 1050594  (100.0M)  Linux native
/dev/hda5         Apple_UNIX_SVR2 root               33554432 @ 1255394  ( 16.0G)  Linux native
/dev/hda6         Apple_UNIX_SVR2 home               33554432 @ 34809826 ( 16.0G)  Linux native
/dev/hda7         Apple_UNIX_SVR2 macosx              9878718 @ 68364258 (  4.7G)  Linux native


You have separate boot partition on /dev/hda4, which I suspect could be a problem. Did you intentionally create a separate boot partition? Also and this maybe besides the point because perhaps you are using a UFS system for your macosx, osx is on a UNIX-SVR2 partition, but that'll be something else you'll have to wrestle with a another time.

Now lets look at your yaboot.conf file:
Code:
boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda5
ofboot=hd:2
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/kernel-2.6.18-gentoo-r6
        label=2.6.18
        read-only

image=/kernel-2.6.19-gentoo-r5
        label=2.6.19-r5
        read-only


enablecdboot
enableofboot

Even if you have a separate boot partition, there is some irregularity between what partition= and what root= .
after the image line, I am used to seeing "/boot/kernel-2.6.19-gentoo-r5". Perhaps you should check this. Any way, is your kernel called "gentoo-sources-2.6.19-r5" in your /boot directory, or is it kernel-2.6.19-gentoo-r5? run ls on /boot and see what turns up.

Best wishes,

Gsutav IV
_________________
"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
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Thu Feb 15, 2007 8:17 am    Post subject: Reply with quote

The "partition=" line should point to the partition where the kernel resides. So I think he's got it set correctly, given that he's using a separate boot partition.

However, you may be right about not using a separate boot partition -- I've always set up my macppc without one.
Back to top
View user's profile Send private message
Gustav IV
n00b
n00b


Joined: 10 Jan 2007
Posts: 69
Location: Copenhagen

PostPosted: Thu Feb 15, 2007 9:42 am    Post subject: Reply with quote

Hey BoneKracker

You're right that partition should point to the partition bearing the kernel, but wouldn't that make the line root= redundant? I would like to see what the mount points are in fstab, as well. My immediate reaction is that a /boot isn't required and that it could create problems with the yabootconfig tool, or ybin for that matter.

In any case, image= should also contain the higher level directory "/boot" so that image=/boot/kernel-2.6.19-gentoo-r5, or which ever name for the kernel is called.
_________________
"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
mofa
n00b
n00b


Joined: 20 Jul 2006
Posts: 11

PostPosted: Thu Feb 22, 2007 9:23 pm    Post subject: Reply with quote

here is my fstab
Code:

/dev/hda4      /boot      ext3      noauto,noatime   1 2
/dev/hda5      /        ext3        noatime      0 1
/dev/hda3      none      swap   sw      0 0
/dev/hda6      /home      ext3      noatime      0 1
/dev/cdrom      /mnt/cdrom   iso9660      noauto,ro,user   0 0
/dev/dvd       /mnt/dvd   iso9660      noauto,ro,user   0 0
/dev/sda1      /mnt/sda   auto      noauto,user   0 0

proc         /proc      proc      defaults   0 0

shm         /dev/shm   tmpfs      nodev,nosuid,noexec   


it tried both, changing the name of the kernel image and adding /boot to the image= line.

same problem
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Feb 23, 2007 3:09 am    Post subject: Reply with quote

I think the /boot partition is confusing everyone. :) As suggested in the handbook, it's not usually needed on PPC. If you are really booting from a kernel on the /boot partition, make sure that the kernel is actually stored in the boot partition and not on the root. If you want to simplify the booting process, feel free to put your kernel in /boot on the root partition and set the "partition" option to your root partition.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Gustav IV
n00b
n00b


Joined: 10 Jan 2007
Posts: 69
Location: Copenhagen

PostPosted: Fri Feb 23, 2007 9:51 am    Post subject: Reply with quote

Hi mofa

I solved a boot problem by looking into the /usr/lib/yaboot/yaboot file with a nano editor. It's really ugly at first, but go down to the very first lines of readable code. For myself I found that there were naming problems and that yaboot was looking at certian mount points but there were irregularities with names written at the mac-fdisk partitioning stage.
I noticed that you have a name for your /boot partition in the mac-fdisk print out that says "untitled".

I suspect that those first couple of legiable lines will be warning lines that say something doesn't exist or that soemthing is not found.

Sincerely

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