Ubuntu 10.10 Maverick no PPA, how to get it working?

Discuss about PHC here. For problems please use the PHC Help forum
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
onion
Posts: 4
Joined: Thu 9. Sep 2010, 19:01
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by onion » Thu 9. Sep 2010, 21:54

Hi Guys,
I just installed the beta of Ubuntu 10.10 and couldnt find the PPA kernel like before in 10.04.
So do you know when this will be the case? Until then, how can I install linux phc. I urgently need it because my laptop is running extremely hot without it.

lxp
Posts: 42
Joined: Sat 26. Sep 2009, 22:27
Contact:

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by lxp » Sun 19. Sep 2010, 05:09

I just want to announce that I will continue the phc kernel PPA for Ubuntu 10.10 Maverick.
Sadly I am a little bit busy and I haven't even tested Maverick, so I can't tell when the Maverick PPA will be available.

onion
Posts: 4
Joined: Thu 9. Sep 2010, 19:01
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by onion » Sat 25. Sep 2010, 21:41

lxp wrote:I just want to announce that I will continue the phc kernel PPA for Ubuntu 10.10 Maverick.
Sadly I am a little bit busy and I haven't even tested Maverick, so I can't tell when the Maverick PPA will be available.
Ok, thanks in advance. Can't wait for it. My Notebook is running so hot, this is not good.

lxp
Posts: 42
Joined: Sat 26. Sep 2009, 22:27
Contact:

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by lxp » Sun 10. Oct 2010, 13:47

I have finally found time to build a PPA kernel for Maverick ;) More details can be found in the Ubuntu PPA thread.

tnt
Posts: 2
Joined: Thu 19. Aug 2010, 22:27
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by tnt » Tue 12. Oct 2010, 04:25

when I try to build any of modules (versions phc-intel-0.3.2-10 and phc-intel-0.3.2-12) I get something similar to this:

Code: Select all

mil@ilo:~/phc/phc-intel-0.3.2-12-1$ make prepare

Makefile detected your kernel version as 2.6.35
***NO MATCHING PATCHSET FOUND FOR 2.6.35***

mil@lo:~/phc-intel-0.3.2-12-1$ make 

Makefile detected your kernel version as 2.6.35
***NO MATCHING PATCHSET FOUND FOR 2.6.35***

make: *** No rule to make target `phc-intel.c', needed by `phc-intel.ko'.  Stop.
mil@lo~/phc-intel-0.3.2-12-1$
what's the right way to make it work on ubuntu 10.10 ?

Jusb
Posts: 4
Joined: Mon 11. Oct 2010, 12:15
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by Jusb » Tue 12. Oct 2010, 07:18

In the INC folder, create a folder for 2.6.35, then copy the contents of 2.6.34 into it.
Then try make and make install.

nfs
Posts: 1
Joined: Thu 14. Oct 2010, 13:49
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by nfs » Thu 14. Oct 2010, 14:23

Hi PHC-Fans,

i recently updated Ubuntu 10.04 to 10.10 and added to new PHC Kernel from PPA. After running the new 2.6.35 Kernel i tried to build the intel-phc module but it failed because no matching patch was found. So i searched the web and found a patch for gentoo linux http://sources.gentoo.org/cgi-bin/viewv ... tel/files/.
I'm not very familar with patching kernel modules but i want to make it work and now what its running i want to tell you how.

-install the phc-kernel from ppa
-install the kernel source for 2.6.35
-untar the kernel source which you'll find in /usr/src
-get the latest phc-intel source (0.3.2-12-1) and untar it
-create a dir inc/2.6.35 in the phc-source directory
-copy the gentoo patch to inc/2.6.35/linux-phc-0.3.2.patch
-copy the kernel module acpi-cpufreq.c from usr/src/linux-source-2.6.35/linux-source-2.6.35/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c to inc/2.6.35

now comes a dirty mod to the acpi-cpufreq.c file, maybe someone can tell my thats the correct relative path to mperf.h
-modify line 49 in the acpi-cpufreq.c file to:
#include "/usr/src/linux-source-2.6.35/arch/x86/kernel/cpu/cpufreq/mperf.h"

-run make and sudo make install
-reboot

Thanks to Michael Weber who build the gentoo patch and everybody from the linux-phc team.
I'll attache an archive of my modded phc-source folder.

Regards André
Attachments
my-intel-phc.tar.bz2
Dirty modded source of phc-intel working with 2.6.35
(34.81 KiB) Downloaded 379 times

onion
Posts: 4
Joined: Thu 9. Sep 2010, 19:01
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Ubuntu 10.10 Maverick no PPA, how to get it working?

Post by onion » Sun 17. Oct 2010, 14:12

Hey, thank you very much nfs. Gave it a try and it seems to be working. Have to do some more testing though...

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable