Note: This is a work in progress...
Just picked up a new IBM T41 2394-DJU.
I have been running gentoo on a R31 for about a year, I remember it took me a few weeks (OK months:-) to get it really working perfectly with that machine.
This time round I thought I would create a how to of all the steps to get the machine up and humming. Hopefully this will be a help other T41 Linux and Gentoo users.
I bought a new drive, One for linux and one for that other operating system that I need from time to time... If you need to share the drive with windows follow one of the excellent guides out there.
BIOS CHANGES
I turned off:
*Power Mode for AC : Custom
*Power Mode for Battery : Custom
I defined the Custom mode as follows:
* Processor speed : Fixed Max
* Suspend Timer : Disabled
* LCD off timer : Disabled
* HDD off timer : 3 Min
Install Steps: (if you have never installed Gentoo read the excellent installation guide and use this as notes)
I used x86-Basic-1.4-20030911.iso to boot the machine.
Code: Select all
# dateNETWORK CARD: the network card worked out of the gate along with framebuffer and like most people I have DHCP server running on my LAN so the network in my case is already configured
Code: Select all
# fdisk /dev/hdaI went with the following scheme:
FILESYSTEMSDevice Boot Start End Blocks Id System
/dev/hda1 * 1 5 40131 83 Linux
/dev/hda2 6 255 2008125 82 Linux swap
/dev/hda3 256 280 200812+ 83 Linux
/dev/hda4 281 7296 56356020 8e Linux LVM
I went with
Code: Select all
#mke2fs -j /dev/hda1 (Ext3 for boot)
#mkswap /dev/hda2 (swap)
#mke2fs -j /dev/hda3 (Ext3 for root 200Megs in this case)Code: Select all
#vgscan
#pvcreate /dev/hda4
#vgcreate vg /dev/ide/host0/bus0/target0/lun0/part4 (assuming you got on hda4)
# lvcreate -L5G -nusr vg (repeat for var, tmp, home, opt, change -L5G e.g. 5gig as appropriate...)
Code: Select all
#mkreiserfs /dev/vg/usr (repeat for var, tmp, home, opt)MOUNT THE FILESYSTEMS
Code: Select all
# swapon /dev/hda2 (Activate the swap partition)
# mount /dev/hda1 /mnt/gentoo (Mount the root partition)
# cd /mnt/gentoo
# mkdir boot usr opt var tmp home (Create the OTHER mountpoints as appropriate)
# mount /dev/hda1 /mnt/gentoo/boot (repeat for usr,home,var,tmp,opt and so on)Code: Select all
#wget url (check out http://www.gentoo.org/main/en/mirrors.xml )Code: Select all
# tar -xvjpf /mnt/cdrom/stages/stage*.tar.bz2
# mirrorselect -a -s4 -o >>
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# mount -t proc none /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update; source /etc/profile
# emerge syncINSTALL GENTOO:
I went with the following use flags in /etc/make.conf
thenCFLAGS="-march=pentium3 -O3 -pipe -msse2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="-kde -qt gtk2 oci8 imap sasl maildir"
CXXFLAGS="${CFLAGS}"
VIDEO_CARDS="radeon"
Code: Select all
# cd /usr/portage; scripts/bootstrap.sh
# emerge system
# ln -sf /usr/share/zoneinfo/<path to time zone file> /etc/localtime
# nano -w /etc/fstabINSTALL THE KERNEL/dev/hda1 /boot ext3 noauto,noatime 1 1
/dev/hda3 / ext3 noatime 0 0
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/vg/usr /usr reiserfs noatime 0 2
/dev/vg/opt /opt reiserfs noatime 0 0
/dev/vg/var /var reiserfs noatime 0 2
/dev/vg/home /home reiserfs noatime 0 2
/dev/vg/tmp /tmp reiserfs noatime 0 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
I went with gentoo-sources which as of this date gave me gentoo-sources-2.4.22r7
Code: Select all
# emerge gentoo-sources
# cd /usr/src/linuxCode: Select all
#make oldconfig (I think this step is necessary if you are copying someone .config file into a new kernel source tree?)
#make menuconfigYou will need LVM if you choose LVM and for gentoo VM fs, /proc fs, /dev fs, /dev fs auto mount at boot)
So for I have found that you need to have:
Local APIC support on uniprocessors has to be disabled for the machine to shutdown properly
Code: Select all
# make dep && make clean bzImage modules modules_install
# cp arch/i386/boot/bzImage.date ; cp .config /boot/config.dateCode: Select all
# emerge syslog-ng vixie-cron reiserfsprogs lvmuserCode: Select all
# rc-update add syslog-ng default
# rc-update add vixie-cron default
# rc-update add domainname defaultCode: Select all
# passwd
# useradd your_user -m -G users,wheel,audio -s /bin/bash
# passwd your_user
# echo mymachine > /etc/hostname
# echo mydomain.com > /etc/dnsdomainname Set up Networking
edit /etc/conf.d/net ( iface_eth0="dhcp" )
Code: Select all
# rc-update add net.eth0 defaultCode: Select all
# emerge grub
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
# nano -w /boot/grub/grub.confCode: Select all
default 1
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux Stable
root (hd0,0)
kernel (hd0,0)/boot/vmlinux.stable root=/dev/hda3
title=Gentoo Linux du jour
root (hd0,0)
kernel (hd0,0)/boot/vmlinux.new root=/dev/hda3 video=vesa,mtrr vga=834REBOOT
TWEAKS
edit /etc/conf.f/hdparm
all_args="-d1 -c3"
Code: Select all
#rc-update add hdparm defaultXFREE GNOME etc
I used this guide as you main reference: http://www.gentoo.org/doc/en/desktop.xml
Code: Select all
#emerge xfree xfree-drm gnome mozillaCode: Select all
#/usr/bin/X11/xf86cfgFirst I tried the Now to get the ATI drivers wasn't too impressed, they worked, but didn't match the reliability of the rest of the system.
I got Xfree to work reliabilty and 1200 GLX Gears,
here is my XF86Config.
However after purchasing a new whiz bang laptop, and being confident enought with Desktop linux to give windows the boot:-) I installed accelerated-X, it's not free and not open source, but it's still an X server and an open standard, so I can still sleep at night:-) . I get 1950 in GLXgears, and everything related to the screen seems to really work well. Flightgear works nicely, things scroll better etc.
CREDITS
These are sites that I found most usefull:
http://bellet.info/~bellet/laptop/t40.html
http://www.linux-on-laptops.com/ibm.html



