Debian Planet

Welcome to Debian Planet


Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International



  • EsDebian


  • DebianWorld


  • MaximumDebian


  • DebianUsers


  • Debian-BR


  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.


    DP is sponsored by Xinit Systems and

    Domains paid for and hosted by

    Buy your Debian merchandise at

    Who's Online

    There are currently, 54 guest(s) and 6 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

    Compiling a Kernel on a PPC Machine
    Contributed by fkoclas on Friday, November 09 @ 06:10:54 GMT

    I never ran into much trouble when compiling a Linux Kernel on my PC (using make menuconfig, make install, make modules, make modules_install etc etc), but every time I try to compile a kernel (2.4.x) on a PPC machine (I tried on those three : PowerMac 7300, G3/266, and G4 Cube 450), it just won't work!

    The kernel configuration using menuconfig works fine and everything but when I try to compile it, it just ends up saying that there is no rule to "make". Is it possible to compile a kernel on a ppc machine or am I missing something here?

    DanielS: You'll probably want benh's kernel tree, apt-cache search benh.

    Related Links

  • More about Linux
  • News by DanielS

    Most read story about Linux:
    Installing Debian GNU/Linux on Alphas

    Last news about Linux:

    Printer Friendly Page  Send this Story to a Friend
  • "Compiling a Kernel on a PPC Machine" | Login/Create Account | 7 comments

    The comments are owned by the poster. We aren't responsible for their content.

    Re: Compiling a Kernel on a PPC Machine (Score: 2, Informative)
    by craigem on Friday, November 09 @ 07:24:19 GMT
    (User Info)

    Yes, it is possible to compile a kernel on PPC machine.

    Yes, you are missing something 🙂

    I recommend the following:

    - Get on the debian-ppc mailing list

    - Get the Debian source for 2.4.10

    - Get and apply the PPC patch

    - Get and apply the XFS patch while we're patching 😉

    Now try your normal kernel building techniques. I hope on Debian you are building kernels with make-kpkg, this is a big grief relief.

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 1, Informative)
    by Anonymous on Friday, November 09 @ 08:02:27 GMT

    The advice above is very good. Also remember than on PowerPC based systems you don't need to make a compressed boot image, so typing "make vmlinux" instead of "make zImage" is usually called for. That is, assuming that you have the correct source code.

    Unfortunately, Linus' kernel often doesn't have the latest PowerPC changes incorporated into it. With time everything gets in and the kernel will be compilable with the source from, but this doesn't happen very quickly.

    So, it pays to get the source from the PowerPC kernel developers themselves. If you're using a newer PowerMac (e.g. the iBook2) then right now this is a must. Fortunately, it's quite easy to obtain.

    If you have rsync installed, then you can obtain the latest versions of the benh development version of the kernel source by running the following command:

    rsync -arvz --delete [directory]

    where [directory] is the name of the directory you would like the source to be downloaded into. (See the the rsync man page for more info.)

    If you'd prefer to download Debian packages of the kernel source, they're seperated out into a base kernel source package and then an additional patch package. For example, I see right now that there are "kernel-source-2.4.13" and "kernel-patch-benh" packages -- these might be a good place to start. Unfortunately I can't say more about them since I've never used them.

    Good luck. 🙂

    -- Another Anonymous PPC Linux User

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 1, Informative)
    by Anonymous on Friday, November 09 @ 14:23:41 GMT

    Let me save you some hours of frustration...

    Get the latest kernels using rsync. I suggest the benh tree...

    type in this command to get the latest kernels:

    rsync -avz --delete

    This will download the source into the destination_path directory. Note that these kernels are specifically tuned by clued people so that they compile nicely on PPC (PowerMacs).

    I'm running on 2.4.14 right now on my ibook2 G3 500.

    Hope this helps

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 1)
    by fkoclas on Saturday, November 10 @ 17:57:58 GMT
    (User Info)

    Thank you all, it finally compiled =) Whew 1 hour and a half to compile it on a 7300/200 (604e 200mhz with 160mb ram) 😉

    But now there is a weird problem.. it does not work well with the ADB keyboard everytime i press a key it enters something else for example a=a s=nothing d=1 f=2 g=4 h=3 j=l k=' l=k etc...

    How could this be fixed?? I've never seen a problem like this before

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 1)
    by fkoclas on Saturday, November 10 @ 18:09:06 GMT
    (User Info)

    Hmmmm it also does it when I go back to kernel 2.2.19... 🙁 any ideas??? I did not have the time to install telnetd or sshd yet, so i cannot use it remotely =(

    It won't even let me use keyboard properly in single user mode.

    This looks normal though:

    ADB Keyboard at 2, handlers set to 3

    Detected ADB keyboard, type ISO, swapping keys

    input1: ADB HID on ID 2:2.05

    adb: finished probe task...

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 0)
    by Anonymous on Sunday, November 11 @ 03:33:39 GMT

    You need to reconfigure your console. dpkg-reconfigure console-data

    They changed the handling of scancodes (or something like that) recently. So just ssh into the box and change it.

    [ Reply ]

    Re: Compiling a Kernel on a PPC Machine (Score: 1)
    by fkoclas on Sunday, November 11 @ 15:49:46 GMT
    (User Info)

    Thanks alot =))))))

    This 7300/200 next to me now proudly runs Debian Sid , without any problems :)))))!!!!

    [ Reply ]

    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.