Patchowanie karnela

Ogólne pytania dotyczące systemu
Robo
Posty: 10
Rejestracja: 25 listopada 2006, 00:04

Patchowanie karnela

Post autor: Robo »

Witam
Postanowiłem zrobić klaster i z tej stronki:Z tej stronki:
ściągnąłem kernels/linux-2.6.17-om-20061124-prealpha.tar.bz2 i patch do niego
Jądro wypoakowałem do usr/src/ i żeby je spachować wpisuje:
debian:/usr/src# bzip2 -dc patches-20061124-prealpha.tar.bz2 | patch -p1
i wyświetla mi się takie coś:
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|patches/0000755000175000017500000000000010531673103010632 5ustar fdyfdypatches/openmosix/0000755000175000017500000000000010531672772012666 5ustar fdyfdypatches/openmosix/openmosix-remove-dead-code-homemig_01.patch0000644000175000017500000000174510531672745022760 0ustar fdyfdy
|This patch removes an unreached else statement int mig_do_receive_home.
|ack pkts are dealt with in kcomd so no need to deal with them here.
|Index: linux/hpc/migrecv.c
|===================================================================
|--- linux.orig/hpc/migrecv.c 2006-11-02 22:51:58.000000000 +0100
|+++ linux/hpc/migrecv.c 2006-11-02 22:52:00.000000000 +0100
--------------------------
File to patch:
wciskam enter i dalej
Hunk #1 FAILED at 206.
Hunk #2 FAILED at 245.
Hunk #3 FAILED at 280.
Hunk #4 FAILED at 320.
Hunk #5 FAILED at 328.
Hunk #6 FAILED at 350.
Hunk #7 FAILED at 379.
Hunk #8 FAILED at 414.
Hunk #9 succeeded at 98 with fuzz 1 (offset -355 lines).
Hunk #10 FAILED at 145.
9 out of 10 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file hpc/migrecv.c
Hunk #3 FAILED at 474.
Hunk #4 FAILED at 483.
Hunk #5 FAILED at 588.
3 out of 5 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file include/hpc/prototype.h
Hunk #1 FAILED at 107.
1 out of 1 hunk FAILED -- saving rejects to file include/hpc/prototype.h.rej
patching file hpc/migsend.c
Hunk #4 succeeded at 78 with fuzz 1.
Hunk #5 succeeded at 107 with fuzz 2 (offset 1 line).
Hunk #6 succeeded at 154 (offset 3 lines).
Hunk #7 FAILED at 174.
Hunk #8 succeeded at 199 with fuzz 2 (offset 6 lines).
Hunk #9 FAILED at 210.
Hunk #10 succeeded at 235 (offset 8 lines).
Hunk #11 succeeded at 294 with fuzz 2 (offset 8 lines).
Hunk #12 FAILED at 306.
3 out of 12 hunks FAILED -- saving rejects to file hpc/migsend.c.rej
patching file hpc/migctrl.c
patching file hpc/proc.c
Hunk #3 FAILED at 47.
Hunk #4 FAILED at 58.
Hunk #5 FAILED at 94.
3 out of 5 hunks FAILED -- saving rejects to file hpc/proc.c.rej
patching file hpc/task.c
Hunk #5 succeeded at 221 (offset -5 lines).
patching file hpc/migrecv.c
Hunk #2 succeeded at 47 (offset -3 lines).
Hunk #3 FAILED at 85.
Hunk #4 FAILED at 138.
Hunk #5 FAILED at 214.
Hunk #6 FAILED at 252.
Hunk #7 FAILED at 333.
Hunk #8 FAILED at 385.
Hunk #9 FAILED at 422.
Hunk #10 succeeded at 277 with fuzz 2 (offset -210 lines).
Hunk #11 FAILED at 287.
Hunk #12 FAILED at 302.
Hunk #13 FAILED at 335.
Hunk #14 FAILED at 376.
11 out of 14 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file hpc/kcomd.c
Hunk #3 FAILED at 518.
1 out of 3 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file include/hpc/debug.h
patching file hpc/debugfs.c
patching file include/hpc/debug.h
patching file include/hpc/hpc.h
patching file hpc/kcom.c
Hunk #1 succeeded at 24 (offset -1 lines).
Hunk #2 succeeded at 47 (offset -2 lines).
Hunk #3 succeeded at 102 with fuzz 2 (offset -16 lines).
Hunk #4 succeeded at 186 (offset -45 lines).
patching file hpc/kcomd.c
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 332.
Hunk #3 FAILED at 359.
3 out of 3 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/proc.c
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED -- saving rejects to file hpc/proc.c.rej
patching file hpc/kcomd.c
Hunk #1 FAILED at 29.
Hunk #2 succeeded at 456 (offset -38 lines).
Hunk #3 FAILED at 549.
Hunk #4 FAILED at 563.
Hunk #5 FAILED at 586.
Hunk #6 FAILED at 609.
Hunk #7 FAILED at 618.
Hunk #8 FAILED at 712.
7 out of 8 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 197 (offset -45 lines).
Hunk #2 succeeded at 228 (offset -45 lines).
Hunk #3 succeeded at 237 (offset -45 lines).
Hunk #4 succeeded at 258 (offset -45 lines).
Hunk #5 succeeded at 284 (offset -45 lines).
Hunk #6 succeeded at 298 (offset -45 lines).
Hunk #7 succeeded at 326 (offset -44 lines).
Hunk #8 succeeded at 516 (offset -44 lines).
Hunk #9 FAILED at 552.
Hunk #10 succeeded at 719 (offset -72 lines).
Hunk #11 succeeded at 924 (offset -69 lines).
Hunk #12 succeeded at 959 (offset -69 lines).
Hunk #13 FAILED at 981.
Hunk #14 FAILED at 996.
3 out of 14 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file include/hpc/kcom.h
patching file hpc/kcomd.c
Hunk #1 FAILED at 269.
Hunk #2 FAILED at 296.
Hunk #3 FAILED at 332.
Hunk #4 FAILED at 390.
Hunk #5 FAILED at 415.
Hunk #6 FAILED at 427.
Hunk #7 FAILED at 706.
7 out of 7 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/migrecv.c
Hunk #1 FAILED at 502.
Hunk #2 FAILED at 515.
Hunk #3 FAILED at 527.
Hunk #4 FAILED at 553.
Hunk #5 FAILED at 576.
5 out of 5 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file hpc/migrecv.c
Hunk #1 FAILED at 500.
Hunk #2 FAILED at 561.
Hunk #3 FAILED at 633.
Hunk #4 FAILED at 641.
4 out of 4 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file include/hpc/prototype.h
Hunk #1 succeeded at 20 with fuzz 2.
Hunk #2 FAILED at 96.
1 out of 2 hunks FAILED -- saving rejects to file include/hpc/prototype.h.rej
patching file hpc/kcomd.c
Hunk #1 succeeded at 257 (offset 147 lines).
Hunk #2 succeeded at 266 (offset 147 lines).
Hunk #3 FAILED at 276.
Hunk #4 FAILED at 330.
Hunk #5 FAILED at 369.
Hunk #6 FAILED at 426.
Hunk #7 FAILED at 436.
Hunk #8 FAILED at 447.
Hunk #9 FAILED at 456.
Hunk #10 FAILED at 495.
Hunk #11 FAILED at 517.
Hunk #12 succeeded at 428 (offset -43 lines).
Hunk #13 FAILED at 530.
Hunk #14 FAILED at 606.
11 out of 14 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file include/hpc/debug.h
patching file include/hpc/hpc.h
patching file hpc/kcomd.c
Hunk #1 FAILED at 332.
Hunk #2 FAILED at 358.
Hunk #3 FAILED at 421.
3 out of 3 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 25 (offset -1 lines).
Hunk #2 succeeded at 247 (offset -2 lines).
Hunk #3 FAILED at 264.
Hunk #4 FAILED at 274.
Hunk #5 succeeded at 281 (offset -15 lines).
Hunk #6 succeeded at 305 with fuzz 2 (offset -16 lines).
Hunk #7 FAILED at 322.
Hunk #8 FAILED at 340.
Hunk #9 succeeded at 388 (offset -45 lines).
Hunk #10 FAILED at 480.
Hunk #11 FAILED at 506.
Hunk #12 FAILED at 566.
Hunk #13 FAILED at 575.
Hunk #14 FAILED at 583.
Hunk #15 FAILED at 591.
Hunk #16 FAILED at 626.
Hunk #17 FAILED at 652.
Hunk #18 FAILED at 660.
Hunk #19 FAILED at 710.
Hunk #20 FAILED at 802.
Hunk #21 succeeded at 894 (offset -79 lines).
Hunk #22 succeeded at 916 (offset -79 lines).
Hunk #23 FAILED at 944.
Hunk #24 FAILED at 957.
Hunk #25 FAILED at 985.
Hunk #26 FAILED at 1055.
Hunk #27 succeeded at 1112 (offset -77 lines).
Hunk #28 succeeded at 1123 (offset -77 lines).
Hunk #29 FAILED at 1148.
Hunk #30 FAILED at 1283.
Hunk #31 FAILED at 1301.
Hunk #32 FAILED at 1312.
Hunk #33 FAILED at 1325.
Hunk #34 succeeded at 1334 with fuzz 1 (offset -92 lines).
Hunk #35 FAILED at 1349.
Hunk #36 FAILED at 1359.
26 out of 36 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/debugfs.c
patching file hpc/proc.c
Hunk #1 FAILED at 51.
Hunk #2 FAILED at 77.
Hunk #3 FAILED at 91.
3 out of 3 hunks FAILED -- saving rejects to file hpc/proc.c.rej
patching file hpc/migctrl.c
patching file hpc/kcomd.c
Hunk #1 FAILED at 25.
Hunk #2 succeeded at 33 (offset -8 lines).
1 out of 2 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 44 (offset -1 lines).
Hunk #2 succeeded at 56 (offset -1 lines).
Hunk #3 succeeded at 71 (offset -1 lines).
Hunk #4 succeeded at 85 (offset -1 lines).
Hunk #5 succeeded at 175 (offset -1 lines).
Hunk #6 succeeded at 231 (offset -1 lines).
Hunk #7 succeeded at 436 (offset -44 lines).
Hunk #8 succeeded at 540 (offset -44 lines).
Hunk #9 succeeded at 790 (offset -46 lines).
Hunk #10 succeeded at 937 (offset -81 lines).
Hunk #11 succeeded at 961 (offset -81 lines).
Hunk #12 FAILED at 986.
Hunk #13 succeeded at 1004 (offset -84 lines).
Hunk #14 FAILED at 1024.
Hunk #15 FAILED at 1056.
Hunk #16 FAILED at 1082.
Hunk #17 FAILED at 1111.
Hunk #18 FAILED at 1168.
Hunk #19 FAILED at 1280.
Hunk #20 succeeded at 1275 (offset -155 lines).
7 out of 20 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/migrecv.c
Hunk #1 FAILED at 86.
Hunk #2 FAILED at 105.
Hunk #3 FAILED at 172.
Hunk #4 FAILED at 191.
Hunk #5 succeeded at 133 with fuzz 2 (offset -353 lines).
Hunk #6 FAILED at 148.
Hunk #7 FAILED at 178.
6 out of 7 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file hpc/copyuser.c
patching file hpc/deputy.c
patching file hpc/remote.c
Hunk #1 FAILED at 176.
1 out of 1 hunk FAILED -- saving rejects to file hpc/remote.c.rej
patching file include/hpc/debug.h
patching file hpc/kcomd.c
Hunk #1 succeeded at 389 with fuzz 2 (offset 34 lines).
Hunk #2 FAILED at 418.
Hunk #3 FAILED at 459.
2 out of 3 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/task.c
Hunk #1 FAILED at 162.
Hunk #2 succeeded at 186 (offset -5 lines).
1 out of 2 hunks FAILED -- saving rejects to file hpc/task.c.rej
patching file hpc/kcom.c
Hunk #1 FAILED at 415.
Hunk #2 succeeded at 379 (offset -44 lines).
Hunk #3 succeeded at 1199 (offset -97 lines).
Hunk #4 succeeded at 1212 (offset -97 lines).
Hunk #5 succeeded at 1234 (offset -97 lines).
Hunk #6 FAILED at 1259.
Hunk #7 FAILED at 1269.
3 out of 7 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/migrecv.c
Hunk #1 FAILED at 171.
Hunk #2 FAILED at 191.
2 out of 2 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file include/hpc/prototype.h
Hunk #1 FAILED at 95.
1 out of 1 hunk FAILED -- saving rejects to file include/hpc/prototype.h.rej
patching file hpc/kcom.c
Hunk #1 FAILED at 910.
1 out of 1 hunk FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/kcomd.c
Hunk #1 FAILED at 160.
Hunk #2 FAILED at 439.
Hunk #3 succeeded at 410 (offset -50 lines).
Hunk #4 FAILED at 704.
3 out of 4 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 390 (offset -44 lines).
Hunk #2 succeeded at 467 (offset -44 lines).
patching file hpc/copyuser.c
patching file hpc/deputy.c
patching file hpc/kcomd.c
Hunk #1 FAILED at 732.
1 out of 1 hunk FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kernel.c
patching file hpc/migrecv.c
Hunk #1 FAILED at 553.
Hunk #2 FAILED at 568.
2 out of 2 hunks FAILED -- saving rejects to file hpc/migrecv.c.rej
patching file hpc/arch-i386.c
patching file hpc/arch-x86_64.c
patching file hpc/deputy.c
patching file hpc/kcomd.c
Hunk #1 FAILED at 165.
Hunk #2 FAILED at 404.
2 out of 2 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file include/hpc/arch.h
patching file hpc/kcomd.c
Hunk #1 succeeded at 423 (offset -57 lines).
Hunk #2 succeeded at 432 (offset -57 lines).
Hunk #3 succeeded at 446 (offset -57 lines).
Hunk #4 FAILED at 519.
Hunk #5 FAILED at 537.
Hunk #6 FAILED at 548.
Hunk #7 FAILED at 572.
Hunk #8 FAILED at 593.
Hunk #9 FAILED at 602.
Hunk #10 FAILED at 623.
Hunk #11 FAILED at 636.
8 out of 11 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 571 with fuzz 1 (offset -44 lines).
patching file hpc/proc.c
Hunk #1 FAILED at 114.
1 out of 1 hunk FAILED -- saving rejects to file hpc/proc.c.rej
patching file hpc/task.c
Hunk #1 succeeded at 223 (offset -5 lines).
can't find file to patch at input line 23124
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|patches/openmosix/replace-TIF_NEED_RESCHED.patch0000644000175000017500000001427510531672746017704 0ustar fdyfdySubject: [patch @num@/@total@] @name@ replace TIF_NEED_RESCHED usage
|
|till now, the migration process involved notifying the process by setting it's
|TIF_NEED_RESCHED flag to 1 and intercepting it before the schedule. This works
|all fine on most of the cases, but in case the process was waiting for a
|resource (say in a syscall), once the process is scheduled back, the
|TIF_NEED_RESCHED is cleared before the end of the schedule() call (and thus the|process never receive the migration order...)
|
|The solution is to stop hijacking the TIF_NEED_RESCHED flag and use our very
|own flag :) (although this involve some changes in the architecture, this is
|necessary).
|
|We now have TIF_NEED_OM_REFRESH (x86_64 and i386)
|
|I didn't check the i386 entry.S modification, I just *think* it should work,
|if some i386 kernel devs could have a look at it, that would be better
|Index: linux/include/asm-x86_64/thread_info.h
|===================================================================
|--- linux.orig/include/asm-x86_64/thread_info.h 2006-11-16 22:31:54.000000000 +0100
|+++ linux/include/asm/thread_info.h 2006-11-16 22:32:09.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 23144
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/include/asm-i386/thread_info.h
|===================================================================
|--- linux.orig/include/asm-i386/thread_info.h 2006-11-16 22:31:54.000000000 +0100
|+++ linux/include/asm-i386/thread_info.h 2006-11-16 22:32:09.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file hpc/task.c
Hunk #1 succeeded at 225 (offset -5 lines).
patching file hpc/kernel.c
can't find file to patch at input line 23191
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/x86_64/kernel/entry.S
|===================================================================
|--- linux.orig/arch/x86_64/kernel/entry.S 2006-11-16 22:31:54.000000000 +0100
|+++ linux/arch/x86_64/kernel/entry.S 2006-11-16 22:32:10.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 23251
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/i386/kernel/entry.S
|===================================================================
|--- linux.orig/arch/i386/kernel/entry.S 2006-11-16 22:31:55.000000000 +0100
|+++ linux/arch/i386/kernel/entry.S 2006-11-16 22:32:10.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 23287
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|patches/openmosix/i386-replace-TIF_NEED_RESCHED.patch0000644000175000017500000000106110531672746020360 0ustar fdyfdyIndex: linux/arch/i386/kernel/entry.S
|===================================================================
|--- linux.orig/arch/i386/kernel/entry.S 2006-11-16 22:45:51.000000000 +0100
|+++ linux/arch/i386/kernel/entry.S 2006-11-23 18:43:32.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file include/hpc/kcom.h
patching file hpc/kcom.c
Hunk #1 FAILED at 290.
Hunk #2 FAILED at 315.
Hunk #3 FAILED at 326.
Hunk #4 FAILED at 356.
Hunk #5 FAILED at 394.
Hunk #6 FAILED at 441.
Hunk #7 succeeded at 606 (offset -44 lines).
Hunk #8 succeeded at 630 (offset -43 lines).
Hunk #9 succeeded at 661 (offset -43 lines).
Hunk #10 FAILED at 759.
Hunk #11 succeeded at 803 (offset -46 lines).
Hunk #12 FAILED at 815.
Hunk #13 succeeded at 1072 (offset -65 lines).
Hunk #14 succeeded at 1446 (offset -100 lines).
8 out of 14 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/kcomd.c
Hunk #1 FAILED at 328.
Hunk #2 FAILED at 429.
Hunk #3 FAILED at 445.
Hunk #4 FAILED at 462.
Hunk #5 succeeded at 541 (offset -57 lines).
Hunk #6 FAILED at 641.
Hunk #7 FAILED at 740.
6 out of 7 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file include/hpc/prototype.h
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED -- saving rejects to file include/hpc/prototype.h.rej
patching file include/hpc/kcom.h
patching file hpc/kcom.c
Hunk #1 succeeded at 1442 (offset -144 lines).
patching file hpc/kcomd.c
Hunk #1 succeeded at 561 (offset -96 lines).
patching file hpc/proc.c
Hunk #1 FAILED at 51.
Hunk #2 FAILED at 85.
Hunk #3 succeeded at 118 with fuzz 2 (offset -1 lines).
2 out of 3 hunks FAILED -- saving rejects to file hpc/proc.c.rej
patching file hpc/kcom.c
Hunk #1 succeeded at 545 (offset -70 lines).
patching file include/hpc/kcom.h
patching file hpc/kcom.c
Hunk #1 succeeded at 833 (offset -101 lines).
Hunk #2 succeeded at 1046 (offset -120 lines).
Hunk #3 FAILED at 1095.
Hunk #4 succeeded at 1348 (offset -144 lines).
Hunk #5 FAILED at 1357.
Hunk #6 FAILED at 1376.
Hunk #7 FAILED at 1390.
Hunk #8 FAILED at 1404.
5 out of 8 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/kcomd.c
Hunk #1 FAILED at 159.
Hunk #2 FAILED at 174.
Hunk #3 FAILED at 184.
Hunk #4 FAILED at 216.
Hunk #5 FAILED at 243.
Hunk #6 FAILED at 266.
Hunk #7 FAILED at 471.
Hunk #8 succeeded at 485 (offset -96 lines).
Hunk #9 succeeded at 516 (offset -96 lines).
7 out of 9 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/deputy.c
patching file hpc/kcomd.c
Hunk #1 FAILED at 898.
1 out of 1 hunk FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/deputy.c
patching file hpc/kcomd.c
Hunk #1 FAILED at 303.
Hunk #2 FAILED at 437.
2 out of 2 hunks FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file include/hpc/prototype.h
Hunk #1 FAILED at 123.
1 out of 1 hunk FAILED -- saving rejects to file include/hpc/prototype.h.rej
patching file hpc/deputy.c
patching file include/hpc/protocol.h
Hunk #2 succeeded at 133 (offset -38 lines).
patching file hpc/kcomd.c
Hunk #1 FAILED at 399.
1 out of 1 hunk FAILED -- saving rejects to file hpc/kcomd.c.rej
patching file hpc/kcom.c
Hunk #1 FAILED at 1222.
Hunk #2 FAILED at 1269.
Hunk #3 FAILED at 1309.
Hunk #4 FAILED at 1324.
4 out of 4 hunks FAILED -- saving rejects to file hpc/kcom.c.rej
patching file hpc/migrecv.c
Hunk #1 FAILED at 172.
1 out of 1 hunk FAILED -- saving rejects to file hpc/migrecv.c.rej
patch unexpectedly ends in middle of line
debian:/usr/src#
debian:/usr/src#

