查看: 428|回复: 0

[求助] I.MX8M nano移植Android

[复制链接]
  • TA的每日心情
    开心
    2023-4-25 16:24
  • 签到天数: 4 天

    [LV.2]偶尔看看I

    1

    主题

    6

    帖子

    0

    新手上路

    Rank: 1

    积分
    39
    最后登录
    2023-4-25
    发表于 2023-3-28 09:14:04 | 显示全部楼层 |阅读模式
    按照官方指导《Android_User's_Guide.pdf在Ubuntu18.04.6下移植Android13,但是到下载源码的时候一直访问失败,参考其它帖子在imx_android_setup.sh”里添加了镜像地址“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'”
    1. mkdir -p "$android_builddir"
    2. cd "$android_builddir"
    3. repo init -u https://github.com/nxp-imx/imx-manifest -b imx-android-13 -m imx-android-13.0.0_1.0.0.xml

    4. rc=$?
    5. if [ "$rc" != 0 ]; then
    6.     echo "---------------------------------------------------"
    7.     echo "-----Repo Init failure"
    8.     echo "---------------------------------------------------"
    9.     return 1
    10. fi

    11. 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'
    12. #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'

    13. retry=0
    14. max_retry=3

    15. repo sync
    16. while [ $retry -lt $max_retry -a $? -ne 0 ]; do
    17.     retry=$(($retry+1))
    18.     echo "Try repo sync $retry time(s)"
    19.     repo sync
    20. done

    21.       rc=$?
    22.       if [ "$rc" != 0 ]; then
    23.          echo "---------------------------------------------------"
    24.          echo "------Repo sync failure"
    25.          echo "---------------------------------------------------"
    26.          return 1
    27.       fi
    28.       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'
    29.       #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'
    复制代码
    但还是在从google获取源码,还是报错,是我修改的不对吗?还是有其它地方也要修改
    1. curl: (7) Failed to connect to android.googlesource.com port 443: \xe8\xbf\x9e\xe6\x8e\xa5\xe8\xb6\x85\xe6\x97\xb6\n'

    2. fatal: unable to access 'https://android.googlesource.com/platform/build/pesto/': Failed to connect to android.googlesource.com port 443: 连接超时
    复制代码



    我知道答案 目前已有0人回答
    该会员没有填写今日想说内容.
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-4-25 23:13 , Processed in 0.120353 second(s), 20 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表