[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compilar o kernel



cara na boa, nao ha nada mais do pior vc compilar no metodo debian. Isso te tira do conceito linux, e te prende muito a distro, o certo eh vc compilar como manda no kernel.org sobre o 2.6 caso vc venha pegar em alguma empresa uma outra distro.

segue os passos:

apt-get install gcc binutils make libncurses5-dev module-init-tools initrd-tools patch

tar jxvf linux-2.6.19.1.tar.bz2 -C /usr/src

cd /usr/src

ln -sf linux-2.6.19.1 linux

cd linux

make mrproper

( para limpar as conf automaticas q sao terriveis )

make menuconfig

( ae vc faz as opcoes do seu kernel, como vc instalou o binutils vc pode tb fazer no servidor X com o comando make xconfig, oq eh terrivel )

DEPOIS DE FAZER AS OPCOES DO SEU KERNEL, SALVA AO SAIR E:

make all

make modules_install

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.19.1

(respeitando q vc ja esta no /usr/src)

cd /lib/modules

mkinitrd -o /boot/img.initrd.2.6.19.1  2.6.19.1

( lembrando que NAO EXISTE o arquivo de setor de imagem do kernel que vc acoabou de compilar no /boot; entao vc da TAB para completar o que vc tem la q eh o anterior e volta alguns caracteres ae vc adciona a sua versao atual correspondente ao arquivo que é a versao do kernel q vc compilou q foi criado apos o make modules_install em /lib/modules )

CUIDADO: ao criar o setor de boot de imagem initrd pois existe um BUG que se vc dar o comando mkinitrd -o e sem querer vc da um tar e completar com a " / " barra que identifica que ==> 2.6.19.1/ é um diretorio ele vai da um bonito kernel panic.

coloca la no seu /boot/grub/menu.lst

ou entao na mao mesmo no grub com a opcao E e depois B, e olha q o bash completion pega no grub.

E kernel compilado.

LEMBRANDO: RETIRE as 2 opcoes de GENERIC PCI IDE do seu kernel deixando somente a PCI IDE SUPPORT pq as opcoes genericas so vao lerdar o seu server/desktop, coloca a opcao PCI IDE SUPPORT e a IDE correspondete a sua placa mae.

faloww

Falloowww

> Bahh
> Depois do make config, fui gerar o .deb e agora nao sei onde ele esta. Se
> é
> que esta em algum lugar. Output:
>
> Brooklyn:/usr/src/linux-2.6.19.1# make-kpkg
> --revision=teste.1.0.kernel.image
> exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian
> DEBIAN_REVISION=teste.1.0.kernel.image
> ====== making target minimal_debian [new prereqs: ]======
> This is kernel package version .
> test -d debian || mkdir debian
> test ! -e stamp-building || rm -f stamp-building
> test -f debian/control || sed -e 's/=V/2.6.19.1/g' \
> -e 's/=D/teste.1.0.kernel.image/g' -e
> 's/=A/i386/g' \
> -e 's/=SA//g' -e 's/=L/ /g' \
> -e 's/=I//g' \
> -e 's/=CV/2.6/g' \
> -e 's/=M/Unknown Kernel Package Maintainer
> /g'
> \
> -e 's/=ST/linux/g' -e 's/=B/i386/g' \
> /usr/share/kernel-package/Control >
> debian/control
> test -f debian/changelog || sed -e 's/=V/2.6.19.1/g' \
> -e 's/=D/teste.1.0.kernel.image/g' -e 's/=A/i386/g'
> \
> -e 's/=ST/linux/g' -e 's/=B/i386/g' \
> -e 's/=M/Unknown Kernel Package Maintainer
> /g'
> \
> /usr/share/kernel-package/changelog > debian/changelog
> install -p -m 755 /usr/share/kernel-package/rules debian/rules
> for file in ChangeLog Control Control.bin86 config templates.in
> rules; do \
> cp -f /usr/share/kernel-package/$file ./debian/;
> \
> done
> for dir in Config docs examples ruleset scripts pkg po; do
> \
> cp -af /usr/share/kernel-package/$dir ./debian/; \
> done
> test -d ./debian/stamps || mkdir debian/stamps
> exec debian/rules DEBIAN_REVISION=teste.1.0.kernel.image
> nothing to be done.
>
> Ai tentei:
>
> Brooklyn:/usr/src/linux-2.6.19.1# make-kpkg --revision=1
> --append-to-version=tombs kernel_image
> I note that you are using the --revision flag with the value
> 1.
> However, the ./debian/changelog file exists, and has a different value
> teste.1.0.kernel.image.
> I am confused by this discrepancy, and am halting.
>
> Bom, ja nem sei o que fazer.
> Se alguem puder me ajudar...
> Obrigadao
>


Reply to: