#1 Le 06/04/2018, à 00:09
- massaproduxy
File to patch / Real Time PREEMPT_RT ...
Bonsoir,
Suite à une tentative de Patch du noyau Vanilla, je me retrouve avec un " File to Patch" en utilisant la commande PATCH [-p1]
Est-ce forcément une erreur de fichiers mal placés par rapport à la racine ? Puisque le site dépot (kernel.org) a changé l'adresse de ce "vieux" patch-4.4.9-rt17, j'ai téléchargé celui-ci depuis une adresse "non" officielle.
Question: Cette version peut-elle être différente de l'originale ?
Je ne suis pas non plus certain de bien utiliser l'option -p du patch . Là encore, si quelqu'un pouvait expliquer simplement comment cela fonctionne, ça serait super. le 1 signifie qu'on tronçonne quelle arborescence ?
Je ne sais pas non plus ce qu'est un "Hunk" ?
C'est ma 1ère tentative de Xcompil: SI vous prenez la peine de me répondre, essayez de le faire avec des explications simples.
Le problème est-il trivial ? Quelqu'un d'autre a t-il patché un noyau pour une application Real Time dernièrement ? ...
Merci d'avance pour votre aide
voici le code conduisant au "File to patch"
ssaproduxy@massaproduxy-OptiPlex-790:~/rpi-kernel-vanilla$ ls -a
. Documentation init MAINTAINERS samples
.. drivers ipc Makefile scripts
arch firmware Kbuild mm security
block fs Kconfig net sound
COPYING .git kernel patch-4.4.9-rt17.patch.gz tools
CREDITS .gitignore lib README usr
crypto include .mailmap REPORTING-BUGS virt
massaproduxy@massaproduxy-OptiPlex-790:~/rpi-kernel-vanilla$ zcat patch-4.4.9-rt17.patch.gz | patch -p1
The next patch would create the file Documentation/hwlat_detector.txt,
which already exists! Assume -R? [n] R
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
patching file Documentation/kernel-parameters.txt
Hunk #1 succeeded at 1564 (offset -65 lines).
patching file Documentation/sysrq.txt
The next patch would create the file Documentation/trace/histograms.txt,
which already exists! Assume -R? [n] -R
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file Makefile
Hunk #1 succeeded at 771 (offset 4 lines).
patching file arch/Kconfig
Hunk #1 succeeded at 6 (offset -3 lines).
Hunk #2 succeeded at 50 (offset -3 lines).
patching file arch/arm/Kconfig
Hunk #1 FAILED at 33.
Hunk #2 succeeded at 66 (offset -2 lines).
1 out of 2 hunks FAILED -- saving rejects to file arch/arm/Kconfig.rej
patching file arch/arm/include/asm/switch_to.h
Hunk #2 FAILED at 32.
1 out of 2 hunks FAILED -- saving rejects to file arch/arm/include/asm/switch_to.h.rej
patching file arch/arm/include/asm/thread_info.h
Hunk #1 succeeded at 50 (offset 1 line).
Hunk #2 FAILED at 143.
Hunk #3 succeeded at 161 (offset 8 lines).
Hunk #4 succeeded at 177 (offset 8 lines).
1 out of 4 hunks FAILED -- saving rejects to file arch/arm/include/asm/thread_info.h.rej
patching file arch/arm/kernel/asm-offsets.c
patching file arch/arm/kernel/entry-armv.S
Hunk #1 succeeded at 208 (offset -7 lines).
Hunk #2 succeeded at 234 (offset -7 lines).
can't find file to patch at input line 478
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
|index 30a7228eaceb..c3bd6cbfce4b 100644
|--- a/arch/arm/kernel/entry-common.S
|+++ b/arch/arm/kernel/entry-common.S
--------------------------
File to patch:
Dernière modification par massaproduxy (Le 08/04/2018, à 23:48)
Hors ligne