Compilando o Kernel Linux

Documentos relacionados
Compilando o Kernel Linux

Componentes do kernel Compilando o kernel Aplicando patch no kernel Configurar, compilar, instalar um kernel personalizado Gerenciar, consultar o

Compilação do Kernel

LPI nível 2: Aula 1 Conheça o kernel Linux e saiba como aplicar patches, configurá-lo, compilá-lo e manipular seus módulos. por Luciano Siqueira

Gerenciando sistemas de arquivos

VGM. VGM information. ALIANÇA VGM WEB PORTAL USER GUIDE June 2016

Programa R. Hiron Pereira Farias. Monday, February 06, 2017

PURCHASE-TO-PAY SOLUTIONS

Placas Gerenciadoras Gráficas

GERENCIAMENTO DA ROTINA DO TRABALHO DO DIA-A-DIA (EM PORTUGUESE DO BRASIL) BY VICENTE FALCONI

Universidade Federal do Rio Grande do Sul Escola de Engenharia Departamento de Engenharia Elétrica ENG04008 Sistemas de Tempo Real.

Farmacologia na Pratica de Enfermagem (Em Portuguese do Brasil)

TACHO SPECIAL PLUS III

O PRíNCIPE FELIZ E OUTRAS HISTóRIAS (EDIçãO BILíNGUE) (PORTUGUESE EDITION) BY OSCAR WILDE

Pesquisa Qualitativa do Início ao Fim (Métodos de Pesquisa) (Portuguese Edition)

Introdução A Delphi Com Banco De Dados Firebird (Portuguese Edition)

Macunaíma em quadrinhos (Clássicos em HQ) (Portuguese Edition)

