Skip to contentSkip to conversation

2.4 kernel patch on debian source 2.4.22

DISCUSSION Stephen English 4 participants 4 messages Oct 19, 2003 – Oct 22, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,
First, thanks to all that contributed to creating this software - it looks great. However, I can't get it to patch the debian kernel sources I downloaded. Basically, I get this on a fresh extraction of the kernel:

bex:/usr/src/cpufreq# ./patchin.sh /usr/src/linux
patching file Documentation/00-INDEX
patching file Documentation/Configure.help
Hunk #1 succeeded at 27057 (offset 80 lines).
Hunk #2 succeeded at 27458 (offset 80 lines).
patching file Makefile
Hunk #1 succeeded at 199 (offset 5 lines).
patching file arch/i386/config.in
Hunk #1 succeeded at 195 (offset 1 line).
patching file arch/i386/boot/setup.S
patching file arch/i386/kernel/Makefile
Hunk #2 FAILED at 44.
1 out of 2 hunks FAILED -- saving rejects to file
arch/i386/kernel/Makefile.rej
patching file arch/i386/kernel/i386_ksyms.c
patching file arch/i386/kernel/setup.c
Hunk #3 succeeded at 207 (offset 4 lines).
Hunk #4 succeeded at 1150 (offset 10 lines).
patching file arch/i386/kernel/time.c
patching file drivers/Makefile
patching file include/asm-i386/ist.h
patching file include/asm-i386/msr.h
patching file include/asm-i386/smp.h
patching file include/linux/smp.h
bex:/usr/src/cpufreq# cd ..
bex:/usr/src# cat linux/arch/i386/kernel/Makefile.rej
***************
*** 43,47 ****
  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

include $(TOPDIR)/Rules.make
--- 44,60 ----

  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

+ obj-$(CONFIG_X86_POWERNOW_K6) += powernow-k6.o
+ obj-$(CONFIG_X86_POWERNOW_K7) += powernow-k7.o
+ obj-$(CONFIG_X86_POWERNOW_K8) += powernow-k8.o
+ obj-$(CONFIG_X86_LONGHAUL) += longhaul.o

+ obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO)  += speedstep-centrino.o
+ obj-$(CONFIG_X86_SPEEDSTEP_PIIX4)     += speedstep-piix4.o speedstep-lib.o
+ obj-$(CONFIG_X86_SPEEDSTEP_SMI)       += speedstep-smi.o speedstep-lib.o
+ obj-$(CONFIG_X86_SPEEDSTEP_ICH)       += speedstep-ich.o speedstep-lib.o
+ obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o
+ obj-$(CONFIG_ELAN_CPUFREQ)    += elanfreq.o
+ obj-$(CONFIG_X86_LONGRUN)     += longrun.o
+ obj-$(CONFIG_X86_GX_SUSPMOD)  += gx-suspmod.o
  include $(TOPDIR)/Rules.make

Any info on how to remedy this would be greatly appreciated.

Thanks,

Stephen English

Signature · 1 line
[email protected]
#1 lore raw

Hi Stephen,

As far as I remember, all cpufreq-patches are agains the stock kernels from kernel.org. Go there and download the original linux-2.4.2x.tar.bz2 (whatever version x is at this moment; I stopped with 2.4.20 for now, waiting to go up to 2.6 when it leaves the -testX state)

Then untar those original sources and try to apply the cpufreq-patches against that. Should work. Another way might be to check out the modified kernel sources by Alan Cox. You can get them from the /people/alan tree on kernel.org. They have an -ac attached to the version number and normally include - more or less - the latest acpi-stuff. And maybe they include the cpufreq-stuff as well. But in any case you should be fine with the stock 2.4.2x-sources.

Good luck and good night.
Lars

Quoted 62 lines · Stephen English

Hi all,
First, thanks to all that contributed to creating this software - it looks great. However, I can't get it to patch the debian kernel sources I downloaded. Basically, I get this on a fresh extraction of the kernel:

bex:/usr/src/cpufreq# ./patchin.sh /usr/src/linux
patching file Documentation/00-INDEX
patching file Documentation/Configure.help
Hunk #1 succeeded at 27057 (offset 80 lines).
Hunk #2 succeeded at 27458 (offset 80 lines).
patching file Makefile
Hunk #1 succeeded at 199 (offset 5 lines).
patching file arch/i386/config.in
Hunk #1 succeeded at 195 (offset 1 line).
patching file arch/i386/boot/setup.S
patching file arch/i386/kernel/Makefile
Hunk #2 FAILED at 44.
1 out of 2 hunks FAILED -- saving rejects to file
arch/i386/kernel/Makefile.rej
patching file arch/i386/kernel/i386_ksyms.c
patching file arch/i386/kernel/setup.c
Hunk #3 succeeded at 207 (offset 4 lines).
Hunk #4 succeeded at 1150 (offset 10 lines).
patching file arch/i386/kernel/time.c
patching file drivers/Makefile
patching file include/asm-i386/ist.h
patching file include/asm-i386/msr.h
patching file include/asm-i386/smp.h
patching file include/linux/smp.h
bex:/usr/src/cpufreq# cd ..
bex:/usr/src# cat linux/arch/i386/kernel/Makefile.rej
***************
*** 43,47 ****
  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

include $(TOPDIR)/Rules.make
--- 44,60 ----

  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

+ obj-$(CONFIG_X86_POWERNOW_K6) += powernow-k6.o
+ obj-$(CONFIG_X86_POWERNOW_K7) += powernow-k7.o
+ obj-$(CONFIG_X86_POWERNOW_K8) += powernow-k8.o
+ obj-$(CONFIG_X86_LONGHAUL) += longhaul.o

+ obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO)  += speedstep-centrino.o
+ obj-$(CONFIG_X86_SPEEDSTEP_PIIX4)     += speedstep-piix4.o speedstep-lib.o
+ obj-$(CONFIG_X86_SPEEDSTEP_SMI)       += speedstep-smi.o speedstep-lib.o
+ obj-$(CONFIG_X86_SPEEDSTEP_ICH)       += speedstep-ich.o speedstep-lib.o
+ obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o
+ obj-$(CONFIG_ELAN_CPUFREQ)    += elanfreq.o
+ obj-$(CONFIG_X86_LONGRUN)     += longrun.o
+ obj-$(CONFIG_X86_GX_SUSPMOD)  += gx-suspmod.o
  include $(TOPDIR)/Rules.make

Any info on how to remedy this would be greatly appreciated.

Thanks,

Stephen English

Signature · 2 lines
LarsWeissflog
L@rs-W dot DE
#2 lore raw

I think you just need to add in all the lines that have a "+" without the plus to the original file after the line with "obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o". There are 4 files that mess up in a similar way if you apply the patch from the weekend to the 2.4.23-pre7 kernel. It's some other changes that upset the patch.
I presume the cpufreq patch will be updated soon, but if anyone really needs it I can mail them the modified patches.
Regards,
Edward

Quoted 82 lines · Lars Weissflog

Hi Stephen,

As far as I remember, all cpufreq-patches are agains the stock kernels from kernel.org. Go there and download the original linux-2.4.2x.tar.bz2 (whatever version x is at this moment; I stopped with 2.4.20 for now, waiting to go up to 2.6 when it leaves the -testX state)

Then untar those original sources and try to apply the cpufreq-patches against that. Should work. Another way might be to check out the modified kernel sources by Alan Cox. You can get them from the /people/alan tree on kernel.org. They have an -ac attached to the version number and normally include - more or less - the latest acpi-stuff. And maybe they include the cpufreq-stuff as well. But in any case you should be fine with the stock 2.4.2x-sources.

Good luck and good night.
Lars

Quoted 63 lines · Stephen English

Hi all,
First, thanks to all that contributed to creating this software - it looks great. However, I can't get it to patch the debian kernel sources I downloaded. Basically, I get this on a fresh extraction of the kernel:

bex:/usr/src/cpufreq# ./patchin.sh /usr/src/linux
patching file Documentation/00-INDEX
patching file Documentation/Configure.help
Hunk #1 succeeded at 27057 (offset 80 lines).
Hunk #2 succeeded at 27458 (offset 80 lines).
patching file Makefile
Hunk #1 succeeded at 199 (offset 5 lines).
patching file arch/i386/config.in
Hunk #1 succeeded at 195 (offset 1 line).
patching file arch/i386/boot/setup.S
patching file arch/i386/kernel/Makefile
Hunk #2 FAILED at 44.
1 out of 2 hunks FAILED -- saving rejects to file
arch/i386/kernel/Makefile.rej
patching file arch/i386/kernel/i386_ksyms.c
patching file arch/i386/kernel/setup.c
Hunk #3 succeeded at 207 (offset 4 lines).
Hunk #4 succeeded at 1150 (offset 10 lines).
patching file arch/i386/kernel/time.c
patching file drivers/Makefile
patching file include/asm-i386/ist.h
patching file include/asm-i386/msr.h
patching file include/asm-i386/smp.h
patching file include/linux/smp.h
bex:/usr/src/cpufreq# cd ..
bex:/usr/src# cat linux/arch/i386/kernel/Makefile.rej
***************
*** 43,47 ****
  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

include $(TOPDIR)/Rules.make
--- 44,60 ----

  obj-$(CONFIG_X86_LOCAL_APIC)  += mpparse.o apic.o nmi.o
  obj-$(CONFIG_X86_IO_APIC)     += io_apic.o
  obj-$(CONFIG_X86_VISWS_APIC)  += visws_apic.o

+ obj-$(CONFIG_X86_POWERNOW_K6) += powernow-k6.o
+ obj-$(CONFIG_X86_POWERNOW_K7) += powernow-k7.o
+ obj-$(CONFIG_X86_POWERNOW_K8) += powernow-k8.o
+ obj-$(CONFIG_X86_LONGHAUL) += longhaul.o
+ obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO) += speedstep-centrino.o
+ obj-$(CONFIG_X86_SPEEDSTEP_PIIX4) += speedstep-piix4.o
speedstep-lib.o + obj-$(CONFIG_X86_SPEEDSTEP_SMI) +=
speedstep-smi.o speedstep-lib.o + obj-$(CONFIG_X86_SPEEDSTEP_ICH) += speedstep-ich.o speedstep-lib.o + obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o

+ obj-$(CONFIG_ELAN_CPUFREQ)    += elanfreq.o
+ obj-$(CONFIG_X86_LONGRUN)     += longrun.o
+ obj-$(CONFIG_X86_GX_SUSPMOD)  += gx-suspmod.o
  include $(TOPDIR)/Rules.make

Any info on how to remedy this would be greatly appreciated.

Thanks,

Stephen English

#3 lore raw
Quoted 9 lines · Edward Macfarlane Smith

I think you just need to add in all the lines that have a "+" without the plus to the original file after the line with "obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o". There are 4 files that mess up in a similar way if you apply the patch from the weekend to the 2.4.23-pre7 kernel. It's some other changes that upset the patch.
I presume the cpufreq patch will be updated soon, but if anyone really needs it I can mail them the modified patches.
Regards,
Edward

You may try to see -pac kernels at /pub/linux/kernel/people/bero/2.4/ since this guy try to maintain -ac series.

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.