Page 1 of 2

Ubuntu 11.04

Posted: Sat 7. May 2011, 17:14
by Derduden
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 :)

Re: Ubuntu 11.04

Posted: Mon 9. May 2011, 08:47
by Derduden
anybody knows anything?

Ubuntu 11.04 and PHC

Posted: Tue 17. May 2011, 06:10
by ap0stol
Did you make a launchpad ppa for ubuntu 11.04 patched kernel? Now only available for 10.10 :(

Kernel for Ubuntu Natty?

Posted: Wed 18. May 2011, 14:09
by SveinT

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?


Re: Kernel for Ubuntu Natty?

Posted: Thu 19. May 2011, 22:33
by Derduden
I didn't get any response earlier when I was asking. The 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

Re: Ubuntu 11.04 and PHC

Posted: Thu 19. May 2011, 22:41
by lxp
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.

Re: Ubuntu 11.04 and PHC

Posted: Fri 20. May 2011, 01:53
by n3Cre0
Thanks for the new build.
How do we add this testing ppa?

Re: Ubuntu 11.04 and PHC

Posted: Fri 20. May 2011, 10:37
by Derduden
Thanks! I'll be "testing" today :)
This is really appreciated software!

Re: Ubuntu 11.04 and PHC

Posted: Fri 20. May 2011, 13:00
by Derduden
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 ->

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.
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)
        eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE);

Re: Ubuntu 11.04 and PHC

Posted: Fri 20. May 2011, 14:51
by lxp
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.