Gentoo Logo
Gentoo Logo Side

[ << ] [ < ] [ Home ] [ > ] [ >> ]


10. Notes à propos d'un Thinkpad T60P

Voici les points abordés dans ce chapitre :

10.a. Mise en contexte

L'installation de Gentoo sur un IBM Thinpad T60P ressemble beaucoup a un PC de table. Par contre, il y a quelques différences importantes.

Code listing 1: Description du portable

Intel CORE 2 duo T7200 2.0 Ghz FSB 667 Mhz
Board Intel avec Chipset 945GM/PM/GMS/940GML avec 945Gt PCI Express ICH7
2x 1 Gig RAM PC 5300 DDR2 667 Mhz
Disque Dur 100 Gig SATA 7200 RPM driver SATA AHCI
Carte Vidéo ATI Firegl V5250 256 Meg RAM GDDR3 PCI-Express
Graveur DVD Hitachi-LG Data Storage Inc. GSA-4083N
Carte de son Onboard Intel High Definition Audio 
Carte réseau Wireless 3945ABG (IPW3945)
Carte réseau Intel E1000 (E1000)
Écran LCD 15.4' wide (1680x1050)

Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express 
                                 Memory Controller Hub (rev 03)
Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT 
                                 Express PCI Express Root Port (rev 03)
Audio device: Intel Corporation 82801G (ICH7 Family) 
                                 High Definition Audio Controller (rev 02)
PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) 
                                 Serial ATA Storage Controller AHCI (rev 02)
SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
VGA compatible controller: ATI Technologies Inc Unknown device 71d4
Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
Network controller: Intel Corporation PRO/Wireless 
                                 3945ABG Network Connection (rev 02)
CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller

Pour bien comprendre comme ça fonctionne, nous devons savoir ceci :

Ce portable utilise du matériel standard et surtout c'est du Intel mur à mur...donc ça ne sera pas un problème d'installer Gentoo sur un Thinkpad. Presque tous les Thinkpad s'installent très bien sous Linux.

Code listing 2: disposition du disque dur

/dev/sda1  NTFS  Recovery Image IBM Thinkpad 5   Gig
/dev/sda2  NTFS  Windows Vista Pro FR        50  Gig
/dev/sda5  NTFS  Backup                      15  Gig
/dev/sda6  FAT32 Pont                        5   Gig
/dev/sda7  EXT2  boot                        100 Meg
/dev/sda8  EXT3  /                           17  Gig
/dev/sda9  SWAP  SWAP                        1   Gig

Code listing 3: Voici le fichier /etc/fstab utilisé :

/dev/sda7           /boot           ext2         noauto,noatime           1 2
/dev/sda8           /               ext3         defaults,noatime         0 1
none                proc            proc         defaults                 0 0
none                /dev/shm        tmpfs        nodev,nosuid,noexec      0 0
/dev/cdroms/cdrom0  /mnt/cdrom0     auto         noauto,user              0 0
/dev/sda6           /mnt/pont       vfat         defaults,rw,user,umask=0 0 0
/dev/sda2           /mnt/win_c      ntfs         defaults,ro,user,umask=0 0 0
/dev/sda5           /mnt/win_d      ntfs         defaults,ro,user,umask=0 0 0
#shm                /dev/shm        tmpfs        nodev,nosuid,noexec      0 0	

Code listing 4: Voici le fichier /etc/make.conf utilisé :

CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
USE="gtk gtk2 -gnome qt kde nls oss alsa dvd dvdread dvdr
     truetype avi userlocales cups foomaticdb
     usb gimpprint divx4linux ppds unicode jpeg gif png 
     win32codecs mp3 opengl
     kdeenablefinal msn mpeg real xv quicktime nsplugin 
     hal dbus pdf tetex"
FEATURES="ccache"
CCACHE_SIZE="2G"
LINGUAS="fr"
INPUT_DEVICES="keyboard mouse evdev synaptics"
VIDEO_CARDS="vesa fglrx"
#SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" 

