Right, so compiling my own kernel has b0rked my iMac. (was Help compiling a kernel for iMac rev B)

2005-01-19 Thread Chris Doherty

Where's the microwave...

I compiled and installed my kernel as specified in 
www.desktop-linux.net/debkernel.htm, and that seemed to go just fine, I 
checked /etc/yaboot.conf and it appeared to have all the necessary 
elements added to boot both the new kernel (as 'linux') and the original 
kernel (as 'old') so I ran ybin and rebooted.


On boot, whether I select the linux image or the old image, I get the 
following (I believe this is an OpenFirmware message):


/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]:4,/boot/initrd.img:No such file 
or directory (initrd.img.old if I try to boot the old kernel).


Those files are there in /boot, they're symlinks to the relative initrd 
images used for each kernel.  I used the .config file from the stock 
2.6.8 Debian kernel which was running correctly before, so AFAIK it's 
not that the filesystem isn't compiled into the kernel  (at least it 
shouldn't be).


Does anyone have any ideas on how I can rescue this iMac?  And 
subsequently figure out what went wrong?


Chris

--
As an adolescent I aspired to lasting fame, I craved factual certainty, 
and I thirsted for a meaningful vision of human life - so I became a 
scientist. This is like becoming an archbishop so you can meet girls.

~ M. Cartmill



Re: Right, so compiling my own kernel has b0rked my iMac. (was Help compiling a kernel for iMac rev B)

2005-01-19 Thread Shyamal Prasad
Chris == Chris Doherty [EMAIL PROTECTED] writes:

You really are having all the luck;-)

Chris On boot, whether I select the linux image or the old image,
Chris I get the following (I believe this is an OpenFirmware
Chris message):

I suspect that this is from yaboot (see my disclaimer at the end of
this email).

Chris /[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
PROTECTED]:4,/boot/initrd.img:No
Chris such file or directory (initrd.img.old if I try to boot the
Chris old kernel).

Is your root partition /dev/hda4 then?

Did the stock Debian kernel ever work? 

Could you post your /etc/yaboot.conf?

Chris Does anyone have any ideas on how I can rescue this iMac?
Chris And subsequently figure out what went wrong?

You can manually load the exact kernel and initrd image by hand at the
yaboot prompt if you know it really is there
http://penguinppc.org/bootloaders/yaboot/doc/yaboot-howto.shtml/ch9.en.shtml#s9.3

Alternatively boot with debian installer, switch to a shell, mount the
disk and examine it to see what went wrong. If you mount at
/mnt/mydisk you could do something like

chroot /mnt/mydisk
mount -t proc proc /proc

and then install a stock kernel you know works, figure out how to fix
your yaboot.conf and run ybin again.

A word of caution: my first Linux on powerpc system experience is only
4 weeks old, I have to run out for the evening and cant run tests, so
some of this is from memory and perhaps not 100% accurate.

Cheers!
Shyamal



Re: Right, so compiling my own kernel has b0rked my iMac. (was Help compiling a kernel for iMac rev B)

2005-01-19 Thread Chris Doherty

Shyamal Prasad wrote:

Chris == Chris Doherty [EMAIL PROTECTED] writes:

You really are having all the luck;-)


All of it bad, yah...


Chris /[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
PROTECTED]:4,/boot/initrd.img:No
Chris such file or directory (initrd.img.old if I try to boot the
Chris old kernel).
Is your root partition /dev/hda4 then?


I think so, but all I can remember at the moment is that there's an 
Apple boot partition and a swap partition ahead of the root.  So maybe not.


Did the stock Debian kernel ever work? 


Worked fine and dandy up until the reboot.


Could you post your /etc/yaboot.conf?


If I can rescue the box first, sure :-)


Alternatively boot with debian installer, switch to a shell, mount the
disk and examine it to see what went wrong. If you mount at


I think that's my best bet at this point.  Will update you all as the 
evening progresses...


Chris

--
As an adolescent I aspired to lasting fame, I craved factual certainty, 
and I thirsted for a meaningful vision of human life - so I became a 
scientist. This is like becoming an archbishop so you can meet girls.

~ M. Cartmill