Red Hat Linux on a Compaq Presario 2538cl Notebook
Wednesday, October 29, 2003
Thursday, October 09, 2003
I decided to give the kernel.org kernels a shot, instead of using Red Hat's kernels. Here's the log of how I set up the kernel.
Actually, I first tried only running the kernel with acpi patched in (no swsusp), but the kernel freezes during start-up at kudzu (Checking for new hardware...). I haven't played around with it a lot yet, I'll ask around first and see if I can get to run as smoothly as the RH kernel first.
This post will now supersede that of May 26th.
- Download the latest stable (2.4) kernel and appropriate patches:
- Kernel from kernel.org.
- ACPI Patch matching kernel version from ACPI4Linux project page.
- Software suspend patch from Software Suspend for Linux.
-
New NTFS driver patch from the Linux NTFS Project.It seems I'll have to wait on this driver. The software suspend patch does not support this driver yet. So, just go with the NTFS driver already present in the 2.4 kernel.
- Kernel from kernel.org.
- Unpack the kernel and apply the patches:
- Kernel in /usr/src:
bzip2 -dc ~/Software/linux-2.4.22.tar.bz2 | tar xvf -
As RedHat likes to do, I created a symlink
ln -s /usr/src/linux-2.4.22 /usr/src/linux-2.4
- Apply ACPI patch from /usr/src/linux-2.4:
bzip2 -dc ~/Software/acpi-20030918-2.4.22.diff.bz2 | patch -p1
- Unpack the swsusp package, and then apply it from /usr/src/linux-2.4:
bzip2 -dc ~/Software/swsusp-2.0-rc1-whole | patch -p1
-
Apply the NTFS patch from /usr/src/linux-2.4:
bzip2 -dc ~/Software/linux-2.4.22-ntfs-2.1.4c.patch.bz2 | patch -p1
- Kernel in /usr/src:
- make clean;make mrproper
- Copy my last .config file, which you can see here. I'm still in the process of streamlining this kernel for my laptop, since I don't have tons of time or experience, I'm not sure yet which components are safe to leave out.
make xconfig, just save and exit. - make dep
- Change the version information in /usr/src/linux-2.4/Makefile to reflect the new version. (I just add "custom" to the end.)
- make bzImage
- make modules; make modules_install
- Copy the kernel (and corresponding config file to /boot):
cp /usr/src/linux-2.4/arch/i386/boot/bzImage /boot/vmlinuz-2.4.22custom
/usr/src/linux-2.4/.config /boot/config-2.4.22custom. - mkinitrd initrd-kernel-version.img kernel-version
- Edit the GRUB configuration file and add the kernel entry, appending "resume /dev/hda6" to the kernel parameters. As the HOW-TO on the Software Suspend site suggests, I also added an entry with "resume /hda6 noresume", so you have the option of skipping the resume.
Now it's a matter of getting Software Suspend to work, I haven't tried yet. It will have to wait until I have some time!
Tuesday, September 23, 2003
My to-do list currently stands at:
- Enabling software suspend. I stumbled upon the Software Suspend site at Sourceforge. Will try to incorporate this. Wondering whether it will shorten boot time?
- I'd like set up digital video editing on Linux. This would require compiling and installing some libraries and software. I'll document progress etc. here.
- Think about re-arranging some of the info on this site. The blog is nice, but makes it rather hard to get to stuff.
Friday, August 29, 2003
Okay, here's the comment about automatically saving a .emf file from grace.
After installing pstoedit, and making sure that it can succesfully convert .eps to .emf, add the following line to gracerc in ~/.grace:
DEFINE OFILTER "pstoedit -f emf - %s" PATTERN "*.emf"
Then when specifying the filename with a .emf extension under the "Print Setup" menu (and selecting the eps print device) it will filter it automatically through pstoedit. Still a little tedious, but quicker than doing it all manually.
Wednesday, August 20, 2003
I'm interested in being able to save Grace graph files to wmf/emf. So I found a neat library, libEMF, which I think might be able to do this. Downloaded libEMF from the SourceForge site, together with the patch that is also on that site. Then also downloaded the neat package pstoedit.
- Applied the patch to the libEMF directory: cat libEMF-1.0.fixes-2002-09-30.diff | patch -p1
- ./configure;make;make install
- In the pstoedit directory, also do ./configure;make;make install
- At least now I'm able to convert eps to emf with pstoedit -f wmf file.eps file.emf which produces vector graphs for ease of use in Windows Apps.
Will comment later on how to possibly automatically include this in Grace using some kind of filter.
Tuesday, July 22, 2003
Downloaded and installed the new kernel today. Recompiled according to my previous post.
Also installed Intel Fortran Compiler today. Since there is an incompatibility between ifc and the new glibc libraries used by RH9, I followed some suggestions that I found in an Intel forum. It basically comes down to
- Downloaded glibc-2.2.93-5.i686.rpm from the RH8.0 distribution at a Red Hat FTP mirror.
- Extracted the old libraries from the rpm with the commands:
rpm2cpio glibc-2.2.93-5.i686.rpm | cpio -idv ./lib/i686/libc-2.2.93.so ./lib/i686/libc.so.6 ./lib/libc-2.2.93.so ./lib/libc.so.6 ./lib/libcrypt-2.2.93.so ./lib/libcrypt.so.1
rpm2cpio glibc-2.2.93-5.i686.rpm | cpio -idv ./lib/i686/libpthread-0.10.so ./lib/i686/libpthread.so.0 ./lib/libpthread-0.10.so ./lib/libpthread.so.0
- Copied the newly created lib directory to the Intel install directory:
mkdir /usr/local/intel/old_libs; cp -r ./lib/* /usr/local/intel/old_libs/
- Edited /usr/local/intel/compiler70/ia32/bin/ifc.cfg to contain:
-L/usr/local/intel/old_libs -lc-2.2.93
Saturday, July 12, 2003
Found drivers today for the video card! The performance is no doubt a lot better than with the VESA driver. It seems to provide 2D acceleration, which makes a big difference in your interaction with Gnome! Sylvestre Ledru has a site in which he documented installation of Linux on his Presario 2500. He also has a link to the driver, with installation instructions. If his site is down for some reason. Here's my copy of it. Basically, you just untar and run ./install. Also, edit /etc/X11/XF86Config to contain the following:
Section "Device"
Identifier "ATI"
Driver "radeon"
VendorName "ATI Radeon"
BoardName "Mobility U1"
VideoRam 65536
EndSection
And remember to point the "Screen" section to this device.
