Information is unavailable on "Clocks", "Sensors" and "Gpio" pages in powerdebug with Samsung Arndale Android.

Bug #1298171 reported by Botao
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro PMWG Powerdebug
New
High
Linaro Landing Team: Samsung
Changed in linaro-powerdebug:
assignee: nobody → sanjay singh rawat (sanjay-rawat)
Amit Kucheria (amitk)
Changed in linaro-powerdebug:
importance: Undecided → High
Revision history for this message
Mohammad Merajul Islam Molla (meraj-enigma) wrote :

I tested powerdebug version 0.7.1 using Linaro arndale-saucy_server 14.03. Gpio's information is missing in output. Error message on command prompt is as below -

error: unable to open directory /sys/class/gpio
failed to initialize gpios

$ ls /sys/class/gpio
ls: cannot access /sys/class/gpio: No such file or directory

I am using Samsung Arndale Board wih Exynos 5250 (Cortex-A15).

description: updated
Revision history for this message
Mohammad Merajul Islam Molla (meraj-enigma) wrote :

I compiled the kernel with CONFIG_GPIO_SYSFS=y. This creates the entry /sys/class//gpio.

Now if I run 'sudo powerdebug' it does not display the error message above, but it still fails to show gpio information.

Revision history for this message
sanjay singh rawat (sanjay-rawat) wrote :

- The /sys/kernel/debug directory is missing, the debugfs support is missing in the arndale kernel i think.

Revision history for this message
sanjay singh rawat (sanjay-rawat) wrote :

- I checked in arndale android (4.4) kernel (3.9.1) directives needed for powerdebug are not enabled. Directives DEBUG_FS, GPIO_SYSFS and HWMON are needed.

Revision history for this message
Amit Kucheria (amitk) wrote :

Thanks for checking. In any case, powerdebug shouldn't error out if one or more of the information sources aren't present. Instead, on each tab, it should say which are the kernel config options typically required for information to be present for that tab.

e.g. on GPIO tab, if /sys/class/gpio is missing, just print "Typically, CONFIG_GPIO_SYSFS, CONFIG_FOO, etc. are need for this feature. Please ensure they are compiled into your kernel"

Revision history for this message
Mohammad Merajul Islam Molla (meraj-enigma) wrote :

In addition to my comment (#2), I further checked and noticed that for powerdebug to display gpio information, the GPIO first has to be exported to userspace by writing the GPIO number in /sys/class/gpio/export file.

May be some warning message can be added in addition to printing the message in comment (#5), to avoid user surprise.

description: updated
Revision history for this message
sanjay singh rawat (sanjay-rawat) wrote : Re: [Bug 1298171] Re: Information is unavailable on "Clocks", "Sensors" and "Gpio" pages in powerdebug 0.7.1 with Samsung Arndale Android.

On Wednesday 23 April 2014 12:56 AM, Soumya Basak wrote:
> ** Description changed:
>
> On Samsung Arndale board with Linaro Android image:
>
> https://android-build.linaro.org/builds/~linaro-android/arndale-
> linaro-14.03-release/#build=1
>
> The output realtime information is unavailable on "Clocks", "Sensors"
> and "Gpio" columns.
>
> For the bug on ARM Versatile Express A9, please refer to:
>
> https://bugs.launchpad.net/linaro-powerdebug/+bug/1229658
>
> #################################
> This issue is observed on following images:
> https://android-build.linaro.org/builds/~linaro-android/linux-linaro-arndale/#build=386
> https://android-build.linaro.org/builds/~linaro-android/arndale-linaro-14.03-release/#build=1
> https://android-build.linaro.org/builds/~linaro-android/linux-linaro-arndale/#build=415
> + https://android-build.linaro.org/builds/~linaro-android/arndale-linaro-14.04-release/#build=1
>

Botao & Soumya first the support needs to be enbaled in Arndale kernel,
powerdebug will not work untill support is there. Still from my side i
have updated the prerequisites in readme and sent a patch(under review)
to display error info. please reassign to Arndale kernel team. thanks

Changed in linaro-powerdebug:
assignee: sanjay singh rawat (sanjay-rawat) → Linaro Landing Team: Samsung (linaro-landing-team-samsung)
Botao (botao-sun)
description: updated
summary: Information is unavailable on "Clocks", "Sensors" and "Gpio" pages in
- powerdebug 0.7.1 with Samsung Arndale Android.
+ powerdebug with Samsung Arndale Android.
Botao (botao-sun)
description: updated
Botao (botao-sun)
description: updated
Revision history for this message
Botao (botao-sun) wrote :

On Samsung Arndale 5250 board with Linaro Android 14.06 release image:

https://android-build.linaro.org/builds/~linaro-android/arndale-linaro-14.06-release/#build=1

When run powerdebug, it shows:

Empty in Clock column;

error: path /sys/class/hwmon not found in Sensors column;

error: path /sys/class/gpio not found in Gpio column.

description: updated
Revision history for this message
Botao (botao-sun) wrote :

Checked, those stuff doesn't exist under the /sys/class directory:

root@arndale:/sys/class # ls
ata_device
ata_link
ata_port
bdi
block
dma
firmware
graphics
i2c-adapter
input
mdio_bus
mem
misc
mmc_host
net
regulator
scsi_device
scsi_disk
scsi_generic
scsi_host
thermal
timed_output
tty
udc
vc
video4linux
vtconsole

Botao (botao-sun)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.