The authors cannot be held resonsible for any damage which has been caused directly or indirectly by the contents of this page and of the files offered by this page. Always be sure to have a backup of important data before altering anything on you system. When booting from a newly build kernel, make sure that it is always possible to boot from the old kernel in case of emergencies.
The use of the information provided here is at your own risk!
Linux kernels can be build on a lot of different hardware platforms, with many different hardware configurations. A Linux kernel and its modules enable a GNU/Linux operating system to use this combination of hardware to its full extend in a very flexible way. Most GNU/Linux distributions install a kernel and its modules which has been build for a specific hardware platform with a very general configuration. It has modules for almost every network card, modem, etc. This make it very easy to install and get a running GNU/Linux distribution.
The PowerBook G4 is a PowerPC platform with a very limited hardware configuration because all hardware is integrated inside and it doesn't offer interface to connect other hardware appart from FireWire, USB and SVGA. There are some GNU/Linux distributions that can be installed on this PowerPC platform with a kernel and its modules build with a, for this platform, very general configuration.
This site would like to offer GNU/Linux configuration files for building a Linux kernel and modules which are optimal for the PowerBook G4.
The aim is to provide a configuration which is optimised for speed and the ability to connect to commen external devices. In order to choose optimal configuration settings the following guide lines were used when making choices on what should go into the kernel, what should be build as a module and what should not be build at all.
Below are configuration files that can be downloaded to build optimal Linux kernel and modules for a PowerBook G4. Because not all GNU/Linux systems on these machine have the same configuration on where the hard disk is, hda or hdc, one has to double check the value of the ATA100FIRST setting.
|version||.config||build on 867 MHz|
Note that these config files are tuned for NVIDIA GeForce4 420 Go with the following resoltion:
Please send me any improvements for the files provided here.
Downloading, building and installing kernel and modules
For building the kernel one can use something like the following commands.
su cd /usr/src download from kernel.org mirror linux-2.6.5.tar.bz2 to /usr/src bunzip2 linux-2.6.5.tar.bz2 tar xf linux-2.6.5.tar rm -f linux-2.6.5.tar apply patch from http://bluez.sf.net/ ln -sf linux-2.6.5 linux cd linux mv -f some-path/config-2.6.5-bla-bla .config make-kpkg clean make-kpkg --append_to_version=-pbg4 kernel_image rm -rf /lib/modules/2.6.5.old mv /lib/modules/2.6.5 /lib/modules/2.6.5.old rm -rf /boot.old cp -r /boot /boot.old dpkg -i ../kernel-image-2.6.5-pbg4_10.00.Custom_powerpc.deb reboot
su cd /usr/src mkdir benh_kernel rsync -avz rsync.penguinppc.org::linux-2.4-benh benh_kernel cd benh_kernel mv -f some-path/config-2.4.22-ben2-bla-bla .config make-kpkg clean make-kpkg --append_to_version=-pbg4 kernel_image rm -rf /lib/modules/2.4.22-ben2.old mv /lib/modules/2.4.22-ben2 /lib/modules/2.4.22-ben2.old rm -rf /boot.old cp -r /boot /boot.old dpkg -i ../kernel-image-2.4.22-ben2-pbg4_10.00.Custom_powerpc.deb reboot
If booting stops after these lines:
usbcore: registered new driver hiddev usbcore: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver mice: PS/2 mice device common for all mice
Rebooting might provide the answer or running fsck on at least your boot partition might do the trick. for that you can use the gentoo live CD from which you can boot off.
|Apple PowerBook G4|
|Install Debian GNU/Linux on an Powerbook|
|Debian PowerPC list archive|
|PowerBook G4 Hardware|
For questions, please RTFM or become an active member of firstname.lastname@example.org. For contributions, send an email to pander_at.users-dot=sourceforge~dot,net .
Install ALSA using the following commands.
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-0.9.6.tar.bz2 tar jxfv alsa-lib-0.9.6 ./configure make su make install exit wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.9.6.tar.bz2 tar jxfv alsa-driver-0.9.6.tar.bz2 cd alsa-driver-0.9.6 ./configure make su make install exit
Do not forget to reinstall the drivers again after removing /lib/modules/2.4.22-ben2
The modules are loaded via the following files.
# /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a "#", and everything on the line after them are ignored. agpgart sungem sg ide-scsi snd-powermac snd-pcm-oss snd-mixer-oss
# Alsa 0.9.X kernel modules' configuration file. # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore ## ## IMPORTANT: ## You need to customise this section for your specific sound card(s) ## and then run `update-modules' command. ## Read alsa-driver's INSTALL file in /usr/share/doc for more info. ## ## ALSA portion alias snd-card-0 snd-powermac # OSS/Free portion - card #1 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss # Set this to the correct number of cards. options snd cards_limit=1
alias char-major-14 soundcore alias sound-slot-0 dmasound_pmac alias char-major-14-3 dmasound_pmac alias /dev/dsp dmasound_pmac alias sound-service-0-0 i2c-keywest alias char-major-14-0 i2c-keywest alias /dev/mixer i2c-keywest