[meta-intel] [yocto] Where's my 'thermal_zone'?

Selvaraj, Sreeju ArmughanX sreeju.armughanx.selvaraj at intel.com
Wed Feb 26 19:26:52 PST 2014


Hi Chris,

Is there any local changes has been made ?
especially at kernel side drivers/acpi/ and driver/thermal

Thanks,
Sreeju

From: Chris Tapp [mailto:opensource at keylevel.com]
Sent: Wednesday, February 26, 2014 8:53 PM
To: Selvaraj, Sreeju ArmughanX
Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'?

Hi Sreeju,

On 26 Feb 2014, at 12:36, Selvaraj, Sreeju ArmughanX <sreeju.armughanx.selvaraj at intel.com<mailto:sreeju.armughanx.selvaraj at intel.com>> wrote:


I have thermal related configuration at

Advance tab:
CPU Configuration->
TM1->Enabled
TM2->Enabled
DTS->Enabled

And "Thermal Configuration" under "Advance" tab

But changing of these configuration(Disabling) doesn't create any difference for me.

I've also tried booting on an Intel DN2800MT. That also has no thermal zone showing, so it looks as if the BIOS isn't the issue.

Another thing is command line argument "thermal.off", by default it is 0
if you are not passing  thermal.off=1 as command line argument, then it is ok.

I'm not passing this, so we should be ok.


 Can you paste the content of meta-intel/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_cedartrail = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta,yocto/pvr;name=machine,meta,pvr<git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;branch=$%7bKBRANCH%7d,meta,yocto/pvr;name=machine,meta,pvr>"

SRC_URI_cedartrail-nopvr = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta<git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=$%7bKBRANCH%7d,meta;name=machine,meta>"

COMPATIBLE_MACHINE_cedartrail = "cedartrail"
KMACHINE_cedartrail  = "cedartrail"
KBRANCH_cedartrail  = "yocto/standard/cedartrail"
KERNEL_FEATURES_append_cedartrail += "bsp/cedartrail/cedartrail-pvr-merge.scc"
KERNEL_FEATURES_append_cedartrail += "cfg/efi-ext.scc"

COMPATIBLE_MACHINE_cedartrail-nopvr = "cedartrail"
KMACHINE_cedartrail-nopvr  = "cedartrail"
KBRANCH_cedartrail-nopvr  = "yocto/standard/cedartrail"
KERNEL_FEATURES_append_cedartrail-nopvr += " cfg/smp.scc"

SRCREV_machine_pn-linux-yocto_cedartrail ?= "1e79e03d115ed177882ab53909a4f3555e434833"
SRCREV_meta_pn-linux-yocto_cedartrail ?= "bf5ee4945ee6d748e6abe16356f2357f76b5e2f0"
SRCREV_pvr_pn-linux-yocto_cedartrail ?= "7828ab82533828b924dbfad5158e274a8bb04df3"

SRCREV_machine_pn-linux-yocto_cedartrail-nopvr ?= "1e79e03d115ed177882ab53909a4f3555e434833"
SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= "bf5ee4945ee6d748e6abe16356f2357f76b5e2f0"


From: Chris Tapp [mailto:opensource at keylevel.com]
Sent: Wednesday, February 26, 2014 7:13 PM
To: Selvaraj, Sreeju ArmughanX
Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'?

Hi Sreeju,

On 26 Feb 2014, at 10:51, Selvaraj, Sreeju ArmughanX <sreeju.armughanx.selvaraj at intel.com<mailto:sreeju.armughanx.selvaraj at intel.com>> wrote:



I checked the kernel configuration, fine with respect to enabling thermal zone.
And verified, after built with the config you have provided.

Can I get some info:

Once boot up the image, can you run the below commands and provide the output.

# dmesg | grep Thermal
# dmesg | grep thermal

These both report nothing.



# dmesg | cooling

This gives:
  acpi device:1f: registered as cooling_device4



 What is the BIOS version on your target ?

The board is an ASRock DN2800MT (the Intel board is no longer available) and has an AMI BIOS, version 1.20.

Does something need to be enabled in the BIOS for the thermal zone to appear? ASRock have been happy to make simple configuration changes to the BIOS for me in the past if this is needed.

The BIOS has a few ACPI settings, but nothing related to thermal. I suspect other settings exist, but they are not exposed to the user.



And want to check syslinux.cfg on your target.

The board is being network booted over iPXE, so there is no syslinux.cfg. The boot simply uses the kernel, initramfs and rootfs images produced by Yocto. The kernel command line is:

root=/dev/ram0 script=runme mac=bc:5f:f4:d6:eb:66 ip=192.168.1.58 dhcp netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1 serverurl=http://sjs-server<http://sjs-server/> console=ttyS0,115200 quiet video=1280x1024-32 at 60 video=LVDS-1:d video=VGA-1:e



Thanks,
Sreeju

From: Chris Tapp [mailto:opensource at keylevel.com]
Sent: Friday, February 21, 2014 8:02 PM
To: Selvaraj, Sreeju ArmughanX
Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'?

Hi Sreeju,

Thanks for getting back to me on this. Answers below...

On 21 Feb 2014, at 11:43, Selvaraj, Sreeju ArmughanX <sreeju.armughanx.selvaraj at intel.com<mailto:sreeju.armughanx.selvaraj at intel.com>> wrote:




This is what I have tried.

built the core-image-sato for cedartrail under danny.

build configuration:

BB_VERSION        = "1.16.0"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "cedartrail"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3.2"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "b-danny-8.0.2:e52a74755b72038def2f093d18212d033d3d862d"
meta-intel
meta-cedartrail   = " b-danny-8.0.2:98342e9e685ac8066f7fe2517fd382127a286648"

Once boot up the image, I can see the "thermal_zone0" entry under /sys/class/thermal/

I only have sym-links for cooling_device0 to cooling_device4 showing there.




 I just wanted to clarify your config, What configuration is used to build the kernel ? you can find .config file inside the folder
tmp/work/cedartrail-poky-linux/linux-yocto-3.0.32+git1+bf5ee494...../linux-cedartrail-standard-build/

I've attached the config file used for the build.


Chris Tapp

opensource at keylevel.com<mailto:opensource at keylevel.com>
www.keylevel.com<http://www.keylevel.com/>

Chris Tapp

opensource at keylevel.com<mailto:opensource at keylevel.com>
www.keylevel.com<http://www.keylevel.com/>

Chris Tapp

opensource at keylevel.com<mailto:opensource at keylevel.com>
www.keylevel.com<http://www.keylevel.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-intel/attachments/20140227/3f4a8091/attachment.html>


More information about the meta-intel mailing list