Ktoś wie o co tu chodzi? ¬le patchuje? :?:
Pozdrawiam Robo
Witek Baryluk
Beginner
Posty: 207
Rejestracja: 26 czerwca 2006, 01:49
Lokalizacja: Kraków za firewallem

Post autor: Witek Baryluk »

Zdecydowanie źle. :) Jakie jądro paczujesz. Bo pacz jest przeznaczony z tego co widzę dla 2.6.17, a zapewne masz inne źródła jądra, i są to zapewne źródła Debiana z pozmienianymi różnymi rzeczami (i one mogą powodować konflikty). ¦ciągnij 2.6.16 z kernel.org, lub nowszy patch, lub baw się ręczne dopasowywanie linijek i edytowanie kodu.

Przed samym patchowaniem zawsze dobrze jest zrobić test:

Kod: Zaznacz cały

bunzip2 ... | patch -p1 --dry-run
usuwanie (odwracanie) patcha jeśli ma się te błędy FAILED itp, sa męczarnią.

pozdrawiam

[ Dodano: 2006-12-03, 16:21 ]
Z tego co widzę sa do pobrania również już spachowane źródła, na ich stronie. (linijka wyzej od patcha).
Robo
Posty: 10
Rejestracja: 25 listopada 2006, 00:04

Post autor: Robo »

