build icon indicating copy to clipboard operation
build copied to clipboard

"linux-firmware.git" Download item Mainland China address

Open TelDragon opened this issue 4 years ago • 4 comments

Optional parameters

USE_MAINLINE_GOOGLE_MIRROR=""

Only Google and source address. Suggest to add tuna: use mirror provided by Tsinghua University

“https://mirrors.tuna.tsinghua.edu.cn/git/linux-firmware.git”

For users in mainland China, Google is blocked

Project script
lib/compilation.sh for 475

compile_firmware() 
 { 
 display_alert "Merging and packaging linux firmware" "@host" "info" 
 if [[ $USE_MAINLINE_GOOGLE_MIRROR == yes ]]; then 
 plugin_repo="https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git" 
 else 
 plugin_repo="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git" 
 fi 

Speed after modification

[ .... ] Remote URL does not match, removing existing local copy 
[ .... ] Creating local copy 
[ .... ] Fetching updates 
remote: Counting objects: 2210, done.
remote: Compressing objects: 100% (1479/1479), done.
remote: Total 2210 (delta 805), reused 1989 (delta 678)
Receiving objects: 100% (2210/2210), 188.44 MiB | 9.49 MiB/s, done.
Resolving deltas: 100% (805/805), done.
From https://mirrors.tuna.tsinghua.edu.cn/git/linux-firmware
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
[ .... ] Checking out 

TelDragon avatar Oct 22 '20 03:10 TelDragon

Did a test build with

./compile.sh docker BOARD=radxa-zero BRANCH=current RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no DOWNLOAD_MIRROR=china MAINLINE_MIRROR=tuna UBOOT_MIRROR=gitee GITHUB_MIRROR=fastgit

and got working image. The last 2 options are my custom mirror options unrelated to MAINLINE_MIRROR.

RadxaYuntian avatar Dec 08 '21 02:12 RadxaYuntian

may be clone to gitee ,maybe fail. lots of these proble because of this.

qiurui144 avatar May 23 '22 08:05 qiurui144

Are there more reliable Github mirrors?

igorpecovnik avatar May 23 '22 11:05 igorpecovnik

can not be equal to github, so when i debug, also have this proble sometimes.

qiurui144 avatar May 24 '22 01:05 qiurui144

Closing. Seems its an random network issue.

igorpecovnik avatar Sep 13 '22 13:09 igorpecovnik