カーネルパッチ(3)2.6.13 の reject 修正

LS-LGL

2.6.12_lsp2.1.10 のソースツリーに patch-2.6.13 をあてたところ、 30 本の reject ファイルが残った。
ぼちぼち修正していく

オリジナルソースの展開

reject したソースを反映するため、 オリジナルのカーネルのソースツリーを展開する。
[yasunari@giga ls-lgl]$ tar zxvf linux-2.6.13.tar.gz
	:

手修正

一本一本、手修正していく。
こういうときには emacs 系の出番。

Makefile

patching file Makefile
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 282 (offset 1 line).
Hunk #4 succeeded at 793 (offset 1 line).
Hunk #6 succeeded at 1154 (offset 1 line).
1 out of 6 hunks FAILED -- saving rejects to file Makefile.rej
これは、EXTRAVERSION から -arm を消したときのミス。
難なく修正完了。

arch/arm/Kconfig

patching file arch/arm/Kconfig
Hunk #2 succeeded at 161 (offset 4 lines).
Hunk #3 succeeded at 198 with fuzz 1.
Hunk #4 succeeded at 321 (offset 98 lines).
Hunk #6 FAILED at 282.
Hunk #7 succeeded at 408 (offset 98 lines).
Hunk #8 succeeded at 389 with fuzz 2 (offset 41 lines).
Hunk #9 succeeded at 475 (offset 98 lines).
Hunk #10 succeeded at 557 (offset 41 lines).
Hunk #11 succeeded at 808 (offset 108 lines).
Hunk #12 succeeded at 775 (offset 41 lines).
Hunk #13 succeeded at 856 (offset 110 lines).
1 out of 13 hunks FAILED -- saving rejects to file arch/arm/Kconfig.rej
ARCH_FEROCEON が追加されていた。修正なし。

arch/arm/Makefile

patching file arch/arm/Makefile
Hunk #1 FAILED at 56.
Hunk #2 succeeded at 116 (offset 25 lines).
1 out of 3 hunks FAILED -- saving rejects to file arch/arm/Makefile.rej
CONFIG_AEABI の条件分岐。修正なし。

arch/arm/kernel/calls.S

patching file arch/arm/kernel/calls.S
Hunk #1 FAILED at 327.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/kernel/calls.S.rej
何とか修正

arch/arm/kernel/entry-armv.S

patching file arch/arm/kernel/entry-armv.S
Hunk #1 FAILED at 24.
Hunk #2 succeeded at 138 (offset 13 lines).
Hunk #4 succeeded at 213 (offset 13 lines).
Hunk #6 succeeded at 231 (offset 13 lines).
Hunk #8 succeeded at 294 (offset 13 lines).
Hunk #9 FAILED at 310.
Hunk #10 succeeded at 330 (offset 7 lines).
Hunk #11 succeeded at 352 (offset 13 lines).
Hunk #12 succeeded at 375 (offset 7 lines).
Hunk #13 succeeded at 405 (offset 13 lines).
Hunk #14 succeeded at 515 (offset 7 lines).
Hunk #15 succeeded at 546 (offset 13 lines).
Hunk #16 succeeded at 839 (offset 59 lines).
Hunk #17 succeeded at 835 (offset 13 lines).
Hunk #18 succeeded at 904 (offset 59 lines).
Hunk #19 succeeded at 881 (offset 13 lines).
Hunk #20 succeeded at 950 (offset 59 lines).
Hunk #21 succeeded at 958 (offset 13 lines).
Hunk #22 succeeded at 1025 (offset 59 lines).
2 out of 22 hunks FAILED -- saving rejects to file arch/arm/kernel/entry-armv.S.rej
修正

arch/arm/kernel/process.c

patching file arch/arm/kernel/process.c
Hunk #1 FAILED at 32.
Hunk #2 succeeded at 87 (offset 1 line).
Hunk #3 succeeded at 155 with fuzz 1 (offset 24 lines).
Hunk #4 succeeded at 139 (offset 1 line).
Hunk #5 succeeded at 199 (offset 32 lines).
1 out of 5 hunks FAILED -- saving rejects to file arch/arm/kernel/process.c.rej
修正

arch/arm/kernel/signal.c

