Bug 6362

Summary: Runtime machine configuration
Product: [Build System, Metadata & Runtime] BSPs Reporter: Darren Hart <dvhart>
Component: bsps-meta-intelAssignee: Jianxun Zhang <jianxun.zhang>
Status: RESOLVED FIXED QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, costin.c.constantin, georgex.l.musat, jessica.zhang, jianxun.zhang, jose.perez.carranza, ross.burton, sgw, tom.zanussi
Version: 1.8   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
See Also: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4011
Whiteboard: work post 8761
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on: 8761, 8815, 9205    
Bug Blocks: 5351, 6619    

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.