On 15/04/07, Link Swanson <[EMAIL PROTECTED]> wrote:
Very helpful indeed. I keep hearing about patched custom-compiled mactel
kernels and I wish I could have one for myself. Unfortunately I don't
want/know how to. This is a great idea!
i think including [base] kernel configs for Intel-based Macs is a great
idea. it'll promote the use of the mactel-linux patches, will make it easier
for those new to configuring kernels for mactel hardware, and will ensure
that new settings/changes are adopted by more people.
i assumed that anyone able to get through the EFI shenanigans and install
GNU/Linux on an Intel-based Mac would either (a) already know how to compile
their own kernel, or (b) know how to google around and learn how to do it.
with that said, just about every distro has specific instructions on how to
compile a kernel. google's your friend.
i run Debian, so for all of you Debian users out there who don't know how to
compile a kernel, here's a quick run-down. the steps are *probably*
*similar* for Ubuntu (in other words, Ubuntu users might be able to use
these as a guide, but they may not work):
1) install the necessary compilation software:
apt-get install kernel-package build-essential libncurses5-dev
2) read the first page of /usr/share/doc/kernel-package/README.gz and
install any other necessary packages. if you're feeling keen, read the next
~900 lines =P
3) download and unpack the kernel sources (Eg: to /usr/src/linux/ )
4) apply any kernel patches you want (Eg: mactel-linux)
5) configure your kernel with one of these commands. i prefer
menuconfig:
make config
make menuconfig
make xconfig
6) compile the kernel and roll it into a Debian package:
NOTE: if you want to use an initrd, add "--initrd" (without quotes)
to the 3rd command, just before "kernel_image".
make-kpkg clean
make-kpkg --revision=$(date +'%Y%m%d')
--append-to-version=-$(hostname) --rootcmd fakeroot clean
make-kpkg --revision=$(date +'%Y%m%d')
--append-to-version=-$(hostname) --rootcmd fakeroot kernel_image
modules_image
7) install your newly-built kernel:
sudo dpkg -i ../linux-image-2.6..._i386.deb
8) reboot and play in your new kernel!
this information can be found on irc.freenode.net by asking dpkg about
"compile kernel", "make-kpkg", and "kp mantra". Eg:
/msg dpkg kp mantra
when tweaking your kernel, i recommend you backup each config file and
document what changes you made to it. that way, if you need to revert to a
previous set of configs, you know which one to use.
enjoy!
-Nick
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users