Kernel 2.6.22 mit hrtimers-patch

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
MasterFly
Beiträge: 19
Registriert: 21.03.2005 12:27:40
Kontaktdaten:

Kernel 2.6.22 mit hrtimers-patch

Beitrag von MasterFly » 23.09.2007 11:47:05

Hallo!
Ich versuche verzweifelt, einen stable-2.6.22-Kernel mit dem hrtimers-Patch
zwecks HPET auf meinem ThinkPad X31 zu versorgen.
Jedoch funktioniert das bei keinem Kernel sauber, sowohl der 2.6.22.7 von kernel.org
als auch der aus dem Debian-Repo erzeugen "Hunks FAILED".

Code: Alles auswählen

linux-2.6.22.7$ patch -p1 < ../patch-2.6.22-hrt6.patch
patching file arch/i386/Kconfig
patching file arch/x86_64/Kconfig
patching file drivers/Makefile
patching file drivers/cpuidle/Kconfig
patching file drivers/cpuidle/Makefile
patching file drivers/cpuidle/cpuidle.c
patching file drivers/cpuidle/cpuidle.h
patching file drivers/cpuidle/driver.c
patching file drivers/cpuidle/governor.c
patching file drivers/cpuidle/governors/Makefile
patching file drivers/cpuidle/governors/ladder.c
patching file drivers/cpuidle/sysfs.c
patching file include/linux/cpuidle.h
patching file drivers/acpi/processor_idle.c
patching file drivers/acpi/processor_core.c
patching file include/acpi/processor.h
patching file Documentation/cpuidle/core.txt
patching file Documentation/cpuidle/driver.txt
patching file Documentation/cpuidle/governor.txt
patching file Documentation/cpuidle/sysfs.txt
patching file drivers/acpi/osl.c
patching file include/linux/acpi.h
patching file arch/i386/kernel/process.c
patching file include/linux/tick.h
patching file kernel/softirq.c
patching file kernel/time/tick-sched.c
patching file drivers/cpuidle/governors/menu.c
patching file arch/i386/kernel/hpet.c
Hunk #12 FAILED at 311.
Hunk #13 succeeded at 388 (offset 1 line).
Hunk #14 FAILED at 402.
Hunk #15 succeeded at 675 (offset 22 lines).
2 out of 15 hunks FAILED -- saving rejects to file arch/i386/kernel/hpet.c.rej
patching file kernel/time/clockevents.c
patching file drivers/clocksource/acpi_pm.c
patching file kernel/time/timekeeping.c
patching file kernel/timer.c
patching file include/linux/clockchips.h
patching file arch/arm/mach-davinci/time.c
patching file arch/arm/mach-ixp4xx/common.c
patching file arch/arm/mach-omap1/time.c
patching file arch/arm/plat-omap/timer32k.c
patching file arch/i386/kernel/apic.c
patching file arch/i386/kernel/i8253.c
patching file arch/i386/kernel/vmiclock.c
patching file arch/sh/kernel/timers/timer-tmu.c
patching file arch/sparc64/kernel/time.c
patching file kernel/time/tick-broadcast.c
patching file kernel/time/tick-common.c
patching file kernel/hrtimer.c
patching file kernel/time/tick-oneshot.c
patching file arch/x86_64/kernel/time.c
patching file drivers/input/misc/pcspkr.c
patching file include/asm-x86_64/i8253.h
patching file arch/i386/kernel/time.c
patching file arch/sparc64/Kconfig
patching file include/asm-i386/timer.h
patching file include/linux/time.h
patching file kernel/time/ntp.c
patching file include/asm-i386/i8253.h
patching file include/asm-i386/mach-default/io_ports.h
patching file kernel/time/Kconfig
patching file kernel/time/Makefile
patching file include/asm-i386/mach-default/do_timer.h
patching file include/asm-i386/mach-voyager/do_timer.h
patching file arch/x86_64/kernel/hpet.c
patching file drivers/char/rtc.c
patching file include/asm-x86_64/apic.h
patching file include/asm-x86_64/hpet.h
patching file include/asm-x86_64/timex.h
patching file arch/x86_64/kernel/tsc.c
patching file arch/x86_64/kernel/apic.c
patching file arch/x86_64/kernel/mce_amd.c
patching file include/asm-i386/hpet.h
patching file arch/x86_64/kernel/i8259.c
patching file include/asm-i386/tsc.h
patching file arch/x86_64/kernel/process.c
patching file arch/x86_64/kernel/Makefile
Hunk #2 succeeded at 47 with fuzz 1 (offset -1 lines).
patching file arch/x86_64/kernel/smpboot.c
patching file include/asm-x86_64/proto.h
patching file include/linux/jiffies.h
patching file include/asm-x86_64/vsyscall.h
patching file arch/i386/kernel/quirks.c
patching file include/linux/pci_ids.h
Hunk #1 succeeded at 2224 (offset 3 lines).
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
Während das mit dem Makefile kein wirkliches Problem darstellt,
sorgt der Fehler in hpet.c dazu, dass der Kernel nicht compiliert
(und hpet.c enthält zudem noch den für mein Vorhaben entscheidenden Code).

Testweise habe ich auch mit verschiedenen anderen Patches der hrtimers-Seite gebastelt,
kein einziger lief problemlos durch.
Wenn irgendjemand bereits ähnliches versucht hat - wo liegt der Fehler?

Benutzeravatar
armin
Beiträge: 2682
Registriert: 17.03.2005 11:49:14

Beitrag von armin » 23.09.2007 11:51:46

Ich vermute mal, dass sich der Patch nur auf 2.6.22 anwenden lässt, aber nicht auf spätere Versionen (und 2.6.22.7 ist eine spätere Version).
Formerly known as Trigger.
HP 8510p - Debian Sid
Mitglied des Debian-KDE-Teams

Antworten