Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: G4 Kernel Upgrade (will not boot new kernel)

  1. #1
    Join Date
    Sep 2007
    Location
    Milwaukee, WI
    Beans
    268
    Distro
    Ubuntu Development Release

    G4 Kernel Upgrade (will not boot new kernel)

    Alright,
    I'm trying to get my G4 off of OS X for its primary OS. I have a working Debian install on a 40 GB IDE drive (kernel is custom 2.6.26). I am trying to update the kernel to 2.6.39.1, but I cannot get the new kernel to boot.

    I'm sure I should post this elsewhere, but I've had good luck here with fellow PPC Mac users before.

    Anyway, when I point yaboot to my new kernel, it prints out about two lines (the usual "Elf32...." blah blah blah), then flashes to a white screen that looks like open firmware. The only thing this screen says is:

    Code:
    done
    found display     : /pci@f000000/NVDA,Parent@10/NVDA,Display-A@0, opening...
    And that's it. System hangs from there...

    I'm not sure what to make of it. I feel like the nvidiafb should take over, and I've got it compiled in the kernel as a module (just like the working 2.6.26 kernel on this machine), but nothing happens. I've never seen the white open firmware screen outside of..well, open firmware.

    I can post any files necessary...until then I'll just keep fiddling with the kernel configuration, rebuilding and trying it out.

  2. #2
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: G4 Kernel Upgrade (will not boot new kernel)

    chroot into your sytem and check the symbolic links in /boot
    and check them against yaboot.conf. Also don't forget to issue a ybin -v whenever you change the yaboot.conf file. Make sure your open firmware path to your device is correct as well.

    http://mac.linux.be/content/yaboot
    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  3. #3
    Join Date
    Sep 2007
    Location
    Milwaukee, WI
    Beans
    268
    Distro
    Ubuntu Development Release

    Re: G4 Kernel Upgrade (will not boot new kernel)

    I issued ybin -v when I first built the kernel and put it in /boot. Each time I rebuild though, I've been renaming it to the same thing, so yaboot doesn't really need to be updated, right?

    As for the open firmware path, the hard drive will boot using the old (2.6.26) kernel, so I assume everything is fine with the OF path.

    What do you mean by checking the sym links?

  4. #4
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: G4 Kernel Upgrade (will not boot new kernel)

    the entries you have should link to the right kernel, so vmlinux should be linked to your new kernel image if that is the default one for example, I hope you understand what I mean.
    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  5. #5
    Join Date
    Sep 2007
    Location
    Milwaukee, WI
    Beans
    268
    Distro
    Ubuntu Development Release

    Re: G4 Kernel Upgrade (will not boot new kernel)

    I used the method described here for compiling/installing the kernel. I've never gotten the "make install" command to work for me, so I just copied vmlinux and initrd (appended with version info to differentiate from the other vmlinux/initrd) over to /boot and then I added an entry in yaboot.conf that points to them.

    Is there more I have to do? I don't remember doing anything with links last time around (this is the first time booting this machine to linux in over a year...I'm a bit rusty).

  6. #6
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: G4 Kernel Upgrade (will not boot new kernel)

    It looks like you did the right thing.
    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  7. #7
    Join Date
    Sep 2007
    Location
    Milwaukee, WI
    Beans
    268
    Distro
    Ubuntu Development Release

    Re: G4 Kernel Upgrade (will not boot new kernel)

    Hmm...new problem.

    I downloaded the latest mainline (3.0-rc6) kernel, and tried building form that. I compiled with only the VESA framebuffer, and am now able to get further than the odd openfirmware-ish screen that I had before.

    However, the system still does not boot. Everything is kosher on bootup until the system tries to start loading modules. I start seeing errors like this:

    Code:
    FATAL:  Could not open /lib/modules/3.0.0-rc6/modules.dep:  No shuch file or directory
    Before these errors appear (there are several - the system appears to continue to attempt to load while this error just reoccurs), I can see /dev/hda3 recognized as my boot partition (which is correct). It then says:

    Code:
    Begin:  Waiting for root files system
    However, after this appears, the system throws some USB messages, and then the "fatal" error described above is shown a few times after it says "Gave up waiting for root device."

    Finally, I'm left with:

    Code:
    ALERT! /dev/hda3 does not exist.  Dropping to a shell (ash)
    Enter 'help' for a list of built-in commands.
    
    /bin/sh: can't access tty: job control turned off
    (initramfs)_

    The final underscore blinks, and the system halts right there. I'm lost. If I boot the kernel that has been working the whole time (a custom 2.6.26-2 build), everything is fine, but trying to boot this kernel (custom 3.0-rc6) causes havoc. I don't get it: /dev/hda3 is recognized by the new kernel (or appears to be when I try to boot it), but I get those crazy FATAL errors saying that it can't load the modules.

    For what it's worth, the modules for the Mac-IO (Powermac/Powerbook IDE bus) are compiled into the kernel, and the general PATA drivers are modularized. I believe the working (2.6.26-2) kernel is setup the same way...

  8. #8
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: G4 Kernel Upgrade (will not boot new kernel)

    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  9. #9
    Join Date
    Jan 2011
    Beans
    935

    Re: G4 Kernel Upgrade (will not boot new kernel)

    I would run the ybin command. There is something magical/mystical about it, so it may just work. Whenever I've played around with kernels (not much, I was trying to get KMS to work) I've always added a new stanza and run ybin.

    If it not your kernel setup, then it could easily be your yaboot.conf. When I installed lubuntu maverick my debian partition stopped working (it dumped me into busybox with errors indicating that it couldn't find root), but the ubuntu ones were fine. The only thing that had changed was the yaboot.conf and I still haven't figured out why (it is on my list of things to look into). The only major difference was how the bootstrap was addressed in the path, athough they pointed to the same partition. Have got it working now using an old yaboot.conf as the basis and adding new stanzas for debian and my recent lubuntus.

    What I would do is find a more recent non-custom kernel and see if that boots. You can then have a look at its setup. Out of curiosity, why do you need a custom kernel? Is it for speed and if so, what improvements are you getting?

  10. #10
    Join Date
    Jan 2011
    Beans
    935

    Re: G4 Kernel Upgrade (will not boot new kernel)

    Ignore what I was saying about the boostrap/device path. That was a red herring like I thought. I've found the offending bit of the yaboot.conf.

    For me I needed to change the append line:

    Code:
    image=/pci@f4000000/ata-6@d/disk@0:5,/boot/vmlinux
        label=hda5-Linux
        root=/pci@f4000000/ata-6@d/disk@0:5
        append="root=UUID ro"
        initrd=/pci@f4000000/ata-6@d/disk@0:5,/boot/initrd.img
    to

    Code:
    image=/pci@f4000000/ata-6@d/disk@0:5,/boot/vmlinux
        label=hda5-Linux
        root=/pci@f4000000/ata-6@d/disk@0:5
        append="root=/dev/hda5 ro"
        initrd=/pci@f4000000/ata-6@d/disk@0:5,/boot/initrd.img
    It also works if you do something like this (and is how I'm set up at the moment):

    Code:
    image=/pci@f4000000/ata-6@d/disk@0:5,/boot/vmlinux
        label=Debian-Linux
        root="UUID=b1g-10ng-number-1000"
        append=" ro"
        initrd=/pci@f4000000/ata-6@d/disk@0:5,/boot/initrd.img
    It maybe worth checking it is not something like this.

    EDIT: Looking at this a few months later that middle suggestion probably could be simplified to:

    Code:
    image=/pci@f4000000/ata-6@d/disk@0:5,/boot/vmlinux
        label=hda5-Linux
        root=/dev/hda5
        append=" ro"
        initrd=/pci@f4000000/ata-6@d/disk@0:5,/boot/initrd.img
    It would be interesting to know if this works too:

    Code:
    image=/pci@f4000000/ata-6@d/disk@0:5,/boot/vmlinux
         label=hda5-Linux
         root=/pci@f4000000/ata-6@d/disk@0:5
         append=" ro"
         initrd=/pci@f4000000/ata-6@d/disk@0:5,/boot/initrd.img
    Or this

    Code:
    image=hd:5,/boot/vmlinux
    label=hda5-Linux
    root=hd:5
    append=" ro"
    initrd=hd:5,/boot/initrd.img
    So many ways!
    Last edited by rsavage; November 1st, 2011 at 03:01 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •