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?
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.
Hi,
Before the patch, you have to download repo and git.
If you get an other error, please give me "error type".
I am facing the same problem. I have downloaded the repo and git before the patch. Please tell me how to solve this problem.