Page 1 of 1

Firmware-linux package needed for some network cards

PostPosted: Wed Nov 14, 2012 8:15 pm
by saintless
For some network cards those two packages are needed:
http://packages.debian.org/squeeze/firmware-linux
http://packages.debian.org/squeeze/firmware-linux-nonfree

For example my Gateway E-1400 has Intel 82557/8/9/0/1 Ethernet Pro 100 (rev 08) network card which does not work without firmware-linux installed. If you boot FoxyRoxy and you don't have internet connection type ifconfig command. The normal output should be similar to this one if you have only one network card:
Code: Select all
 root@debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:47:14:2d:fd 
          inet6 addr: fe80::203:47ff:fe14:2dfd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2862 (2.7 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8756 (8.5 KiB)  TX bytes:8756 (8.5 KiB)

If you get this as a result it is most likely you need firmware-linux package:
Code: Select all
root@debian:~# ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8756 (8.5 KiB)  TX bytes:8756 (8.5 KiB)


If this is the case download the filmware-linux packages (from another OS) from the links above. One of the packages is a dependency of the other one. Then boot FoxyRoxy and install them with this command:
Code: Select all
dpkg -i path-and-name-of-the-package

In my example the packages are in /live/image/live and you should get this output:
Code: Select all
root@debian:~# dpkg -i /live/image/live/firmware-linux-nonfree_0.28+squeeze1_all.deb
Selecting previously deselected package firmware-linux-nonfree.
(Reading database ... 46727 files and directories currently installed.)
Unpacking firmware-linux-nonfree (from .../firmware-linux-nonfree_0.28+squeeze1_all.deb) ...
Setting up firmware-linux-nonfree (0.28+squeeze1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686-bigmem
root@debian:~#


Code: Select all
root@debian:~# dpkg -i /live/image/live/firmware-linux_0.28+squeeze1_all.deb
Selecting previously deselected package firmware-linux.
(Reading database ... 46819 files and directories currently installed.)
Unpacking firmware-linux (from .../firmware-linux_0.28+squeeze1_all.deb) ...
Setting up firmware-linux (0.28+squeeze1) ...
root@debian:~#


To save the changes you need to create a snapshot with 95-create script:
Code: Select all
root@debian:~# /scripts/95-create
***
*** Create Snapshot
*** Using: /tmp/sqf-snap
*** Write: /tmp/95-snap.squashfs
***
Press Any Key to Continue...
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /tmp/95-snap.squashfs, block size 131072.
[=========================================================================/] 243/243 100%
Exportable Squashfs 4.0 filesystem, data block size 131072
   compressed data, compressed metadata, compressed fragments
   duplicates are removed
Filesystem size 11267.81 Kbytes (11.00 Mbytes)
   81.58% of uncompressed filesystem size (13812.09 Kbytes)
Inode table size 2217 bytes (2.17 Kbytes)
   29.66% of uncompressed inode table size (7474 bytes)
Directory table size 2457 bytes (2.40 Kbytes)
   51.46% of uncompressed directory table size (4775 bytes)
Number of duplicate files found 31
Number of inodes 221
Number of files 155
Number of fragments 11
umber of symbolic links  2
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 1
Number of directories 63
Number of ids (unique uids + gids) 5
Number of uids 2
   root (0)
   www-data (33)
Number of gids 5
   root (0)
   Debian-exim (103)
   adm (4)
   www-data (33)
   utmp (43)
... Flushing disk buffers ...
root@debian:~#


After reboot you should have working internet.
Anyway just in case it doesn't happen and you still don't have internet connection, this is the way to setup your network from command line (the IP, Netmask, Gateway and DNS servers for you most likely will be different):
Code: Select all
root@debian:~# ifconfig eth0 192.168.0.2 netmask 255.255.255.0

Code: Select all
root@debian:~# route add default gw 192.168.0.1 eth0

Code: Select all
root@debian:~# nano /etc/resolv.conf

Here you have to add the right DNS servers and to save the changes by hitting Ctrl+X followed by Y and Enter.
For example /etc/resolv.conf should contain:
Code: Select all
nameserver 212.39.90.42
nameserver 212.39.90.43