news 2026/4/21 6:05:00

20260420给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时解决网络异常Your network is not able to access sources.buil

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
20260420给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时解决网络异常Your network is not able to access sources.buil

unset RK_NETWORK_CHECK
./build.sh # 或你原来的编译命令

20260420给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时解决网络异常Your network is not able to access sources.buildroot.net!
2026/4/20 20:23


缘起:解决编译错误


1、
Running 95-extra-parts.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Preparing extra partitions...
Running 97-ldcache.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Keep original /etc/ld.so.cache
Running 99-owner.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Running mk-rootfs.sh - build_buildroot /home/rootroot/git_RK3576_Linux6.1/output/buildroot/images succeeded.
Running mk-rootfs.sh - build_rootfs succeeded.
==========================================
Start building recovery(buildroot)
==========================================

Your network is not able to access sources.buildroot.net!
Please retry later (it could be down for a while) or setup a VPN to bypass the GFW.
Unset RK_NETWORK_CHECK in the SDK config to continue...

ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/scripts/mk-recovery.sh - build_hook failed!
ERROR: exit code 1 from line 29:
"$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_RECOVERY_CFG "$IMAGE_DIR"
ERROR: call stack:
mk-recovery.sh: build_hook(29)
mk-recovery.sh: main(51)
ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 24:
"$RK_SCRIPTS_DIR/mk-recovery.sh"
ERROR: call stack:
99-all.sh: build_all(24)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$


rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$ unset RK_NETWORK_CHECK
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$ ./build.sh


Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done

tune2fs 1.47.0 (5-Feb-2023)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Generated /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/oem.img
Done packing /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/oem.img
Preparing partiton userdata
Merging /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/extra-parts/userdata/normal into /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata
Packing /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img from /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.fs
Using host tools in /home/rootroot/git_RK3576_Linux6.1/buildroot/output/latest/host (except for mke2fs)
Making /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img from /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata (auto sized)
Start from 8M for ext4.
Making /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img from /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata with size(8192KB)
mke2fs 1.46.5 (30-Dec-2021)
Creating regular file /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img
Creating filesystem with 2048 4k blocks and 2048 inodes

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done

tune2fs 1.47.0 (5-Feb-2023)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Generated /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img
Done packing /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img
Packed /home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img without having userdata partition!
Running mk-extra-parts.sh - build_extra_part succeeded.
Packed files:
MiniLoaderAll.bin(/home/rootroot/git_RK3576_Linux6.1/u-boot/rk3576_spl_loader_v1.09.107.bin): 753K
boot.img(/home/rootroot/git_RK3576_Linux6.1/kernel-6.1/boot.img): 40M
misc.img(/home/rootroot/git_RK3576_Linux6.1/output/misc.img): 48K
oem.img(/home/rootroot/git_RK3576_Linux6.1/output/extra-parts/oem.img): 18M
parameter.txt(/home/rootroot/git_RK3576_Linux6.1/device/rockchip/.chips/rk3576/parameter.txt): 508
recovery.img(/home/rootroot/git_RK3576_Linux6.1/output/recovery/ramboot.img): 49M
rootfs.img(/home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/images/rootfs.ext2): 867M
uboot.img(/home/rootroot/git_RK3576_Linux6.1/u-boot/uboot.img): 4.0M
userdata.img(/home/rootroot/git_RK3576_Linux6.1/output/extra-parts/userdata.img): 8.0M
Making update image...
==========================================
Start packing update image
==========================================
Generating package-file for update:
# NAME PATH
package-file package-file
parameter parameter.txt
bootloader MiniLoaderAll.bin
uboot uboot.img
misc misc.img
boot boot.img
recovery recovery.img
backup RESERVED
oem oem.img
rootfs rootfs.img
Packing /home/rootroot/git_RK3576_Linux6.1/output/firmware/update.img for update...
Android Firmware Package Tool v2.29
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0xcb,userspace=0x1
Add file: ./parameter.txt
parameter,Add file: ./parameter.txt done,offset=0x1000,size=0x208,userspace=0x1,flash_address=0x00000000
Add file: ./MiniLoaderAll.bin
bootloader,Add file: ./MiniLoaderAll.bin done,offset=0x1800,size=0xbc1f9,userspace=0x179
Add file: ./uboot.img
uboot,Add file: ./uboot.img done,offset=0xbe000,size=0x400000,userspace=0x800,flash_address=0x00004000
Add file: ./misc.img
misc,Add file: ./misc.img done,offset=0x4be000,size=0xc000,userspace=0x18,flash_address=0x00006000
Add file: ./boot.img
boot,Add file: ./boot.img done,offset=0x4ca000,size=0x27e9e00,userspace=0x4fd4,flash_address=0x00008000
Add file: ./recovery.img
recovery,Add file: ./recovery.img done,offset=0x2cb4000,size=0x30c2000,userspace=0x6184,flash_address=0x00028000
Add file: ./oem.img
oem,Add file: ./oem.img done,offset=0x5d76000,size=0x11ef000,userspace=0x23de,flash_address=0x000f8000
Add file: ./rootfs.img
rootfs,Add file: ./rootfs.img done,offset=0x6f65000,size=0x36300000,userspace=0x6c600,flash_address=0x00138000
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.29********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!

