domingo, 4 de outubro de 2009

1 tentativa de compilaçao do Kernel Frustrada !

Finalmente após tentar tentar e tentar consegui compilar o kernel

Fiz até um shell script e coloquei em:

http://danilomatias.net76.net/sistemasOperacionais/livres/linux/ubuntu/compilarKernel4.sh

Recomendo fortemene seguir as dicas de:

http://www.vivaolinux.com.br/artigo/Recompilando-o-Kernel-no-Ubuntu-Linux-9.04/?pagina=2


e:

http://linux.lcc.ufmg.br/index.php?option=com_content&view=article&id=53:compilando-o-kernel-do-linux-26x&catid=40:compilacao

Não vejo necessidade de detalhar o procedimento de Compilação aqui, pois já estão devidamente referenciados nos links mencionados ...!

Um abraço e até a próxima ...




***********************************************************************************************
***********************************************************************************************
***********************************************************************************************
***********************************************************************************************
***********************************************************************************************
***********************************************************************************************
***********************************************************************************************

Não tem jeito mesmo terei que ler mais para compilar o meu kernel acredito q em umas 3 semanas resolva tentar compilá-lo novamente ...:
Estou até desenvolvendo um shell script para facilitar o meu trabalho ...:

O script até agora está assim:

***********************************************************************************************
***********************************************************************************************

echo " ********************************************************************" ;
echo " obetendo as configurações do seu hardaware:";
echo " " ;
echo " ********************************************************************" ;
echo " " ;

echo "sudo lshw -html >> lshw.html" ;
sudo lshw -html >> lshw.html
echo " firefox lshw.html & " ;
echo " " ;
echo " ">>configurHw.txt ;
echo " ********************************************************************">>configurHw.txt ;
echo " " >>configurHw.txt ;
echo " Configuração do Hardaware" >>configurHw.txt ;
echo " " >>configurHw.txt ;
echo " ********************************************************************" >>configurHw.txt ;
echo " ">>configurHw.txt ;
echo " " >>configurHw.txt ;
echo " Placa Mãe: ">>configurHw.txt ;
echo " Placa Mãe: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " sudo lspci | grep IDE >>configurHw.txt " ;
echo " sudo lspci | grep IDE " >>configurHw.txt;
echo "">>configurHw.txt;
sudo lspci | grep IDE;
sudo lspci | grep IDE>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
firefox lshw.html &
echo " " ;
echo " Placa de áudio: ">>configurHw.txt ;
echo " Placa de áudio: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " sudo lspci | grep Multimedia >>configurHw.txt " ;
echo " sudo lspci | grep Multimedia " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo lspci | grep Multimedia;
sudo lspci | grep Multimedia>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " Placa de rede:: ">>configurHw.txt ;
echo " Placa de rede: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " sudo lspci | grep Ethernet >>configurHw.txt " ;
echo " sudo lspci | grep Ethernet " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo lspci | grep Ethernet;
sudo lspci | grep Ethernet>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;

echo " USB:">>configurHw.txt ;
echo " USB: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " sudo lspci | grep USB >>configurHw.txt " ;
echo " sudo lspci | grep USB " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo lspci | grep USB;
sudo lspci | grep USB>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " Hard Disk - HD:">>configurHw.txt ;
echo " Hard Disk - HD: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " sudo dmesg | grep hda >>configurHw.txt " ;
echo " sudo dmesg | grep hda " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo dmesg | grep hda;
sudo dmesg | grep hda>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " Hard Disk - HD - ou cd olhar pra ver ...:">>configurHw.txt ;
echo " Hard Disk - HD- ou cd olhar pra ver ...: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " dmesg | grep hdb >>configurHw.txt " ;
echo " dmesg | grep hdb " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo dmesg | grep hdb;
sudo dmesg | grep hdb>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " Hard Disk - HD - ou cd olhar pra ver ...:">>configurHw.txt ;
echo " Hard Disk - HD- ou cd olhar pra ver ...: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " dmesg | grep sdb >>configurHw.txt " ;
echo " dmesg | grep sdb " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo dmesg | grep sdb;
sudo dmesg | grep sdb>>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " Hard Disk - HD - ou cd olhar pra ver ...:">>configurHw.txt ;
echo " Hard Disk - HD- ou cd olhar pra ver ...: ";
echo " " >>configurHw.txt ;
echo " " ;
echo " dmesg | grep sda >>configurHw.txt " ;
echo " dmesg | grep sda " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo dmesg | grep sda ;
sudo dmesg | grep sda >>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo "Dados Sobre a cpu " ;
echo "Dados Sobre a cpu " >>configurHw.txt;
echo " " ;
echo " " ;
echo " cat /proc/cpuinfo >>configurHw.txt " ;
echo " cat /proc/cpuinfo " >>configurHw.txt;
echo "">>configurHw.txt;
echo "";
sudo cat /proc/cpuinfo ;
sudo cat /proc/cpuinfo >>configurHw.txt;
echo "">>configurHw.txt;
echo "">>configurHw.txt;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " Conferindo o resultado no arquivo configurHw.txt" ;
echo " " ;
echo " sudo gedit configurHw.txt &" ;
echo " " ;
sudo gedit configurHw.txt &
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;


sudo cd /usr/src/linux
echo " " ;
echo " sudo cp .config .config-old" ;
echo " " ;
sudo cp .config .config-old
echo " " ;
echo " sudo cp .config-old .config-old.old" ;
echo " " ;
sudo cp .config-old .config-old.old
echo " " ;
echo " sudo mv .config-old /usr/src/config-old" ;
echo " " ;
sudo mv .config-old /usr/src/config-old
echo " " ;
echo " " ;#Backup da configuracao atual limpando as configurações antigas:
echo " ********************************************************************" ;
echo " Backup da configuracao atual limpando as configurações antigas:";
echo " " ;
echo " ********************************************************************" ;
echo " " ;

echo "cd /usr/src/linux " ;
echo " " ;
sudo cd /usr/src/linux
echo " " ;
echo " sudo cp .config .config-old" ;
echo " " ;
sudo cp .config .config-old
echo " " ;
echo " sudo cp .config-old .config-old.old" ;
echo " " ;
sudo cp .config-old .config-old.old
echo " " ;
echo " sudo mv .config-old /usr/src/config-old" ;
echo " " ;
sudo mv .config-old /usr/src/config-old
echo " " ;
echo " " ;



#Para compilar um novo kernel remove o link simbólico:
echo " ********************************************************************" ;
echo " Para compilar um novo kernel remove o link simbólico:";
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo "sudo rm /usr/src/linux " ;
echo " " ;
sudo rm /usr/src/linux
echo " " ;
#Descompaca o novo kernel em /usr/src e criar um novo link simbólico :
echo " ********************************************************************" ;
echo " Descompaca o novo kernel em /usr/src e criar um novo link simbólico : ";
echo " " ;
echo " ********************************************************************" ;
echo " sudo ln -sf /usr/src/linux-2.6.31.3-smp /usr/src/linux" ;
echo " " ;
sudo ln -sf /usr/src/linux-2.6.31.3-smp /usr/src/linux
echo " " ;
#sudo ln -sf /usr/src/linux-2.6.30.1-smp /usr/src/linux
echo " " ;
#Limpe as configuracoes antigas:
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Limpe as configuracoes antigas:" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " sudo make clean " ;
echo " " ;
sudo make clean
echo " " ;
echo "make mrproper " ;
echo " " ;
sudo make mrproper
echo " " ;
echo " " ;

#sudo make clean
#make clean
#make mrproper


echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Recupere a config atual e faça as alterações necessárias" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;

#Recupere a config atual e faça as alterações necessárias:
echo "sudo cp /usr/src/config-old /usr/src/linux/.config " ;
echo " " ;
sudo cp /usr/src/config-old /usr/src/linux/.config
echo " " ;
echo "sudo make menuconfig " ;
echo " " ;
sudo make menuconfig
echo " " ;

#sudo cp /usr/src/config-old /usr/src/linux/.config
#sudo make menuconfig

#Compilando o kernel :

echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Compilando o kernel ... :" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo "sudo make " ;
echo " " ;
sudo make;
echo " " ;
echo "make modules " ;
echo " " ;
sudo make modules;
echo " " ;
echo "sudo make modules_install " ;
echo " " ;
sudo make modules_install
echo " " ;



#make
#make modules
#make modules_install
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Copiar imagem para /boot:" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " sudo cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.31.3-smp" ;
echo " " ;
sudo cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.31.3-smp
echo " " ;
#Copiar imagem para /boot:

#cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.30.1-smp
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Vai precisar criar ramdisk. Leia /boot/README.initrd." ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo "sudo cd /boot " ;
sudo cd /boot;
echo " " ;
echo " " ;
#Vai precisar criar ramdisk. Leia /boot/README.initrd.

#cd /boot

#Fazer um backup do initrd.gz original, pode ser com link simbolico tambem.
echo " ********************************************************************" ;
echo " " ;
echo " Fazer um backup do initrd.gz original, pode ser com link simbolico tambem.." ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo "sudo cp initrd.gz initrd.gz-orig " ;
echo " " ;
sudo cp initrd.gz initrd.gz-orig
echo " " ;
#cp initrd.gz initrd.gz-orig
sudo cp initrd.gz-orig initrd.gz-orig-orig
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Criar o initrd:" ;
#Criar o initrd:
echo " " ;
echo " ********************************************************************" ;
echo " " ;
#mkinitrd.yaird -c -k 2.6.31.3-smp -m ext4 -f ext4 -r /dev/sda1
echo " sudo mkinitrd.yaird -o /boot/initrd.img-2.6.31.3-smp 2.6.31.3-smp" ;
sudo mkinitrd.yaird -o /boot/initrd.img-2.6.31.3-smp 2.6.31.3-smp
echo " " ;
#mkinitrd -c -k 2.6.30.1-smp -m ext3 -f ext3 -r /dev/sda1
#----- mkinitrd.yaird
echo " ********************************************************************" ;
echo " " ;
echo " --Aqui a cima o 2.6.31.3-smp voce verifica em /lib/modules o nome correto; " ;
#Aqui a cima o 2.6.30.1-smp voce verifica em /lib/modules o nome correto; ext3 se for seu sistema de arquivos e /dev/sda1 a particao Linux.
####--Aqui a cima o 2.6.31.3-smp voce verifica em /lib/modules o nome correto;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " sudo ls -la" ;
sudo ls -la
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Renomeia o initrd.gz recém criado: " ;
#Renomeia o initrd.gz recém criado
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " sudo cp initrd.gz initrd.gz-new " ;
#cp initrd.gz initrd.gz-new
sudo cp initrd.gz initrd.gz-new
sudo cp 2.6.31.3-smp 2.6.31.3-smp.backup
sudo cp /boot/initrd.img-2.6.31.3-smp /boot/initrd.img-2.6.31.3-smp.backup
#Renomeia o initrd.gz recém criado
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " " ;
echo " sudo ls -la" ;
sudo ls -la
echo " " ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " Recupera o initrd.gz original:" ;
#Recupera o initrd.gz original:
echo " " ;
echo " sudo cp initrd.gz-orig initrd.gz " ;
sudo cp -v initrd.gz-orig initrd.gz
#cp initrd.gz-orig initrd.gz
echo " " ;
echo "Copia o /usr/src/linux/System.map para /boot " ;
#Copia o /usr/src/linux/System.map para /boot
echo " " ;
#cp /usr/src/linux/System.map /boot/System.map-2.6.30.1-smp
#---# sudo cp -v /usr/src/linux/System.map /boot/System.map-2.6.31.3-smp
echo " " ;
echo " sudo cp -v /usr/src/linux/System.map /boot/System.map-2.6.31.3-smp" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " " ;
echo " sudo ls -la" ;
sudo ls -la
echo " " ;
echo " " ;
echo " Cria o link simbolico: " ;
#Cria o link simbolico:
echo " " ;
echo "sudo ln -sfv /boot/System.map-2.6.31.3-smp /boot/System.map " ;
echo " " ;
sudo ln -sfv /boot/System.map-2.6.31.3-smp /boot/System.map
#ln -sf /boot/System.map-2.6.30-smp /boot/System.map
#--#sudo ln -sfv /boot/System.map-2.6.31.3-smp /boot/System.map
echo " " ;
echo "Edite o GRUB, acrescentando o kernel novo compilado: " ;
echo " " ;
echo " Após editado salve o arquivo e o Feche" ;
echo " " ;
echo " " ;
echo " image = /boot/vmlinuz-2.6.30.1-smp" ;
echo " " ;
echo " root = /dev/sda1" ;
echo " " ;
echo "label = LinuxNV " ;
echo " " ;
echo " initrd = /boot/initrd.gz-new" ;
echo " " ;
echo " read-only" ;
echo " " ;
echo " " ;
echo " title UbuntuDM kernel 2.6.31.3 compiladorPorMim09Out2009" ;
echo " " ;
echo "root (hd0,0) " ;
echo " " ;
echo "kernel /boot/bzImageDM-2.6.30 root=/dev/sda1 ro locale=pt_BR single " ;
echo " " ;
echo " initrd /boot/initrd.img-2.6.31.3-smp" ;
echo " " ;
echo "quiet " ;
echo " " ;
echo "savedefault " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;

