|
Install Red Linux 9.0 on Compaq Evo N800v
Detail of my Compaq Evo N800v
|
Processor
|
Intel® Pentium® 4 Mobile 1.7 GHz
|
|
Chipset
|
Based on Intel i845
|
|
Memory
|
512 MB RAM
|
|
Harddisk
|
30 GB Hitachi DK23DA IDE Drive
|
|
Videocard
|
ATI Mobility Radeon 7500 AGP (LW), 64 MB RAM
|
|
Screen
|
14" 1024*768
|
|
DVD/CDRW
|
Toshiba DVD-ROM SD-R2102
|
|
Floppy drive
|
None
|
|
Soundcard
|
SoundMax 3 Integrated Digital Audio
|
|
USB
|
NEC Compatible USB 2 Controller
|
|
Network
|
Intel PRO/100 VE
|
|
Modem
|
Lucent Win Modem
|
|
Pointing device
|
PS/2 compatible
|
|
Infrared
|
FIR (nsc-ircc on port 0x3e8, IRQ 3, DMA 3)
|
Installation of Redhat linux 9.0
Originally the laptop is shipped with a preinstalled Windows XP with a single 30GB partition. XP is convenient for those computer newbies unless you can tolerate the fact that it getting slower and less stable with more and more intalled software. Although my desktop computer has already dominated by linux, I still consider leaving a Xp there just incase I am using some softwares that don't have linux version yet (seems still quite a lot, isn't it? Games etc.:))
So I try to install linux parallely with current Xp system. The following is the print result of parted:
| Disk geometry for /dev/hda: 0.000-28615.781 megabytesDisk label type: msdosMinor Start End Type Filesystem Flags1 0.031 6149.882 primary fat32 boot2 6149.883 6251.857 primary ext33 6251.889 13052.812 primary ext34 13052.812 28615.781 extended lba5 13052.843 13274.296 logical linux-swap6 13274.328 28615.781 logical fat32 |
I am using the Grub as a boot loader. Make sure that the linux /boot partition is within the first 8GB of you harddisk, otherwise it may complain a boot problem. I installed the boot loader on the first sector of the /boot partition and use the boot loader of Windows Xp to load grub. This will not make any change the MBR which is safer and more convenient if you want to upgrade or change your linux installation later.
The following guide taken from http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html
- Install GRUB on the first sector of the /boot partition. DO NOT INSTALL IT ON THE MBR!.
If you are performing the Red Hat installation, for the "Boot Loader Installation" screen:
- Select "Use GRUB as the boot loader"
- Select Install Boot Loader record on "...First sector of boot partition".
- After finishing the Red Hat installation, reboot into Linux. If you don't have a boot disk, try booting in linux rescue mode
If you already have Linux installed:
- Run the following command (e.g. assuming /boot is /dev/hda2): grub-install /dev/hda2.
If you don't know which partition contains /boot, run the df command and check the output.
- Edit /etc/grub.conf and make sure there is an entry for your version of Windows. For reference, here is a copy of my/etc/grub.conf file.
- Determine which partition contains the /boot partition by running the df command. You'll see output like this:
Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda3 8665372 1639580 6585612 20% / /dev/hda2 46636 5959 38269 14% /boot /dev/hda6 513776 189504 324272 37% /osshare none 256624 0 256624 0% /dev/shm
From this output, we see that /boot is on /dev/hda2.
- Make a copy of the Linux boot sector onto a floppy or onto a FAT32 partition. We'll name this copylinux.bin.
To make a copy onto a floppy:
- Mount the floppy drive if it's not mounted (assumes /mnt/floppy exists): mount -t msdos /dev/fd0 /mnt/floppy
- Run the following command: dd if=/dev/hda2 of=/mnt/floppy/linux.bin bs=512 count=1
Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2.
To make a copy onto a FAT32 (vfat) partition:
- Mount the FAT32 partition if it's not mounted yet. If it isn't listed in the df output, it hasn't been mounted yet.
- Run the following command: dd if=/dev/hda2 of=/osshare/linux.bin bs=512 count=1
Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2. Substitute the path for theof= parameter (the output file) with whatever is appropriate for your system. The example here (of=/osshare/linux.bin) is for copying onto a FAT32 partition called osshare.
- Copy the linux.bin file to C:\
- Run notepad and edit C:\boot.ini. Note that C:\boot.ini is a hidden system file, so it probably won't show up in Windows Explorer. To edit the file, try:Start->Run and enter: notepad C:\boot.ini. Add the following line at the end: c:\linux.bin="Linux"
If your C: filesystem is NTFS (not FAT32), you must edit C:\boot.ini as a user with administrator-level privileges.
To make C:\boot.ini writable, you can either :
- Use Explorer:
- Go to Tools->Folder Options->View and select Show hidden files and folders and deselect Hide protected operating system files (Recommended).
- Right-click on the file, view theProperties and uncheck Read-only. You can now edit the file.
- After editing the file, restore the settings to their original state.
- Use the command-line:
- Make the file writable: attrib -R -S -H C:\boot.ini.
- After you've finished editing the file, put the settings back: attrib +R +S +H C:\boot.ini
For reference, here is a copy of myboot.ini file.
You can refer to the following FAQs for any problem that might encountered during the installation using grub.
http://www.linuxjournal.com/article.php?sid=4622
Problems followed
Compaq evo N800v is not APM compatible, it fully relies on ACPI power control interface. Linux' ACPI support on redhat 9.0 with kernel 2.4.20-8 is not implemented. Features such as the battery status, hibernate, standby are not available. I especially found that using APM under linux the system seems generating more heat. Even with the bios option ˇ°cpu fan always onˇ± enabled, it is still not satifactory. 3D support for radeon is not working, although the 2D part works just fine. So i figure that it will be a good idea to try the newly released linuxkernel
Build and install the new kernel 2.6.3
- download the kernel 2.6.3 as a tar file from http://www.kernel.org/
- extract the kernel source to /usr/src/
cd /usr/src/linux-2.6.3/ make xconfig
- config the kernel is really a very time consuming job, you can refer to other sources of faqs or howtos. I am not gonna introduce that. You can refer to the following link for detail.
http://www.linux-sxs.org/upgrading/migration26.html
http://thomer.com/linux/migrate-to-2.6.html
I also attach my kernel config file here which you can use on your N800v and hopefully everything works.
- make sure to pay attention to the following
//this enables the 3D support and AGP functionProcessor type and features ---><*> MTRR (Memory Type Range Register) supportCharacter devices ---><M> /dev/agpgart (AGP Support)[*] Intel 440LX/BX/GX and I815/I820/I830M/I830MP/I840/I845/I850/I860 support// Enable your chipset instead of the above.[ ] Direct Rendering Manager (XFree86 DRI support) ## ACPI (Advanced Configuration and Power Interface) Support#CONFIG_ACPI=yCONFIG_ACPI_BOOT=yCONFIG_ACPI_INTERPRETER=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_THERMAL=yCONFIG_ACPI_BUS=yCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_PCI=yCONFIG_ACPI_SYSTEM=y ## APM (Advanced Power Management) BIOS Support#CONFIG_APM=yCONFIG_APM_CPU_IDLE=yCONFIG_APM_RTC_IS_GMT=y ## USB support#CONFIG_USB=y# CONFIG_USB_DEBUG is not set ## Miscellaneous USB options#CONFIG_USB_DEVICEFS=y ## USB Host Controller Drivers#CONFIG_USB_EHCI_HCD=yCONFIG_USB_OHCI_HCD=yCONFIG_USB_UHCI_HCD=y ## USB Human Interface Devices (HID)#CONFIG_USB_HID=mCONFIG_USB_HIDINPUT=yCONFIG_USB_HIDDEV=y ## USB HID Boot Protocol drivers#CONFIG_USB_KBD=mCONFIG_USB_MOUSE=m ## DOS/FAT/NT Filesystems#CONFIG_FAT_FS=yCONFIG_MSDOS_FS=yCONFIG_VFAT_FS=yCONFIG_NTFS_FS=y # for chinese character supportCONFIG_NLS_CODEPAGE_936=y ## Sound#CONFIG_SOUND=y ## Advanced Linux Sound Architecture#CONFIG_SND=yCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=y ## PCI devices#CONFIG_SND_INTEL8X0=y ## Graphics support#CONFIG_FB=yCONFIG_FB_VGA16=mCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=yCONFIG_FB_RADEON=mCONFIG_FB_RADEON_I2C=yCONFIG_AGP=yCONFIG_AGP_INTEL=yCONFIG_DRM=yCONFIG_DRM_RADEON=m |
- install module-init-tools from http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
- then make (may take as long as 20 mins)
- make modules_install
- make install (this will modify the grub.conf automatically).
- cp arch/i386/boot/bzImage /boot (important!!!)
- refer to the two links that previously give for modules config.
Now you can reboot the computer to enjoy the new kernel. If there is any problem you can always switch back to the old kernel, which is still on the harddisk.
Getting DRI 3D support on redhat
In order to run 3d programs and games, you must have the DRI drivers enabled.
The Direct Rendering Infrastructure (dri.sourceforge.net), also known as the DRI, is a framework for allowing direct access to graphics hardware in a safe and efficient manner. It includes changes to the X server, to several client libraries and to the kernel. The first major use for the DRI is to create fast OpenGL implementations.
Check your XF86Config file under /etc/X11, you'll probably find the following, or you want to use text editor to add the missing lines by your self
Section "Module" Load "dri" Load "glx" ... EndSection ... Section "Device" Driver "radeon" ... EndSection ... Section "dri" Mode 0666 EndSection |
The following are taken from my configuration file with some optimization.
Section "Module" Load "dbe" Load "extmod" Load "fbdevhw" Load "glx" Load "record" Load "freetype" Load "type1" Load "dri" EndSection Section "Device" Identifier "Videocard0" Driver "radeon" VendorName "Videocard vendor" BoardName "ATI Radeon Mobility 7500" VideoRam 32768 Option "AGPMode" "4"# This increased FPS from 609 to 618. Option "AGPFastWrite" "True"# This had no measurable effect, but it may increase instability of your computer.# You may also need to set it in your BIOS. Option "EnablePageFlip" "True"# This improved FPS from 618 to 702. It also is "risky" but few people have reported problems.EndSection |
Make sure dri and glx is loaded, and device driver is ˇ°Driver "radeon"ˇ±. Then open your xterm or any term you are usi
ng now , try the following command
if you get a ˇ°direct rendering: Yesˇ±, then congratulations you can try your favorite games such quake III then, otherwise you may have to install the latest dri modules.
Download from the DRI.sourceforge.net,
Nightly snapshots of the DRI drivers for Linux are available from http://www.freedesktop.org/~dri/snapshots/. You must install the XFree86 binary from the extras directory or you will not be able to start up XFree86 with the new 2d modules. To do that, use bzip -d XFree86.bz2 to decompress the binary, chmod 4755 XFree86 if you don't have a setuid wrapper on your system, and replace/usr/X11R6/bin/XFree86 with the new binary. If you are using a radeon 8500 or higher (8500, 8700, 9000, 9100, 9200, etc.) choose the r200 shapshot, otherwise choose radeon (7000, 7200, 7500, etc.).
follow their instructions step by step.
http://dri.sourceforge.net/cgi-bin/moin.cgi/Documentation
you may also have to insert a line into your rc.sysinit
| action $"Initializing Radeon: " modprobe radeon |
to enable the newly installed radeon modules.
|