sábado, diciembre 23, 2006

wifi con WPA

Nos bajamos wpa_supplicant. Editamos el fichero defconfig y descomentamos la línea CONFIG_DRIVER_IPW=y. También he añadido la lineas:
CFLAGS += -I/usr/local/ssh/include
LIBS += -L/usr/local/ssh/lib

Porque en /usr/local/ssh es donde tengo el OpenSSL y por último sed -i "s:-lcrypto:/usr/local/ssh/lib/libcrypto.a -ldl:g" Makefile

y copiamos el fichero defconfig a .config

Ahora make, después copiaremos los ejecutables wpa_cli y wpa_supplicant a el directorio /usr/local/wifi/sbin

Ahora creamos el archivo de configuración /usr/local/wifi/etc/wpa:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

#Si ocultamos el SSID en el router
ap_scan=2

network={
ssid="MISSSID"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="XXXXXXXX"
}

Y lo lanzamos: /usr/local/wifi/sbin/wpa_supplicant -c /usr/local/wifi/etc/wpa -i eth1 -D wext -dd

Para comprobar que estamos conectados: /usr/local/wifi/sbin/wpa_cli status
Selected interface 'eth1'
bssid=00:16:38:c4:b9:51
ssid=MISSSID
pairwise_cipher=TKIP
group_cipher=TKIP
key_mgmt=WPA-PSK
wpa_state=COMPLETED
ip_address=192.168.1.20

Ya podemos levantar el interfaz: ifup eth1 ipv4

Para parar wpa_supplicant, /usr/local/wifi/sbin/wpa_cli terminate

sábado, diciembre 16, 2006

Touchpad

SynPS/2 Synaptics TouchPad es que tengo instalado. Para que lo detecte bien las xorg, nos bajamos el paquete Synaptics.

Desempaquetamos, make y copiamos synaptics_drv.so a /usr/xorg/lib/X11/modules/input

Ahora lo configuramos /etc/X11/xorg.conf:

Section "ServerLayout"
...
InputDevice "Synaptics Mouse" "AlwaysCore"
...
EndSection

Section "Module"
...
Load "synaptics"
...
EndSection

Section "InputDevice"
Identifier "Synaptics Mouse"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
EndSection

Además del driver se han creado dos ejecutables, synclient y syndaemon. Con syndaemon podemos deshabilitar el touchpad cuando estamos escribiendo: syndaemon -i 1 -d.

viernes, diciembre 15, 2006

USB

Nos vamos al kernel:

Device Drivers -> SCSI device support ->
<M> SCSI device support
[*] legacy /proc/scsi/ support
<M> SCSI disk support

Device Drivers -> USB support ->
<M> Support for Host-side USB
[ ] USB verbose debug messages
[*] USB device filesystem
<M> EHCI HCD (USB 2.0) support
<M> UHCI HCD (most Intel and VIA) support
<M> USB Mass Storage support
[ ] USB Mass Storage verbose debug
[*] Datafab Compact Flash Reader support (EXPERIMENTAL)
[*] Freecom USB/ATAPI Bridge support
[*] ISD-200 USB/ATA Bridge support
[*] Microtech/ZiO! CompactFlash/SmartMedia support
[*] USBAT/USBAT02-based storage support (EXPERIMENTAL)
[*] SanDisk SDDR-09 (and other SmartMedia) support (EXPERIMENTAL)
[*] SanDisk SDDR-55 SmartMedia support (EXPERIMENTAL)
[*] Lexar Jumpshot Compact Flash Reader (EXPERIMENTAL)
[*] Olympus MAUSB-10/Fuji DPC-R1 support (EXPERIMENTAL)
[ ] The shared table of common (or usual) storage devices
<M> USB Human Interface Device (full HID) support
[*] HID input layer support

Ahora vamos cargando los módulos principales: usbcore, uhci_hcd

Para pen drive necesitamos cargar, usb_storage, scsi_mod y sd_mod, la enganchar el pen drive se reará un dispositivo scsi, que puede ser sda, sdb. Para verlo dmesg.

Ya sólo falta montar el dispositivo: mount /dev/sda1 /mnt/pendriver

NOTA: Los pendriver normalmente están con un sistema de fichero FAT.

jueves, diciembre 14, 2006

AIGLX + beryl

Vamos a instalar beryl un gestor de ventana OpenGL. Para ello nos bajamos los fuentes beryl, nos bajamos todos los ficheros svn:
svn co svn://svn.beryl-project.org/beryl/trunk beryl/

* beryl-core-svn, tiene dependencias de startup-notification, libxcomposite, libxdamage, libgl, libpng, glib2, gconf. Libxcomposite y Libxdamage ya está instalados con el xorg. Es importante que esten los fuentes de beryl-mesa en el directorio ../beryl-mesa.
* beryl-plugins-svn, depende librsvg, aquí realmente no obliga a instalar GTK2
* beryl-manager-svn, depende GTK2.
* beryl-dbus-svn, depende dbus.
* beryl-settings-svn, depende GTK2.
* emerald-svn, depende libwnck.
* emerald-themes-svn.

Con esto ya tendríamos el systema montado, si queremos una integración con kde instalaramos aquamarine-svn, si es con gnome heliodor-svn

Para compilar tenemos que hacer hacerlo por orden (ver arriba) y... ./autogen.sh --prefix=/usr/local/beryl-svn

Como no tengo instalado las dependencias en /usr, sino directorios diferentes tengo que decirselo a la utilidad aclocal:
export ACLOCAL="aclocal -I /usr/local/pkgconfig/share/aclocal -I /usr/local/gtk2/share/aclocal -I /usr/local/gnome/share/aclocal"

Una vez terminado de compilar modificamos el .xinitrc:
export PATH=$PATH:/usr/local/beryl-svn/bin:/usr/local/gnome/bin:/usr/local/gtk2/bin

emerald &
beryl-manager &

beryl --indirect-rendering --strict-binding dbus settings &

xterm

Para integrarlo con xfce:
xrdb $HOME/.Xresources