initrd /boot/initrd.img-2.6.31.3-smp

title UbuntuDM GNU/Linux, kernel 2.6.28-11-generic
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet #adicionei
savedefault


#title UbuntuDM kernel 2.6.30 compiladorPorMim04Out2009
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/bzImageDM-2.6.30 root=/dev/sda1 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-11-generic
quiet #adicionei
savedefault




echo " COmo gosto de Editar no Gedit ai vai:" ;
echo " " ;
echo " sudo gedit /boot/grub/menu.lst" ;
echo " " ;
sudo gedit /boot/grub/menu.lst
echo "Finalmente Pronto. " ;
echo " " ;
echo " " ;
echo " " ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;
echo " ********************************************************************" ;
echo " " ;



















Edita o lilo, acrescentando o kernel novo compilado:

vim /etc/lilo.conf

image = /boot/vmlinuz-2.6.30.1-smp
root = /dev/sda1
label = LinuxNV
initrd = /boot/initrd.gz-new
read-only

Reinstala o lilo:

#/sbin/lilo

Pronto.
***********************************************************************************************
***********************************************************************************************


O arquivo configurHw.txt gerado até agora foi:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

********************************************************************

Configuração do Hardaware

********************************************************************


Placa Mãe:

sudo lspci | grep IDE

00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 04)


Placa de áudio:

sudo lspci | grep Multimedia



Placa de rede::

sudo lspci | grep Ethernet

04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 13)


USB:

sudo lspci | grep USB

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 04)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 04)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 04)


Hard Disk - HD:

sudo dmesg | grep hda

[ 9.386206] hda_codec: Unknown model for ALC268, trying auto-probe from BIOS...


Hard Disk - HD - ou cd olhar pra ver ...:

dmesg | grep hdb



Hard Disk - HD - ou cd olhar pra ver ...:

dmesg | grep sdb

[ 8.087120] sd 2:0:0:0: [sdb] Attached SCSI removable disk


Hard Disk - HD - ou cd olhar pra ver ...:

dmesg | grep sda

[ 2.202876] sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB)
[ 2.202893] sd 0:0:0:0: [sda] Write Protect is off
[ 2.202895] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2.202921] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.202989] sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB)
[ 2.203004] sd 0:0:0:0: [sda] Write Protect is off
[ 2.203007] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2.203032] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.203036] sda: sda1 sda2 < sda5 sda6 > sda3 sda4
[ 2.258384] sd 0:0:0:0: [sda] Attached SCSI disk
[ 10.054111] Adding 1951856k swap on /dev/sda6. Priority:-1 extents:1 across:1951856k
[ 10.657234] EXT4 FS on sda1, internal journal on sda1:8
[ 11.629190] EXT4 FS on sda5, internal journal on sda5:8


Dados Sobre a cpu
cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz
stepping : 13
cpu MHz : 1867.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips : 3723.90
clflush size : 64
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz
stepping : 13
cpu MHz : 1867.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips : 3723.93
clflush size : 64
power management:



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Mas ainda faltam muitoas informações por isso tenho que ler muito mais ...!
Atualizado 09: 20: AM - 08/out/2009

Abração
Bem até a próxima ...!

------------------------------------------------------------------------------------------------



Após o domingo inteiro pra compilar ..., descobri q tenho q tentar de novo ..., ms uma hora eu consigo ... e qdo consegui coloco aqui ..., carreguei muitos módulos ai esta dando loop nesses módulos ...!

Demora a beça pra compilar kernel ..., mas tenho coisas a bça pra fazer outra hora tento novamente ...!
Quando conseguir fazer funcionar coloco aqui passo a passo como fazer ...


