View previous topic :: View next topic |
Author |
Message |
cn73 Tux's lil' helper
Joined: 20 Nov 2003 Posts: 120 Location: Italy
|
Posted: Mon Dec 08, 2003 10:49 am Post subject: Ricompilazione kernel K7 |
|
|
Nei miei vari esperimenti di ottimizzazione del kernel ho settato l'opzione specifica per K7 al posto della preimpostata generica 386... Al riavvio ho avuto molti errori nel caricamento dei moduli, del tipo
Code: |
unresolved symbol _mmx...ecc
|
Riconducendo il termine mmx a processori intel, ho ricompilato rimettendo 386 e tutto è tornato a posto... c'è modo di risolvere il problema? |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Dec 08, 2003 10:50 am Post subject: |
|
|
facci vedere il .config _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Mon Dec 08, 2003 10:57 am Post subject: |
|
|
prova a dare una pulitina al kernel prima di ricompilarlo
Code: | # rm -rf /lib/modules/<tuokernel>
# cd /usr/src/linux
# cp .config ~
# make mrproper
# cp ~/.config .
# make oldconfig
# make dep && make clean bzImage modules modules_install |
_________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
cn73 Tux's lil' helper
Joined: 20 Nov 2003 Posts: 120 Location: Italy
|
Posted: Mon Dec 08, 2003 11:19 am Post subject: |
|
|
Attualmente la parte relativa al Processor Type è questa (386-funzionante)
Code: |
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
#
# Processor type and features
#
CONFIG_M386=y
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_CMPXCHG is not set
# CONFIG_X86_XADD is not set
CONFIG_X86_L1_CACHE_SHIFT=4
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_X86_PPRO_FENCE=y
# CONFIG_X86_F00F_WORKS_OK is not set
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
CONFIG_MICROCODE=m
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=m
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_HIGHMEM is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_SMP is not set
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_X86_TSC=y |
Cosa succede con
Perchè dopo mi faresti dare un
# make oldconfig ? |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Dec 08, 2003 11:23 am Post subject: |
|
|
ripulisce in modo accurato tutte le directory dei sorgenti del kernel. Cancella, se non vado errato, anche il file .config, facendoti partire da una configurazione mooolto di default.
avvia una configurazione automatica mettendo tutto in defualt (o sbaglio?)
Ciao _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Mon Dec 08, 2003 11:25 am Post subject: |
|
|
in parole povere "make mrproper" ti ripulisce il kernel e te lo fa tornare come se l'avessi appena scompattato, solo che questa operazione ti porta a cancellarti pure il .config
il "make oldconfig" ti evita di dover aprire l'interfaccia grafica (make menuconfig) e poi uscire salvando...
penso comunque che le guide relative al kernel compiling possano dare un po' + di spiegazioni
spero cmq di esserti stato d'aiuto
_________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
cn73 Tux's lil' helper
Joined: 20 Nov 2003 Posts: 120 Location: Italy
|
Posted: Mon Dec 08, 2003 11:29 am Post subject: |
|
|
Ho trovato questo sul forunm:
Quote: |
Note that 'make mrproper' will remove the .config file -- if you've got a config you want to keep, back it up first, outside /usr/src/linux. And yes, 'make mrproper' includes all that would be done by 'make clean', plus more. It essentially leaves your source tree just like it was when it was first untarred.
As for menuconfig vs. xconfig, menuconfig is fine for me; I wouldn't say it's dreadful at all, though this likely is a matter of taste, and depend on whether you'd rather point and click, or use a terminal or console. Besides, of course, the obvious: you don't need X installed to use menuconfig.
One more note: 'make oldconfig' is also handy, if you've got an older "known good" .config file around, one from an earlier incarnation of the same kernel version, or one from an earlier version of the kernel (e.g., if you're going from 2.4.20 to 2.4.22). Put the old .config in a fresh /usr/src/linux, and 'make oldconfig'; you'll be prompted only for items that have changed or been added since that earlier kernel version. So, after backing up .config, you can make mrproper, oldconfig, dep, then the rest. Should work. |
Io devo cambiare l'opzione relativa al k7 perciò dopo il make mproper e avere riristinato il backup del .config, lancio make menuconfig, cambio l'ozione relativa al k7 e lancio la compilazione...right? |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Mon Dec 08, 2003 11:35 am Post subject: |
|
|
si, immagino tu ti riferisca al "Processor Type" nel menu del kernel, quindi si
(pensavo ti riferissi semplicemenete a delle flag di compilazione)
_________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
cn73 Tux's lil' helper
Joined: 20 Nov 2003 Posts: 120 Location: Italy
|
Posted: Mon Dec 08, 2003 11:41 am Post subject: |
|
|
Peach wrote: | si, immagino tu ti riferisca al "Processor Type" nel menu del kernel, quindi si
(pensavo ti riferissi semplicemenete a delle flag di compilazione)
|
Esatto semplciemente il Processor Type...
ok ora provo ci risentiamo dopo pranzo...spero |
|
Back to top |
|
|
paolo l33t
Joined: 23 Jul 2002 Posts: 768 Location: SBT (AP)
|
Posted: Mon Dec 08, 2003 12:00 pm Post subject: |
|
|
Sara' che devi ricompilare anche i moduli (make modules) e installarli (make modules_install) e non solo ricompilare il kernel (make bzImage) ?
Paolo _________________ Nihil sine magno labore |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Mon Dec 08, 2003 12:35 pm Post subject: |
|
|
Grande AVATAR! E' GPL? Spero di si! _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31446 Location: here
|
Posted: Mon Dec 08, 2003 12:45 pm Post subject: |
|
|
cerri wrote: | Grande AVATAR! E' GPL? Spero di si! |
Penso proprio di no visto che e' una gif ed e' protetta da brevetto. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Dec 08, 2003 12:49 pm Post subject: |
|
|
unisys ha rinunciato al brevetto, poi in europa comunque non valeva _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31446 Location: here
|
Posted: Mon Dec 08, 2003 12:51 pm Post subject: |
|
|
comio wrote: | unisys ha rinunciato al brevetto, poi in europa comunque non valeva |
Davvero ma da quando? (bello ora si possono usare senza problemi) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
cn73 Tux's lil' helper
Joined: 20 Nov 2003 Posts: 120 Location: Italy
|
Posted: Mon Dec 08, 2003 12:59 pm Post subject: |
|
|
Ok, ho risolto eseguendo i seguenti passi:
Code: |
# rm -rf /lib/modules/<tuokernel>
# cd /usr/src/linux
# cp .config ~
# make mrproper
# cp ~/.config .
# make menuconfig
attivata l'opzione relativa al k7
# make dep && make clean bzImage modules modules_install
|
thxs |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Dec 08, 2003 1:04 pm Post subject: |
|
|
forse ho detto delle bagianate (erano voci che ho preso per notizie...). Mi scuso, comunque questo è link. Entro un anno, se non ci sono state rinunce anticipate sui diritti, dovrebbe diventare tutto free.
http://http://www.unisys.com/about__unisys/lzw _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
paolo l33t
Joined: 23 Jul 2002 Posts: 768 Location: SBT (AP)
|
Posted: Mon Dec 08, 2003 1:15 pm Post subject: |
|
|
cerri wrote: | Grande AVATAR! E' GPL? Spero di si! |
Non ricordo nemmeno dove l'ho presa... è stato un lungo weekend di studio...
Eppoi quando uno non ricorda la proveniente il copyright non vale vero?
Se è per il formato ho il Gimp che converte
Cmq sta meglio in signature perchè come avatar ci si aspetta una cosetta diversa da uno smiley!
Paolo _________________ Nihil sine magno labore |
|
Back to top |
|
|
|