Bug 6362 - Runtime machine configuration
Summary: Runtime machine configuration
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.2 M3
Assignee: Jianxun Zhang
QA Contact: Francisco Pedraza
URL:
Whiteboard: work post 8761
: 8761 (view as bug list)
Depends on: 8761 8815 9205
Blocks: 5351 6619
  Show dependency tree
 
Reported: 2014-05-21 21:42 UTC by Darren Hart
Modified: 2016-08-12 13:35 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2014-05-21 21:42:13 UTC
In order to fully support consolidated BSPs for meta-intel with intel-core2-32 and intel-coreiy-64 machines, we need to be able to do some basic configuration at first boot, or possibly during "install", to setup various text-based machine specific configuration files. This may include things like:

* alsa configuration
* kernel boot parameters
* network config
* formfactor config
* xorg.conf

Resurrecting / reimagining zaurusd is a reasonable starting point here.
Comment 1 Ross Burton 2014-05-22 14:53:57 UTC
FWIW X can autodetect modern hardware and works out of the box without a xorg.conf file.  EMGD is as ever special, but EMGD tends to need machine-specific configuration anyway.

Can you give some concrete examples of what the runtime configuration needs to do?
Comment 2 Darren Hart 2014-07-15 21:49:13 UTC
Assigning to Nitin as he is now reviewing this and will be providing a proposal.
Comment 3 Darren Hart 2014-07-24 23:30:42 UTC
Bug 6209 contains an example asound.conf that is necessary on the MinnowBoard-Max.
Comment 4 Nitin Kamble 2014-08-07 18:46:11 UTC
I had a initial proposal, now trying an initial implementation.
Comment 5 Nitin Kamble 2014-09-18 15:19:03 UTC
This will be going in the meta-intel layer in the 1.7 release.
Comment 6 Nitin Kamble 2014-10-23 17:22:33 UTC
Moving the target milestone to 1.8.M2
Comment 7 Alexandru Georgescu 2014-11-20 09:18:47 UTC
To be discussed internally with Lucian and Costin.
Comment 8 Nitin Kamble 2015-02-24 19:28:39 UTC
The code is available at these locations:

http://git.yoctoproject.org/cgit/cgit.cgi/machinesetuptool/log/

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=nitin/machinesetuptool-20150224

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-contrib/log/?h=nitin/machinesetuptool_20150224


I tested the code on emenlow, fri2, crownbay, sugarbay, nuc, jasperforest BSPs, and it worked as expeted. It may need rebase to the latest oecore & meta-intel heads.
Comment 9 Saul Wold 2015-12-01 15:53:57 UTC
Moving this out further since we have additional resources now and they need to 
come up to speed.
Comment 10 Jianxun Zhang 2016-06-08 17:03:50 UTC
The original requirements that are actually cannot be handled by other scalability or auto-detection features in kernel or system. In a short, these board-spcific deltas is to SoC or a type of physical board and defined by human. RMC under development will allow system to deploy board-specific data onto target within a single image (per arch), so it will address these requirements.
Comment 11 Jianxun Zhang 2016-07-19 17:21:41 UTC
The latest V2 is submitted to meta-intel mailing list. I believe the original requirements are satisfied because the new RMC feature, based on RMC project, installer, bootloader and recipes, support to:

() deploy any board-type-specific files during installation
() support a global kernel command line fragment which is effective in any boot entry selected by user to boot a system.
() support boot entries which can also have different configurations associated with types of boards. (boot option title, cmdline, etc)

Refer to the README.rmc in meta-intel/documentation once patches are merged.
Comment 12 Jianxun Zhang 2016-07-19 17:27:41 UTC
*** Bug 8761 has been marked as a duplicate of this bug. ***
Comment 13 Jianxun Zhang 2016-08-08 17:40:40 UTC
RMC feature is merged but not enabled by default in meta-intel. Please refer to documentation/rmc/README as a starting point.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=10089 is to track new test cases for this feature, so it is also worthy to check its assignee in QA team.