Hi,
here I am to speak about a great problem with my lovely laptop Asus M51se-AP0042c and Ubuntu 9.04 Jaunty Jackalope . This notebook has an ATI video card but it’s not the primary problem. it seems that there is a “little” bug in the bios mobo like we can see here. So after reading the solution, I’ve made a little guide to compile the kernel with the right patch.
The steps are easy but long, take your time.
1) Install needed toolsi:
# sudo apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
2) Download kernel source of the version you like (I’m using Jaunty Jackalope one):
# sudo apt-get install linux-source-2.6.28
It’s better takes the source code of the running kernel version on your machine. Change the numbers with that of you version.
3)Now locate in the directory of the downloaded archive and extract the files:
# cd /usr/src
# bzip2 -d linux-source-2.6.28.tar.bz2
# tar xvf linux-source-2.6.28.tar
As result there’s a directory named as the archive, ex. linux-source-2.6.28
4) create a symbolic link to this directory and name it linux. Now enter it:
# ln -s linux-source-2.6.28 linux
# cd linux
5) Now, to save time on the determination of your hardware configuration, you can copy the configuration file of the kernel you are using to run the penguin:
# cp /boot/config-`uname -r` ./.config
6) Now go here and download the patch file that supports DMI (browse the posts and you will find it).
7) After downloading the patch, apply the change to the file fixup.c in the directory content arch/x86/pci/ copying the text from the patch file and pasting it at the end of fixup.c and save it:
If you are under GUI
gedit arch/x86/pci/fixup.c
If you are under cli
vi arch/x86/pci/fixup.c
I’m using Ubu 32-bit on intel so I changed the file in the directory fixup.c belonging pci x86 architecture. If you have other types of laptops in this series with other features, and you have the same bug, you can edit the same file in a directory other than x86. For example for 64-bit version you have to access the file arch/ia64/pci/fixup.c and paste the contents of the file to patch.
8)We can dedicate ourselves to the specific change in the configuration file according to our preferences if we want something optimized for our machine, otherwise you can leave as is (both are already the choice of configuration files that are currently used to boot linux ) and skip to step 9. For perfectionists, however this is the command to access the configuration menu
# make menuconfig
9)Now we carry out thorough cleaning of the code (useful if you happen to have to start over from scratch even if errors occur during compilation)
# make-kpkg clean
10) Now is the most annoying: the compilation itself. on my machine has made us almost an hour
# CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd --append-to-version=-asus kernel_image kernel_headers
After –append-to-version= you have to write a string that will serve to distinguish the customized version of the kernel. This string must begin with dash “-” and must not contain white spaces. I wrote down “-asus” then do as you like, you choose a name what you like.
11) Now go and make a turn. Go to the gym, go to crush a nap, do whatever you want so we can see in an hour
12) At the end of compilation in the directory can find the newly created deb packages. All that remains is to install
# sudo dpkg -i linux-image-2.6.28.9-asus_2.6.28.9-asus-10.00.Custom_i386
# sudo dpkg -i linux-headers-2.6.28.9-asus_2.6.28.9-asus-10.00.Custom_i386
Et voilĂ . Now you have to do is restart and select the kernel you have just completed to start ubuntu without having to change the line in the grub with the usual restriction of memory: the three are all jig! After that you can use the proprietary fglrx driver of the ATC. I put the 9.5. Happy to have been of help ;D
BL - President

No comments yet