Abração e até a próxima ...!

Compilei pela segunda vez, e dessa vez obtive o erro que se encontra ai acima:

Error 13: Ivalid or unsupported executable format

Press any key to continue ...


Pra voce saber o conteudo do meu /boot/grub/menu.lst

*****************************************************************
danilomatias@danilomatias-laptop:/boot/grub$ cat menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 7

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR

## default grub root device
## e.g. groot=(hd0,0)
# groot=2decc5a5-bad0-4eae-a6c0-997f0cf99b98

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##
title Ubuntu GNU/Linux, kernel 2.6.28-15-generic #altereipravernoqdava
root (hd0,0) # or alter for whatever hard disk and partition number you have #root 2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-15-generic
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet #adicionei
savedefault

title UbuntuDM GNU/Linux, kernel 2.6.28-15-generic (recovery mode)
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-15-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-14-generic
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-14-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-14-generic (recovery mode)
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-14-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-13-generic
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-13-generic (recovery mode)
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-13-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-11-generic
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel 2.6.28-11-generic (recovery mode)
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2decc5a5-bad0-4eae-a6c0-997f0cf99b98 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-11-generic
quiet #adicionei
savedefault


title UbuntuDM kernel 2.6.30 compiladorPorMim04Out2009
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/bzImageDM-2.6.30 root=/dev/sda1 ro locale=pt_BR single
initrd /boot/initrd.img-2.6.28-11-generic
quiet #adicionei
savedefault


title UbuntuDM GNU/Linux, kernel memtest86+
root (hd0,0) #2decc5a5-bad0-4eae-a6c0-997f0cf99b98
kernel /boot/memtest86+.bin
quiet #adicionei
savedefault


### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title Microsoft Windows XP Professional
rootnoverify (hd0,2)
savedefault
makeactive
chainloader +1

danilomatias@danilomatias-laptop:/boot/grub$

*****************************************************************

O que tenho em /boot:
Resultado do comando ls -la:

____________________________________________________________________

danilomatias@danilomatias-laptop:/boot$ ls -la
total 60152
drwxr-xr-x 3 root root 4096 2009-10-05 23:11 .
drwxr-xr-x 21 root root 4096 2009-09-07 17:41 ..
-rw-r--r-- 1 root root 529118 2009-04-17 00:41 abi-2.6.28-11-generic
-rw-r--r-- 1 root root 528128 2009-06-30 18:56 abi-2.6.28-13-generic
-rw-r--r-- 1 root root 528128 2009-07-24 23:12 abi-2.6.28-14-generic
-rw-r--r-- 1 root root 528310 2009-09-09 09:56 abi-2.6.28-15-generic
-rw-r--r-- 1 root root 75811 2009-10-05 23:11 bzImageDM-2.6.30
-rw-r--r-- 1 root root 96795 2009-04-17 00:41 config-2.6.28-11-generic
-rw-r--r-- 1 root root 96768 2009-06-30 18:56 config-2.6.28-13-generic
-rw-r--r-- 1 root root 96768 2009-07-24 23:12 config-2.6.28-14-generic
-rw-r--r-- 1 root root 96804 2009-09-09 09:56 config-2.6.28-15-generic
drwxr-xr-x 2 root root 4096 2009-10-02 13:00 grub
-rw-r--r-- 1 root root 7543838 2009-07-03 15:41 initrd.img-2.6.28-11-generic
-rw-r--r-- 1 root root 7555175 2009-07-17 08:14 initrd.img-2.6.28-13-generic
-rw-r--r-- 1 root root 7558155 2009-09-09 09:05 initrd.img-2.6.28-14-generic
-rw-r--r-- 1 root root 6579422 2009-10-02 05:01 initrd.img-2.6.28-15-generic
-rw-r--r-- 1 root root 6579544 2009-09-26 09:09 initrd.img-2.6.28-15-generic.bak
-rw-r--r-- 1 root root 128796 2009-03-27 14:15 memtest86+.bin
-rw-r--r-- 1 root root 1456232 2009-04-17 00:41 System.map-2.6.28-11-generic
-rw-r--r-- 1 root root 1449810 2009-06-30 18:56 System.map-2.6.28-13-generic
-rw-r--r-- 1 root root 1449836 2009-07-24 23:12 System.map-2.6.28-14-generic
-rw-r--r-- 1 root root 1450680 2009-09-09 09:56 System.map-2.6.28-15-generic
-rw-r--r-- 1 root root 3226354 2009-10-05 23:11 System.map-2.6.30
-rw-r--r-- 1 root root 1074 2009-04-17 00:43 vmcoreinfo-2.6.28-11-generic
-rw-r--r-- 1 root root 1074 2009-06-30 18:58 vmcoreinfo-2.6.28-13-generic
-rw-r--r-- 1 root root 1074 2009-07-24 23:13 vmcoreinfo-2.6.28-14-generic
-rw-r--r-- 1 root root 1074 2009-09-09 09:58 vmcoreinfo-2.6.28-15-generic
-rw-r--r-- 1 root root 3501776 2009-04-17 00:41 vmlinuz-2.6.28-11-generic
-rw-r--r-- 1 root root 3488208 2009-06-30 18:56 vmlinuz-2.6.28-13-generic
-rw-r--r-- 1 root root 3490224 2009-07-24 23:12 vmlinuz-2.6.28-14-generic
-rw-r--r-- 1 root root 3491312 2009-09-09 09:56 vmlinuz-2.6.28-15-generic