patching file arch/arm/kernel/signal.c
Hunk #2 FAILED at 36.
Hunk #3 FAILED at 501.
Hunk #4 succeeded at 704 (offset 7 lines).
2 out of 4 hunks FAILED -- saving rejects to file arch/arm/kernel/signal.c.rej
give up

arch/arm/lib/ashldi3.c

patching file arch/arm/lib/ashldi3.c
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/lib/ashldi3.c.rej
修正

arch/arm/lib/lshrdi3.c

patching file arch/arm/lib/lshrdi3.c
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/lib/lshrdi3.c.rej
修正

arch/arm/lib/muldi3.c

patching file arch/arm/lib/muldi3.c
Hunk #2 FAILED at 46.
1 out of 2 hunks FAILED -- saving rejects to file arch/arm/lib/muldi3.c.rej
修正

arch/arm/lib/ucmpdi2.c

patching file arch/arm/lib/ucmpdi2.c
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/lib/ucmpdi2.c.rej
修正

arch/arm/mm/fault-armv.c

patching file arch/arm/mm/fault-armv.c
Hunk #4 FAILED at 132.
1 out of 4 hunks FAILED -- saving rejects to file arch/arm/mm/fault-armv.c.rej
修正

arch/arm/mm/flush.c

patching file arch/arm/mm/flush.c
Hunk #1 succeeded at 35 with fuzz 1 (offset -2 lines).
Hunk #2 FAILED at 45.
Hunk #3 FAILED at 106.
2 out of 3 hunks FAILED -- saving rejects to file arch/arm/mm/flush.c.rej
修正

arch/arm/nwfpe/fpa11.h

patching file arch/arm/nwfpe/fpa11.h
Hunk #3 FAILED at 91.
1 out of 3 hunks FAILED -- saving rejects to file arch/arm/nwfpe/fpa11.h.rej
修正

drivers/mtd/maps/Makefile

patching file drivers/mtd/maps/Makefile
Hunk #5 FAILED at 68.
1 out of 5 hunks FAILED -- saving rejects to file drivers/mtd/maps/Makefile.rej
修正

drivers/net/sk98lin/skge.c

patching file drivers/net/sk98lin/skge.c
Hunk #1 FAILED at 112.
Hunk #2 FAILED at 4213.
Hunk #3 FAILED at 4356.
Hunk #4 FAILED at 4369.
Hunk #5 FAILED at 4913.
Hunk #6 FAILED at 4962.
Hunk #7 FAILED at 5035.
Hunk #8 FAILED at 5133.
Hunk #9 FAILED at 5236.
9 out of 9 hunks FAILED -- saving rejects to file drivers/net/sk98lin/skge.c.rej
パス

drivers/net/sk98lin/skgeinit.c

patching file drivers/net/sk98lin/skgeinit.c
Hunk #1 FAILED at 2016.
1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sk98lin/skgeinit.c.rej
パス

drivers/net/sk98lin/skxmac2.c

patching file drivers/net/sk98lin/skxmac2.c
Hunk #1 FAILED at 1065.
Hunk #2 FAILED at 1110.
Hunk #3 FAILED at 2126.
Hunk #4 FAILED at 2253.
4 out of 4 hunks FAILED -- saving rejects to file drivers/net/sk98lin/skxmac2.c.rej
パス

drivers/usb/gadget/ether.c

patching file drivers/usb/gadget/ether.c
Hunk #1 FAILED at 84.
Hunk #2 FAILED at 141.
Hunk #3 FAILED at 310.
Hunk #4 FAILED at 329.
Hunk #5 FAILED at 396.
Hunk #6 FAILED at 540.
Hunk #7 FAILED at 848.
Hunk #8 FAILED at 945.
Hunk #9 FAILED at 984.
Hunk #10 FAILED at 1018.
Hunk #11 succeeded at 2012 with fuzz 2 (offset 986 lines).
Hunk #12 succeeded at 1397 with fuzz 2 (offset 352 lines).
Hunk #13 FAILED at 1424.
Hunk #14 FAILED at 1433.
Hunk #15 FAILED at 1447.
Hunk #16 FAILED at 1487.
Hunk #17 FAILED at 1500.
Hunk #18 FAILED at 1535.
Hunk #19 FAILED at 1552.
Hunk #20 FAILED at 1570.
Hunk #21 FAILED at 1631.
Hunk #22 FAILED at 1704.
Hunk #23 FAILED at 1736.
Hunk #24 FAILED at 1774.
Hunk #25 FAILED at 1791.
Hunk #26 FAILED at 1815.
Hunk #27 FAILED at 1830.
Hunk #28 FAILED at 1950.
Hunk #29 FAILED at 1969.
Hunk #30 FAILED at 2014.
Hunk #31 FAILED at 2076.
Hunk #32 FAILED at 2115.
Hunk #33 FAILED at 2131.
Hunk #34 FAILED at 2158.
Hunk #35 FAILED at 2244.
Hunk #36 FAILED at 2257.
Hunk #37 FAILED at 2289.
Hunk #38 FAILED at 2305.
Hunk #39 FAILED at 2344.
Hunk #40 FAILED at 2370.
Hunk #41 FAILED at 2386.
Hunk #42 FAILED at 2432.
Hunk #43 FAILED at 2474.
Hunk #44 FAILED at 2648.
Hunk #45 FAILED at 2662.
Hunk #46 FAILED at 2703.
Hunk #47 FAILED at 2776.
Hunk #48 FAILED at 2806.
Hunk #49 succeeded at 2061 (offset -415 lines).
Hunk #50 FAILED at 2077.
Hunk #51 succeeded at 2855 (offset 352 lines).
Hunk #52 FAILED at 2888.
48 out of 52 hunks FAILED -- saving rejects to file drivers/usb/gadget/ether.c.rej
パス

drivers/usb/gadget/file_storage.c

patching file drivers/usb/gadget/file_storage.c
Hunk #3 FAILED at 342.
Hunk #4 FAILED at 361.
Hunk #5 succeeded at 378 with fuzz 2 (offset -3 lines).
Hunk #6 succeeded at 429 (offset 21 lines).
Hunk #7 succeeded at 858 (offset 39 lines).
Hunk #8 succeeded at 1299 (offset 22 lines).
Hunk #9 succeeded at 1352 (offset 39 lines).
Hunk #10 succeeded at 1367 (offset 22 lines).
Hunk #11 succeeded at 1398 (offset 39 lines).
Hunk #12 succeeded at 1396 (offset 22 lines).
Hunk #13 succeeded at 1421 (offset 39 lines).
Hunk #14 succeeded at 1423 (offset 22 lines).
Hunk #15 succeeded at 1448 (offset 39 lines).
Hunk #16 succeeded at 1456 (offset 22 lines).
Hunk #17 succeeded at 1501 (offset 39 lines).
Hunk #18 succeeded at 1503 (offset 22 lines).
Hunk #19 succeeded at 1534 (offset 39 lines).
Hunk #20 succeeded at 1573 (offset 22 lines).
Hunk #21 succeeded at 2844 (offset 187 lines).
Hunk #22 succeeded at 3789 (offset 239 lines).
Hunk #23 succeeded at 3772 (offset 187 lines).
Hunk #24 succeeded at 3848 (offset 239 lines).
2 out of 24 hunks FAILED -- saving rejects to file drivers/usb/gadget/file_storage.c.rej
パス

drivers/usb/host/Makefile

patching file drivers/usb/host/Makefile
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/host/Makefile.rej
修正

drivers/usb/host/ehci-q.c

patching file drivers/usb/host/ehci-q.c
Hunk #2 succeeded at 224 (offset 2 lines).
Hunk #3 FAILED at 430.
Hunk #4 succeeded at 664 (offset 6 lines).
Hunk #5 succeeded at 906 (offset 7 lines).
1 out of 5 hunks FAILED -- saving rejects to file drivers/usb/host/ehci-q.c.rej
パス

drivers/usb/host/ehci-sched.c

patching file drivers/usb/host/ehci-sched.c
Hunk #1 FAILED at 301.
Hunk #2 FAILED at 385.
Hunk #3 FAILED at 412.
Hunk #4 FAILED at 534.
Hunk #5 FAILED at 570.
Hunk #6 FAILED at 589.
Hunk #7 FAILED at 634.
Hunk #8 succeeded at 880 with fuzz 2 (offset 33 lines).
Hunk #9 FAILED at 927.
Hunk #10 FAILED at 953.
Hunk #11 FAILED at 1227.
Hunk #12 FAILED at 1244.
Hunk #13 FAILED at 1261.
Hunk #14 FAILED at 1290.
Hunk #15 FAILED at 1323.
Hunk #16 FAILED at 1330.
Hunk #17 succeeded at 1459 with fuzz 2 (offset 46 lines).
Hunk #18 FAILED at 1571.
Hunk #19 succeeded at 1822 with fuzz 2 (offset 48 lines).
Hunk #20 succeeded at 1873 with fuzz 2 (offset 48 lines).
16 out of 20 hunks FAILED -- saving rejects to file drivers/usb/host/ehci-sched.c.rej
パス

drivers/usb/misc/usbtest.c

patching file drivers/usb/misc/usbtest.c
Hunk #1 succeeded at 524 (offset 63 lines).
Hunk #2 FAILED at 667.
Hunk #3 FAILED at 1305.
Hunk #4 FAILED at 1328.
Hunk #5 FAILED at 1342.
Hunk #6 FAILED at 1365.
Hunk #7 FAILED at 1596.
Hunk #8 FAILED at 1844.
Hunk #9 succeeded at 2011 with fuzz 1 (offset 63 lines).
Hunk #10 FAILED at 2220.
8 out of 10 hunks FAILED -- saving rejects to file drivers/usb/misc/usbtest.c.rej
パス

fs/Makefile

patching file fs/Makefile
Hunk #1 FAILED at 10.
Hunk #2 succeeded at 34 (offset 1 line).
1 out of 2 hunks FAILED -- saving rejects to file fs/Makefile.rej
修正

fs/jffs2/nodelist.c

patching file fs/jffs2/nodelist.c
Hunk #4 FAILED at 161.
1 out of 10 hunks FAILED -- saving rejects to file fs/jffs2/nodelist.c.rej
修正

fs/nfsd/vfs.c

patching file fs/nfsd/vfs.c
Hunk #1 FAILED at 45.
Hunk #6 FAILED at 860.
Hunk #7 FAILED at 916.
3 out of 8 hunks FAILED -- saving rejects to file fs/nfsd/vfs.c.rej
修正

fs/sysfs/file.c

patching file fs/sysfs/file.c
Hunk #1 FAILED at 3.
Hunk #7 FAILED at 391.
Hunk #8 FAILED at 399.
Hunk #9 succeeded at 434 (offset -3 lines).
3 out of 9 hunks FAILED -- saving rejects to file fs/sysfs/file.c.rej
修正

include/linux/fs.h

patching file include/linux/fs.h
Hunk #6 succeeded at 479 with fuzz 1 (offset 5 lines).
Hunk #8 succeeded at 686 (offset 5 lines).
Hunk #10 succeeded at 835 (offset 5 lines).
Hunk #12 succeeded at 998 (offset 5 lines).
Hunk #14 FAILED at 1400.
Hunk #15 succeeded at 1445 (offset 4 lines).
Hunk #17 succeeded at 1606 (offset 4 lines).
1 out of 18 hunks FAILED -- saving rejects to file include/linux/fs.h.rej
修正

include/linux/sched.h

patching file include/linux/sched.h
Hunk #5 FAILED at 410.
Hunk #6 succeeded at 473 (offset 4 lines).
Hunk #8 succeeded at 530 (offset 4 lines).
Hunk #10 succeeded at 588 (offset 4 lines).
Hunk #12 succeeded at 693 (offset 4 lines).
Hunk #14 succeeded at 773 (offset 4 lines).
Hunk #16 succeeded at 1123 (offset 4 lines).
1 out of 17 hunks FAILED -- saving rejects to file include/linux/sched.h.rej
修正

何か思ったより早く完了

アーカイブ

アーカイブしておく
[yasunari@giga ls-lgl]$ tar zcvf linux-2.6.13_lsp2.1.10.tar.gz linux-feroceon_2_1_10
	:
	:


LS-L250GL
楽天市場
Amazon
Yahoo! ショッピング
Sofmap
TSUKUMO ネットショップ
ValuMore!
ムラウチドットコム
uWorks
パソQ


カーネルパッチ(2)2.6.13
ハックの記録
LinkStation/玄箱 をハックしよう

カーネルパッチ(4)2.6.13 LSP 2.1.10 のコンパイル

Copyright (C) 2003-2007 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市