Re: [Powertop] PowerTop Installation issue

Mukherjee, Adrip <adrip.mukherjee at intel.com>
Newsgroups dev.linux.lists.powertop
Message-ID <F9A26558D30ED241A8204F06F9947260257FB21A@BGSMSX102.gar.corp.intel.com>
Thanks! a lot Christophe. Really appreciate your pointers.

Regards
adrip

From: Prigent, Christophe
Sent: 21 November 2013 14:57
To: Mukherjee, Adrip
Subject: RE: PowerTop Installation issue

Hi Adrip,
I don't see the binary anywhere, so yes you have to build it using the NDK from Linux.
The readme document (in sources) contains a list of parameters to be added in the config file (section "Kernel Parameters").

As I'm not working on Android, I hope somebody else will answer to you.
Christophe.

From: Mukherjee, Adrip
Sent: Thursday, November 21, 2013 5:19 AM
To: Prigent, Christophe
Subject: RE: PowerTop Installation issue

Hi Christophe,
                              So is there a way to get the PowerTop binary itself without building the sources. Or first I need to build the binary using the NDK in a Linux build machine and then use it on my Android system?

Also is there any kernel configuration needed to support powertop?

Regards
adrip

From: Mukherjee, Adrip
Sent: 21 November 2013 09:43
To: Prigent, Christophe
Subject: RE: PowerTop Installation issue

Thanks a lot Christophe. I will try out the same.

From: Prigent, Christophe
Sent: 20 November 2013 20:15
To: Prigent, Christophe; Mukherjee, Adrip; powertop(a)lists.01.org<mailto:powertop(a)lists.01.org>
Subject: RE: PowerTop Installation issue

Sorry, apk can't be generated :(. It is only possible with java sources. So ignore the last step.
And another possibility is to use the Android build system: the idea is to add PowerTop sources inside Android sources and build everything at the same time.
Hope this help,
Christophe.

From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of Prigent, Christophe
Sent: Wednesday, November 20, 2013 3:15 PM
To: Mukherjee, Adrip; powertop(a)lists.01.org<mailto:powertop(a)lists.01.org>
Subject: Re: [Powertop] PowerTop Installation issue

Hi Adrip,

I never tried on Android but I think you need to install the NDK, and use the NDK to build PowerTop.

It is well documented here: http://developer.android.com/tools/sdk/ndk/index.html

Here are simplified steps to give you an idea:
Place sources + "Android.mk" in your .../project/jni folder
Build the native code by running $NDK/ndk-build "APP_ABI := x86" script from your project directory (APP_ABI := x86 is used for Intel Architecture).
Then you can build the Android apk, for example, using Eclipse.

Christophe.

From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of Mukherjee, Adrip
Sent: Wednesday, November 20, 2013 12:33 PM
To: powertop(a)lists.01.org<mailto:powertop(a)lists.01.org>
Subject: [Powertop] PowerTop Installation issue

Hi ,
       This is Adrip from Intel India PCCG group. Recently I was trying to install powertop in my HSW PVT2 system having Android JellyBean internal version . According to the installation steps listed here:

To build and install PowerTOP type the following commands,
        ./configure
        ./make
        ./make install
Its failing to configure with a message : "permission denied" even though I have rooted my terminal emulator. Can you please tell me what I need to follow to run the powertop tool on Android in a Haswell SDS system.

regards
Adrip


---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
attachment.html (text/html, 12.8 KB)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:Vivaldi;
	panose-1:3 2 6 2 5 5 6 9 8 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle20
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle24
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Thanks! a lot Christophe. Really appreciate your pointers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">adrip<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Prigent, Christophe
<br>
<b>Sent:</b> 21 November 2013 14:57<br>
<b>To:</b> Mukherjee, Adrip<br>
<b>Subject:</b> RE: PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hi Adrip,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I don&#8217;t see the binary anywhere, so yes you have to build it using the NDK from Linux.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">The readme document (in sources) contains a list of parameters to be added in the config file (section &#8220;Kernel Parameters&#8221;).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">As I&#8217;m not working on Android, I hope somebody else will answer to you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Christophe.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Mukherjee, Adrip
<br>
<b>Sent:</b> Thursday, November 21, 2013 5:19 AM<br>
<b>To:</b> Prigent, Christophe<br>
<b>Subject:</b> RE: PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi Christophe,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;So is there a way to get the PowerTop binary itself without building the sources. Or first I need to build the binary using the NDK in a Linux build machine and then use it on my
 Android system?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Also is there any kernel configuration needed to support powertop?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">adrip<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Mukherjee, Adrip