# start beryl and beryl-manager
emerald &
beryl --indirect-rendering --strict-binding &
beryl-manager &
startxfce4

miércoles, diciembre 13, 2006

módulo ipw2200

El siguiente paso es hacer funcionar el USB, concretamente un pen driver (genérico), un mp3 (creative) y el ratón usb.

Como voy a estar compilado continuamente el kernel y no quiero estar instalando el módulo de la tarjeta wireless, muevo el directorio wireless de /lib/modules/2.6.18.3/kernel/driver/net a /lib/modules/2.6.18.3/net

lunes, diciembre 11, 2006

X Window: DRI

Compilamos los módulos del kernel:

Device Drivers -> Character devices ->
<*> /dev/agpgart (AGP Support)
<M> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
<M> Intel 830M, 845G, 852GM, 855GM, 865G
<M> i915 driver

En /etc/X11/xorg.conf añadimos en la sección "Device": Option "DRI" "True", en "Module": Load "dri", y añadimos la sección

Section "DRI"
Group "video"
Mode 0660
EndSection

X Window

Ya tengo todo instalado para xorg 7.1, sólo me falta los drivers. Me bajo todos y iré compiladon uno a uno lo que necesite.

El touchpad es:
Synaptics Touchpad, model: 1, fw: 5.9, id: 0x256eb1, caps: 0x804713/0x0
input: SynPS/2 Synaptics TouchPad as /class/input/input1

Input: keyboard, mouse (para el touchpad).
Video: Para nuestra Intel Corporation 82852/855GM Integrated Graphics Device el driver es i810.

Section "Device"
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "82852/855GM Integrated Graphics Device"
EndSection



Ok, startx y funciona. El touchpad funciona pero habrá que instalar un driver más especifico.

Pero tenemos un problema direct rendering está Disabled, intentaremos solucionarlo.

sábado, diciembre 09, 2006

Administración de la energía IV: Suspensión II

Ok, ya lo he conseguido...

echo 524288000 > /sys/power/image_size

/usr/local/vbetool/sbin/vbetool vbestate save > /delme
sync ; echo -n platform > /sys/power/disk; echo -n mem > /sys/power/state
/usr/local/vbetool/sbin/vbetool vbetool post
/usr/local/vbetool/sbin/vbetool vbestate restore < /delme

rm /delme

/etc/rc.d/init.d/console start


Puede que necesites pulsar alguna tecla porque habrá saltado el protector de pantalla.

viernes, diciembre 08, 2006

RAMDISK

Para hacer más rápidas la compilaciones vamos a realizar un ramdisk, que no es otra cosa que un disco virtual en memoria.

Activamos la opción del kernel Device Drivers -> Block devices -> <M> RAM disk support
Como voy a utilizar ext2 para el ramdisk, la reiserfs utiliza 33 Mb para empezar: File systems -> <M> Second extended fs support

Ahora cargarmos el módulo, como quiero más de 4 Mb pongo la opción rd_size=100000, es decir, unos 100 Mb: modprobe rd rd_size=100000, y el módulo ext2.

Ahora tengo que formatear la "disco" voy a formatearlo en ext2, , mke2fs /dev/ram0, luego lo monto mount /dev/ram0 sources -t ext2

Y ahora el sonido...

Volvamos a las fuentes del kernel...

Device Drivers->
Sound ->
<M> Sound card support
Advanced Linux Sound Architecture ->
<M> Advanced Linux Sound Architecture
<M> OSS Mixer API
<M> OSS PCM (digital audio) API
[*] OSS PCM (digital audio) API - Include plugin system
<M> RTC Timer support
[*] Support old ALSA API
[*] Verbose procfs contents
[*] Verbose printk
PCI devices --->
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller

Compilamos, instalamos los módulos (hay que volver a reinstalar los driver de la wifi) y ahora a cargar el módulo snd_intel8x0 vemos la salida de dmesg
ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 59491 usecs
intel8x0: clocking to 48000

Para tener compatibilidad OSS cargamos los módulos snd-mixer-oss y snd-pcm-oss

Sólo nos queda instalar ALSA para probar el sonido...

Seguimos con el ahorro: El disco duro

Para activar el ahorro de energia en el disco necesitamos hdparm:
make
make binprefix=/usr/local/ manprefix=/usr/local/ install

Probemos hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
Model Number: FUJITSU MHV2040AT
Serial Number: NS9CT5925NAG
Firmware Revision: 00000096
Standards:
Used: ATA/ATAPI-6 T13 1410D revision 3a
Supported: 6 5 4
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 78140160
device size with M = 1024*1024: 38154 MBytes
device size with M = 1000*1000: 40007 MBytes (40 GB)

