Re: [Powertop] PowerTop Installation issue

Prigent, Christophe <christophe.prigent at intel.com>
Newsgroups dev.linux.lists.powertop
Message-ID <AC81B6AA7676DD448250A85A459C1F412F0CB049@IRSMSX101.ger.corp.intel.com>
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
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, 5.9 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:"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:0in;
	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:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	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-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Adrip,<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">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 style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span 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 style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here are simplified steps to give you an idea:<o:p></o:p></span></p>
<p class="MsoNormal"><span 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 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 style="color:#1F497D">Then you can build the Android apk, for example, using Eclipse.<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">Christophe.<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 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> PowerTop [mailto:[email protected]]
<b>On Behalf Of </b>Mukherjee, Adrip<br>
<b>Sent:</b> Wednesday, November 20, 2013 12:33 PM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> [Powertop] PowerTop Installation issue<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hi ,<o:p></o:p></p>
<p class="MsoNormal">&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></p>
<p style="margin:0in;margin-bottom:.0001pt"><span 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 style="font-size:11.5pt;font-family:Consolas;color:red">./configure
</span><span 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">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></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Vivaldi;color:#403152">regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Vivaldi;color:#403152">Adrip<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p>---------------------------------------------------------------------<br>
Intel Corporation SAS (French simplified joint stock company)<br>
Registered headquarters: "Les Montalets"- 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</p>

<p>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.</p></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.