Witam
No więc ściągnąlem te spatchowane jądro 2.6.17 i
Robie tak:
Rozpakowuje jądro
debianpc:/home/kernel# bzip2 -dc linux-2.6.XX.tar.bz2 | tar xvf -
Przechodzę do wypakowanego katalogu i wpisuje make :
debianpc:/home/kernel/linux-2.6.17# make

i mam:
debianpc:/home/kernel/linux-2.6.17# make
Makefile:441: .config: Nie ma takiego pliku ani katalogu
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:106:22: error: sys/stat.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:107:22: error: sys/mman.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:108:20: error: unistd.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:109:19: error: fcntl.h: Nie ma takiego pliku ani kataloguscripts/basic/fixdep.c:110:20: error: string.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:111:20: error: stdlib.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:112:19: error: stdio.h: Nie ma takiego pliku ani kataloguIn file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c:114:19: error: ctype.h: Nie ma takiego pliku ani kataloguscripts/basic/fixdep.c:115:23: error: arpa/inet.h: Nie ma takiego pliku ani katalogu
scripts/basic/fixdep.c: In function ‘usage’:
scripts/basic/fixdep.c:129: warning: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:129: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:138: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:141: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:154: warning: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:154: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:156: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:172: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:185: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:204: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:212: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:218: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:220: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:204: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:223: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:225: error: ‘len’ undeclared (first use in this function)scripts/basic/fixdep.c:231: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:242: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:255: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:255: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:266: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:270: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:270: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:272: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:272: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:274: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:276: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:278: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:281: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:281: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:281: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:281: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:288: error: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:290: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:266: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:295: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:298: error: ‘len’ undeclared (first use in this function)scripts/basic/fixdep.c:300: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:302: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:302: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:304: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:304: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:305: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:307: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:300: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:337: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:341: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:343: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:343: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:345: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:353: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:353: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:353: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:360: error: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:337: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:372: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:372: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:374: warning: incompatible implicit declaration of built-in function ‘exit’
make[2]: *** [scripts/basic/fixdep] BÅ‚Ä…d 1
make[1]: *** [scripts_basic] BÅ‚Ä…d 2
make: *** [include/linux/autoconf.h] BÅ‚Ä…d 2
debianpc:/home/kernel/linux-2.6.17#