____________________________________________________________________

Alguém ai pode me dar uma ajuda ? O que pode ser que está ocorrendo ?

2 comentários:

viagemdacomputacao disse...

Apenas atualizando os links q olharei para tentar de novo ...
Finalmente consegui fazer funcionar a biblioteca ncurses ..
Bem agora da pra suar make menuconfig fica muitíssimo mais fácil que fazer tudo modo texto ...
O Qt ainda não funciona aqui ...

Mas ai vãos os links ...
http://danielpontello.wordpress.com/2008/10/13/recompilando-o-kernel/


http://www.guiaubuntupt.org/wiki/index.php?title=Compilar_Ultimo_Kernel


http://www.guiaubuntupt.org/wiki/index.php?title=NetworkManager_e_Wifi

viagemdacomputacao disse...

Dica que seguirei na proxima vez q tentar compilar ...
Quem passou foi meu amigo Reginaldo reginaldo.matias@gmail.com:

Passos para compilar o kernel ...
Faça um shell script de uma vez já:

Backup da configuracao atual limpando as configurações antigas:

#cd /usr/src/linux
#cp .config .config-old
#mv .config-old /usr/src/config-old

Para compilar um novo kernel remove o link simbólico:

#rm /usr/src/linux

Descompaca o novo kernel em /usr/src e criar um novo link simbólico :

#ln -sf /usr/src/linux-2.6.30.1-smp /usr/src/linux

Limpe as configuracoes antigas:

#make clean
#make mrproper

Recupere a config atual e faça as alterações necessárias:

#cp /usr/src/config-old /usr/src/linux/.config
#make menuconfig

Compilando o kernel :

#make
#make modules
#make modules_install

Copiar imagem para /boot:

#cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.30.1-smp

Vai precisar criar ramdisk. Leia /boot/README.initrd.

#cd /boot

Fazer um backup do initrd.gz original, pode ser com link simbolico tambem.

#cp initrd.gz initrd.gz-orig

Criar o initrd:

#mkinitrd -c -k 2.6.30.1-smp -m ext3 -f ext3 -r /dev/sda1

Aqui a cima o 2.6.30.1-smp voce verifica em /lib/modules o nome correto; ext3 se for seu sistema de arquivos e /dev/sda1 a particao Linux.

Renomeia o initrd.gz recém criado

#cp initrd.gz initrd.gz-new

Recupera o initrd.gz original:

#cp initrd.gz-orig initrd.gz

Copia o /usr/src/linux/System.map para /boot

#cp /usr/src/linux/System.map /boot/System.map-2.6.30.1-smp

Cria o link simbolico:

#ln -sf /boot/System.map-2.6.30-smp /boot/System.map

Edita o lilo, acrescentando o kernel novo compilado:

vim /etc/lilo.conf

image = /boot/vmlinuz-2.6.30.1-smp
root = /dev/sda1
label = LinuxNV
initrd = /boot/initrd.gz-new
read-only

Reinstala o lilo:

#/sbin/lilo

Pronto.