Ubuntu 11.04 and PHC

Discuss about PHC here. For problems please use the PHC Help forum
Derduden
Posts: 6
Joined: Sat 7. May 2011, 17:05

Ubuntu 11.04

Post by Derduden » Sat 7. May 2011, 17:14

Hey community of PHC!
I'm having trouble understanding how I'm supposed to upgrade from my "Lubuntu 10.04" to "Lubuntu 11.04" without rendering my machine "un-undervolted".
I've followed a guide on setting up PHC for my HP DV2 laptop, which undervolts very well, but the problem is that I can't find any custom kernel for 11.04 which AFAIK is needed for making PHC work.
I've managed to find the specific PHC PPA, but I can't seem to find any kernels for Natty (11.04), so I'm stuck with Maverick for now or?

Greetings from a happy PHC user :)

Derduden
Posts: 6
Joined: Sat 7. May 2011, 17:05

Re: Ubuntu 11.04

Post by Derduden » Mon 9. May 2011, 08:47

anybody knows anything?

ap0stol
Posts: 1
Joined: Tue 17. May 2011, 06:08

Ubuntu 11.04 and PHC

Post by ap0stol » Tue 17. May 2011, 06:10

Did you make a launchpad ppa for ubuntu 11.04 patched kernel? Now only available for 10.10 :(

SveinT
Posts: 1
Joined: Wed 18. May 2011, 14:06

Kernel for Ubuntu Natty?

Post by SveinT » Wed 18. May 2011, 14:09

Hi,

I'm running Ubuntu 11.04 Natty and I'm looking for a phc-kernel that I can replace the Ubuntu kernel with. There doesn't seem to be a kernel for natty in the ppa.

I tried to compile a kernel myself (to activate module instead of builtin), but the hardware is so slow it takes ages and when I get it compiled it's not booting for some reason (not related to PHC).

Anyone already compiled a working kernel?

Thanks!

Derduden
Posts: 6
Joined: Sat 7. May 2011, 17:05

Re: Kernel for Ubuntu Natty?

Post by Derduden » Thu 19. May 2011, 22:33

I didn't get any response earlier when I was asking. The PPA https://launchpad.net/~linux-phc/+archive/ppa
is not updated and I'm stuck with 10.10 since my laptop sucks without PHC :(

I'd been thinking of compiling my own kernel, but AFAIK the Ubuntu kernel is optimized for fast booting, which makes it not that easy to do. I really don't know what to do with my own laptop other than stick with 10.04.

PS: Well if somebody knows anything I'd be very happy to hear it! :D

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

Re: Ubuntu 11.04 and PHC

Post by lxp » Thu 19. May 2011, 22:41

Sorry for the delay, but building the PHC kernel for natty (11.04) wasn't on top of my todo list. I personally decided to not update to natty right now because of bug: "10-30% increase in power consumption. (760131)".

I just launched the first build for natty. If all goes right it will reach the testing PPA in a few hours and most likely the "stable" PPA tomorrow.

n3Cre0
Posts: 13
Joined: Sun 9. Nov 2008, 20:54

Re: Ubuntu 11.04 and PHC

Post by n3Cre0 » Fri 20. May 2011, 01:53

Thanks for the new build.
How do we add this testing ppa?

Derduden
Posts: 6
Joined: Sat 7. May 2011, 17:05

Re: Ubuntu 11.04 and PHC

Post by Derduden » Fri 20. May 2011, 10:37

Thanks! I'll be "testing" today :)
This is really appreciated software!

Derduden
Posts: 6
Joined: Sat 7. May 2011, 17:05

Re: Ubuntu 11.04 and PHC

Post by Derduden » Fri 20. May 2011, 13:00

Hi again I tried out this new kernel on Lubuntu 11.04 and it won't work correctly.
Well I don't know what's happening really.

Code: Select all

sudo make dkms_install
and it gives me:

Code: Select all

mkdir -p /usr/src/phc-k8-0.4.4a2
install -m 644 -o root -g root Makefile dkms.conf phc-k8.c phc-k8.h mperf.c mperf.h /usr/src/phc-k8-0.4.4a2
install -m 744 -o root -g root phc-k8.add /usr/src/phc-k8-0.4.4a2
dkms add build install -m phc-k8 -v 0.4.4a2

Creating symlink /var/lib/dkms/phc-k8/0.4.4a2/source ->
                 /usr/src/phc-k8-0.4.4a2

Running the post_add script:

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.38-8-generic-phc -C /lib/modules/2.6.38-8-generic-phc/build SUBDIRS=/var/lib/dkms/phc-k8/0.4.4a2/build modules....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.38-8-generic-phc (i686)
Consult the make.log in the build directory
/var/lib/dkms/phc-k8/0.4.4a2/build/ for more information.
0
0
ERROR: binary package for phc-k8: 0.4.4a2 not found
make: *** [dkms_install] Fejl 10
I've tried 0.4.3 as well no luck either!

make.log contains:

Code: Select all

DKMS make.log for phc-k8-0.4.4a2 for kernel 2.6.38-8-generic-phc (i686)
fre maj 20 12:43:12 CEST 2011
make[1]: Går til katalog '/usr/src/linux-headers-2.6.38-8-generic-phc'
  CC [M]  /var/lib/dkms/phc-k8/0.4.4a2/build/phc-k8.o
/var/lib/dkms/phc-k8/0.4.4a2/build/phc-k8.c: In function ‘check_supported_cpu’:
/var/lib/dkms/phc-k8/0.4.4a2/build/phc-k8.c:725:6: error: ‘current_cpu_data’ undeclared (first use in this function)
/var/lib/dkms/phc-k8/0.4.4a2/build/phc-k8.c:725:6: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/var/lib/dkms/phc-k8/0.4.4a2/build/phc-k8.o] Fejl 1
make[1]: *** [_module_/var/lib/dkms/phc-k8/0.4.4a2/build] Fejl 2
make[1]: Forlader katalog '/usr/src/linux-headers-2.6.38-8-generic-phc'
I don't know if I'm missing something, but I cannot get this working!
Edit: This was done with the test ppa kernel
2nd Edit:
Sorry for being ignorant, David G already posted a solution:

Code: Select all

@@ -722,7 +722,7 @@ static void check_supported_cpu(void *_rc)
 
        *rc = -ENODEV;
 
-       if (current_cpu_data.x86_vendor != X86_VENDOR_AMD)
+       if (__this_cpu_read(cpu_info.x86_vendor) != X86_VENDOR_AMD)
                return;
 
        eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE);

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

Re: Ubuntu 11.04 and PHC

Post by lxp » Fri 20. May 2011, 14:51

The Ubuntu 11.04 PHC kernel is now available in the stable PPA. Installation notes can be found as usual in the Ubuntu Kernel PPA thread.

Ubuntu 11.04 uses the 2.6.38 kernel and like Derduden already noticed phc-k8 0.4.3 and 0.4.4a2 needs a small fix to work with 2.6.38.
DavidG posted this fix in the "Kernel 2.6.38 phc-k8 compiling error" thread.

Post Reply