Newsgroup: it.comp.os.linux.iniziare
Titolo: Ricompilazione del kernel

Premesso di aver già letto l'HOW-TO sulla compilazione del kernel, vi 
spiego il mio problema su Mdk 8.2:
1) ho riconfigurato il kernel con make menuconfig
2) make dep
3) make bzImage con kernel prodotto regolarmente
4) copiato il nuovo kernel in /boot
5) aggiornato LILO correttamente
Quando faccio partire da LILO il nuovo kernel, fallisce tutti gli step di 
caricamento (mounting file systems ........... FALLITO ecc..).
Cosa devo fare per provare il kernel riconfigurato?
Ciao!

 /boot
Ti mancano le due fasi relative ai moduli  (da dare dopo il make bzImage):
 make modules
 make modules_install
Ho ricompilato il kernel mezz'ora fa: ma di domenica non abbiamo niente di
meglio da fare noi linuxiani??
ciao ciao,
 k.

colonnello Kurtz wrote:

in effetti ho fatto anche le 2 operazioni che hai indicato tu, solo che 
alla fine del make modules mi dà "2 Errors". L'ho fatto l'ultima volta 
(prima di reinstallare) ed il kernel non è più partito. In pratica mi dava 
gli errori che adesso mi dà il nuovo kernel ricompilato. 
Ma perchè capitano tutte a me? :)

 Cosa devo fare per provare il kernel riconfigurato?
prova a controllare di non aver compilato come modulo
il supporto per il filesystem da dove fai il boot;
deve essere compilato built-in e non come modulo.
ciao
--
claudio

MarcoKK wrote:

Questi sono gli errori che mi vengono riportati. Qualcuno capisce a cosa 
sono dovuti??
[root@localhost linux]# make modules
make -C  kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.18-6mdk/include  
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 
-march=i586 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.18-6mdk/include/linux/modversions.h" MAKING_MODULES=1 
modules
make[1]: Entering directory `/usr/src/linux-2.4.18-6mdk/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-6mdk/kernel'
make -C  drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.18-6mdk/include  
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 
-march=i586 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.18-6mdk/include/linux/modversions.h" MAKING_MODULES=1 
modules
make[1]: Entering directory `/usr/src/linux-2.4.18-6mdk/drivers'
make -C atm modules
make[2]: Entering directory `/usr/src/linux-2.4.18-6mdk/drivers/atm'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-6mdk/include  -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 
-DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.18-6mdk/include/linux/modversions.h -g 
-DKBUILD_BASENAME=eni  -c -o eni.o eni.c
In file included from /usr/src/linux-2.4.18-6mdk/include/asm/processor.h:13,
                 from 
/usr/src/linux-2.4.18-6mdk/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/list.h:6,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/module.h:12,
                 from eni.c:6:
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: nondigits in number and 
not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: nondigits in number and 
not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: nondigits in number and 
not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: nondigits in number and 
not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: parse error before 
`577f4bff'
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: `do_BUG_R_ver_str' 
declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/asm/page.h:97: warning: function 
declaration isn't a prototype
In file included from 
/usr/src/linux-2.4.18-6mdk/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/list.h:6,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/module.h:12,
                 from eni.c:6:
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:51: warning: parameter 
names (without types) in function declaration
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:51: field 
`loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:72: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:72: parse error before 
`0657d037'
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:72: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:252: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:252: parse error before 
`7413793a'
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:252: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:256: warning: parameter 
names (without types) in function declaration
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:459: missing white space 
after number `7e9'
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:459: parse error before 
`7e9'
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:459: 
`kernel_thread_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:459: warning: function 
declaration isn't a prototype
In file included from eni.c:6:
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: parse error before 
`62dada05'
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: 
`inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:183: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:184: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:184: missing white space 
after number `7a9e845'
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:184: parse error before 
`7a9e845'
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:184: 
`inter_module_unregister_R_ver_str' declared as function returning a 
function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:184: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:185: 
`inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:185: warning: parameter 
names (without types) in function declaration
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:186: 
`inter_module_get_request_R_ver_str' declared as function returning a 
function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:186: warning: parameter 
names (without types) in function declaration
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: nondigits in number 
and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: parse error before 
`6b99f7d8'
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: 
`inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:187: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:196: 
`try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/linux/module.h:196: warning: parameter 
names (without types) in function declaration
In file included from /usr/src/linux-2.4.18-6mdk/include/linux/fs.h:19,
                 from 
/usr/src/linux-2.4.18-6mdk/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/mm.h:4,
                 from eni.c:9:
/usr/src/linux-2.4.18-6mdk/include/linux/dcache.h: In function `dget':
/usr/src/linux-2.4.18-6mdk/include/linux/dcache.h:247: warning: implicit 
declaration of function `do_BUG_R577f4bff'
In file included from /usr/src/linux-2.4.18-6mdk/include/asm/io.h:46,
                 from /usr/src/linux-2.4.18-6mdk/include/asm/pci.h:35,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/pci.h:610,
                 from eni.c:10:
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h: In function `vmalloc':
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h:36: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h:36: (Each undeclared 
identifier is reported only once
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h:36: for each function it 
appears in.)
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h: In function 
`vmalloc_dma':
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h:45: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h: In function 
`vmalloc_32':
/usr/src/linux-2.4.18-6mdk/include/linux/vmalloc.h:54: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.18-6mdk/include/linux/highmem.h:5,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/skbuff.h:27,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/atmdev.h:212,
                 from eni.c:13:
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function 
`get_pgd_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function 
`free_pgd_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:89: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function 
`pte_alloc_one_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:127: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function 
`pte_free_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:137: 
`boot_cpu_data_R0657d037' undeclared (first use in this function)
make[2]: *** [eni.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers/atm'
make[1]: *** [_modsubdir_atm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers'
make: *** [_mod_drivers] Error 2

 ha scritto nel messaggio
news:9_FT8.1426$B8....@tornado.fastwebnet.it...


 make[2]: Entering directory `/usr/src/linux-2.4.18-6mdk/drivers/atm' gcc
                                                     ^^^^^^^^^^^^^^^^