DO SILêNCIO DO LAR AO SILêNCIO ESCOLAR: RACISMO, PRECONCEITO E DISCRIMINAçãO NA EDUCAçãO INFANTIL (

HISTOLOGIA E BIOLOGIA CELULAR. UMA INTRODUçãO À PATOLOGIA (EM PORTUGUESE DO BRASIL) BY ABRAHAM L. KIERSZENBAUM

MEDICINA INTERNA DE PEQUENOS ANIMAIS (EM PORTUGUESE DO BRASIL) BY RICHARD COUTO C.^NELSON

Pesquisa de Marketing: Uma Orientação Aplicada (Portuguese Edition)

GERENCIAMENTO DA ROTINA DO TRABALHO DO DIA-A-DIA (EM PORTUGUESE DO BRASIL) BY VICENTE FALCONI

MANUAL DE MEDICINA INTERNA DE PEQUENOS ANIMAIS (EM PORTUGUESE DO BRASIL) BY RICHARD W. COUTO C. GUILHERMO^NELSON

A ENTREVISTA COMPREENSIVA: UM GUIA PARA PESQUISA DE CAMPO (PORTUGUESE EDITION) BY JEAN-CLAUDE KAUFMANN

Planejamento de comunicação integrada (Portuguese Edition)

As 100 melhores piadas de todos os tempos (Portuguese Edition)

Princípios de Direito Previdenciário (Portuguese Edition)

O sistema único de assistência social no Brasil: uma realidade em movimento (Portuguese Edition)

CIS 500 Software Foundations Fall September(continued) IS 500, 8 September(continued) 1

A ENTREVISTA COMPREENSIVA: UM GUIA PARA PESQUISA DE CAMPO (PORTUGUESE EDITION) BY JEAN-CLAUDE KAUFMANN

Vaporpunk - A fazenda-relógio (Portuguese Edition)

Astrologia, Psicologia e os Quatro Elementos (Portuguese Edition)

A necessidade da oração (Escola da Oração) (Portuguese Edition)

Como escrever para o Enem: roteiro para uma redação nota (Portuguese Edition)

Biscuit - potes (Coleção Artesanato) (Portuguese Edition)

CIVILIZAçãO EM TRANSIçãO (OBRAS COMPLETAS DE CARL GUSTAV JUNG) (PORTUGUESE EDITION) BY CARL GUSTAV JUNG

Dermatologia Clínica. Guia Colorido Para Diagnostico e Tratamento (Em Portuguese do Brasil)

ATLAS DE ACUPUNTURA VETERINáRIA. CãES E GATOS (EM PORTUGUESE DO BRASIL) BY CHOO HYUNG KIM

Conceitos de Linguagens de Programação (Portuguese Edition)

Transcript name: 1. Introduction to DB2 Express-C

52 MANEIRAS DE DIZER "EU TE AMO" (PORTUGUESE EDITION) BY CLENE SALLES

Sistemas Embarcados. Introdução. kernel.org. Repositórios do kernel. Aula 03 e 04. O kernel do linux é bastante modular Mais de arquivos

Scrum: Gestão ágil para projetos de sucesso (Portuguese Edition)

RTAI Instalação. Prof. Walter Fetter Lages 2 de maio de 2014

Comportamento Organizacional: O Comportamento Humano no Trabalho (Portuguese Edition)

O VAZIO DA MáQUINA: NIILISMO E OUTROS ABISMOS (TRILOGIA DO NADA LIVRO 2) (PORTUGUESE EDITION) BY ANDRE CANCIAN

TEN CATE. HISTOLOGIA ORAL (EM PORTUGUESE DO BRASIL) BY ANTONIO NANCI

Meditacao da Luz: O Caminho da Simplicidade

Já Chegou Aos Confins Da Terra. E Agora? (Portuguese Edition)

Erros que os Pregadores Devem Evitar (Portuguese Edition)

Aqui pode escolher o Sistema operativo, e o software. Para falar, faça download do Cliente 2.

Buscai as coisas do alto (Portuguese Edition)

TEN CATE. HISTOLOGIA ORAL (EM PORTUGUESE DO BRASIL) BY ANTONIO NANCI

Livro do Desassossego

TDD Desenvolvimento Guiado por Testes (Portuguese Edition)

ATLAS DE ACUPUNTURA VETERINáRIA. CãES E GATOS (EM PORTUGUESE DO BRASIL) BY CHOO HYUNG KIM

Easy Linux! FUNAMBOL FOR IPBRICK MANUAL. IPortalMais: a «brainware» company Manual

VGM. VGM information. ALIANÇA VGM WEB PORTAL USER GUIDE September 2016

Introdução A Delphi Com Banco De Dados Firebird (Portuguese Edition)

O Livro de Receitas do Menino Maluquinho - Com as receitas da Tia Emma (Portuguese Edition)

Estatística Aplicada: Administração, Economia e Negócios (Portuguese Edition)

Os 7 Hábitos das Pessoas Altamente Eficazes (Portuguese Edition)

Ganhar Dinheiro Em Network Marketing (Portuguese Edition)

Farmácia Homeopática: Teoria e Prática (Portuguese Edition)

O princípio 80/20: Os segredos para conseguir mais com menos nos negócios e na vida (Portuguese Edition)

TACHO DATASMART III the PC version of Special Plus III

Erros Escatológicos que os Pregadores Devem Evitar (Portuguese Edition)

Como testar componentes eletrônicos - volume 1 (Portuguese Edition)

Universidade Federal do Rio Grande do Sul Escola de Engenharia Departamento de Sistemas Elétricos de Automação e Energia ENG10032 Microcontroladores

Como Mudar a Senha do Roteador Pelo IP o.1.1. Configure e Altere a Senha do seu Roteador acessando o IP Acesse o Site e Confira!

Universidade Federal do Rio Grande do Sul Escola de Engenharia Departamento de Sistemas Elétricos de Automação e Energia ENG10032 Microcontroladores

IDE 2.5" hd:basic. hdd enclosure caixa externa para disco rígido

Remuneração, Benefícios e Relações de Trabalho: Como Reter Talentos na. Organização (Série Recursos Humanos) (Portuguese Edition)

GERENCIAMENTO PELAS DIRETRIZES (PORTUGUESE EDITION) BY VICENTE FALCONI

Transtorno de Personalidade Borderline Mais de 30 segredos para retomar sua vida Ao lidar com TPB (Portuguese Edition)

Poder sem limites - o caminho do sucesso pessoal pela programação neurolinguística

PL/SQL: Domine a linguagem do banco de dados Oracle (Portuguese Edition)

Mulheres poderosas não esperam pela sorte: Saiba como encontrar o homem certo e fazer ele se apaixonar por você (Portuguese Edition)

EXCEL PARA FINANçAS PESSOAIS (PORTUGUESE EDITION) BY FABRíCIO AUGUSTO FERRARI

COMO ESCREVER PARA O ENEM: ROTEIRO PARA UMA REDAçãO NOTA (PORTUGUESE EDITION) BY ARLETE SALVADOR

Meu Filho é Alérgico! E Agora? (Portuguese Edition)

Para iniciar um agente SNMP, usamos o comando snmpd. Por padrão, aceita requisições na porta 161 (UDP).

MANUAL PRATICO DO PLANO DE PROJETO: UTILIZANDO O PMBOK GUIDE BY RICARDO VIANA VARGAS

PL/SQL: Domine a linguagem do banco de dados Oracle (Portuguese Edition)

SEMPRE FAÇA BACKUP DOS ARQUIVOS DE DADOS DE UMA MÁQUINA ANTES DE INSTALAR OUTRO SISTEMA OPERACIONAL

Medicina Integrativa - A Cura pelo Equilíbrio (Portuguese Edition)

Sermões expositivos em todos os livros da Bíblia - Novo Testamento: Esboços completos que percorrem todo o Novo Testamento (Portuguese Edition)

Gestão da comunicação - Epistemologia e pesquisa teórica (Portuguese Edition)

O Livro dos Espíritos - Tradução Evandro Noleto Bezerra (Portuguese Edition)

Power Estimation FPGA ASIC

COMO ESCREVER PARA O ENEM: ROTEIRO PARA UMA REDAçãO NOTA (PORTUGUESE EDITION) BY ARLETE SALVADOR

Vendors Enquiries for RFP 003/2015

O som dos acordes (Portuguese Edition)

GERENCIAMENTO DA ROTINA DO TRABALHO DO DIA A DIA (PORTUGUESE EDITION) BY VICENTE FALCONI

Comece Algo que Faça a Diferença (Portuguese Edition)

presentation homevisu family Peter Beck June p b e Peter Beck 1

Manual de Instalação DVD MAKER USB2.0

Transcrição:

Compilando o Kernel Linux Fonte: http://www.digitalhermit.com/linux/kernel- Build-HOWTO.html Atribuindo uma versão única Evitar que os módulos do kernel atual sejam modificados indevidamente Arquivo Makefile VERSION = 2 PATCHLEVEL = 4 SUBLEVEL = 22 EXTRAVERSION = -1 (Coloque sua versão aqui) Os módulos serão gerados dessa forma: /lib/modules/$version.$patchlevel.$sublevel-$extraversion.

Limpando a configuração antiga Apaga arquivos resultantes de compilações anteriores O código-fonte retorna ao estado original make mrproper Configurando o Kernel 2.6.x Três formas: Config: modo texto, perguntas realizadas sequencialmente Menuconfig: modo texto, menus auxiliam na configuração Xconfig: modo gráfico make menuconfig

Opções (1) Code Maturity Level Options This option allows configuration of alpha-quality software or obsoleted drivers. It is best to disable this option if the kernel is intended for a stable production system. General Setup This section contains options for sysctl support, a feature allowing run-time configuration of the kernel. A new feature, kernel.config support, allows the complete kernel configuration to be viewed during run-time. This addresses many requests to be able to see what features were compiled into the kernel. Loadable Module Support You will almost certainly want to enable module support. If you will need third-party kernel modules you will also need to enable Set Version Information on All Module Symbols. Processor Type and Features This is perhaps the most important configuration choice. In the Preparation section we determined our processor type by examining /proc/cpuinfo and we use that information here to select the appropriate processor. Included in this submenu are features such as Preemptible Kernel which can improve desktop responsiveness, Symmetric Multiprocessing Support for machines with multiple CPUs, and High Memory Support for machines with more than 1G of RAM. Opções (2) Power Management Options Found here are options for ACPI and CPU Frequency Scaling which can dramatically improve laptop power usage. Read the Documentation/power file for more information. Bus Options ( PCI, PCMCIA, EISA, MCA, ISA) Here are found options for all system bus devices. On modern machines the ISA and MCA support can often be disabled. Executable File Formats Interesting features here include the kernel support for miscellaneous binaries, which can allow seamless operation of non-linux binaries with a little userland help. Device Drivers All the device-driver configuration options that were previously scattered throughout the 2.4.x menus are now neatly organized under this option. Features such as SCSI support, graphic card optimizations, sound, USB and other hardware are configured here. File Systems Found here are options for filesystems which are supported by the kernel, such as EXT2 and ReiserFS. It is best to build support for the root filesystems directly into the kernel rather than as a module. Security Options Interesting options here include support for NSA Security Enhanced Linux and other, somewhat experimental, features to increase security.

make clean make Compilando Caso ocorram problemas, utilize make zimage Verifique se o kernel foi gerado corretamente em: ls -l arch/i386/boot make install Modificando o GRUB Insira a seguinte linha no GRUB (/boot/grub/menu.lst) title Test Kernel (2.6.0) root (hd0,1) kernel /boot/bzimage-2.6.0 ro root=label=/ Reinicialize o sistema Verificar a versão do kernel: uname -a

Compilando os módulos Caso o suporte para carga de módulos foi habilitada no kernel, compile os módulos make modules make modules_install Criando o RAMDISK Create Initial RAMDisk If you have built your main boot drivers as modules (e.g., SCSI host adapter, filesystem, RAID drivers) then you will need to create an initial RAMdisk image. The initrd is a way of sidestepping the chicken and egg problem of booting -- drivers are needed to load the root filesystem but the filesystem cannot be loaded because the drivers are on the filesystem. As the manpage for mkinitrd states: mkinitrd /boot/initrd-2.6.0.img 2.6.0