Bug 261

Summary: kernel in eMenlow target does NOT support various SDK tools
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Lianhao Lu <lianhao.lu>
Component: meta-yoctoAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium CC: dexuan.cui, jessica.zhang, kevin.tian, liping.ke, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: E-Menlow   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Lianhao Lu 2010-09-02 19:54:38 UTC
The current eMenlow build is using the kernel 2.6.33, in which some configurations are not enabled so the SDK tools is not working. These kernel configurations needs to be enabled. (The WindRiver kernel has enabled these, but eMenlow is not using the WR kernel).

oprofile:  CONFIG_OPROFILE

latencytop: CONFIG_LATENCYTOP

powertop: e.g. CONFIG_TIMER_STATS, CONFIG_ACPI_BATTERY, etc.
Comment 1 Lianhao Lu 2010-09-02 20:19:45 UTC
Additional kernel configurations:

libust(which is used by user mode lttng): CONFIG_SYSVIPC
Comment 2 Saul Wold 2010-09-02 21:23:38 UTC
Can you please provide a complete list of kernel configs that need to be enabled.
Comment 3 Lianhao Lu 2010-09-02 21:51:19 UTC
For oprofile/latencytop/lttng, I believe what's mentioned above is enough. 

For powertop, below is an excerpt from http://www.lesswatts.org/projects/powertop/faq.php:

  - What distribution is required?
  Any distribution that supports kernel 2.6.21 or newer with dynticks enabled.

  - What kernel options should I enable inside the kernel?
  CONFIG_NO_HZ
  CONFIG_HIGH_RES_TIMERS
  CONFIG_HPET_TIMER
  CONFIG_CPU_FREQ_GOV_ONDEMAND
  CONFIG_USB_SUSPEND
  CONFIG_SND_AC97_POWER_SAVE
  CONFIG_TIMER_STATS

  - What kernel options should I disable inside the kernel?
  CONFIG_IRQBALANCE
  CONFIG_ACPI_DEBUG

Also the PowerTOP program itself suggests the following configurations:

Suggestion: Enable the CONFIG_INOTIFY kernel configuration option.
This option allows programs to wait for changes in files and directories
instead of having to poll for these changes

Suggestion: Enable the CONFIG_CPU_FREQ_STAT kernel configuration option.
This option allows PowerTOP to show P-state percentages
P-states correspond to CPU frequencies.

Suggestion: Enable the CONFIG_PCIEASPM kernel configuration option.
PCI Link Powermanagement (ASPM) allows the hardware to go to low power mode
automatically when a PCI-E device is idle.

Suggestion: Enable the CONFIG_HPET_TIMER kernel configuration option.
Without HPET support the kernel needs to wake up every 20 milliseconds for
some housekeeping tasks.

Suggestion: Enable the CONFIG_ACPI_BATTERY kernel configuration option.
 This option is required to get power estimages from PowerTOP

Suggestion: Enable the CONFIG_NO_HZ kernel configuration option.
This option is required to get any kind of longer sleep times in the CPU.

Suggestion: Enable the CONFIG_CPU_FREQ_GOV_ONDEMAND kernel configuration option.
The 'ondemand' CPU speed governor will minimize the CPU power usage while
giving you performance when it is needed.

Suggestion: Enable the CONFIG_PM_RUNTIME kernel configuration option.
This option enables the kernel to manage power for various devices in your compu                                                                   ter.

Suggestion: Enable the CONFIG_PM_ADVANCED_DEBUG kernel configuration option.
This option will allow PowerTOP to collect runtime power management statistics.

Suggestion: Enable the CONFIG_USB_SUSPEND kernel configuration option.
This option will automatically disable UHCI USB when not in use, and may
save approximately 1 Watt of power.
Comment 4 Jessica 2010-09-28 19:40:04 UTC
Assign to Tom since he's owning eMenlow and Intel BSPs
Comment 6 Lianhao Lu 2010-10-17 20:02:37 UTC
Verified in M4 RC2.