Capabilities:
LBA, IORDY(cannot be disabled)
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = ?
Advanced power management level: 128 (0x80)
Recommended acoustic management value: 254, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
Power-Up In Standby feature set
* SET_MAX security extension
* Automatic Acoustic Management feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* SMART error logging
* SMART self-test
* IDLE_IMMEDIATE with UNLOAD
* SMART Command Transport (SCT) feature set
* SCT LBA Segment Access (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
40min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct

Y ahora hdparm -Tt /dev/hda

/dev/hda:
Timing cached reads: 1412 MB in 2.00 seconds = 706.00 MB/sec
Timing buffered disk reads: 80 MB in 3.02 seconds = 26.53 MB/sec

Aplicamos hdparm -d1 -c3 -m16 -M128 /dev/hda

Volvemos hacer hdparm -Tt /dev/hda
Timing cached reads: 1484 MB in 2.00 seconds = 741.98 MB/sec
Timing buffered disk reads: 80 MB in 3.01 seconds = 26.56 MB/sec

Realmente no se nota el cambio. Pero el hdparm nos sistema para suspender el disco duro con la opción -Sn, donde n * 5 de segundos de inactividad para suspender el disco.

Administración de la energía IV: Suspensión

Para suspender:
sync ; echo platform > /sys/power/disk; echo mem > /sys/power/state

El Q25 suspender se suspender, pero al despertarlo no se enviende la pantalla. Buscado por he encontrado una utilizadad vbetool que permite encender y apagar la pantalla.

Para compilar vbetool necesitamos las PCI Utils:
sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh
make PREFIX=/usr/local/pciutils
make PREFIX=/usr/local/pciutils install

install -v -m 755 -d /usr/local/pciutils/include/pci
install -v -m 755 -d /usr/local/pciutils/lib
install -v -m 644 lib/libpci.a /usr/local/pciutils/lib
install -v -m 644 lib/*.h /usr/local/pciutils/include/pci

Para el update-pciids.sh, que actuliza la base de datos de lspci, necesitamos wget (ya lo tenemos) y which:

cat > /usr/local/bin/which << "EOF"
#!/bin/bash
type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}
EOF
chmod -v 755 /usr/local/bin/which
chown -v root:root /usr/local/bin/which

Actualizamos la base de datos: /usr/local/pciutils/sbin/update-pciids

Ahora instalamos vbetool:
./configure --prefix=/usr/local/vbetool

Editamos el Makefile: y en CPPFLAGS añadimos -I/usr/local/pciutils/include y buscamos todos lo sitios donde ponga $(libdir)/libpci.a lo reemplazamos por /usr/local/pciutils/lib/libpci.a

make
make install

Probamos...

sync ; echo platform > /sys/power/disk; echo mem > /sys/power/state
/usr/local/vbetool/sbin/vbetool dpms on

Pero no funciona :-(

Administración de la energía IV: Hibernación

Para hibernar el Q25 hay que hacer:
#Amplio la imagen a mis 1,25 Gbytes: (1024 + 256) * 1024 * 1024

echo 1342177280 > /sys/power/image_size
sync ; echo platform > /sys/power/disk; echo disk > /sys/power/state

Para que al arrancar vaya al swap para recuperar, editar /boot/grub/menu.lst y en la opciones kernel añadir resume=/dev/hda3 (mi partición swap). Así es como quedaría:
kernel (hd0,1)/boot/bzImage-2.6.18.3 root=/dev/hda2 ro resume=/dev/hda3

Al volver la consola no recupera el tipo de letra correcto, para recupelarla: /etc/rc.d/init.d/console start.

Para que todo se automático creo el script:
echo 1342177280 > /sys/power/image_size
sync ; echo platform > /sys/power/disk; echo disk > /sys/power/state
/etc/rc.d/init.d/console start

El comando sync vacía los buffers del disco.

jueves, diciembre 07, 2006

Administración de la energía III: ACPI

Ya hemos visto el módulo processor.

ac:
al cargar el módulo ac crea un fichero /proc/acpi/ac_adapter/ADP1/state indicando si está conectado a la red eléctrica (on-line) o no (off-line)

thermal:
Crea el directorio /proc/acpi/thermal_zone/THRM con información sobre la temperatura del Q25. El fichero más interesante es temperature que nos indica la temperatura del cpu.

fan:
Crea el fichero /proc/acpi/fan/FAN0/fan, el estado del ventilador.

dock:
Según la documentación del kernel añade soporte para ACPI controle las dock stations.

button:
crea en /proc/acpi/button los directorios lid/* power/* sleep/*. /proc/acpi/button/lid/LID0/state nos indica si está levantada la tapa o no del Q25.

battery:
Crea /proc/acpi/battery/BAT1 con información de la bateria y consumo. El fichero info nos da información de la bateria y state con el estado cargando/descargando, consumo en eso momento y energia almacenada.

Administración de la energía II: Frecuencia del procesador

Vemos a que velocidad corre nuestro procesador:
cat /proc/cpuinfo

cpu MHz : 1594.910

modprobe speedstep-centrino

Esto carga los módulos speedstep_centrino, freq_table, processor

dmesg:
Time: acpi_pm clocksource has been installed.
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU0] (supports 2 throttling states)

Y crea el directorio /sys/devices/system/cpu/cpu0/cpufreq. En este directorio hay varios ficheros que nos sirve para dar órdenes y obtener información. El que nos interesa es scaling_governor, es aquí donde vamos a decirle cual va a ser la política de frecuencia del procesador. Por defecto hemos decidido que sea performance, que significa que el procesador irá a 1,6 Ghz. Tenemos 4 políticas:
a) performance. Mayor frecuencia de procesador siempre. 1,6 Ghz
b) powersave. Menor frecuencia de procesador siempre. 600 Mhz
c) userscape. La frecuencia que queramos dentro del rango: cat scaling_available_frequencies
d) ondemand. Según la demanda.
e) conservate. Según la demanda pero enfocado al ahorro.

Las politicas que podemos utilizar están en el fichero scaling_available_governors. Por defecto sólo está performance. Yo utilizo conservate, así pues, modprobe cpufreq_conservative y lo activo: echo -n conservative > scaling_governor

Volvemos hacer cat /proc/cpuinfo
cpu MHz : 600.000

A mayor frecuencia mayor consumo y mayor calor disipado

Lamentablemente no se puede poner por defecto la política conservative, así pues habrá que hacer un guión de arranque que lo haga.

Administración de la energía I

Con las opciones de kernel de administración de la energía nos permite ver el consumo el Q25, cuanta batería queda, modificar la frecuencia de procesador, suspensión e hibernación, y demás opciones de ahorro de la energía.

Hibernación:
Power management options (ACPI, APM) ->
[*] Power Management support
[*] Software Suspend
(/dev/hda3) Default resume partition

/dev/hda3 es mi partición swap, esta debe ser el doble, al menos, de la memoria RAM que tenga el Q25. Yo tengo 1,25 G y una swap de 3 G

ACPI:
Power management options (ACPI, APM) ->
[*] Power Management support
ACPI (Advanced Configuration and Power Interface) Support ->
[*] ACPI Support
[*] Sleep States (NEW)
<M> AC Adapter
<M> Battery
<M> Button
<M> Generic Hotkey
<M> Fan
<M> Dock
<M> Processor
<M> Thermal Zone (NEW)

Frecuencia del procesador:
Power management options (ACPI, APM) ->
[*] Power Management support
CPU Frequency scaling --->
[*] CPU Frequency scaling
<M> CPU frequency translation statistics
[*] CPU frequency translation statistics details
Default CPUFreq governor (performance) --->
--- 'performance' governor
<M> 'powersave' governor
<M> 'userspace' governor for userspace frequency scaling
<M> 'ondemand' cpufreq policy governor
<M> 'conservative' cpufreq governor
<M> Intel Enhanced SpeedStep
[*] Use ACPI tables to decode valid frequency/voltage pairs (NEW)
[*] Built-in tables for Banias CPUs (NEW)

Ok, salimos guardamos y compilar...

Lo instalamos los módulos. Esto hace que perdamos el driver de la tarjeta wifi, lo cual entramos en las fuentes del driver y... make install

miércoles, diciembre 06, 2006

wifi con WEP

Configuramos nuestro router wifi con encriptación wep y le ponemos una clave.

Ponemos el essid y channel con en el caso anterior y añadir la opción key:
iwconfig eth1 essid TOLETUM channel 11 key restricted key s:CLAVE


Vemos si hemos conectado iwconfig eth1 tiene que tener puesto el "Access Point" la MAC del router.

Y levantamos el interfaz.

martes, diciembre 05, 2006

wifi con dhcpcd

Primero instalamos la paquete Dhcpcd-2.0.8.

tar xf dhcpcd-2.0.8.tar.bz2
cd dhcpcd-2.0.8
./configure --prefix="/usr/local/dhcp"
make
make install

Luego en /etc/sysconfig/network-devices/services creamos el fichero dhcpcd:
# Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
# Rewritten by Nathan Coulson
# Adapted for dhcpcd by DJ Lucas

#$LastChangedBy: dnicholson $
#$Date: 2006-10-01 13:07:56 -0500 (Sun, 01 Oct 2006) $

. /etc/sysconfig/rc
. $rc_functions
. $IFCONFIG


DAEMON="/usr/local/dhcp/sbin/dhcpcd"

PIDFILE="/var/run/dhcpcd-$1.pid"
LEASEINFO="/var/lib/dhcpc/dhcpcd-$1.info"

case "$2" in
up)
boot_mesg -n "Starting dhcpcd on the $1 interface..."
# Test to see if there is a stale pid file
if [ -f "$PIDFILE" ]
then
ps `cat "$PIDFILE"` | grep dhcpcd > /dev/null
if [ $? != 0 ]
then
rm -f /var/run/dhcpcd-$1.pid > /dev/null
else
boot_mesg "dhcpcd already running!" ${WARNING}
echo_warning
exit 2
fi
fi
$DAEMON $1 $DHCP_START
# Save the return value
RET="$?"
# Print the assigned settings if requested
if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then
. /var/lib/dhcpc/dhcpcd-$1.info
if [ "$PRINTALL" = "yes" ]; then
echo ""
echo_ok
boot_mesg " DHCP Assigned Settings for $1:"
boot_mesg_flush
boot_mesg " IP Address: $IPADDR"
boot_mesg_flush
boot_mesg " Subnet Mask: $NETMASK"
boot_mesg_flush
boot_mesg " Default Gateway: $GATEWAY"
boot_mesg_flush
boot_mesg " DNS Server: $DNS"
boot_mesg_flush
else
boot_mesg " IP Addresss: ""$IPADDR"
echo_ok
fi
else
echo ""
$(exit "$RET")
evaluate_retval
fi
;;

down)
boot_mesg -n "Stopping dhcpcd on the $1 interface..."
# Do nothing with the client daemon if we have an infinate
# lease time as the client exits when started in this case,
# just echo OK.
if [ -e $LEASEINFO ]
then
. $LEASEINFO

if [ "$LEASETIME" = "4294967295" ]
then
# do nothing, just echo ok
echo ""
echo_ok
else
if [ -n "$DHCP_STOP" ]
then
$DAEMON $1 $DHCP_STOP &> /dev/null
RET="$?"
if [ "$RET" -eq 0 ]; then
echo ""
echo_ok
elif [ "$RET" -eq 1 ]; then
boot_mesg "dhcpcd not running!" ${WARNING}
echo_warning
else
echo ""
echo_failure
fi
else
echo ""
killproc dhcpcd
fi
fi
else
boot_mesg -n "LEASEINFO Test failed! - " ${WARNING}
boot_mesg "dhcpcd is not running!" ${WARNING}
echo_warning
exit 1
fi
;;

*)
echo "Usage: $0 [interface] {up|down}"
exit 1
;;
esac

# End $network_devices/services/dhcpcd

chmod 755 dhcpcd

Luego en /etc/sysconfig/network-devices/ifconfig.eth1 (nuestra interfaz wifi) creamos el fichero dhcpcd:
ONBOOT="no"
SERVICE="dhcpcd"
DHCP_START=""
DHCP_STOP="-k"

# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="yes"

# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="yes"

y levantamos el interfaz: /etc/sysconfig/network-devices/ifup eth1

Conexión a la red Wifi sin seguridad

Ya tenemos el driver instalado y la wireless tools.

Vamos a probar:
iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 unassociated ESSID:off/any
Mode:Managed Channel=0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 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

Ahora vamos ver qué redes tenemos a nuestro alcance: iwlist eth1 scanning

Ponemos el id de nuestra red: iwconfig eth1 essid "TOLETUM"
El canal: iwconfig eth1 channel 11


iwconfig eth1

eth1 IEEE 802.11g ESSID:"TOLETUM"
Mode:Managed Frequency:2.462 GHz Access Point: XX:XX:XX:XX:XX:XX
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=97/100 Signal level=-27 dBm Noise level=-87 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Ya estamos conectados, ahora hay que configurar la eth1

Primero y para evitar problema paramos la eth0: /etc/rc.d/init.d/network stop

En /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 ponemos ONBOOT=no y creamos el directorio /etc/sysconfig/network-devices/ifconfig.eth1 creamos el fichero ipv4:
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.20
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=255.255.255.0

Yo normalmente no utilizo la eth0 y eth1 al mismo tiempo, es más una vez configurada la wifi no uso el cable, si fuese así en ONBOOT=no y con /etc/sysconfig/network-devices/ifup y /etc/sysconfig/network-devices/ipdown iria cambiando de interfaz

Y arrancamos /etc/rc.d/init.d/network start.

Con esto la eth0 no se va a levantar, pero si nuestra eth1 (wifi)

Y ahora la wifi: Intel Corporation PRO/Wireless 2200BG

Vamos hacer que linux reconozca la tarjeta wifi del portátil. La tarjeta es 0000:02:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05). Este portátil se conoce como Intel Centrino.

Vamos a las fuentes kernel: make menuconfig
Device Drivers -> Network device support
[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions
< > Intel PRO/Wireless 2200BG and 2915ABG Network Connection

OJO: Desactivado Intel PRO/Wireless 2200BG and 2915ABG Network Connection

Device Drivers -> Generic Driver Options:
[*] Select only drivers that don't need compile-time external firmwar
[*] Prevent firmware from being built
<m> Userspace firmware loading support

Networking:
[*] Networking support
< > Generic IEEE 802.11 Networking Stack

OJO: Desactivado Generic IEEE 802.11 Networking Stack

Cryptographic options:
[*] Cryptographic API
<m> AES cipher algorithms (i586)
<m> ARC4 cipher algorithm
<m> Michael MIC keyed digest algorithm

Library routines:
<m> CRC32 functions

Ahora nos descargamos los fuentes del driver y el firmware. Todo esto está en http://ipw2200.sourceforge.net/firmware.php y http://ipw2200.sourceforge.net/downloads.php.

Todas las fuentes y firmware los dejo en /usr/src.

Las instrucciones son para la versión 3.0 de firmware y 1.2.0 del driver.

Para compilar el driver necesitamos ieee80211 subsystem for Linux, los fuentes están http://ieee80211.sourceforge.net/downloads.php. La versión que voy a utilizar es 1.2.15
tar xf ieee80211-1.2.15.tgz
cd ieee80211-1.2.15
make
make install

Con esto instala en /lib/modules/2.6.18.3/net/ieee80211/ los módulos necesarios.
ieee80211_crypt_ccmp.ko ieee80211_crypt_tkip.ko ieee80211.ko
ieee80211_crypt.ko ieee80211_crypt_wep.ko

Ahora el driver:

tar xf ipw2200-1.2.0.tgz
cd ipw2200-1.2.0
make KSRC=/usr/src/linux
make KSRC=/usr/src/linux install

/usr/src/linux es dónde están los fuentes de linux

Ya tenemos instalado en /lib/modules/2.6.18.3/kernel/drivers/net/wireless/ el módulo ipw2200.ko

Por último instalamos el firmware:
tar xf ipw2200-fw-3.0.tgz
cd ipw2200-fw-3.0
cp -v *.fw /lib/firmware/

Veamos si está todo bien:
modprobe firmware_class
modprobe crc32

modprobe ieee80211
tail /var/log/kern.log
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, 1.2.15
ieee80211: Copyright (C) 2004-2005 Intel Corporation jketreno@linux.intel.com
modprobe ieee80211_crypt_wep
tail /var/log/kern.log
ieee80211_crypt: registered algorithm 'WEP'

modprobe ipw2200
tail /var/log/kern.log
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0dmq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
PCI: Found IRQ 11 for device 0000:02:04.0
PCI: Sharing IRQ 11 with 0000:02:08.0
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Detected geography ZZD (13 802.11bg channels, 0 802.11a channels)

No borro los directorios con las fuentes.

Para que la tarjeta wifi sea eth1:
borramos /etc/udev/rules.d/75-persistent-net-generator.rules
y creamos/editamos /etc/udev/rules.d/70-persistent-net.rules con la siguiente linea: SUBSYSTEM=="net", SYSFS{address}=="DIRECCION_MAC", NAME="eth1"

Para saber la DIRECCION_MAC: cat /sys/class/net/eth1/address o con ip addre campo link/ether

Ok, todo tiene buena pinta. Ahora tenemos que instalar Wireless Tools.

Para ello seguimos los pasos de BLFS.

Afinando el sistema

Sólo nos queda configurar un poco nuestro linux para que tenga mejor aspecto.

Configuración general, para todos los usuarios:
/etc/profile:
# Begin /etc/profile

export LANG=es_ES.utf8
export INPUTRC=/etc/inputrc

export PATH=/bin:/usr/bin

if [ $EUID -eq 0 ] ; then
export PATH=$PATH:/sbin:/usr/sbin
unset HISTFILE
fi

# Setup some environment variables.
export HISTSIZE=1000
export HISTIGNORE="&:[bf]g:exit"
#export PS1="[\u@\h \w]\\$ "
export PS1='\u@\h:\w\$ '

# End /etc/profile

/etc/bashrc:
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)

if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
fi
fi
alias ls='ls --color=auto'


Configuración para root:
/root/.bash_profile:
if [ -f "$HOME/.bashrc" ] ; then
source $HOME/.bashrc
fi

/root/.bashrc:
if [ -f "/etc/bashrc" ] ; then
source /etc/bashrc
fi

Por último:
dircolors -p > /etc/dircolors

wget

Con esta utilidad nos podremos bajar la paquetes que necesitemos.

Nos bajamos los fuentes de http://ftp.gnu.org/gnu/wget/wget-1.10.2.tar.gz

./configure --prefix=/usr/local/wget
make
make install

Más tarde cuando instalemos openSSL volveremos a compilar para que prueba trabajo en entornos seguros.

lunes, diciembre 04, 2006

.config

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18.3
# Tue Dec 5 20:54:15 2006
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_EMBEDDED is not set
CONFIG_UID16=y
CONFIG_SYSCTL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y

#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"

#
# Processor type and features
#
# CONFIG_SMP is not set
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
CONFIG_MPENTIUM4=y
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_TSC=y
# CONFIG_HPET_TIMER is not set
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
# CONFIG_X86_MCE_P4THERMAL is not set
CONFIG_VM86=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_X86_REBOOTFIXUPS is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set

#
# Firmware Drivers
#
# CONFIG_EDD is not set
# CONFIG_DELL_RBU is not set
# CONFIG_DCDBAS is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_SPARSEMEM_STATIC=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_REGPARM=y
# CONFIG_SECCOMP is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
# CONFIG_KEXEC is not set
CONFIG_PHYSICAL_START=0x100000
# CONFIG_COMPAT_VDSO is not set

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=""

#
# ACPI (Advanced Configuration and Power Interface) Support
#
# CONFIG_ACPI is not set

#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
CONFIG_APM_REAL_MODE_POWER_OFF=y

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
# CONFIG_PCIEPORTBUS is not set
# CONFIG_PCI_MSI is not set
CONFIG_ISA_DMA_API=y
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set

#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set

#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
# CONFIG_BINFMT_MISC is not set

#
# Networking
#
CONFIG_NET=y

#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_FIB_HASH=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
# CONFIG_INET_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y

#
# IP: Virtual Server Configuration
#
# CONFIG_IP_VS is not set
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETWORK_SECMARK is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set

#
# Core Netfilter Configuration
#
# CONFIG_NETFILTER_NETLINK is not set
CONFIG_NETFILTER_XTABLES=y
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
CONFIG_NETFILTER_XT_MATCH_LIMIT=y
CONFIG_NETFILTER_XT_MATCH_MAC=y
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
CONFIG_NETFILTER_XT_MATCH_STATE=y
# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set

#
# IP: Netfilter Configuration
#
CONFIG_IP_NF_CONNTRACK=y
# CONFIG_IP_NF_CT_ACCT is not set
# CONFIG_IP_NF_CONNTRACK_MARK is not set
# CONFIG_IP_NF_CONNTRACK_EVENTS is not set
# CONFIG_IP_NF_CT_PROTO_SCTP is not set
CONFIG_IP_NF_FTP=y
# CONFIG_IP_NF_IRC is not set
# CONFIG_IP_NF_NETBIOS_NS is not set
# CONFIG_IP_NF_TFTP is not set
# CONFIG_IP_NF_AMANDA is not set
# CONFIG_IP_NF_PPTP is not set
# CONFIG_IP_NF_H323 is not set
# CONFIG_IP_NF_SIP is not set
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=y
# CONFIG_IP_NF_MATCH_IPRANGE is not set
# CONFIG_IP_NF_MATCH_TOS is not set
# CONFIG_IP_NF_MATCH_RECENT is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_DSCP is not set
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_TTL is not set
# CONFIG_IP_NF_MATCH_OWNER is not set
# CONFIG_IP_NF_MATCH_ADDRTYPE is not set
# CONFIG_IP_NF_MATCH_HASHLIMIT is not set
CONFIG_IP_NF_FILTER=y
# CONFIG_IP_NF_TARGET_REJECT is not set
CONFIG_IP_NF_TARGET_LOG=y
# CONFIG_IP_NF_TARGET_ULOG is not set
# CONFIG_IP_NF_TARGET_TCPMSS is not set
# CONFIG_IP_NF_NAT is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_ARPTABLES is not set

#
# DCCP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP is not set

#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set

#
# TIPC Configuration (EXPERIMENTAL)
#
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not set
CONFIG_WIRELESS_EXT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
# CONFIG_SYS_HYPERVISOR is not set

#
# Connector - unified userspace <-> kernelspace linker
#
# CONFIG_CONNECTOR is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play support
#

#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_IDE_GENERIC is not set
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_CS5535 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IT821X=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
# CONFIG_SCSI is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set

#
# ARCnet devices
#
# CONFIG_ARCNET is not set

#
# PHY device support
#
# CONFIG_PHYLIB is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MII=m
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NET_VENDOR_3COM is not set

#
# Tulip family network device support
#
# CONFIG_NET_TULIP is not set
# CONFIG_HP100 is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
# CONFIG_AMD8111_ETH is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_B44 is not set
# CONFIG_FORCEDETH is not set
# CONFIG_DGRS is not set
# CONFIG_EEPRO100 is not set
CONFIG_E100=m
# CONFIG_FEALNX is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SIS190 is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_SK98LIN is not set
# CONFIG_VIA_VELOCITY is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2 is not set

#
# Ethernet (10000 Mbit)
#
# CONFIG_CHELSIO_T1 is not set
# CONFIG_IXGB is not set
# CONFIG_S2IO is not set
# CONFIG_MYRI10GE is not set

#
# Token Ring devices
#
# CONFIG_TR is not set

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y
# CONFIG_NET_WIRELESS_RTNETLINK is not set

#
# Obsolete Wireless cards support (pre-802.11)
#
# CONFIG_STRIP is not set

#
# Wireless 802.11b ISA/PCI cards support
#
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_AIRO is not set
# CONFIG_HERMES is not set
# CONFIG_ATMEL is not set

#
# Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support
#
# CONFIG_PRISM54 is not set
# CONFIG_HOSTAP is not set
CONFIG_NET_WIRELESS=y

#
# Wan interfaces
#
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_CONSOLE is not set
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
CONFIG_NVRAM=y
CONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_PC8736x_GPIO is not set
# CONFIG_NSC_GPIO is not set
# CONFIG_CS5535_GPIO is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set

#
# TPM devices
#
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set

#
# I2C support
#
# CONFIG_I2C is not set

#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set

#
# Dallas's 1-wire bus
#

#
# Hardware Monitoring support
#
# CONFIG_HWMON is not set
# CONFIG_HWMON_VID is not set

#
# Misc devices
#
# CONFIG_IBM_ASM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
CONFIG_VIDEO_V4L2=y

#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set

#
# Graphics support
#
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_VIDEO_SELECT=y
CONFIG_DUMMY_CONSOLE=y
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set

#
# Sound
#
# CONFIG_SOUND is not set

#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
# CONFIG_USB is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set

#
# MMC/SD Card support
#
# CONFIG_MMC is not set

#
# LED devices
#
# CONFIG_NEW_LEDS is not set

#
# LED drivers
#

#
# LED Triggers
#

#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set

#
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
#
# CONFIG_EDAC is not set

#
# Real Time Clock
#
CONFIG_RTC_LIB=m
CONFIG_RTC_CLASS=m

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=m
CONFIG_RTC_INTF_PROC=m
CONFIG_RTC_INTF_DEV=m
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set

#
# RTC drivers
#
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_TEST is not set
# CONFIG_RTC_DRV_V3020 is not set

#
# DMA Engine support
#
# CONFIG_DMA_ENGINE is not set

#
# DMA Clients
#

#
# DMA Devices
#

#
# File systems
#
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
CONFIG_JFS_FS=m
# CONFIG_JFS_POSIX_ACL is not set
# CONFIG_JFS_SECURITY is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_INOTIFY is not set
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=m
CONFIG_UDF_FS=m
CONFIG_UDF_NLS=y

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=850
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
# CONFIG_CONFIGFS_FS is not set

#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Network File Systems
#
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_SMB_FS is not set
CONFIG_CIFS=m
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_XATTR is not set
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_EXPERIMENTAL is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not set
# CONFIG_EFI_PARTITION is not set

#
# Native Language Support
#
CONFIG_NLS=m
CONFIG_NLS_DEFAULT="iso8859-15"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=m
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
CONFIG_NLS_ISO8859_15=m
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
CONFIG_NLS_UTF8=m

#
# Instrumentation Support
#
# CONFIG_PROFILING is not set
# CONFIG_KPROBES is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_UNUSED_SYMBOLS=y
# CONFIG_DEBUG_KERNEL is not set
CONFIG_LOG_BUF_SHIFT=14
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_FS is not set
# CONFIG_UNWIND_INFO is not set
CONFIG_EARLY_PRINTK=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_DOUBLEFAULT=y

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set

#
# Cryptographic options
#
# CONFIG_CRYPTO is not set

#
# Hardware crypto devices
#

#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
CONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
CONFIG_ZLIB_INFLATE=m
CONFIG_PLIST=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_KTIME_SCALAR=y

La tarjeta de Red: Intel Corporation 82801DB PRO/100

La tarjeta de red que lleva el Q25 es: 0000:02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)

Esta tarjeta está soportada por el kernel, al menos la versión que yo voy a utilizar v2.6.18.3.

Device Drivers -> Network device support ->
[*] Network device support

Device Drivers -> Network device support -> Ethernet (10 or 100Mbit) ->
[*] Ethernet (10 or 100Mbit)
Generic Media Independent Interface device suppor
[*] EISA, VLB, PCI and on board controllers
Intel(R) PRO/100+ support

Ya cargamos los módulos necesaríos: mii, e100
Module Size Used by
e100 28040 0
mii 4352 1 e100

y con dmesg vemos que la tarjeta está reconocida:
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKE] -> GSI 11 (level, low) -> IRQ 11
e100: eth0: e100_probe: addr 0xe0201000, irq 11, MAC addr XX:XX:XX:XX:XX:XX
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex

Configuramos la tarjeta. En /etc/sysconfig/network-devices creamos el directorio ifconfig.eth0, y en este nuevo directorio el fichero ipv4:
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.15
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=255.255.255.0

Paramos y arrancamos el script de inicio:
/etc/rc.d/init.d/network stop
/etc/rc.d/init.d/network start

Para comprobar que está correcto: ip addr
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
inet 192.168.1.15/24 brd 255.255.255.0 scope global eth0

Para que siempre la tarjeta de red RJ45 sea eth0 hacemos lo siguiente:
borramos /etc/udev/rules.d/75-persistent-net-generator.rules
y creamos /etc/udev/rules.d/70-persistent-net.rules con la siguiente linea: SUBSYSTEM=="net", SYSFS{address}=="DIRECCION_MAC", NAME="eth0"

Para saber la DIRECCION_MAC: cat /sys/class/net/eth0/address o con ip addre campo link/ether

Por fin....

Ya he terminado los pasos, sólo me falta el kernel.

Por ahora, sólo quiero que me funcione la tarjeta de red, más tarde iré añadiendo el resto de opciones.

miércoles, noviembre 29, 2006

reiserfsprogs

Cuando llega el paso 6.14. E2fsprogs-1.39, yo voy realmente a instalar el reiserfsprogs-3.6.19. Para ver las instrucciones me voy a BLFS. Lo sigo pero hacer el make me da este error:
../include/reiserfs_fs.h:41:27: error: asm/unaligned.h: No such file or directory

El fichero no existe en /usr/include/asm.

Para solucionarlo he desempaquetado los fuentes del kernel y copiar el fichero cp include/asm-i386/unaligned.h /usr/include/asm

lunes, noviembre 27, 2006

Las fuentes

Vamos a instalar la versión de desarrollo.

Nos vamos a crear nuestro sistema en otra partición, sino que directamente creamos el directorio:
mkdir /lfs

Exportamos la variable de entorno que nos indica donde está nuestro lfs:
export LFS=/lfs

Creamos los directorios para las fuentes:
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources

Y nos bajamos las fuentes y parches, para ello creamos un script:

#!/bin/bash

LISTA="
http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2
http://ftp.gnu.org/gnu/automake/automake-1.10.tar.bz2
http://ftp.gnu.org/gnu/bash/bash-3.2.tar.gz
http://ftp.gnu.org/gnu/bash/bash-doc-3.2.tar.gz
http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz
http://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2
http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2
http://www.bzip.org/1.0.3/bzip2-1.0.3.tar.gz
http://ftp.gnu.org/gnu/coreutils/coreutils-6.6.tar.bz2
http://ftp.gnu.org/gnu/dejagnu/dejagnu-1.4.4.tar.gz
http://ftp.gnu.org/gnu/diffutils/diffutils-2.8.1.tar.gz
http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.39.tar.gz?download
http://expect.nist.gov/src/expect-5.43.0.tar.gz
ftp://ftp.gw.com/mirrors/pub/unix/file/file-4.18.tar.gz
http://ftp.gnu.org/gnu/findutils/findutils-4.2.28.tar.gz
http://prdownloads.sourceforge.net/flex/flex-2.5.33.tar.bz2?download
http://ftp.gnu.org/gnu/gawk/gawk-3.1.5.tar.bz2
http://ftp.gnu.org/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2
http://ftp.gnu.org/gnu/gettext/gettext-0.16.tar.gz
http://ftp.gnu.org/gnu/glibc/glibc-2.5.tar.bz2
http://ftp.gnu.org/gnu/glibc/glibc-libidn-2.5.tar.bz2
http://ftp.gnu.org/gnu/grep/grep-2.5.1a.tar.bz2
http://ftp.gnu.org/gnu/groff/groff-1.18.1.4.tar.gz
ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
ftp://alpha.gnu.org/gnu/gzip/gzip-1.3.5.tar.gz
http://www.sethwklein.net/projects/iana-etc/downloads/iana-etc-2.20.tar.bz2
http://ftp.gnu.org/gnu/inetutils/inetutils-1.5.tar.gz
http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.18-061002.tar.gz
http://www.kernel.org/pub/linux/utils/kbd/kbd-1.12.tar.bz2
http://www.greenwoodsoftware.com/less/less-394.tar.gz
http://www.linuxfromscratch.org/lfs/downloads/development/lfs-bootscripts-20060712.tar.bz2
http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.3.tar.bz2
http://ftp.gnu.org/gnu/m4/m4-1.4.8.tar.bz2
http://ftp.gnu.org/gnu/make/make-3.81.tar.bz2
http://savannah.nongnu.org/download/man-db/man-db-2.4.3.tar.gz
http://www.kernel.org/pub/linux/docs/manpages/man-pages-2.42.tar.bz2
ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.5.tar.gz
http://www.kerneltools.org/pub/downloads/module-init-tools/module-init-tools-3.2.2.tar.bz2
ftp://invisible-island.net/ncurses/ncurses-5.5.tar.gz
http://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz
http://ftp.funet.fi/pub/CPAN/src/perl-5.8.8.tar.bz2
http://procps.sourceforge.net/procps-3.2.7.tar.gz
http://prdownloads.sourceforge.net/psmisc/psmisc-22.3.tar.gz?download
http://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz
http://ftp.gnu.org/gnu/sed/sed-4.1.5.tar.gz
ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.17.tar.bz2
http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.4.1.tar.gz
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz
http://ftp.gnu.org/gnu/tar/tar-1.16.tar.bz2
http://prdownloads.sourceforge.net/tcl/tcl8.4.14-src.tar.gz?download
http://ftp.gnu.org/gnu/texinfo/texinfo-4.8a.tar.bz2
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-103.tar.bz2
http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-20061021.tar.bz2
http://www.kernel.org/pub/linux/utils/util-linux/util-linux-2.12r.tar.bz2
ftp://ftp.vim.org/pub/vim/unix/vim-7.0.tar.bz2
ftp://ftp.vim.org/pub/vim/extra/vim-7.0-lang.tar.gz
http://www.zlib.net/zlib-1.2.3.tar.gz
http://www.linuxfromscratch.org/patches/lfs/development/bash-3.2-fixes-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/bzip2-1.0.3-bzgrep_security-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/bzip2-1.0.3-install_docs-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/coreutils-6.6-i18n-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/coreutils-6.6-suppress_uptime_kill_su-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/coreutils-6.6-uname-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/diffutils-2.8.1-i18n-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/expect-5.43.0-spawn-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/gawk-3.1.5-segfault_fix-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/gcc-4.1.1-specs-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/grep-2.5.1a-redhat_fixes-2.patch
http://www.linuxfromscratch.org/patches/lfs/development/groff-1.18.1.4-debian_fixes-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/grub-0.97-disk_geometry-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/gzip-1.3.5-security_fixes-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/inetutils-1.5-no_server_man_pages-2.patch
http://www.linuxfromscratch.org/patches/lfs/development/kbd-1.12-backspace-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/kbd-1.12-gcc4_fixes-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/less-394-signal_fix-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/linux-2.6.18.3-unifdef-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/mktemp-1.5-add_tempfile-3.patch
http://www.linuxfromscratch.org/patches/lfs/development/module-init-tools-3.2.2-modprobe-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/ncurses-5.5-fixes-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/perl-5.8.8-libc-2.patch
http://www.linuxfromscratch.org/patches/lfs/development/sysklogd-1.4.1-8bit-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/sysklogd-1.4.1-fixes-2.patch
http://www.linuxfromscratch.org/patches/lfs/development/texinfo-4.8a-multibyte-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/texinfo-4.8a-tempfile_fix-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/util-linux-2.12r-cramfs-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/util-linux-2.12r-lseek-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/vim-7.0-fixes-14.patch
http://www.linuxfromscratch.org/patches/lfs/development/vim-7.0-mandir-1.patch
"

for src in $LISTA
do
wget "$src"
done

Nosotros el sistema de ficheros que vamos a utilizar es ReiserFS, por tanto nos bajamos el fuente: http://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.19.tar.gz

A partir de aquí seguir las instrucciones.

Primeros pasos

Primero instalamos un distribución de linux, yo, por ejemplo, he instalado slackware. Hay que instalar los paquetes de desarrollo, como por ejemplo, gcc, make....

Una vez instalado con éxito echamos un vistazo a las caracteristicas del Q25 con lspci:
0000:00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
0000:00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
0000:00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
0000:00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
0000:00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
0000:02:03.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
0000:02:03.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
0000:02:03.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
0000:02:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
0000:02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)