Hi @Harvey021
Thanks for your reply.
Access to android Git repositories - Git at Google (googlesource.com) is Inaccessible from my current network.
I made the following changes to the imx_android_setup.sh
mkdir -p "$android_builddir"
cd "$android_builddir"
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-android-13 -m imx-android-13.0.0_1.0.0.xml
rc=$?
if [ "$rc" != 0 ]; then
echo "---------------------------------------------------"
echo "-----Repo Init failure"
echo "---------------------------------------------------"
return 1
fi
find -name 'aosp-13.0.0_1.0.0.xml'|xargs perl -pi -e 's|https://android.googlesource.com/|https://aosp.tuna.tsinghua.edu.cn/|g'
#find -name 'aosp-13.0.0_1.0.0.xml'|xargs perl -pi -e 's|https://android.googlesource.com/|https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/|g'
retry=0
max_retry=3
repo sync
while [ $retry -lt $max_retry -a $? -ne 0 ]; do
retry=$(($retry+1))
echo "Try repo sync $retry time(s)"
repo sync
done
rc=$?
if [ "$rc" != 0 ]; then
echo "---------------------------------------------------"
echo "------Repo sync failure"
echo "---------------------------------------------------"
return 1
fi
find -name 'aosp-13.0.0_1.0.0.xml'|xargs perl -pi -e 's|https://android.googlesource.com/|https://aosp.tuna.tsinghua.edu.cn/|g'
#find -name 'aosp-13.0.0_1.0.0.xml'|xargs perl -pi -e 's|https://android.googlesource.com/|https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/|g'
But the error is still reported:
curl: (7) Failed to connect to android.googlesource.com port 443: \xe8\xbf\x9e\xe6\x8e\xa5\xe8\xb6\x85\xe6\x97\xb6\n'
fatal: unable to access 'https://android.googlesource.com/platform/build/pesto/': Failed to connect to android.googlesource.com port 443: 连接超时
Maybe I modified it wrong or there are other areas that need to be changed