Faço assim no Mandrake 8.0, tem que saber o que existe na sua máquina, nem sempre funciona na primeira vez, por isso mude o nome da image criada e coloque mais opções na inicialização ( ex. bzImage243a, bzImage243b ....)
[jcmp3@localhost jcmp3]$ su
Password:
[root@localhost jcmp3]# mkdir /usr/src/kernel243
[root@localhost jcmp3]# tar xvfy /tmp/linux-2.4.3.tar.bz2 -C /usr/src/kernel243/
[root@localhost jcmp3]# cd /usr/src/kernel243/linux/
[root@localhost jcmp3]# make xconfig
PPP generic driver version 2.4.1 <----- isso tem ser nativo (Y)
PPP Deflate Compression module registered <----- isso tem ser nativo (Y)
PPP BSD Compression module registered <----- isso tem ser nativo (Y)
Obs. talvez tenha que instalar esses pacotes abaixo, se ele pedir
make
libbinutils2
libbinutils2-devel
binutils
kernel-headers
glibc-devel
gcc-2.95
ncurses-devel-5.1
[root@localhost jcmp3]# make dep; make clean; make bzImage
[root@localhost jcmp3]# make modules; make modules_install
[root@localhost jcmp3]# cp /usr/src/kernel243/linux/arch/i386/boot/bzImage /boot/
[root@localhost jcmp3]# cd /boot/
[root@localhost jcmp3]# rename bzImage bzImage243
[root@localhost jcmp3]# mcedit grub/menu.lst
Como o arquivo menu.lst deve ficar:
Obs. hdd=ide-scsi ref. ao gravador CDR-RW (para ser tratado com "SCSI")
timeout 5
color black/cyan yellow/cyan
i18n (hd0,4)/boot/grub/messages
keytable (hd0,4)/boot/us-latin1.klt
altconfigfile (hd0,4)/boot/grub/menu.once
default 0
title linux
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 hdd=ide-scsi
title failsafe
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 hdd=ide-scsi failsafe
title windows
root (hd0,0)
makeactive
chainloader +1
title floppy
root (fd0)
chainloader +1
title linux243 <- Essa linha foi acrescentada
kernel (hd0,4)/boot/bzImage243 root=/dev/hda5 hdd=ide-scsi <- Essa linha foi acrescentada
Olhe na página abaixo (use apenas como base, seu micro pode ser completamente diferente)
http://www.jcmp4.f2s.com/kernel242p/kernel241.html
drivers:
1-http://www.jcmp4.f2s.com/pctel-2.4.tar.gz
2-http://www.jcmp4.f2s.com/pctel.o.gz (pronto e testado no kernel 2.4-0, 2.4-1, 2.4-2 e 2.4-3)
1-Ele usa ttyS0 pode travar mouse serial (soluções descarregar o modulo ou mouse PS/2)
2-pctel.o fica /lib/modules/2.4.3/kernel/drivers/net
3-Toda vez utilizar o modulo tem descarrega-lo antes e recarrega-lo (solução no kppp , usa antes de discar "rmmod pctel; insmod -f pctel"
4-Usuário normal não tem permissão para usar insmod / rmmod (solução conectar como root e mudar para usuário comum ou mudar permissão do rmmod e insmod)
5-No kernel 2.4-4 ou kernel 2.4-xx-MDK - Não funcionou ainda o modem pctel HSP
Estou usando neste momento:
O que foi carregado no kernel (bzImage, nativo /Y ), está abaixo
[root@jcmp3 /root]# dmesg
Linux version 2.4.3 ([email protected]) (gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)) #3 Dom Mai 6 13:05:13 EDT 2001
---------
isapnp: Scanning for Pnp cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.14)
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
------------
Serial driver version 5.05 (2000-12-13) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
PPP generic driver version 2.4.1 <----- isso tem ser nativo (Y)
PPP Deflate Compression module registered <----- isso tem ser nativo (Y)
PPP BSD Compression module registered <----- isso tem ser nativo (Y)
--------------
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
-----------------
cmpci: version v2.41-nomodem time 13:25:44 May 6 2001
PCI: Found IRQ 9 for device 00:0c.0
cmpci: found CM8738 adapter at io 0xda00 irq 9
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at iomem 0xc48da268 (irq = 11) is a RSA
Trying to free nonexistent resource <0000dc00-0000dc07>
Trying to vfree() nonexistent vm area (c48da000)
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at iomem 0xc48da268 (irq = 11) is a RSA