Muszę coś dodać do pliku Makefile?
gson
Posty: 24
Rejestracja: 25 czerwca 2006, 21:12
Lokalizacja: Nowogard/Kraków

Post autor: gson »

A nie powieneneś najpiwer skonfigurować?!
make menuconfig

Dopiero potem make bzImage
Robo
Posty: 10
Rejestracja: 25 listopada 2006, 00:04

Post autor: Robo »

Witam
Nie chciało mi działać make menuconfig ale dograłem biblioteki i zadziałało z tym ,że wyskauje mi masa opcji [yes/no] o których nie mam pojęcia.Czy można jakoś defaultowo to zrobić , zmienić parę opcji jak chcę a reszta mnie nie obchodzi.Co mam wgrać żeby działa opcja make xconfig, może będzie przyjaźniej ?
Pozdrawiam Robo
vilkatla
Posty: 21
Rejestracja: 19 grudnia 2006, 01:30
Lokalizacja: /Litzmannstadt

Post autor: vilkatla »

Robo pisze:wyskauje mi masa opcji [yes/no] o których nie mam pojęcia.
polecam lekturke http://jarekm3.ovh.org/index.php
oprocz tego help konfiguratora, slownik angielsko-polski, google i smigasz :]
Robo pisze:Czy można jakoś defaultowo to zrobić
mozna wczytac starego konfiga, jesli takowego posiadasz.
Robo pisze:Co mam wgrać żeby działa opcja make xconfig
a co Ci wywala konsola na polecenie make xconfig?
zreszta imho menuconfig jest bardzo przejrzysty i przyjazny.


