Comment 20 for bug 432706

Revision history for this message
Doki (lkishalmi) wrote :

Well you don't really need to recompile the module a simple binary hack could solve the problem. The basic idea is that 10000001 is 00989681 in hex and stored in p4-clockmod.ko as 81969800 a "simple" search for it and replace it with 80969800. So I did the following hack (far from being optimal):

1. cp /lib/modules/2.6.32-24-generic/kernel/arch/x86/kernel/cpu/cpufreq/p4-clockmod.ko p4-clockmod.ko.orig
2. xxd p4-clockmod.ko.orig p4-clockmod.ko.hex
3. vim p4-clockmod.ko.hex (search for 81 and check that it is followed by 96 98 00 in hexdump)
4. Replace the right 81 to 80
5. xdd -r p4-clockmod.ko.hex p4-clockmod.ko
6. sudo cp p4-clockmod.ko /lib/modules/2.6.32-24-generic/kernel/arch/x86/kernel/cpu/cpufreq/p4-clockmod.ko
7. sudo reboot