Anzeige:
Ergebnis 1 bis 3 von 3

Thema: Kernel patchen

Hybrid-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #1
    Microsoft Pressesprecher Avatar von HardHat
    Registriert seit
    Dec 2001
    Ort
    localhost
    Beiträge
    207

    Kernel patchen

    Hi,

    ich möchte gerne mal verschlüsselte Dateisysteme unter Linux ausprobieren. Ich habe bereits herausgefunden, dass man dafür den crypto-kernel-patch braucht und das es den auf jedem kernel-mirror zu laden gibt. Die neuest Version für den 2.4er Kernel nennt sich patch-int-2.4.3.1 und ist wie man erkennen kann eigentlich für die 2.4.3er Kernel-sourcen gedacht. Ich benutze aber den neuesten 2.4.19er Kernel.

    Ich kenne mich mit dem patchen leider nicht so genau aus und weiss jetzt nicht, ob ich das so ohne weiteres ausführen kann. Vielleicht kann mir jemand erklären wie ich das rausfinden kann. Ich habe mir schon mal anzeigen lassen, wie der Patchvorgang aussehen würde:

    Code:
    pinky:/usr/src/linux # patch --dry-run -p1 < ~/patch-int-2.4.3.1
    patching file Documentation/Configure.help
    Hunk #1 FAILED at 298.
    Hunk #2 succeeded at 489 with fuzz 2 (offset 164 lines).
    1 out of 2 hunks FAILED -- saving rejects to file Documentation/Configure.help.rej
    patching file Documentation/crypto/00-INDEX
    patching file Documentation/crypto/ChangeLog
    patching file Documentation/crypto/faq.txt
    patching file Documentation/crypto/util-linux-2.11b.patch
    patching file Documentation/crypto/utils/freeswan-import.sh
    patching file MAINTAINERS
    Hunk #1 succeeded at 799 with fuzz 1 (offset 148 lines).
    patching file Makefile
    Hunk #1 FAILED at 118.
    Hunk #2 succeeded at 264 with fuzz 2 (offset 33 lines).
    Hunk #3 succeeded at 283 (offset 33 lines).
    1 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
    patching file arch/alpha/config.in
    Hunk #1 succeeded at 305 (offset 50 lines).
    patching file arch/arm/config.in
    Hunk #1 succeeded at 497 (offset 187 lines).
    patching file arch/i386/config.in
    Hunk #1 succeeded at 297 (offset 47 lines).
    patching file arch/i386/defconfig
    Hunk #1 succeeded at 138 with fuzz 2 (offset 19 lines).
    patching file arch/m68k/config.in
    Hunk #1 succeeded at 175 (offset 12 lines).
    patching file arch/mips/config.in
    Hunk #1 succeeded at 500 (offset 279 lines).
    patching file arch/ppc/config.in
    Hunk #1 succeeded at 127 with fuzz 1 (offset 15 lines).
    patching file arch/sparc/config.in
    Hunk #1 succeeded at 138 (offset 3 lines).
    patching file arch/sparc64/config.in
    Hunk #1 succeeded at 132 (offset 6 lines).
    patching file crypto/2fish_tables.h
    patching file crypto/Config.in
    patching file crypto/LICENSE.crypto
    patching file crypto/Makefile
    patching file crypto/Makefile.kernel
    patching file crypto/attic/cast0.c
    patching file crypto/attic/crypton2.c
    patching file crypto/attic/safer3.c
    patching file crypto/attic/twofish3.c
    patching file crypto/cipher-aes.c
    patching file crypto/cipher-blowfish.c
    patching file crypto/cipher-des-ede3.c
    patching file crypto/cipher-des.c
    patching file crypto/cipher-dfc.c
    patching file crypto/cipher-idea.c
    patching file crypto/cipher-mars.c
    patching file crypto/cipher-rc5.c
    patching file crypto/cipher-rc6.c
    patching file crypto/cipher-serpent.c
    patching file crypto/cipher-twofish.c
    patching file crypto/cryptoapi.c
    patching file crypto/digest-md5.c
    patching file crypto/digest-sha1.c
    patching file crypto/gen-cbc.h
    patching file crypto/gen-ecb.h
    patching file crypto/md5.h
    patching file crypto/md5c.c
    patching file crypto/sha1c.c
    patching file crypto/testing/Makefile
    patching file crypto/testing/aes-test
    patching file crypto/testing/digesttest.c
    patching file crypto/testing/libcfuncs.h
    patching file crypto/testing/mars_ecb_vk.txt
    patching file crypto/testing/misc.c
    patching file crypto/testing/misc.h
    patching file crypto/testing/rc6_ecb_vk.txt
    patching file crypto/testing/rijndael_ecb_vk.txt
    patching file crypto/testing/serpent_ecb_vk.txt
    patching file crypto/testing/speed.c
    patching file crypto/testing/stubs.c
    patching file crypto/testing/test.3des-ede
    patching file crypto/testing/test.blowfish
    patching file crypto/testing/test.des
    patching file crypto/testing/test.mars
    patching file crypto/testing/test.rc5
    patching file crypto/testing/test.serpent
    patching file crypto/testing/test.sha1
    patching file crypto/testing/test_blowfish.c
    patching file crypto/testing/testapi.c
    patching file crypto/testing/testcip.c
    patching file crypto/testing/twofish_ecb_vk.txt
    patching file drivers/block/Config.in
    Hunk #1 succeeded at 39 with fuzz 2 (offset 2 lines).
    patching file drivers/block/loop.c
    Hunk #1 succeeded at 121 with fuzz 1 (offset 6 lines).
    Hunk #2 succeeded at 161 (offset 7 lines).
    Hunk #3 succeeded at 226 (offset 7 lines).
    patching file include/asm-alpha/wordops.h
    patching file include/asm-arm/wordops.h
    patching file include/asm-i386/wordops.h
    patching file include/asm-m68k/wordops.h
    patching file include/asm-mips/wordops.h
    patching file include/asm-ppc/wordops.h
    patching file include/asm-sparc/wordops.h
    patching file include/asm-sparc64/wordops.h
    patching file include/linux/crypto.h
    patching file include/linux/loop.h
    Hunk #2 succeeded at 114 (offset 1 line).
    Hunk #3 succeeded at 126 (offset 1 line).
    patching file include/linux/wordops.h
    Ich hoffe auf zahlreiche Tipps.

    HardHat
    In the chat:
    <chatter A>: Girls are like internet domain names, the ones I like are already taken.
    <chatter B>: Well, you can still get one from a strange country.

  2. #2
    Agent (Clone #17264) Avatar von Jasper
    Registriert seit
    Jul 2002
    Ort
    The Matrix (Reloaded)
    Beiträge
    3.073

    Re: Kernel patchen

    Original geschrieben von HardHat

    Hunk #1 FAILED at 298.
    1 out of 2 hunks FAILED -- saving rejects to file Documentation/Configure.help.rej
    das "HUNK failed" bedeutet, ein codeschnipsel konnte nicht appliziert werden. hier musst du selbst hand anlegen. die nicht applizierten code-schnipsel werden in *.rej dateien gespeichert. das original wird immer unter *.orig gesichert. die eigentliche datei, in dem Fall Configure.help ist soweit gepatched,wie es ohne fehler möglich war, d.h. sie ist halb-gepatched.
    einen patch anzupassen erfordert aber programmierkenntnisse (falls programm-code und nciht bloss doku betroffen ist) in der jeweiligen sprache. falls du also keine c-kenntnisse hast, solltest du im falle des kernels die finger davon lassen und dir jemanden suchen, der dir helfen kann.

    -j

  3. #3
    - - - - - - - - - - Avatar von zander
    Registriert seit
    Mar 2001
    Beiträge
    6.144
    In diesem Fall ist die Sache nicht so wild, es ist kein Quellcode betroffen, lediglich Configure.help und das Makefile; vermutlich sind diese nur etwas umorganisiert oder ergänzt worden, das manuelle vervollständigen der Patches sollte recht einfach sein; ob's funktioniert hat oder nicht wird sich dann auch schnell herausstellen. Programmierkenntnisse sind jedenfalls nicht gefordert.

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •