ModusToolbox URL Modifier

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DREAMSCAPER
Level 3
Level 3
25 sign-ins First like given 10 sign-ins

ModusToolbox users may run into errors like “OpenSSL SSL_read: Software caused connection abort, errno 113” while running github.com-related git_clone/git_fetch in ModusToolbox. It means your connection to github.com is blocked for some reason.
ModusToolbox的用户在执行与github.com相关的git_clone/git_fetch等操作时,可能会遇到错误:“OpenSSL SSL_read: Software caused connection abort, errno 113”。这通常是因为你到github.com的连接被神秘力量屏蔽了的缘故。

In this case, you can turn to use some third-party repo_relaying servers, like ghproxy.com, to bypass the restrictions. Basically, you need to run the following GIT_config command to make it work in ModusToolbox:
这时你可以使用一些第三方的repo中继服务器(譬如mirror.ghproxy.com),来绕过这个限制。基本上,你需要运行如下这个GIT_config命令来使得这个中继服务器被ModusToolbox接受:

git config --system url."https://mirror.ghproxy.com/https://github.com".insteadOf https://github.com

The tool is designed to help you with that. It automatically locates your ModusToolbox and adds the value, and then handles the conflicting settings.
这个工具被设计用来帮助你完成这个工作。它会自动定位你的ModusToolbox并添加这个设置,然后处理与之相冲突的一些设定。

Click to download the tool [source]    (or directly use this link)  

Click to download the tool [mirror]    (password: mtbs)

Latest version / 最新版本:v0.1.7.5

Guide

  1. Download the latest release and unzip it wherever.
    下载最新的版本,然后随便找一个位置解压它。
  2. Run the file Install.cmd.
    运行Install.cmd这个文件。
  3. Reboot ModusToolbox and done.
    重启ModusToolbox,就可以了。
  4. Run the file Uninstall.cmd to remove the settings. You may uninstall the tool before you update it as well.
    运行Uninstall.cmd这个文件可以移除本工具造成的更改。更新本工具之前也最好先卸载。
  5. Try clear the cache of ModusToolbox first every time you encounter an error. A lot of git error stay once they occurred. Follow this link to do this.
    如果你遇到错误,请先清理缓存再进行下一步操作,每一次都是。因为很多git的错误如果发生了,那它们将一直残留,除非你清理过缓存。依照这个链接的提示来清理缓存。


Notes

  1. ghproxy.com is a third-party service that can be unstable.
    ghproxy.com是一个第三方的服务,它可能不够稳定。
  2. ghproxy.com is adopted in the tool but not part of the tool. Visit ghproxy.com for more info and support.
    ghproxy.com在本工具中被使用,但它不是本工具的一部分。访问 ghproxy.com 来获取更多信息,并支持它。
  3. Support ModusToolbox 2.x and hopefully later.
    兼容ModusToolbox 2.x和后续的版本(可能)。
  4. The tool only helps you restore accessibility to the GitHub content of ModusToolbox. If you need to use any other content of ModusToolbox (when the variable CyRemoteManifestsOverride is touched by you), you have to uninstall it first or you might see more issues coming.
    本工具只帮助你恢复对在GitHub上的ModusToolbox内容的访问。如果你需要使用在其他位置的ModusToolbox内容(此时你通常会修改CyRemoteManifestsOverride变量),你应先卸载本工具,不然你可能会遇到更多的问题。
  5. The tool is provided AS IS. There is NO WARRANTY.
    这个工具是照原样提供的。它不提供任何保证。
  6. Windows might prevent the scripts from executing. You might see some red warnings about the limit during the execution. Visit this link for lifting the limit.
    Windows可能会阻止本工具运行。运行本工具时你可能会看到一些关于此限制的红色警告信息。访问这里了解如何移除这个限制。

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

The tool above is for Windows only. When using Linux/macOS, it's better you add the configuration yourself:
上述工具只能在WIndows下使用。如果你使用的是Linux/macOS,更推荐你自行添加这些配置:

Open a terminal in Linux/macOS.
在Linux/macOS中打开一个命令行窗口。

Run the following command to add the git config in the terminal.
在该命令行窗口中运行下方命令添加这个git配置。

git config --global url."https://mirror.ghproxy.com/https://github.com".insteadOf https://github.com

Then add the environment variable CyRemoteManifestOverride to the system. For ModusToolbox 2.2 and later, set it to the following value:
然后添加环境变量CyRemoteManifestOverride到系统中。对于ModusToolbox 2.2或之后的版本,把该变量设成下方的值:

https://gitee.com/dreamscaperia/mtb-super-manifest/raw/master/mtb-super-manifest-fv2.xml

For ModusToolbox 2.1 and earlier, set it to the following value:
对于ModusToolbox 2.1或之前的版本,把该变量设成下方的值:

https://gitee.com/dreamscaperia/mtb-super-manifest/raw/master/mtb-super-manifest.xml

You can refer to KBA230953 for how to do it in Linux/macOS. And you may refer to this article for how to set it permanently in Linux.
你可以参考KBA230953来了解如何在Linux/macOS中设置环境变量。你还可以参考这个文章来了解如何在Linux中永久设置这个环境变量。

1 Reply
sunqian_dai
Level 1
Level 1
Distributor - Yuban(GC)
5 replies posted 10 sign-ins 5 sign-ins

Okay, the problem can be solved after using the attachment resource, thanks

0 Likes