$Id: tp-R40e-install-howto,v 1.4 2004/06/28 09:15:51 ms Exp $ ######################################################## ### ### Installation of a Thinkpad R40e ### on Debian Woody/Sarge with Kernel-2.6 ### # Useful informations http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad http://www.linux.org/hardware/laptop.html http://www.linux-laptop.net/ http://www.tuxmobile.org/mylaptops.html # Pre-Installation -> Enter the BIOS with the "Access IBM"-Key -> Disable USB (This is neccessary for a working keyboard at installation time) -> REBOOT -> Enter the BIOS again -> Insert the Woody CD -> Select Boot from "CDROM/DVD" # Installation of Woody -> Remove the "Access IBM"-Partition, because it's wasting 4 gigabytes of harddisk-space. -> Enter the BIOS with "Access IBM"-Key at Boot-Time -> Disable the protection of the maintainance-partition in the menu "security" -> Did the standard-setup with network-install (using a standard pcmcia-nic - because of driver-problems with the nic) -> Don't forget to remove the maitainance-partition -> After that I added stable, testing and unstable-sources to the sources.list -> Added this lines to the apt.conf -- APT::Default-Release "testing"; APT::Get::Show-Upgraded; APT::Cache-Limit 10000000; -- -> apt-get update && apt-get dist-upgrade (answered anything positive:-)) -> apt-get install kernel-source-2.6. kernel-image-2.6. # Preventing slow booting / setting up tzhe bootloader If you using the LILO-bootloader the linux-kernels are loading very slow. Using the GRUB-bootloader increases the bootspeed enormously. If you are afraid to make your system ununsable, it might be a good idea to install GRUB not to the masterbootrecord but to a the bootblock of your root-partition. For testing you add a new entry to you existing lilo.conf -- other=/dev/hda1 label=grub -- -- apt-get install grub # read the grub-installation-instructions and # install the booloader zless /usr/share/doc/grub/README.Debian.gz -- # Network adapter output of "lspci": -- Broadcom NetXtreme (02:00.0 Ethernet controller : Broadcom Corporation : Unknown device 170d (rev 01)) -- The nic is IMHO currently supported by the "tg3"-module. Currently a bug prevent me using this nic. (The driver could be loaded successfully, but I was not able to use it. No data could be transfered over this interface) successfully) * Workaround for the a non-working tg3-driver This was needed because the tg3-driver didn't work initally, currently there is a packet named "bcm5700-source", therefore the following steps are not neccessary anymore. (install release bcm5700-source release 7.1.9-3 and later. see the section "Building my own kernel" below) -> Download the proprietrary i386-Driver for this nic http://www.broadcom.com/drivers/downloaddrivers.php -> Extract the -> Do the following: -- unzip ../linux-7.0.0.zip cd Server/Linux/Driver tar zxvf bcm5700-7.0.0.tar.gz cd bcm5700-7.0.0/src/ make rmod tg3 insmod bcm5700.ko -- Now you can start your network. # Building my own 2.6-kernel / getting partially working ACPI ACPI is currently only working partially: ° getting battery statistics ° dynamic cpu-clocking with cpudyn -- apt-cache search kernel-source|grep 2.6 apt-get install kernel-image- apt-get install kernel-source- apt-get install devfsd hotplug cpudyn -- Install the acpid-daemon: You should exclude while installation-time the acpi-modules "processor" and "thermal", because this freezes the complete system. Alternatively you can change this in "/etc/default/acpid" -- apt-get install acpid -- # Source for the broadcom-driver # (should be >= 7.1.9-3) apt-get install bcm5700-source= sudo apt-get install devscripts cd /usr/src tar jxvf kernel-source-.tar.bz2 cd /usr/src/kernel-source- cp /boot/config- .config make oldconfig make xconfig -- -> Select the celeron-processor -> Select all acpi-parts as modules -> Deaktivate APM -> Select CRAMFS as a static driver -> ... make-kpkg clean # I recommend to compile also the thinkpad-patches described # in the next section make-kpkg kernel_image --initrd --revision=marc.1 make-kpkg modules --initrd --revision=marc.1 --added-modules thinkpad,bcm5700 cd .. dpkg -i kernel-image-2.6. dpkg -i kernel-modules-2.6. # check /etc/lilo.conf and echo "bcm5700">>/etc/modules lilo reboot -- Add this to /etc/fstab: -- # Virtual Filesystems proc /proc proc defaults 0 0 none /dev devfs defaults 0 0 none /dev/pts devpts defaults 0 0 none /sys sysfs defaults 0 0 # User-Filesystems /dev/fd0 /mnt/floppy auto defaults,user,noauto 0 0 /dev/cdro /mnt/cdrom iso9660 defaults,ro,user,noauto 0 0 /dev/sda1 /mnt/usbstick vfat defaults,user,noauto 0 0 /dev/sda /mnt/usbstick1 vfat defaults,user,noauto 0 0 /dev/hde1 /mnt/sandisk vfat defaults,user,noauto 0 0 -- TODO: Documentation about /etc/modules and /etc/mkinitrd/modules FIXME: apt-get install thinkpad-base thinkpad-source # The vga-adapter Read: http://www.cyrius.com/nc4000/ Install XFree4.3.0 from experimental sources.list -- deb http://ftp.de.debian.org/debian/ ../project/experimental main deb-src http://ftp.de.debian.org/debian/ ../project/experimental main -- -- apt-get -t experimental install x-window-system apt-get install x-window-system-core -t experimental apt-get install xserver-common -t experimental apt-get install xserver-xfree86 -t experimental -- -- Section "Device" Identifier "Generic Video Card" Driver "radeon" EndSection -- -- echo "deb http://dri.freedesktop.org/~daenzer/debian/dri-tTrTunk-sid/ ./">/etc/apt/sources.list cd kernel-source cd /usr/src tar zxvf drm-trunk.tar.gz cd kernel-source # Deaktivateing DRM make xconfig make-kpkg modules --initrd --revision=marc.1 --added-modules drm-trunk cd .. dpkg -i drm-trunk-module-2.6.0-test9_2003.10.05-1+marc.1_i386.deb -- For a proper console you might add the string "vga=791" to the your linux-kernel-description. If you are using LILO you should add this as a new line to the image: -- image=/boot/vmlinuz-2.6.3 label=Linux263 initrd=/boot/initrd.img-2.6.3 read-only vga=791 -- If you are using GRUB you should add this to the parameter "kernel": -- title Debian GNU/Linux, kernel 2.6.3 root (hd0,0) kernel /boot/vmlinuz-2.6.3 root=/dev/ide/host0/bus0/target0/lun0/part1 ro vga=791 initrd /boot/initrd.img-2.6.3 savedefault boot -- # The buttons http://www.nongnu.org/tpb/ # The sound-device -> apt-get install sndconfig -> sndconfig -> WORKS :-) # The cdwriter and harddisks echo "ide-cd" >> /etc/modules Add the line -- append="ide0=dma ide0=ata66 idebus=66 acpi=force resume=/dev/hda3" -- to /etc/lilo.conf and execute "lilo" or if you use GRUB add the line -- opt=ide0=dma ide0=ata66 idebus=66 acpi=force resume=/dev/hda3 -- to /boot/grub/menu.list # Modem => Currently not working -> Agere Systems M5457 WinModem apt-get install sl-modem-daemon cd /usr/src tar jxvf sl-modem.tar.bz2 make-kpkg modules --initrd --revision=marc.1 --added-modules sl-modem # IRDA => Untested modprobe ircomm-tty apt-get install irda-common irda-tools