Android M6.0.1-1.0.0-GA patch error!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android M6.0.1-1.0.0-GA patch error!

1,801 Views
petertseng
Contributor IV

Hi i.MX Community,

I could not patch android_M6.0.1_1.0.0_core_source.tar.gz

$ source /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/and_patch.sh

$ help

Invoke ". and_patch.sh" from your shell to add following functions to your environment:

-- c_gotop: Changes directory to the top of the tree

-- c_patch: Recover working tree to base version and then applying FSL android patch

$ c_patch /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/ imx_M6.0.1_1.0.0

Parsing basefile /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/baseversion...

Check work tree and patch dir based on /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/baseversion...

Checking NEW project - device/fsl ...

Checking NEW project - device/fsl-proprietary ...

Checking NEW project - external/fsl_vpu_omx ...

Checking NEW project - hardware/imx ...

Checking NEW project - hardware/realtek ...

Checking NEW project - packages/apps/fsl_imx_demo ...

Checking NEW project - external/linux-lib ...

Checking NEW project - external/linux-test ...

Checking NEW project - external/linux-firmware-imx ...

Checking NEW project - external/ntfs-3g ...

Checking NEW project - external/powerdebug ...

Checking NEW project - external/mtd-utils ...

Checking NEW project - external/busybox ...

Checking CHANGE project - frameworks/base ...

fatal: Not a git repository (or any of the parent directories): .git

Error! Base version commit 4d70bd7a928903b35c92619437c70bc382587b71 doesn't exist in git /home/workspace/myandroid/frameworks/base. Stop

Hope for your help!

Regards,

Tags (1)
0 Kudos
5 Replies

613 Views
Lorac
Contributor III

your should see this in the document...

$ cd ~/myandroid

$ source ~/opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/and_patch.sh

$ help

$ c_patch ~/opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/ imx_M6.0.1_1.0.0

--->~~~~~~~

0 Kudos

613 Views
lukaszgradzik
Contributor I

Probably   ~/bin/repo sync   failed.

Please try to sync again.

Hint: to make it faster type:

~/bin/repo sync -j16

it will download several repos in paralell.

0 Kudos

613 Views
vamsipuritipati
Contributor I

Hai Yuri,

I have followed the section  3.1 [Getting Android source code

(Android/kernel/U-Boot)] of the "Android_User's_Guide.pdf"

Even  I could not patch android_M6.0.1_1.0.0_core_source.tar.gz

$ source /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/and_patch.sh

$ help

Invoke ". and_patch.sh" from your shell to add following functions to your environment:

-- c_gotop: Changes directory to the top of the tree

-- c_patch: Recover working tree to base version and then applying FSL android patch

After giving the make command its showing broken pipe error.

prebuilts/misc/linux-x86/bison/bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y

make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Broken pipe

What are the following steps should I do to build the Android 6.0.1?

0 Kudos

613 Views
Yuri
NXP Employee
NXP Employee

Hello,

please refer to the following : Android: patching core features code package failes

Regards,

Yuri.

0 Kudos

613 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Have You followed exactly section  3.1 [Getting Android source code
(Android/kernel/U-Boot)] of the "Android_User's_Guide.pdf" ?

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos