Pagina 1 di 1

errore patch

Inviato: dom 13 lug 2008, 14:01
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.

Re: errore patch

Inviato: dom 13 lug 2008, 18:07
da albatros
http://www.kernel.org/faq/#kernel-patching
http://www.kernel.org/patchtypes/snapshot.html

Credo che dovresti installare prima la http://www.kernel.org/pub/linux/kernel/ ... 26-rc9.bz2, poi la http://www.kernel.org/pub/linux/kernel/ ... -git11.bz2 .
Le git non vanno applicate alla git precedente, ma alla rc precedente, non sono, per intendersi, come: http://www.kernel.org/pub/linux/kernel/ ... 5.9-10.bz2 .
Per applicare una patch git dovresti tornare alla rc di riferimento, riapplicando eventualmente l'ultima patch al rovescio con -R o conservandone l'archivio tar vergine.

Gli errori che hai ottenuto indicano che hai applicato male la patch.

Per vedere la versione del kernel in uso puoi usare:

Codice: Seleziona tutto

uname -r