Difference between revisions of "IoTGateway/BSP/Android/How to do about first porting"
Line 11: | Line 11: | ||
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">1. U-boot : Add your device android defconfig.</span></span> | <span style="font-size:small;"><span style="font-family:times new roman,times,serif;">1. U-boot : Add your device android defconfig.</span></span> | ||
− | <span style="font-family:times new roman,times,serif;"> Step 1 The android defconfig : copy the mx6q<span style="color:#FF0000;">xxxa1</span>_1G_defconfig to mx6q<span style="color:#FF0000;">xxxa1</span>android_1G_defconfig.</span> | + | <span style="font-family:times new roman,times,serif;"> Step 1 The android defconfig : copy the mx6q<span style="color:#FF0000;">xxxa1</span>_1G_defconfig to mx6q<span style="color:#FF0000;">xxxa1</span>android_1G_defconfig.</span> |
<span style="font-family:times new roman,times,serif;"> Step 2 (1) Remove SPL (2) Add ANDROID_SUPPORT</span> | <span style="font-family:times new roman,times,serif;"> Step 2 (1) Remove SPL (2) Add ANDROID_SUPPORT</span> | ||
− | + | ||
− | <span style="font-size:small;"><span style="font-family:times new roman,times,serif;">2. Android : <span style="color:#0000FF;">device_name</span> is your new device name.</span></span> | + | <span style="font-family:times new roman,times,serif;"></span> <span style="font-size:small;"><span style="font-family:times new roman,times,serif;">2. Android : <span style="color:#0000FF;">device_name</span> is your new device name.</span></span> |
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;"> (1)build/envsetup.sh<br/> (2)device/fsl/imx6/AndroidProducts.mk<br/> (3)device/fsl/imx6/vendorsetup.sh<br/> (4)device/fsl/imx6/<span style="color:#0000FF;">device_name.mk</span><br/> (5)device/fsl/<span style="color:#0000FF;">device_name</span></span></span> | <span style="font-size:small;"><span style="font-family:times new roman,times,serif;"> (1)build/envsetup.sh<br/> (2)device/fsl/imx6/AndroidProducts.mk<br/> (3)device/fsl/imx6/vendorsetup.sh<br/> (4)device/fsl/imx6/<span style="color:#0000FF;">device_name.mk</span><br/> (5)device/fsl/<span style="color:#0000FF;">device_name</span></span></span> |
Revision as of 04:40, 12 December 2016
How to do about first porting on new device in Android 6.0.1_2.1.0
Setup Ubuntu host computer
In Android 6.0.1_2.1.0, we push the advantech risc platfrom in github.
https://github.com/ADVANTECH-Corp
If you will be fast porting the new device in android 6.0.1_2.1.0, you can step by step to do.
1. U-boot : Add your device android defconfig.
Step 1 The android defconfig : copy the mx6qxxxa1_1G_defconfig to mx6qxxxa1android_1G_defconfig.
Step 2 (1) Remove SPL (2) Add ANDROID_SUPPORT
2. Android : device_name is your new device name.
(1)build/envsetup.sh
(2)device/fsl/imx6/AndroidProducts.mk
(3)device/fsl/imx6/vendorsetup.sh
(4)device/fsl/imx6/device_name.mk
(5)device/fsl/device_name
(1) In /build/envsetup.sh, please add your device in PRODUCT_CHOICES
Example : Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)
(2) In /device/fsl/imx6/AndroidProducts.mk, please add "$(LOCAL_DIR)/device_name.mk"
Example : Your device name is aaa_a1, please add "$(LOCAL_DIR)/aaa_a1.mk"
(3) In device/fsl/imx6/vendorsetup.sh, please add "add_lunch_combo device_name-eng" and "add_lunch_combo device_name-user"
Example : Your device name is aaa_a1, please add "add_lunch_combo aaa_a1-eng" and "add_lunch_combo aaa_a1-user"
(4) In device/fsl/imx6/, please add device_name.mk.
Example : Your device name is aaa_a1, please add aaa_a1.mk
(5) In device/fsl/, please add device_name folder.
Example : Your device name is aaa_a1, please add aaa_a1folder