Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6

1,340件の閲覧回数
dx1
Contributor II

I refer <Android_User's_Guide.pdf> porting  Android13.0.0 BSP on Ubuntu18.04.6,

When I execute to the command: source ~/imx-android-13.0.0_1.0.0/imx_android_setup.sh

It doesn't work anymore

curl: (7) Failed to connect to android.googlesource.com port 443: \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5\n'

fatal: unable to access 'https://android.googlesource.com/platform/build/bazel/': Failed to connect to android.googlesource.com port 443: 拒绝连接

I'm in China ,Is there any solution?

I have already referenced Downloading and Compiling Android9.0.0-2.0.0 BSP o... - NXP Community But it still doesn't work properly

 

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,312件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @dx1 

Firstly to confirm if access to android Git repositories - Git at Google (googlesource.com) is reachable from your current network or not. 

As you've referred to the link from which there provides different mirror for downloading android source code. you have to find other workable mirror.

 

Best regards

Harvey

0 件の賞賛
返信

1,287件の閲覧回数
ethan_dang1
Contributor III

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

0 件の賞賛
返信