【问题标题】:Buildroot seems to not get a response from source urlsBuildroot 似乎没有从源 URL 得到响应
【发布时间】:2019-09-04 05:34:33
【问题描述】:

我正在尝试使用 Buildroot 构建 Beaglebone 映像。在此过程中,构建停止,我得到了这个:

>>> linux-headers  Downloading
--2019-04-13 11:35:44--  https://cdn.kernel.org/pub/linux/kernel/v.x/linux-.tar.xz
Resolving cdn.kernel.org (cdn.kernel.org)... 151.101.25.176, 2a04:4e42:6::432
Connecting to cdn.kernel.org (cdn.kernel.org)|151.101.25.176|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-13 11:35:44 ERROR 404: Not Found.

--2019-04-13 11:35:45--  http://sources.buildroot.net/linux/linux-.tar.xz
Resolving sources.buildroot.net (sources.buildroot.net)... 104.25.210.19, 104.25.211.19, 2606:4700:20::6819:d313, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|104.25.210.19|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-13 11:35:45 ERROR 404: Not Found.

--2019-04-13 11:35:45--  http://sources.buildroot.net/linux-.tar.xz
Resolving sources.buildroot.net (sources.buildroot.net)... 104.25.210.19, 104.25.211.19, 2606:4700:20::6819:d213, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|104.25.210.19|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-13 11:35:45 ERROR 404: Not Found.

package/pkg-generic.mk:143: recipe for target '/home/bdn/buildroot-2019.02.1/output/build/linux-headers/.stamp_downloaded' failed
make[1]: *** [/home/bdn/buildroot-2019.02.1/output/build/linux-headers/.stamp_downloaded] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

我不知道如何修复/更新这些。有什么线索吗?

【问题讨论】:

    标签: linux embedded-linux buildroot


    【解决方案1】:

    这是我们的上游 beaglebone_defconfig 还是你改变了什么?使用上游 defconfig,内核头文件被配置为使用从 git.ti.com 获取的内核源代码,但上面看起来像 Buildroot 尝试下载主线内核头文件的 tarball(但版本字段为空)。

    在这里查看 2019.02.1:

    make beaglebone_defconfig && make linux-headers
    ..
    >>> linux-headers 4796173fc58688055a99a1cef19a839174067220 Downloading
    Fetching all references
    remote: Counting objects: 2298744
    

    【讨论】:

    • 因为我在我的 Beaglebone 上使用了 TI-Linux 内核,所以 TI 在工具文件夹中提供了一个脚本来使用 preempt_rt 补丁升级内核,这是我构建 TI-Linux 的预期目标source 然后用 preempt_rt 补丁打补丁。
    • 我也遇到了这个问题。我正在使用LINUX_OVERRIDE_SRCDIR 提供一个自定义内核树,其中已经应用了 rt 补丁。然而make sourcemake legal-info 导致>>> linux-headers Downloading 完全如图所示失败。
    【解决方案2】:

    版本信息应该在某处丢失,您正在尝试在https://cdn.kernel.org/pub/linux/kernel/v.x/下载

    看这里https://cdn.kernel.org/pub/linux/kernel/,应该是/v4.x、/v5.x 或者你想使用的任何版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多