Bonjour,

Je souhaiterai de l'aide pour appliquer les patchs d'un kernel.
L'objectif est d'apprendre .

J'ai télécharger le kernel 6.10 puis les patchs 1-14 mais impossible que sa passe correctement.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
cd $HOME;
mkdir kernel;
cd kernel;
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.10.tar.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.1.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.2.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.3.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.4.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.5.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.6.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.7.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.8.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.9.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.10.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.11.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.12.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.13.xz
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.10.14.xz
for i in $(ls *.xz); do unxz $i; done
for i in $(ls *.tar); do tar xf $i; done

Patch 6.10.1:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
patch -p1 --batch < ../patch-6.10.1
# ---------------------------------------------------------------------
patching file Makefile
patching file drivers/char/tpm/tpm2-sessions.c
patching file drivers/net/wireless/intel/iwlwifi/mvm/tt.c
patching file drivers/thermal/thermal_core.c
patching file drivers/thermal/thermal_core.h
patching file drivers/thermal/thermal_helpers.c
patching file fs/ext4/ext4.h
patching file fs/ext4/ioctl.c
patching file fs/smb/client/cifsfs.c
patching file fs/smb/client/file.c
patching file fs/smb/client/smb2pdu.c
patching file include/sound/cs35l56.h
patching file io_uring/kbuf.c
patching file sound/soc/codecs/cs35l56.c
# ---------------------------------------------------------------------
head Makefile;
# VERSION = 6
# PATCHLEVEL = 10
# SUBLEVEL = 1
# EXTRAVERSION =
# NAME = Baby Opossum Posse
# ---------------------------------------------------------------------
# Remise a Zero du SUBLEVEL pour le patch 2
sed -i -e "s/SUBLEVEL \= 1/SUBLEVEL \= 0/g" Makefile;
# ---------------------------------------------------------------------
Patch 6.10.2
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
patch -p1 --batch < ../patch-6.10.2;
# ---------------------------------------------------------------------
patching file Makefile
patching file arch/arm64/boot/dts/qcom/ipq6018.dtsi
patching file arch/arm64/boot/dts/qcom/ipq8074.dtsi
patching file arch/arm64/boot/dts/qcom/msm8996.dtsi
patching file arch/arm64/boot/dts/qcom/msm8998.dtsi
patching file arch/arm64/boot/dts/qcom/qrb2210-rb1.dts
patching file arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
patching file arch/arm64/boot/dts/qcom/sc7180.dtsi
patching file arch/arm64/boot/dts/qcom/sc7280.dtsi
patching file arch/arm64/boot/dts/qcom/sdm630.dtsi
patching file arch/arm64/boot/dts/qcom/sdm845.dtsi
patching file arch/arm64/boot/dts/qcom/sm6115.dtsi
patching file arch/arm64/boot/dts/qcom/sm6350.dtsi
patching file arch/arm64/boot/dts/qcom/x1e80100-crd.dts
patching file arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
patching file arch/s390/mm/fault.c
patching file drivers/char/tpm/tpm2-sessions.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
patching file drivers/net/tap.c
patching file drivers/net/tun.c
patching file drivers/net/wireless/intel/iwlwifi/mvm/tt.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file drivers/thermal/thermal_core.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file drivers/thermal/thermal_core.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file drivers/thermal/thermal_helpers.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file drivers/usb/gadget/function/f_midi2.c
patching file fs/ext4/ext4.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file fs/ext4/ioctl.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file fs/jfs/xattr.c
patching file fs/locks.c
patching file fs/ntfs3/fslog.c
patching file fs/ocfs2/dir.c
patching file fs/smb/client/cifsfs.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file fs/smb/client/file.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file fs/smb/client/smb2pdu.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file include/sound/cs35l56.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file io_uring/kbuf.c
Reversed (or previously applied) patch detected!  Assuming -R.
patching file sound/core/pcm_dmaengine.c
patching file sound/core/seq/seq_ump_client.c
patching file sound/pci/hda/patch_realtek.c
patching file sound/soc/codecs/cs35l56.c
Reversed (or previously applied) patch detected!  Assuming -R.
# ---------------------------------------------------------------------
head Makefile;
# VERSION = 6
# PATCHLEVEL = 10
# SUBLEVEL = 2
# EXTRAVERSION =
# NAME = Baby Opossum Posse
# ---------------------------------------------------------------------
# Remise a Zero du SUBLEVEL pour le patch 2
sed -i -e "s/SUBLEVEL \= 2/SUBLEVEL \= 0/g" Makefile;
# ---------------------------------------------------------------------


Patch 6.10.3
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
patch -p1 --batch < ../patch-6.10.3;
# ---------------------------------------------------------------------
find . -type f -name "*rej"
./sound/pci/hda/patch_realtek.c.rej
./arch/arm64/boot/dts/qcom/sc7280.dtsi.rej
./arch/arm64/boot/dts/qcom/qrb4210-rb2.dts.rej
./arch/arm64/boot/dts/qcom/x1e80100-qcp.dts.rej
./arch/arm64/boot/dts/qcom/sdm845.dtsi.rej
./arch/arm64/boot/dts/qcom/sc7180.dtsi.rej
./arch/arm64/boot/dts/qcom/msm8998.dtsi.rej
./arch/arm64/boot/dts/qcom/sm6350.dtsi.rej
./arch/arm64/boot/dts/qcom/x1e80100-crd.dts.rej
./arch/arm64/boot/dts/qcom/msm8996.dtsi.rej
./arch/arm64/boot/dts/qcom/sm6115.dtsi.rej
./fs/ntfs3/fslog.c.rej
# ---------------------------------------------------------------------
head Makefile;
# VERSION = 6
# PATCHLEVEL = 10
# SUBLEVEL = 3
# EXTRAVERSION =
# NAME = Baby Opossum Posse
# ---------------------------------------------------------------------
# Remise a Zero du SUBLEVEL pour le patch 2
sed -i -e "s/SUBLEVEL \= 3/SUBLEVEL \= 0/g" Makefile;



Patch 6.10.4
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
patch -p1 --batch < ../patch-6.10.4;
# ---------------------------------------------------------------------