[cut]
Il kernel che hai provato a compilare e' quello ufficiale (
www.kernel.org
)
o quello mandrake (non ne sono sicuro, ma mi sembra che sia mandrake che
red-hat apportino piccole modifiche ai kernel che inseriscono nelle loro
distribuzioni).?
Prova a scaricarti quello 'non intaccato' e rifai il tutto (hai salvato il
file di configurazione, vero?).
ciao ciao,
 k.

colonnello Kurtz wrote:

 OK! Scusa ma qual è il file di configurazione?? :)

  OK! Scusa ma qual č il file di configurazione?? :)
Quello che si ottiene dopo che hai impostato tutte le opzioni del kernel.
Prima di uscire ti chiede se vuoi salvarlo. Fallo sempre.
ciao ciao,
 k.

 
Attenzione per chi ha MDK8.2: i sorgenti del kernel di default (2.4.18-mdk-
6) sono BACATI ed e' IMPOSSIBILE ricompilare i moduli. Aggiornare al 
2.4.18-mdk-20 (una banalita' usando urpmi)
-- 
il Vide - ICQ# 5301833
IAMM - it.arti.musica.metal 
IAMMol webzine: 
http://www.iammol.com

 deve essere compilato built-in e non come modulo.
Beh mica vero..basta fare un immagine di initrd e anche come modulo riesci 
a bootare lo stesso..


 
mi sapresti dare il link esatto per questo kernel? 
Una volta scaricato, lo tratto esattamente come se fosse quello che ho ora 
giusto?

 lo tratto esattamente come se fosse quello che ho ora giusto?
Ma perche' non scarichi quello ufficiale e lasci perdere quello di
mandrake??
ciao ciao,
 k.

 mandrake??
Per utilissime patch tipo supermount e altre cosucce varie? ;P


 ora giusto?
No :)
lo trovi in /usr/src/linux-2.4.18mdk-20
mentre in /usr/src/linux-2.4.18mdk-6 trovi quello vecchio (che cmq e' 
inutilizzabile e puoi rasare via)
Cmq prima di compilarlo ricordati di dare un make clean, poi make xconfig 
che ti metti a posto i parametri che vuoi e poi il fondamentale make dep.


 
E se invece provassi con il 2.5.20?

 E se invece provassi con il 2.5.20?
direi che e' a tuo rischio e pericolo essendo la 2.5.x una serie 
sperimentale :D
