<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1622282#M203266</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://android.googlesource.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;android Git repositories - Git at Google (googlesource.com)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is Inaccessible from my current network.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I made the following changes to the imx_android_setup.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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'&lt;/LI-CODE&gt;&lt;P&gt;But the error is still reported：&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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: 连接超时&lt;/LI-CODE&gt;&lt;P&gt;Maybe I modified it wrong or&amp;nbsp;there are other areas that need to be changed&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 06:38:17 GMT</pubDate>
    <dc:creator>ethan_dang1</dc:creator>
    <dc:date>2023-03-27T06:38:17Z</dc:date>
    <item>
      <title>Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1617416#M202891</link>
      <description>&lt;P&gt;I refer &amp;lt;Android_User's_Guide.pdf&amp;gt; porting&amp;nbsp; Android13.0.0 BSP on Ubuntu18.04.6，&lt;/P&gt;&lt;P&gt;When I execute to the command： source ~/imx-android-13.0.0_1.0.0/imx_android_setup.sh&lt;/P&gt;&lt;P&gt;It doesn't work anymore&lt;/P&gt;&lt;P&gt;curl: (7) Failed to connect to android.googlesource.com port 443: \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5\n'&lt;/P&gt;&lt;P&gt;fatal: unable to access '&lt;A href="https://android.googlesource.com/platform/build/bazel/" target="_blank"&gt;https://android.googlesource.com/platform/build/bazel/&lt;/A&gt;': Failed to connect to android.googlesource.com port 443: 拒绝连接&lt;/P&gt;&lt;P&gt;I'm in China ，Is there any solution？&lt;/P&gt;&lt;P&gt;I have already referenced&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Downloading-and-Compiling-Android9-0-0-2-0-0-BSP-on-Ubuntu16-04/ta-p/1115923" target="_blank"&gt;Downloading and Compiling Android9.0.0-2.0.0 BSP o... - NXP Community&lt;/A&gt;&amp;nbsp;But it still doesn't work properly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 07:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1617416#M202891</guid>
      <dc:creator>dx1</dc:creator>
      <dc:date>2023-03-17T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1621350#M203181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213426"&gt;@dx1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly to confirm if access to&amp;nbsp;&lt;A href="https://android.googlesource.com/" target="_blank"&gt;android Git repositories - Git at Google (googlesource.com)&lt;/A&gt;&amp;nbsp;is reachable from your current network or not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 03:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1621350#M203181</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-03-24T03:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and Compiling Android13.0.0 BSP on Ubuntu18.04.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1622282#M203266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://android.googlesource.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;android Git repositories - Git at Google (googlesource.com)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is Inaccessible from my current network.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I made the following changes to the imx_android_setup.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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'&lt;/LI-CODE&gt;&lt;P&gt;But the error is still reported：&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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: 连接超时&lt;/LI-CODE&gt;&lt;P&gt;Maybe I modified it wrong or&amp;nbsp;there are other areas that need to be changed&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 06:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-and-Compiling-Android13-0-0-BSP-on-Ubuntu18-04-6/m-p/1622282#M203266</guid>
      <dc:creator>ethan_dang1</dc:creator>
      <dc:date>2023-03-27T06:38:17Z</dc:date>
    </item>
  </channel>
</rss>

