When I Patch Code for i.mx, then get a error!

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

When I Patch Code for i.mx, then get a error!

2,196 次查看
MarcLiu
Contributor II

When I Patch Code for i.mx, and get a error:

$ cd ~/myandroid

$ source /opt/android_jb4.3_1.1.0-ga_source/code/jb4.3_1.1.0-ga/and_patch.sh

$ help

$ c_patch /opt/android_jb4.3_1.1.0-ga_source/code/jb4.3_1.1.0-ga imx_jb4.3_1.1.0-ga

Error! Can't locate top dir of repo tree.

What's the meaning about the error,and how to solve the problem?

标签 (2)
3 回复数

1,472 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello liusf,

I’m sorry to hear you’re having problems building the Android BSP.

I would like to double check that you’re following all the steps of the Android User’s Guide in order.

Steps on section 3.1 initialize the repo and loads all the needed repositories including Freescale’s Kernel and bootloader.

For steps 3.2 you would need to have the Android Source patches unzipped in any known location. The document assumes that you’re using /opt/android_jb4.3_1.1.0-ga_source

However, it is possible to encounter permission problems depending on your configuration and whether you’re running as root or not.

Please follow the first three steps:

$ cd ~/myandroid

$ source /opt/android_jb4.3_1.1.0-ga_source/code/jb4.3_1.1.0-ga/and_patch.sh

$ help

And make sure that you see the c_patch  function available when running help.

Then continue the commands on the Android User’s Guide to patch but make sure that there are no errors on the log. It is possible to have a “permission denied” error and still get the “Success” message at the end, which may be deceiving.

1,472 次查看
remioukrat
Contributor I

Hi,

Before the patch, you have to download repo and git.

If you get an other error, please give me "error type".

0 项奖励
回复

1,472 次查看
bandelaprathyus
Contributor II

I am facing the same problem. I have downloaded the repo and git before the patch. Please tell me how to solve this problem.

0 项奖励
回复