pzdr
Robo
Posty: 10
Rejestracja: 25 listopada 2006, 00:04

Post autor: Robo »

Wyskakuje mi :
Polecenie nie znalezione
[xconfig] Blad 127

Pozdrawiam Robo
vilkatla
Posty: 21
Rejestracja: 19 grudnia 2006, 01:30
Lokalizacja: /Litzmannstadt

Post autor: vilkatla »

czy to jest aby napewno wszystko, co Ci konsola na komende make xconfig wywala ?
bo ja tu na przyklad nie widze, JAKIE polecenie nie zostalo odnalezione...
skopiuj tresc dokladnie, bo to, co napisales, nic nie mowi.


pzdr
Robo
Posty: 10
Rejestracja: 25 listopada 2006, 00:04

Post autor: Robo »

Po wpisaniu make xconfig wyskakuje to:
[quote]debian:/usr/src/linux# make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/kernel-source-2.4.27/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/kernel-source-2.4.27/scripts'
wish -f scripts/kconfig.tk
make: wish: Polecenie nie znalezione
make: *** [xconfig] Bł
gson
Posty: 24
Rejestracja: 25 czerwca 2006, 21:12
Lokalizacja: Nowogard/Kraków

Post autor: gson »

Robo pisze:wish -f scripts/kconfig.tk
make: wish: Polecenie nie znalezione
Nie ma polecnia wish więc:

Kod: Zaznacz cały

apt-get install wish
pozdrawiam
ODPOWIEDZ