imx6 android 最新,【iMX6Q-Android6.0】---移植 iMX6Q android6.0 源码 史上最详细

一、开发环境

开发环境:Ubuntu16

开发平台:iMX6Q Android6.0

二、准备工作

1、下载 android6.0源码

官方验证移植的是 android-6.0.1_r22 所以我们下载 android-6.0.1_r22

三、移植kernel

1、进入 android6.0 源码根目录

cd ~/imx6q-android6.01

2、下载 kernel 源码

git clone https://source.codeaurora.org/external/imx/linux-imx kernel_imx1

3、进入 kernel_imx

cd kernel_imx1

4、切换 kernel 分支

git checkout m6.0.1_2.1.0-ga1

切换分支会提示,不用理会即可!!!

切换分支会提示,不用理会即可!!!

切换分支会提示,不用理会即可!!!

Checking out files: 100% (50469/50469), done.

Note: checking out 'm6.0.1_2.1.0-ga'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example: git checkout -b

HEAD is now at 9f38c97... MLK-12946 media: pxp-v4l2: correct the 32 bpp pixel format passed to pxp1

2

3

4

5

6

7

8

9

10

11

12

13

5、确认 kernel

最后一个节点应该是

commit 9f38c97e49235662dc45caa3213b0debea45d87b

Author: Fancy Fang

Date: Tue Jun 28 17:18:17 2016 +0800 MLK-12946 media: pxp-v4l2: correct the 32 bpp pixel format passed to pxp The 32 bpp pixel format which is passed to pxp should be 'PXP_PIX_FMT_RGB32' instead of 'PXP_PIX_FMT_RGB24', since only 'PXP_PIX_FMT_RGB32' can be recognized by lcdif. Signed-off-by: Fancy Fang (cherry picked from commit c98efc59e1bc6d1814b2179f1b7e9f22cb177f47)1

2

3

4

5

6

7

8

9

10

11

12

四、移植 u-boot

1、进入 bootable 目录

cd bootable1

2、创建 bootloader

mkdir bootloader1

3、进入 bootloader

cd bootloader1

4、下载 u-boot 源码

git clone https://source.codeaurora.org/external/imx/uboot-imx uboot-imx1

5、进入 uboot-imx

cd uboot-imx1

6、切换 u-boot分支

git checkout m6.0.1_2.1.0-ga1

切换分支会提示,不用理会即可!!!

切换分支会提示,不用理会即可!!!

切换分支会提示,不用理会即可!!!

Note: checking out 'm6.0.1_2.1.0-ga'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example: git checkout -b

HEAD is now at 6581aea... MLK-12884 mx7dsabresd: Fix LCD_PWR_EN output setting1

2

3

4

5

6

7

8

9

10

11

12

7、确认 u-boot

最后一个节点应该是

commit 6581aea78198bf78c9ceb3308b96d87c9d8f61bb

Author: Ye Li

Date: Mon Jun 6 11:41:30 2016 +0800 MLK-12884 mx7dsabresd: Fix LCD_PWR_EN output setting LCD_PWR_EN controls the G pin of Q13 PMOS which needs low voltage to connect D to S for outputting LCD 3.3V. If LCD_PWR_EN is high, we measured the LCD 3v3 is actually 1.2V. Signed-off-by: Ye Li (cherry picked from commit 28eb616b6c49de492cc0cdb3ad5b618bed77960f)1

2

3

4

5

6

7

8

9

10

11

12

五、移植 iMX官方 补丁

1、下载 iMX官方 补丁

android_M6.0.1_2.1.0_source.tar.gz

2、准备补丁

将下载的 android_M6.0.1_2.1.0_source.tar.gz 拷贝到 和 android6.0源码同一个目录 然后解压

再进入 android6.0 源码根目录

3、打上补丁

source ../android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/and_patch.sh1

c_patch ../android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/ imx_M6.0.1_2.1.01

六、成功打上补丁

Applying patch to frameworks/opt/telephony

*************************************************************

Success: Now you can build android code for FSL i.MX platform

*************************************************************1

2

3

4

文章来源: blog.csdn.net,作者:ICEDustpan,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/weixin_44205779/article/details/112261745

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值