wiki:TipAndDoc/Hardware/e1000e

  • install e1000e driver to Linux kernel

e1000e

  • Intel Gigabit CT Desktop Adapter
    • x1 PCI-Express
    • lspci
      02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
      

Ubuntu

  • install e1000e driver to Ubuntu Hardy

kernel spec

  • uname -a
    Linux HOSTNAME 2.6.24-24-server #1 SMP Fri Sep 18 16:47:05 UTC 2009 x86_64 GNU/Linux
    
  • aptitude show linux-image-2.6.24-24-server | head
    Package: linux-image-2.6.24-24-server
    State: installed
    Automatically installed: yes
    Version: 2.6.24-24.61
    

requirement

  • sudo aptitude install -R build-essential linux-libc-dev linux-headers-`uname -r`
    The following NEW packages will be automatically installed:
      g++ g++-4.2 gcc gcc-4.2 libc6-dev libgomp1 libstdc++6-4.2-dev
      linux-headers-2.6.24-24
    The following NEW packages will be installed:
      build-essential g++ g++-4.2 gcc gcc-4.2 libc6-dev libgomp1
      libstdc++6-4.2-dev linux-headers-2.6.24-24 linux-headers-2.6.24-24-server
      linux-libc-dev
    0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
    

make & install

  • tar zxvf e1000e-1.0.2.5.tar.gz
  • cd e1000e-1.0.2.5/src/
  • ~/e1000e-1.0.2.5/src$ make
  • ~/e1000e-1.0.2.5/src$ sudo make install
    make -C /lib/modules/2.6.24-24-server/build SUBDIRS=/home/mitty/e1000e-1.0.2.5/src modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-24-server'
      Building modules, stage 2.
      MODPOST 1 modules
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-24-server'
    gzip -c ../e1000e.7 > e1000e.7.gz
    # remove all old versions of the driver
    find /lib/modules/2.6.24-24-server -name e1000e.ko -exec rm -f {} \; || true
    find /lib/modules/2.6.24-24-server -name e1000e.ko.gz -exec rm -f {} \; || true
    install -D -m 644 e1000e.ko /lib/modules/2.6.24-24-server/kernel/drivers/net/e1000e/e1000e.ko
    /sbin/depmod -a || true
    install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz
    man -c -P'cat > /dev/null' e1000e || true
    man:
    cannot write to /var/cache/man/cat7/e1000e.7.gz in catman mode
    e1000e.
    
  • sudo vim /etc/modules
    e1000e
    
Last modified 6 years ago Last modified on Mar 22, 2011 9:43:35 PM