account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Repo Sync fails when getting Sony Android Kernel

SOLVED
Regular
Message 1 of 5
3,951 Views
Message 1 of 5

Repo Sync fails when getting Sony Android Kernel

Hello Community,

I followed the guide of Sony:


on how to build an AOSP image for my Sony Xperia Z1 under Ubuntu 14.04, because i would love to give other users a new ROM to use after i have used xda forums for years.

I have been successful until i do a repo sync after editing .repo/local_manifests/sony.xml

It then fails while getting the git repository for the kernel with the following messages:

 

Code:
: parsing /root/android/.repo/manifests.git/config
: parsing /root/.gitconfig
: parsing /root/android/.repo/repo/.git/config
: export GIT_DIR=/root/android/.repo/manifests.git
: git fetch
--progress origin --tags +refs/heads/*:refs/remotes/origin/* +refs/heads/android-5.1.1_r8:refs/remotes/origin/android-5.1.1_r8 1>| 2>|

: load refs /root/android/.repo/manifests.git
: scan refs /root/android/.repo/manifests.git
Fetching project kernel
: parsing /root/android/.repo/projects/kernel/sony/msm.git/config

: export GIT_DIR=/root/android/.repo/projects/kernel/sony/msm.git
: git fetch --progress sony --tags +refs/heads/*:refs/remotes/sony/*
+refs/heads/aosp/AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.02.019.067:refs/remotes/sony/aosp/AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.02.019.067 1>| 2>|

fatal:
Not a git repository: '/root/android/.repo/projects/kernel/sony/msm.git' : git fetch --progress sony --tags +refs/heads/*:refs/remotes/sony/* +refs/heads/aosp/AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.02.019.067:refs/remotes/sony/aosp/AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.02.019.067 1>| 2>|

fatal:
Not a git repository: '/root/android/.repo/projects/kernel/sony/msm.git' error: Cannot fetch kernel error: Exited sync due to fetch errors

I do have enough space left on the drive and the git repository exists online:
https://github.com/sonyxperiadev/kernel
and the Branch is also correct.

Here is the repo config file:

 

Code:
[remote "sony"]
url = git://github.com/sonyxperiadev/kernel
projectname = kernel
fetch = +refs/heads/*:refs/remotes/sony/*

Thank you for any help, i would really like to try out building my own AOSP ROM.

1 ACCEPTED SOLUTION

Accepted Solutions
Developer World
Message 4 of 5
5,282 Views
Message 4 of 5

Re: Repo Sync fails when getting Sony Android Kernel

Hi

We have just updated the guide to use latest available sources

I would recommend to remove whole android folder and start from the begining

Br

Alin

 

4 REPLIES 4
Developer World
Message 2 of 5
3,824 Views
Message 2 of 5

Re: Repo Sync fails when getting Sony Android Kernel

Hi

 

Please post your sony.xml

I suspect that you have a space somewhere

 

Br

Alin

 

Highlighted
Regular
Message 3 of 5
3,814 Views
Message 3 of 5

Re: Repo Sync fails when getting Sony Android Kernel

Hello,

 

Thanks for your answer, i copied the text again from the website and this time it worked.

 

But when doing a repo sync afterwards i had the following error message:

error: frameworks/base/: platform/frameworks/base checkout 225d3f5440dc7166d91bb848d508924c20a13286

and when executing make after executing the changes mentioned to the sources on the guide:

make: *** No rule to make target `out/host/linux-x86/bin/validatekeymaps', needed by `out/target/common/obj/ETC/validate_framework_keymaps_intermediates/stamp'.  Stop.

#### make failed to build some targets (01:36 (mm:ss)) ####

Thanks for any Help

Developer World
Message 4 of 5
5,283 Views
Message 4 of 5

Re: Repo Sync fails when getting Sony Android Kernel

Hi

We have just updated the guide to use latest available sources

I would recommend to remove whole android folder and start from the begining

Br

Alin

 

Regular
Message 5 of 5
3,777 Views
Message 5 of 5

Re: Repo Sync fails when getting Sony Android Kernel

Thanks for the reply.

 

I did just yesterday and a new error came up, see the other thread, thanks for your support Winking Face