Run 'make edit-package-file' if you want to change the package-file.

Running mk-updateimg.sh - build_updateimg succeeded.
Images under /home/rootroot/git_RK3576_Linux6.1/output/firmware/ are ready!
Running mk-firmware.sh - build_firmware succeeded.
Running 99-all.sh - build_all succeeded.
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$ ./build.sh


2、问DeepSeek:

RK3576的buildroot编译错误:

Running 95-extra-parts.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Preparing extra partitions...
Running 97-ldcache.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Keep original /etc/ld.so.cache
Running 99-owner.sh for /home/rootroot/git_RK3576_Linux6.1/buildroot/output/rockchip_rk3576/target (buildroot init=busybox)...
Running mk-rootfs.sh - build_buildroot /home/rootroot/git_RK3576_Linux6.1/output/buildroot/images succeeded.
Running mk-rootfs.sh - build_rootfs succeeded.
==========================================
Start building recovery(buildroot)
==========================================

Your network is not able to access sources.buildroot.net!
Please retry later (it could be down for a while) or setup a VPN to bypass the GFW.
Unset RK_NETWORK_CHECK in the SDK config to continue...

ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/scripts/mk-recovery.sh - build_hook failed!
ERROR: exit code 1 from line 29:
"$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_RECOVERY_CFG "$IMAGE_DIR"
ERROR: call stack:
mk-recovery.sh: build_hook(29)
mk-recovery.sh: main(51)
ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 24:
"$RK_SCRIPTS_DIR/mk-recovery.sh"
ERROR: call stack:
99-all.sh: build_all(24)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /home/rootroot/git_RK3576_Linux6.1/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/git_RK3576_Linux6.1$
用户遇到了Rockchip RK3576的Buildroot编译错误,错误信息显示网络无法访问 sources.buildroot.net,导致构建失败。用户可能想知道如何解决这个问题。为了全面获取信息,我们需要同时进行多项搜索,涵盖不同的关键词和可能的解决方案。

搜索到 53 个网页
搜索结果显示了一些相关的页面。为了全面了解问题并找到解决方案,我们需要同时打开这些页面。

浏览 6 个页面
Lyra Ubuntu SDK
Luckfox-Lyra SDK system building issue with buildroot downloading
Luckfox Forums
Luckfox Forums
初次编译rk3568(rk3576)Linux 6.1内核踩坑记录:从报错终止到成功解决的完整流程
查看全部
这些搜索结果显示了与用户相同的问题。有几个相关的页面:一个来自 Luckfox 论坛的帖子,提到了同样的错误,并提供了一个绕过网络检查的解决方法。另一个结果提供了关于修改 check-network.sh 脚本的详细信息。还有一个结果提到了使用预下载的 dl.tar.gz 包来避免网络问题。另外,还有一个结果提供了一般的编译问题排查步骤。为了全面了解这些解决方案,我们需要同时打开这些相关的页面。

浏览 2 个页面
Luckfox-Lyra SDK system building issue with buildroot downloading
初次编译rk3568(rk3576)Linux 6.1内核踩坑记录:从报错终止到成功解决的完整流程
搜索结果中提供了几种解决方案。我的回答将涵盖:快速绕过检查、替换Buildroot源码包、使用完整源码包、以及通用网络排查方法。回答会以中文呈现,并引用相关来源。

从你提供的日志来看,编译失败的核心原因是网络连接问题。

buildroot 在编译时需要从 sources.buildroot.net 下载一些依赖包,但由于网络限制,你的环境无法访问这个地址,最终导致 recovery 分区的构建过程失败。下面是几种解决方法。

? 快速绕过:禁用 SDK 网络检查
这是最快的方法。根据日志中的提示,可以通过禁用 SDK 的网络检查来跳过这个步骤。

操作方法:在 SDK 的配置文件中,取消设置 RK_NETWORK_CHECK。根据 Luckfox 社区的经验,你也可以在检查网络状态的脚本 check-network.sh 中直接让它返回 0(表示成功)来绕过检查。

?? 离线构建:手动替换 Buildroot 源码包
如果跳过检查后仍因网络问题导致下载失败,可以提前准备所有必需的源码包。

操作方法:在其他网络畅通的环境中,从 sources.buildroot.net 下载所有必要的软件包(即 .tar.gz 等文件),然后拷贝到你 SDK 中的 buildroot/dl/ 目录下。这样,buildroot 在构建时就会直接使用这些本地文件,无需联网下载。

?? 终极方案:使用完整的 SDK 源码包
一些 Rockchip 的开发板厂商会提供预下载了所有依赖项的完整 SDK 压缩包。

操作方法:检查你的产品资料中,是否有 dl.tar.gz 这样的文件。这个压缩包存放了 Buildroot 编译所需的各种开源软件包。如果有,请将它解压到 SDK 的 buildroot/ 目录下即可。

?? 通用网络排查方法
如果上述方案都不适用,可以检查一下基础的网络配置:

检查防火墙/代理:确保防火墙、VPN 或代理没有屏蔽对 sources.buildroot.net 的访问。

手动测试访问:在终端中使用 curl -I http://sources.buildroot.net 命令测试是否能正常访问。

更换 DNS 服务器:尝试将系统的 DNS 服务器改为公共 DNS,如 8.8.8.8 或 114.114.114.114。

?? 总结与建议
简单总结一下,解决这个问题的思路可以按照以下顺序尝试:

首选:在 SDK 配置中取消 RK_NETWORK_CHECK 的设置,这是最快的解决办法。

备选:如果 SDK 本身提供了 dl.tar.gz 离线包,直接使用它是最彻底的。

手动方案:从 sources.buildroot.net 手动下载缺少的源码包并放入 buildroot/dl/ 目录。

最后检查:确认你的网络环境没有限制,能正常访问外网资源。

希望这些步骤能帮助你顺利解决编译问题。如果还有其他疑问,随时可以继续交流。

本回答由 AI 生成,内容仅供参考,请仔细甄别。
请问如何使用unset跳过网络监察
我们被问到“请问如何使用unset跳过网络监察”。根据之前的对话,用户遇到了RK3576 buildroot编译错误,原因是网络无法访问sources.buildroot.net,日志中提示“Unset RK_NETWORK_CHECK in the SDK config to continue...”。用户现在问如何使用unset跳过网络监察。

需要解释在SDK配置中如何取消设置RK_NETWORK_CHECK变量。可能的方法:在命令行中unset环境变量,或者修改配置文件。需要具体说明。

注意用户使用的环境是Rockchip Linux SDK,路径为/home/rootroot/git_RK3576_Linux6.1/。通常SDK有一个配置文件或者可以通过脚本设置环境变量。

回答应提供步骤:找到设置RK_NETWORK_CHECK的地方(可能在device/rockchip/.BoardConfig.mk或sdk的config脚本),然后取消定义。或者直接在命令行执行unset RK_NETWORK_CHECK再运行编译。或者修改脚本使其不检查。

提供清晰的操作指南。

要跳过 RK_NETWORK_CHECK 的网络检查,核心思路是确保该环境变量没有被设置(即值为空)或者让检查脚本直接返回成功。下面是几种具体的操作方法,你可以根据自己的需求选择。

方法一:在命令行中临时 unset(最简单)
每次编译前,在终端中执行 unset RK_NETWORK_CHECK,然后继续运行编译命令。例如:

bash
unset RK_NETWORK_CHECK
./build.sh # 或你原来的编译命令
注意:这个方法只对当前终端会话有效,如果你关闭终端或打开新终端,需要重新执行 unset。

方法二:修改 SDK 的配置文件(永久生效)
Rockchip SDK 通常会在 device/rockchip/.BoardConfig.mk 或 device/rockchip/rk3576/BoardConfig.mk 中定义 RK_NETWORK_CHECK。你可以找到并注释或删除该行。

进入 SDK 根目录:

bash
cd /home/rootroot/git_RK3576_Linux6.1
查找定义 RK_NETWORK_CHECK 的文件:

bash
grep -r "RK_NETWORK_CHECK" device/rockchip/
编辑对应的配置文件(例如 BoardConfig.mk),将类似下面的行:

makefile
export RK_NETWORK_CHECK := true
改为:

makefile
# export RK_NETWORK_CHECK := true # 注释掉
或者直接赋值为空:

makefile
export RK_NETWORK_CHECK :=
重新加载配置(通常执行 source build/envsetup.sh 或重新打开终端)。

方法三:修改网络检查脚本,让它总是返回成功
SDK 中通常会有一个脚本用于检查网络,比如 device/rockchip/common/scripts/check-network.sh。你可以修改它,在脚本开头直接返回 0:

bash
# 在 check-network.sh 的第一行(shebang 之后)添加:
return 0 # 或者 exit 0
注意:这种做法会完全跳过所有网络检查,如果你后续需要联网下载其他组件,可能会遇到隐藏的问题。建议仅作为临时方案。

方法四:使用环境变量覆盖(适用于 Buildroot 独立编译)
如果你直接调用 Buildroot 的 make 命令(不通过 SDK 的封装脚本),可以在命令行中临时设置变量为空:

bash
RK_NETWORK_CHECK= make
注意等号后面不要写任何值,这样变量会被赋值为空字符串,效果等同于未设置。

验证是否已跳过检查
执行上述任一方法后,重新运行编译命令。如果不再出现类似 Your network is not able to access sources.buildroot.net 的错误,说明已成功跳过。如果仍然报错,可以尝试在编译命令前加上 set -x 来查看脚本执行过程,定位具体是哪里还在检查。

补充说明
为什么不直接删除检查:RK_NETWORK_CHECK 是 Rockchip SDK 用来防止因网络问题导致编译失败的辅助功能。跳过它后,如果 Buildroot 在后续步骤中确实需要联网下载源码包,而你的网络仍然不通,编译仍会失败。那时你就需要采用离线包方案(将提前下载好的源码包放入 buildroot/dl/)。

推荐做法:先使用方法一或二跳过检查,如果编译过程中因下载源码包失败,再参考我上一次回答中的“离线构建”方法。

如果还有不清楚的地方,欢迎继续提问。

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/21 5:59:24

在Windows电脑上运行iOS应用:ipasim模拟器完全指南

在Windows电脑上运行iOS应用:ipasim模拟器完全指南 【免费下载链接】ipasim iOS emulator for Windows 项目地址: https://gitcode.com/gh_mirrors/ip/ipasim 你是否曾希望在Windows电脑上体验iOS应用?现在,通过ipasim这个开源项目&am…

作者头像 李华
网站建设 2026/4/21 5:55:58

conda下载python老是404下载失败

最简单的方法:在c盘用户下可以找见这个文件,找不见可以直接用everthing搜:里面内容是如下(就说明找对了):将内容改为如下,然后保存:channels:- conda-forge- defaults channel_prior…

作者头像 李华
网站建设 2026/4/21 5:51:17

EVA-01保姆级教程:qwen-vl-utils图像预处理与NERV格式标准化方法

EVA-01保姆级教程:qwen-vl-utils图像预处理与NERV格式标准化方法 1. 引言:为什么你的图片需要“同步率校准”? 想象一下,你是一位NERV的指挥官,面前是一块来自使徒的复杂战术图。你把它直接塞进初号机的驾驶舱&#…

作者头像 李华