<br>
<b>Sent:</b> 21 November 2013 09:43<br>
<b>To:</b> Prigent, Christophe<br>
<b>Subject:</b> RE: PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks a lot Christophe. I will try out the same.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Prigent, Christophe
<br>
<b>Sent:</b> 20 November 2013 20:15<br>
<b>To:</b> Prigent, Christophe; Mukherjee, Adrip; <a href="mailto:[email protected]">
[email protected]</a><br>
<b>Subject:</b> RE: PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Sorry, apk can&#8217;t be generated
</span><span lang="EN-US" style="font-family:Wingdings;color:#1F497D">L</span><span lang="EN-US" style="color:#1F497D">. It is only possible with java sources. So ignore the last step.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">And another possibility is to use the Android build system: the idea is to add PowerTop sources inside Android sources and build everything at the same time.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hope this help,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Christophe.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> PowerTop [<a href="mailto:[email protected]">mailto:[email protected]</a>]
<b>On Behalf Of </b>Prigent, Christophe<br>
<b>Sent:</b> Wednesday, November 20, 2013 3:15 PM<br>
<b>To:</b> Mukherjee, Adrip; <a href="mailto:[email protected]">[email protected]</a><br>
<b>Subject:</b> Re: [Powertop] PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hi Adrip,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I never tried on Android but I think you need to install the NDK, and use the NDK to build PowerTop.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">It is well documented here:
<a href="http://developer.android.com/tools/sdk/ndk/index.html">http://developer.android.com/tools/sdk/ndk/index.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Here are simplified steps to give you an idea:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Place sources &#43; &#8220;Android.mk&#8221; in your &#8230;/project/jni folder<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Build the native code by running $NDK/ndk-build &quot;APP_ABI := x86&quot; script from your project directory (APP_ABI := x86 is used for Intel Architecture).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Then you can build the Android apk, for example, using Eclipse.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Christophe.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> PowerTop [<a href="mailto:[email protected]">mailto:[email protected]</a>]
<b>On Behalf Of </b>Mukherjee, Adrip<br>
<b>Sent:</b> Wednesday, November 20, 2013 12:33 PM<br>
<b>To:</b> <a href="mailto:[email protected]">[email protected]</a><br>
<b>Subject:</b> [Powertop] PowerTop Installation issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi ,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is Adrip from Intel India PCCG group. Recently I was trying to install powertop in my HSW PVT2 system having Android JellyBean internal version . According to the installation steps listed here:
<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:#333333">To build and install PowerTOP type the following commands,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:red">./configure
</span><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:#333333"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./make<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./make install<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Its failing to configure with a message : &#8220;permission denied&#8221; even though I have rooted my terminal emulator. Can you please tell me what I need to follow to run the powertop tool on Android in a Haswell SDS system.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Vivaldi;color:#403152">regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Vivaldi;color:#403152">Adrip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p><span lang="EN-US">---------------------------------------------------------------------<br>
Intel Corporation SAS (French simplified joint stock company)<br>
Registered headquarters: &quot;Les Montalets&quot;- 2, rue de Paris, <br>
92196 Meudon Cedex, France<br>
Registration Number:&nbsp; 302 456 199 R.C.S. NANTERRE<br>
Capital: 4,572,000 Euros<o:p></o:p></span></p>
<p><span lang="EN-US">This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.<o:p></o:p></span></p>
</div>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.