Bug 5121

Summary: Starting apmd failed at system startup
Product: [Runtime] System Startup Reporter: Chen Qi <Qi.Chen>
Component: system-startupAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, kevin.tian, mark.hatle, sgw
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2013-09-05 06:22:11 UTC
The error message is:
Starting advanced power management daemon: No APM support in kernel
(failed.)

The problem is that CONFIG_APM is not enabled in kernel, but the MACHINE_FEATURES contains 'apm'. 

meta/conf/machine/include/qemu.inc:MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen"
meta-yocto-bsp/conf/machine/beagleboard.conf:MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa"

The apmd package is installed because MACHINE_FEATURES contains 'apm', but CONFIG_APM is not enabled, and there's no corresponding kernel configuration fragment.

//Chen Qi
Comment 1 Bruce Ashfield 2013-09-05 12:45:19 UTC
Let's just update the fragments to contain the right modules, and not over design
a solution to this.

We already have bugzilla entries around mapping machine features -> fragments, and
the balancing of the BSPs need to specify what it actually supports, versus the abstraction
of a build system turning on functionality that can't actually work on the board .. simply
because a recipe or high level function asks for it. That's 1.6 and beyond work.

For now, let's just tweak the config appropriately.
Comment 2 Saul Wold 2013-09-05 14:45:30 UTC
Any reason not to drop apm from the qemu MACHINE_FEATURES, instead of adding it into the kernel config?

Richard believes that it's only useful on older x86 and older arm, and mostly dead at point, it not useful in the virtual environments and questionable in beagleboard.

No not adding it to kernel would be better.

I am going to do a review of apmd and it's general usefulness.