Personal tools
You are here: Home / Members / alex's Home / Rebuilding a Fedora Core kernel for the Acer Ferrari 4005

Rebuilding a Fedora Core kernel for the Acer Ferrari 4005

The Acer Ferrari 4005 works well with Fedora Core 4, but the kernel needs to be rebuilt in order to be able to determine the battery state, due to a buggy ACPI DSDT table.
  • For each new kernel upgrade, the corresponding source RPM needs to be downloaded.  These can be downloaded directly from the updates section of RedHat's Fedora download section.
  • Look for the SRPM for the upgraded kernel and install it with rpm -ihv.
  • Next, generate the patched source tree: rpmbuild -bp /usr/src/redhat/SPECS/kernel-2.6.spec
  • Create a link: ln -sf /usr/src/redhat/BUILD/kernel-2.6.13/linux-2.6.13 /usr/src/ and for completeness a link: ln -s /usr/src/linux-2.6.13 /usr/src/linux
  • For compatibility with extra modules, e.g. ndiswrapper and ati-fglrx, make sure to alter the EXTRAVERSION variable in /usr/src/linux/Makefile, e.g. sed -i "s/EXTRAVERSION =.*/EXTRAVERSION = -1.1532_FC4/" Makefile
  • Run make gconfig and alter the following settings:
    • Device drivers / generic driver options / Select only drivers that ... (toggle off)
    • Power management options / Power Management support / ACPI / ACPI Support / Include Custom DSDT.  Set to /lib/firmware/DSDT.hex
  • Build and install: make all; make install; make modules_install.
  • Rebuild the initrd with:  mkinitrd /boot/initrd-2.6.13-1.1532_FC4-DSDT.img `uname -r`
  • Ensure ndiswrapper and fglrx modules are installed before rebooting.

Extra notes:
  • The ATI graphics driver and driver wrapper for the wireless interface must also be updated.  Running yum install kernel-module-ndiswrapper-`uname -r` kernel-module-fglrx-`uname -r` should do the trick.

Document Actions