Note: Synaptics c'est le touchpad tandis que evdev c'est le trackpoint du Thinkpad.

Voici la configuration du Noyau :

Section Code maturity level option T60P

Code listing 5: Options à activer

(*) Prompt for development and/or incomplete code/drivers

Cette option permet de sélectionner les drivers qui sont considérés comme incomplets. Dans cette liste, il y a plusieurs cartes de réseau sans-fil.

Section Loadable module support T60P

Code listing 6: Options à activer

(*) Enable loadable module support
        (*) Module unloading support
           (*) Forced module unloading
        [*]   Automatic kernel module loading

Section Processor type and features T60P

Code listing 7: Options à activer

(*) Symmetric multi-processing support
    Subarchitecture Type PC family compatible
    Processor family (Pentium-4/Celeron(P4-based))
(2) Maximum number of CPUs
(*) SMT (Hyperthreading) scheduler support
    Preemption Model(Preemptible Kernel (Low-Latency Desktop))
(*) Preempt The Big Kernel Lock
(*) Machine check exception
       (*) Check for non-fatal errors on Pentium 4
       (*) Check for P4 thermal throttling interrupt
(*) /dev/cpu/*/msr - Model -specific register support
(*) High Memory Support (4 Gig)
(*) MTRR (Memory Type Range Register) support
(*) Enable kernel irq balancing
(*) Enable seccomp to safely compute untrusted bytecode
(*) Timer frequency (250 HZ)

Attention: Malgré la sortie du noyau 2.6.22,il est conseillé d'utiliser Processor family Pentium-4, malgré la disponibilité de CORE2 pour encore quelque temps.

Section Power Management option T60P

Code listing 8: Options à activer

(*) Legacy Power Management API
(*) ACPI
       (*) ACPI Support
               (*) AC Adapter
               (*) Battery
               (*) Button
               (*) Video
               (*) Fan
               (*) Processor
               (*) Thermal zone

CPU Frequency scaling T60P

Code listing 9: Options à activer

(*) CPU Frequency scaling 
    (*)   CPU frequency translation statistics
          Default CPUFreq governor (performance)
    (*)   'ondemand' cpufreq policy governor
    (*)   ACPI Processor P-States driver
    (*)   Intel Enhanced SpeedStep

Activer le governor performance qui va pousser le CPU à sa vitesse maximale. On peut activer aussi le governor ondemand, celui qui est le plus évolué présentement et qui est compatible avec le T7200.

Section Bus option T60P

Code listing 10: Options à activer

(*) PCI support
       (*) PCI Acces (Any)
       (*) PCI Express support 
       (*) PCI device name database

Très utile pour la ATI FireGl qui est PCI-Express.

Section Executable file format T60P

Code listing 11: Options à activer

(*) Kernel support for ELF binaries
(*) Kernel support for a.out and ECOFF binaries
(*) Kernel support for MISC binaries

Section Networking T60P

Code listing 12: Options à activer

(*) Networking Support
        (*) Networking option
                (*) Packet Socket
                (*) Unix domain Socket
                (*) TCP/IP networking
                (M)  The IPV6 protocol

(*) IrDA (infrared) subsystem support
                (*) Infrared-port device drivers
                     (*) NSC PC87108/PC87338  
                     (*) SMSC IrCC (EXPERIMENTAL) 
(*) Bluetooth subsystem support
    Activer tout en dur (*)
         Bluetooth device drivers(*)
         Activer tout en dur (*)

(*) Wireless
    (*) Generic IEEE 802.11 Networking Stack
    (M) IEEE 802.11 WEP encryption (802.1x)
    (M) IEEE 802.11i CCMP support
    (M) IEEE 802.11i TKIP encryption 

Irda, va servir pour le port infrarouge devant le Thinkpad. On peut aussi activer le Bluetooth. Enfin,dans cette installation ,nous allons utiliser une clé WEP... donc on doit activer l'encryption nécessaire.

Section Device Driver T60P

Code listing 13: Options à activer

(*) Block Device
        (M) Normal Floppy disk support
        (M) Loopback device support
        (M) Packet writing on CD/DVD media
        (*) RAM disk support
            (4096) Default RAM disk size (Kbytes)
            (*) Initial RAM disk (initrd) support

(*) Misc devices
        (*) ThinkPad ACPI Laptop Extras
           (*) Legacy Docking Station Support
           (*) Legacy Removable Bay Support

(*) SCSI device support
        On enlève
        (*) legacy /proc/scsi/support

        On active
        (*) SCSI Disk    Support
        (*) SCSI CDROM   Support
        (*) SCSI Generic Support

(*) Serial ATA (prod) and Parallel ATA (experimental) drivers
        (*) AHCI SATA support 
        (*) Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
        (*) Intel PATA MPIIX support 

(*) IEEE 1394 (FireWire) support 
        (*) IEEE 1394 (FireWire) support  

On doit activer les options Thinkpad ACPI pour activer les touches bleu du Thinkpad. On utilise la nouvelle section SATA-PATA.

Code listing 14: Options à activer

(*) Network device support

    Requis uniquement(TUN/TAP) si le système doit utiliser openvpn
    (M) Universal TUN/TAP device driver

    (*) Ethernet  (10 or 100 MBIT)
       (*) Generic Media independent Interface device

       (*) EISA,VLB,PCI onboard controller.

    (*) Ethernet  (1000 MBIT)
       (*) Intel(R) PRO/1000 Gigabit Ethernet support

Code listing 15: Options à activer

(*) Input device
        (*) Mice
            (*) PS/2 Mouse

Code listing 16: Options à activer

(*) Character devices
    (*) Legacy (BSD) PTY support
    (*) Serial drivers
        (*) 8250/16550 and compatible serial support
        (*)   Console on 8250/16550 and compatible serial port
        (*)   8250/16550 PCMCIA device support 
        (4)   Maximum number of 8250/16550 serial ports
        (1)   Number of 8250/16550 serial ports to register at runtime 
    (*) Hardware Random Number Generator Core support
    (*) Intel HW Random Number Generator support
    (*) Enhanced Real Time Clock Support
    (*) TPM devices
        (*) TPM Hardware Support 
        (*) TPM Interface Specification 1.2 Interface
        (*) National Semiconductor TPM Interface  
        (*) Atmel TPM Interface
        (*) Infineon Technologies TPM Interface

(*) Hardware Monitoring support
    (*) Intel Core (2) Duo/Solo temperature sensor
    (*) IBM Hard Drive Active Protection System (hdaps)

Les options dans Serial drivers vont servir pour le port infrarouge.

Les options pour le TPM sont pour le chip de sécurité.

Le IBM Hard Drive Active sert pour l'anti-choc de IBM.

Code listing 17: Options à activer

*) Graphics Support
        (*) Support for Frame buffer devices
        (*)   VESA VGA graphics support
              VESA driver type (vesafb)
        (*) Console display support
                (*) Video mode selection support
                (*) Frame buffer console support

        (*) Logo Configuration
                (*) Bootup logo
                        (Activer les 3 logos)
        (*) Support for the Frame buffer splash

(*) Sound
       (M) Sound Card support
               (M) Advance Linux Sound Architecture (ALSA)
                       (M) ALSA
                       (M) Sequencer support
                       (M) OSS Mixer API
                       (M) OSS PCM (digital audio) API
                       (*) OSS PCM (digital audio) API - Include plugin system
                       (*) OSS Sequencer API

        (*) PCI Devices
            (M) Intel HD Audio

Note: Il est recommandé d'utiliser le framebuffer VESA.

Code listing 18: Options à activer

(*) USB support
        (M) Support for Host-Side USB
        (*) USB device filesystem
        (M) EHCI HCD (USB 2.0) Support
        (M) UHCI HCD (most Intel and VIA) support
        (M) USB Printer support
        (M) USB Mass Storage support
        (M) USB HUMAN interface device (FULL HID)
        (*) HID Input layer support

Section File systems T60P

Code listing 19: Options à activer

(*) Second Extended support
   (*)   Ext2 extended attributes
   (*)   Ext2 POSIX Access Control Lists

(*) EXT3 journaling file system support
(*) Kernel automounter version 4 support
        (*) CDROM/DVD file system
                (M) ISO 9660 CDROM
                (M) UDF file support

        (*) DOS/FAT/NT file system
                (M) MSDOS FS support
                (M) VFAT Windows 95 FS support
                (863) Default codepage for FAT
                (iso8859-1) Default iocharset for FAT
                (M) NTFS file system support

        (*) Pseudo Filesystems
           (*) /proc file system support
           (*) /proc/kcore support
           (*) Virtual memory file system support (former shm fs)

Code listing 20: Options à activer

(*) Partition types
            (*) Advanced partition selection
            (*) PC BIOS partition tables support
            (*) Windows logical disk manager support

Code listing 21: Options à activer

       (*) Native language support
           (M) Base native language support
           (iso8859-1) Default NLS option
           (M) Codepage 437 (United States,Canada)
           (M) Codepage 863 (Canadien French)
           (M) NLS iso8859-1 (Latin 1: Western European Language)
           (M) NLS iso8859-15 (latin 9 :Western European Language
                               with euro
           (M) NLS UTF8

Section Cryptographic options T60P

Code listing 22: Options à activer

(*) Cryptographic algorithm manager
(M)   SHA1 digest algorithm
(M)   SHA256 digest algorithm
(M)   ECB support  
(M)   CBC support  
(M)   PCBC support 
(*)   AES cipher algorithms  
(*)   AES cipher algorithms (i586)  
(*)   ARC4 cipher algorithm 
(*)   Michael MIC keyed digest algorithm

Attention: Ces options sont très importantes, car elles sont requise pour faire fonctionner le wifi.

10.b. Notes à propos de l'installation du driver wifi pour le T60P

Tout d'abord ce portable est équipé d'une Intel Wireless 3945ABG. Cette carte utilise le driver IPW3945.

Pour faire fonctionner cette carte, vous devez avoir ceci dans votre noyau

Code listing 23: Options à activer

Section Networking
 (*) Wireless
    (*) Generic IEEE 802.11 Networking Stack
    (M) IEEE 802.11 WEP encryption (802.1x)
    (M) IEEE 802.11i CCMP support
    (M) IEEE 802.11i TKIP encryption 

Section Cryptographic options
(*) Cryptographic algorithm manager
(M)   SHA1 digest algorithm
(M)   SHA256 digest algorithm
(M)   ECB support  
(M)   CBC support  
(M)   PCBC support 
(*)   AES cipher algorithms  
(*)   AES cipher algorithms (i586)  
(*)   ARC4 cipher algorithm 
(*)   Michael MIC keyed digest algorithm

10.c. Installation des logiciles pour le wifi

Code listing 24: Installation du wifi

# emerge -pv wireless-tools
# emerge -pDv net-wireless/ipw3945 net-wireless/ipw3945-ucode net-wireless/ipw3945d

Note: Pour une raison X, nous avons dû mettre le package wireless-tools en version testing x86 à cause d'un bug causé par ipw3945.

10.d. Tester sommairement le fonctionnement du driver

Code listing 25: Créer seulement le lien symbolique eth1 et ne pas l'inclure au démarrage

# cd /etc/init.d
# ln -s net.lo net.eth1
# modprobe ipw3945
# iwconfig

Code listing 26: Vérifier si vous avez quelque chose dans le genre

eth1      unassociated  ESSID:off/any
          Mode:Managed  Frequency=nan kHz  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm
          Retry limit:15   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Code listing 27: Vérifier si votre carte wifi peut voir votre routeur

gentootux ~ # iwlist eth1 scan
eth1      Scan completed :
          Cell 01 - Address: 00:1A:70:62:40:88
                    ESSID:"gentoonet"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=90/100  Signal level=-41 dBm  Noise level=-41 dBm
                    Extra: Last beacon: 128ms ago

Maintenant c'est le temps d'utiliser un petit programme qui permet de se connecter temporairement.

Code listing 28: Installation de wlassistant

# echo "net-wireless/wlassistant ~x86" >> /etc/portage/package.keywords 
# emerge -pv net-wireless/wlassistant
# wlassistant

Vous devez choisir votre nom de ESSID et entrer votre clé en Hexa.

Si tout fonctionne, il reste maintenant à configurer de façon définitive votre réseau.

Pour cela, vous devez configurer votre fichier /etc/conf.d/net

Code listing 29: Configuration du wifi

gentootux ~ # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
dns_domain_lo="homenetwork"
config_eth0="dhcp"
dhcpcd_eth0="-N"

#RC_NEED_wlan="ipw3945d"
config_gentoonet=( "dhcp" )
key_gentoonet="307b09e7e3979a1f4988afdb83 enc open"
preferred_aps=( "gentoonet" )

Pour cette exemple, le ESSID du routeur s'appelle gentoonet, alors tout ce qui se rapporte à cela concerne eth1 soit le wifi.

Pour être certain d'utiliser manuellement la connection wifi, vous pouvez effectuer les opérations suivantes

Code listing 30: Bloquer le chargement de IPW3945 par udev

# nano -w /etc/modprobe.d/blacklist
blacklist ipw3945

Vous pouvez utiliser le script wifi.sh suivant pour activer ou déactiver la connexion wifi en root seulement.

Code listing 31: Script de connexion wifi

#!/bin/bash
if [ "$(/etc/init.d/net.eth1 status | grep started)" ]; then
        echo "Arrêt de l'interface eth1"
        /etc/init.d/net.eth1 stop
        echo "Arrêt du démon ipw3945d"
        sleep 1
        /etc/init.d/ipw3945d stop
        echo "Déchargement du module wifi"
        sleep 1
        rmmod ipw3945
        echo "Le wifi est totalement désactivé"
else
        echo "Chargement du module wifi"
        modprobe ipw3945
        echo "Lancement du démon ipw3945d"
        sleep 2
        /etc/init.d/ipw3945d start
        echo "Démarrage de l'interface eth1"
        sleep 2
        /etc/init.d/net.eth1 start
        echo "Wifi activé"
fi

Vous pouvez sauvegarder ce script dans /root

Code listing 32: Ensuite vous devez le rendre exécutable

# chmod +744 wifi.sh

10.e. Note à propos d'un changement de noyau avec le T60P

À chaque fois qu'on change de noyau, il faut réinstaller les drivers suivants :

Code listing 33: Réinstallation de certains packages

# emerge -pD net-wireless/ipw3945 net-wireless/ipw3945-ucode net-wireless/ipw3945d
# emerge -pv ati-drivers

Sinon, vous allez avoir des erreurs de modules et le wifi ne fonctionnera pas.

Enfin,le glxinfo va indiquer que le DRI ne fonctionne pas, car le module fglrx va être invalide...donc pas de 3D dans ce cas.


[ << ] [ < ] [ Home ] [ > ] [ >> ]


The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.
line
Imprimer
line
Dernière mise-à-jour le 2007-12-03
Version : 0.96
line
Sylvain Alain
Auteur Principal

Mathieu Bouchard
Co-Auteur

Éric Langlois
Co-Auteur

Aldric Giacomoni
Conseiller Technique

Laurent Duchenes
Conseiller Technique

Heinrich Nirschl
Conseiller Technique

André Boily
Testeur de la Documentation

Steeve Maltais
Testeur de la Documentation

Sven Vermeulen
Documentation Officielle

Xavier Neys
Traduction Officielle

Camille Huot
Traduction Officielle

line
Résumé  Ce chapitre décrit la procédure d'installation sur un Thinkpad T60P.
line
Copyright 2005-2006 Gentoo Quebec. Questions, commentaires, corrections? Courriel support@gentoo-quebec.org.