| 18 | |
| 19 | === kernel spec === |
| 20 | * uname -a |
| 21 | {{{ |
| 22 | Linux HOSTNAME 2.6.24-24-server #1 SMP Fri Sep 18 16:47:05 UTC 2009 x86_64 GNU/Linux |
| 23 | }}} |
| 24 | |
| 25 | * aptitude show linux-image-2.6.24-24-server | head |
| 26 | {{{ |
| 27 | Package: linux-image-2.6.24-24-server |
| 28 | State: installed |
| 29 | Automatically installed: yes |
| 30 | Version: 2.6.24-24.61 |
| 31 | }}} |
| 32 | |
| 33 | === requirement === |
| 34 | * sudo aptitude install -R build-essential linux-libc-dev linux-headers-`uname -r` |
| 35 | {{{ |
| 36 | The following NEW packages will be automatically installed: |
| 37 | g++ g++-4.2 gcc gcc-4.2 libc6-dev libgomp1 libstdc++6-4.2-dev |
| 38 | linux-headers-2.6.24-24 |
| 39 | The following NEW packages will be installed: |
| 40 | build-essential g++ g++-4.2 gcc gcc-4.2 libc6-dev libgomp1 |
| 41 | libstdc++6-4.2-dev linux-headers-2.6.24-24 linux-headers-2.6.24-24-server |
| 42 | linux-libc-dev |
| 43 | 0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded. |
| 44 | }}} |
| 45 | |
| 46 | * [http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=15817&lang=eng Network Adapter Driver for PCI-E Gigabit Network Connections under Linux*] |
| 47 | * The e1000e.x.x.x.x.tar.gz is designed to work with the IntelR 82571/2/3/4/7 PCI-E family of gigabit adapters and 82566/7 controllers. |
| 48 | * wget http://downloadmirror.intel.com/15817/eng/e1000e-1.0.2.5.tar.gz |
| 49 | |
| 50 | === make & install === |
| 51 | * tar zxvf e1000e-1.0.2.5.tar.gz |
| 52 | * cd e1000e-1.0.2.5/src/ |
| 53 | * ~/e1000e-1.0.2.5/src$ make |
| 54 | * ~/e1000e-1.0.2.5/src$ sudo make install |
| 55 | {{{ |
| 56 | make -C /lib/modules/2.6.24-24-server/build SUBDIRS=/home/mitty/e1000e-1.0.2.5/src modules |
| 57 | make[1]: Entering directory `/usr/src/linux-headers-2.6.24-24-server' |
| 58 | Building modules, stage 2. |
| 59 | MODPOST 1 modules |
| 60 | make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-24-server' |
| 61 | gzip -c ../e1000e.7 > e1000e.7.gz |
| 62 | # remove all old versions of the driver |
| 63 | find /lib/modules/2.6.24-24-server -name e1000e.ko -exec rm -f {} \; || true |
| 64 | find /lib/modules/2.6.24-24-server -name e1000e.ko.gz -exec rm -f {} \; || true |
| 65 | install -D -m 644 e1000e.ko /lib/modules/2.6.24-24-server/kernel/drivers/net/e1000e/e1000e.ko |
| 66 | /sbin/depmod -a || true |
| 67 | install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz |
| 68 | man -c -P'cat > /dev/null' e1000e || true |
| 69 | man: |
| 70 | cannot write to /var/cache/man/cat7/e1000e.7.gz in catman mode |
| 71 | e1000e. |
| 72 | }}} |
| 73 | |
| 74 | * sudo vim /etc/modules |
| 75 | {{{ |
| 76 | e1000e |
| 77 | }}} |