Sync sourcecode fail when using DB410C_build.sh


#1

when syncing LA.BR.1.2.7-01010-8x16.0.xml (6.0.1_Marsh_Mallo_P2)
I encountered below issue:

Fetching projects: 5% (8/143)
Initializing project platform/development …
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/development

It seems the network was unstable, I retried many times but still failed.

Can anyone help about this? how to make the script auto retry when error happeded?


#2

Hi @tsanchao,

I also have experienced the same. I made the revised script but never had a time to clean it up and upload it here.

Please try running bellow at the directory where you have “DB410c_build.sh”.

$ cd APQ8016_410C_LA.BR.1.2.7-01010-8x16.0_6.0.1_Marsh_Mallo_P2
$ repo sync (please wait here until it finishes successfully)
$ cd …
$ ./DB410c_build.sh


#3

Hi @tsanchao,

Also please do not forget this too.

$ git config --global user.name “Your Name”
$ git config --global user.email "you@example.com"


#4

Hi @Akira Tsukamoto,

thanks for your reply.

Please try running bellow at the directory where you have “DB410c_build.sh”.

1.$ cd APQ8016_410C_LA.BR.1.2.7-01010-8×16.0_6.0.1_Marsh_Mallo_P2
2.$ repo sync (please wait here until it finishes successfully)
3.$ cd …
4.$ ./DB410c_build.sh

the second step ‘repo sync((please wait here until it finishes successfully))’, I think it may fail the same.

I checked DB410c_build.sh, in function SB410C_SOURCE_CODE() it used ‘repo sync -j20’, the failed point of my case is here. So ‘repo sync’ without ‘-j20’ can really fix this?


#5

Hi @tsanchao,

Without -j20 will probably fix your issue, I have tried ‘repo sync -j20’ to ‘repo sync’ and it would take much longer but worked for me.

If you see the script, ‘repo sync -j20’ will spawn 20 process of git but has
repo forall -c "git checkout -b ****
on the next line without waiting for 20 process of git with ‘repo sync -j20’.

I encounter the issue here, so easiest way for me is to just use ‘repo sync’.
Of course there are better way but I never had a time to upload my revised script.


#6

Hi @Akira Tsukamoto,

Thank you very much!!!

I will try it using ‘repo sync’ tonight and will update the status.

And hope to see your revised script~


#7

Hi @tsanchao,

I just uploaded my script.

Please download from here.

http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-2016080318.tar.gz
(bug found, the file deleted, please download the new version from the bellow in this thread)

Please go to the directory where it has “DB410c_build.sh” and untar the “linaro-DB410c-script-2016080318.tar.gz”.

This script is separated in two steps.

For getting the source:
./linaro-DB410c-get-sources-waitall.sh

To start building the source:
./linaro-DB410c-build.sh

I have not fully finished debugging them, so if it fails, please attach the last error messages in log files created inside the directories such as source-log-.txt or patch-log-.txt


#8

Hi @tsanchao,

I already found a bug.
Please use this one.

http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-2016080318-1.tar.gz
(bug found, the file deleted, please download the new version from the bellow in this thread)


#9

Hi @Akira Tsukamoto,

Thank you so much!

I will use your script to resync the souce, thanks~


#10

Hi @tsanchao,

I keep finding bugs.

This should be better.
http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-2016080410.tar.gz


#11

Hi @Akira Tsukamoto,

Thanks again~

last night I encountered many error like:

fatal: read error: Connection reset by peer
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch platform/xxx

Actually, I always meet such error.

Do you have a good suggestion for this?


#12

Hi @tsanchao,

The error messages you have definitely looks the network connection issue.

The network connection to the git repositories are difficult to solve.
I only could think of trying many time when the network congestion is less, maybe 5:00am?

Also, I still found bugs in my script, this is the update.

http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-2016080500.tar.gz


#13

Hi,

I updated the script again. This will be the last updates.

For
Android Board Support Package vLA.BR.1.2.7-01010-8x16.0-4
the script is:
http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-LA.BR.1.2.7-01010-2016080615.tar.gz

For
Android Board Support Package vLA.BR.1.2.4-01810-8x16.0-3
the script is:
http://people.linaro.org/~akira.tsukamoto/96boards/db410c/linaro-DB410c-script-LA.BR.1.2.4-01810-2016080615.tar.gz

They are for the sources host at:
https://developer.qualcomm.com/hardware/dragonboard-410c/tools


#14

Hi @Akira Tsukamoto,

Thanks for your great support !

I am still syncing the sourcecode, and failed again and again due to the network error.