Changes

Jump to: navigation, search

B2G/Porting

493 bytes added, 13:02, 31 May 2012
no edit summary
The [https://github.com/mozilla-b2g/b2g-manifest/tree/galaxy-s2 galaxy-s2] branch can be used as a reference.
== Create a configuration tree for new device in device/<manufacturer>/<device_id> ==
Below are minimal files in You need to create a new configration tree for new device at device configuration /<manufacturer>/<device_id> The treeshould include at least:
* AndroidBoard.mk
* AndroidProducts.mk
The [http://forum.xda-developers.com XDA Forum] is also a good place to discuss and check for resource.
== Required init= How to create BoradConfig.rc change mk === To be added. === How to create extract-files.sh === To be added. === How to create idc files for touch screen === To be added. == The need to rebuild boot.img ==
Basically no change is required for kernel, the purpose to rebuild boot.img is for required init.rc change.
 
=== Required change on init.rc ===
Main things to modify on init.rc:
* Import init.b2g.rc
<pre>
on early-init
start ueventd
import /init.b2g.rc
</pre>
 
* chmod 755 on /system/b2g/b2g, /system/b2g/updater, /system/b2g/plugin-container
<pre>
chmod 0755 /system/b2g/b2g
chmod 0755 /system/b2g/updater
chmod 0755 /system/b2g/plugin-container
</pre>
You might want to modify from init.rc of new device, instead of using the init.rc provided by the
build system. In this case, you need to set TARGET_PROVIDES_B2G_INIT_RC in BoardConfig.mk.
=== Prebuilt kernel vs building kernel from source === A prebuild prebuilt kernel can be used, or built you may also build kernel from source by the build system.To build rebuild kernelby build system, add AndroidKernel.mk and kernel config in device configuration tree.
The [https://github.com/andreasgal/B2G/tree/master/glue/gonk/device/toro/maguro maguro] on old build system is an example that builds kernel from source.
148
edits

Navigation menu