applicare patch al kernel

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

applicare patch al kernel

Messaggio da inux »

ciao ho ancora problemi ad applicare le patch.dunque è uscita la patch-2.6.26-rc9 la dovrei installare ho seguito i passi del wiki della community non funziona potete dirmi dove sbaglio? :( :cry:

Codice: Seleziona tutto

root@darkstar:/home/inux# cp patch-2.6.26-rc9.bz2 /usr/src/linux
root@darkstar:/home/inux# cd /usr/src/linux
root@darkstar:/usr/src/linux# bzip2 -dc patch-2.6.26-rc9.bz2 | patch -p1
patching file .gitignore
Hunk #2 FAILED at 22.
Hunk #3 FAILED at 48.
Hunk #4 FAILED at 59.
3 out of 4 hunks FAILED -- saving rejects to file .gitignore.rej
patching file .mailmap
Reversed (or previously applied) patch detected!  Assume -R? [n]
Ultima modifica di inux il dom 13 lug 2008, 10:17, modificato 1 volta in totale.

Avatar utente
lyapunov
Linux 2.x
Linux 2.x
Messaggi: 204
Iscritto il: dom 4 mag 2008, 16:12

Re: applicare patch al kernel

Messaggio da lyapunov »

Le patch del kernel sono progressive nel senso che non puoi applicare l'ultima se non hai applicato la penultima in ordine cronologico (pensiero contorto per dirti che devi applicarle tutte in maniera ordinata).
Sei sicuro che prima di quella che stai applicando non ci siano altre patch?

A giusto in caso non l'avessi letto quella è una prepatch

"Prepatches are the equivalent to alpha releases for Linux; they live in the testing directories in the archives. They should be applied using the patch(1) utility to the source code of the previous full release with a 3-part version number (for example, the 2.6.12-rc4 prepatch should be applied to the 2.6.11 kernel sources, not, for example, 2.6.11.10.)
The testing/incr directories contain automatically generated patches from one prepatch to another.

Prepatches may be poorly tested, and may in fact not work at all. Use on your own risk; if you use one and run into a problem please see Reporting Linux Kernel Bugs on the front page.

Prepatches with -rc in the name are considered release candidates and may become full versions. It is therefore particularly important that those get tested."

Quindi quella patch in teoria dovrebbe essere messa su un 2.6.25.

Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

Re: applicare patch al kernel

Messaggio da inux »

non capisco :-k io ho il kernel-2.6.26-rc8, attualmente siamo alla rc9 il file l'ho scaricato da qui http://www.eu.kernel.org/pub/linux/kernel/v2.6/testing/ma li c'è scritto patch provi a dare un'occhiata perchè non credo di aver capito molto bene la differenza tra i vari kernel escluso stabile -rc, -git Immagine Immagine grazie ciao.

Avatar utente
lyapunov
Linux 2.x
Linux 2.x
Messaggi: 204
Iscritto il: dom 4 mag 2008, 16:12

Re: applicare patch al kernel

Messaggio da lyapunov »

Da quanto vedo su kernel.org il 2.6.26-rc9 è una prepatch.
In quanto tale deve essere applicata, cito testualmente,su "previous full release with a 3-part version number".
Il problema è che questa non è una patch normale ma appunto, una prepatch.
Le patch classiche possono e devono essere applicate sempre sulla release precedente.
Le -rc a quanto vedo no.

Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

Re: applicare patch al kernel

Messaggio da inux »

sono andato a vedere anche io non sono sicuro ma da quello che mi pare di aver capito in teoria le patch per la mia versione dovrebbero essere le -mm1 "è un casino" sono andato a vedere nel link di andrew dove dovresti prendere la 2.6.26-rc8-mm1 dovrebbe essere una patch sperimentale per la mia versione però come scarico il file mi da 2.6.26-rc8-mm1 e non patch-2.6.26-rc8-mm1 sono un po confusoImmagine non vorrei che fosse un'altro kernel.non sono ancora riuscito a testare un kernel come dio comanda però dato che in una settimana ne avrò compilati 500 la compilazione mi sta riuscendo bene :D

Avatar utente
lyapunov
Linux 2.x
Linux 2.x
Messaggi: 204
Iscritto il: dom 4 mag 2008, 16:12

Re: applicare patch al kernel

Messaggio da lyapunov »

:shock: Ti offendi se ti dico che non ho capito una mazza? Prova a mettere qualche virgola e qualche punto ogni tanto.
Comunque se proprio non hai strette esigenze in termini di compatibilità hw e non sei uno sviluppatore perchè andarsi a impelagare nelle -rc?
Se vuoi un consiglio resta sul vanilla stable che in genere assicura stabilità e prestazioni.
IMHO

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: applicare patch al kernel

Messaggio da conraid »

inux ma perché cerchi sempre di fare cose del genere? Nel senso di poco comuni se non per sviluppatori del kernel o beta tester incalliti.
Hai qualche esigenza particolare (driver che non funzionano, etc...) che ti porta a fare questo o è per divertimento/didattica?
Nel secondo caso mi sembra il minimo leggere qualcosa prima e capire il funzionamento di queste patch.

Quel che vuoi fare tu è applicare una patch progressiva, quindi scarica
http://www.kernel.org/pub/linux/kernel/ ... c8-rc9.bz2
quella che in kernel.org viene visualizzata alla voce VI (view incremental)

come ti hanno detto quella che hai scaricato tu va applicata a sorgenti del 2.6.25

Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

Re: applicare patch al kernel

Messaggio da inux »

conraid ha scritto
Hai qualche esigenza particolare (driver che non funzionano, etc...) che ti porta a fare questo o è per divertimento/didattica?
Nel secondo caso mi sembra il minimo leggere qualcosa prima e capire il funzionamento di queste patch.
lo so, devo capire bene come funziona.Intanto vedo di installarmi la patch che non l'ho mai fatto,poi provvederò a capire bene il funzionamento.Si è puramente per didattica e forse un po meno per divertimento anche perchè è abbastanza "pesante, difficile" però mi piace, ne pago il prezzo.
lyapunov ha scritto:
Ti offendi se ti dico che non ho capito una mazza? Prova a mettere qualche virgola e qualche punto ogni tanto.
No non mi offendo anche perchè
1 me lo hanno gia detto, starò più attento.
2 hai ragione, curerò di più la stsura dei messaggi.
Grazie a tutti e due per le dritte ciao.

Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

Re: applicare patch al kernel

Messaggio da inux »

L'ultimissima cosa ma quando ho installato la patch devo ricompilare o va bene così.Grazie , ciao.

Avatar utente
lyapunov
Linux 2.x
Linux 2.x
Messaggi: 204
Iscritto il: dom 4 mag 2008, 16:12

Re: applicare patch al kernel

Messaggio da lyapunov »

Secondo te? :lol:

No vabbè a parte gli scherzi, ovvio che devi ricompilare altrimenti che senzo avrebbe?

Avatar utente
inux
Packager
Packager
Messaggi: 529
Iscritto il: sab 3 nov 2007, 11:36
Nome Cognome: Christian Reguzzoni
Slackware: 64 13.1
Desktop: kde
Località: busto arsizio (VA)

Re: applicare patch al kernel

Messaggio da inux »

ciao, riapro questo post perchè vorrei capire come mai alcune patch vengono installate e altre no. Ho kernel-2.6.26-rc9-git1, git1 l'ho patchato ne ho 10 da fare tuttavia la prima è andata in porto almeno credo come installo la seconda patch mi da:

Codice: Seleziona tutto

root@darkstar:/usr/src/linux# bzip2 -dc patch-2.6.26-rc9-git2.bz2 | patch -p1
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file arch/powerpc/kernel/legacy_serial.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file arch/powerpc/kernel/legacy_serial.c.rej
patching file drivers/mmc/host/pxamci.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file drivers/mmc/host/pxamci.c.rej
patching file drivers/net/ehea/ehea.h
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file drivers/net/ehea/ehea.h.rej
patching file drivers/net/ehea/ehea_main.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
19 out of 19 hunks ignored -- saving rejects to file drivers/net/ehea/ehea_main.c.rej
patching file drivers/net/forcedeth.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/forcedeth.c.rej
patching file drivers/net/fs_enet/mac-fcc.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/fs_enet/mac-fcc.c.rej
patching file drivers/net/ibm_newemac/core.c
Hunk #1 succeeded at 1660 (offset 24 lines).
Hunk #2 FAILED at 2749.
1 out of 2 hunks FAILED -- saving rejects to file drivers/net/ibm_newemac/core.c.rej
patching file drivers/net/pasemi_mac.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/pasemi_mac.c.rej
patching file drivers/net/wan/hdlc_fr.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wan/hdlc_fr.c.rej
patching file drivers/net/wireless/iwlwifi/iwl-3945.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/iwlwifi/iwl-3945.c.rej
patching file drivers/net/wireless/iwlwifi/iwl-4965.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/iwlwifi/iwl-4965.c.rej
patching file drivers/net/wireless/iwlwifi/iwl3945-base.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/iwlwifi/iwl3945-base.c.rej
patching file drivers/net/wireless/iwlwifi/iwl4965-base.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/iwlwifi/iwl4965-base.c.rej
patching file drivers/net/wireless/libertas/if_usb.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/libertas/if_usb.c.rej
patching file drivers/usb/core/hcd.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/core/hcd.c.rej
patching file drivers/usb/core/hcd.h
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/core/hcd.h.rej
patching file drivers/usb/core/hub.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file drivers/usb/core/hub.c.rej
patching file drivers/usb/host/ohci-at91.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-at91.c.rej
patching file drivers/usb/host/ohci-au1xxx.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-au1xxx.c.rej
patching file drivers/usb/host/ohci-ep93xx.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-ep93xx.c.rej
patching file drivers/usb/host/ohci-hub.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file drivers/usb/host/ohci-hub.c.rej
patching file drivers/usb/host/ohci-lh7a404.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-lh7a404.c.rej
patching file drivers/usb/host/ohci-omap.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-omap.c.rej
patching file drivers/usb/host/ohci-pci.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-pci.c.rej
patching file drivers/usb/host/ohci-pnx4008.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-pnx4008.c.rej
patching file drivers/usb/host/ohci-pnx8550.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-pnx8550.c.rej
patching file drivers/usb/host/ohci-ppc-of.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-ppc-of.c.rej
patching file drivers/usb/host/ohci-ppc-soc.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-ppc-soc.c.rej
patching file drivers/usb/host/ohci-ps3.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-ps3.c.rej
patching file drivers/usb/host/ohci-pxa27x.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-pxa27x.c.rej
patching file drivers/usb/host/ohci-s3c2410.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-s3c2410.c.rej
patching file drivers/usb/host/ohci-sa1111.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-sa1111.c.rej
patching file drivers/usb/host/ohci-sh.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-sh.c.rej
patching file drivers/usb/host/ohci-sm501.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-sm501.c.rej
patching file drivers/usb/host/ohci-ssb.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ohci-ssb.c.rej
patching file drivers/usb/host/u132-hcd.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file drivers/usb/host/u132-hcd.c.rej
patching file include/asm-x86/kvm_para.h
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file include/asm-x86/kvm_para.h.rej
patching file lib/vsprintf.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/vsprintf.c.rej
patching file net/bridge/br_if.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/bridge/br_if.c.rej
patching file net/can/af_can.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file net/can/af_can.c.rej
patching file net/can/bcm.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file net/can/bcm.c.rej
patching file net/can/raw.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/can/raw.c.rej
patching file net/ipv4/tcp.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file net/ipv4/tcp.c.rej
patching file virt/kvm/ioapic.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file virt/kvm/ioapic.c.rej
potete dirmi cosa significa? Ultima cosa, una volta ricompilato il kernel come faccio a sapere se la patch me l'ha installata c'è qualche comando?Grazie ciao.

Rispondi