是否可以将当前的 Buildroot 用于 Raspberry Pi 2

Is it possible to use current Buildroot for Raspberry Pi 2

http://git.buildroot.net/buildroot/tree/board/raspberrypi/readme.txt 陈述如下——最后一行是有趣的:

The raspberrypi_defconfig configuration is a minimal configuration with all that is required to bring the Raspberry Pi up. You should base your work on this defconfig:

$ make raspberrypi_defconfig

Alternatively, if you want to test support for the Device Tree:

$ make raspberrypi_dt_defconfig

For Raspberry Pi 2 use a different defconfig:

$ make raspberrypi2_defconfig

raspberrypi2_defconfig 在 Raspberry Pi 2 上使用 buildroot 是必需的,还是它只包含 RPi2 优化?我问的原因是我在最新稳定版本的 Buildroot 中找不到该配置,而当前 git 版本使用

中止构建
"HTTP request sent, awaiting response... 404: Not Found"

====================================

第二次构建 crasch 后的控制台打印输出:

make[1]: Leaving directory `/home/fredrik/buildroot/output/build/host-lzop-1.03'
>>> linux 2c4959b772a35d9d459b0a92f39bb066e9a44d37 Downloading
Doing shallow clone
Cloning into bare repository 'linux-2c4959b772a35d9d459b0a92f39bb066e9a44d37'...
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-BVQjKJ/pkcs11: No such file or directory
POST git-upload-pack (gzip 1077 to 570 bytes)
POST git-upload-pack (gzip 1086 to 577 bytes)
remote: Counting objects: 223619, done.
remote: Compressing objects: 100% (141382/141382), done.
remote: Total 223619 (delta 145491), reused 134621 (delta 80295), pack-reused 0
Receiving objects: 100% (223619/223619), 271.86 MiB | 1.80 MiB/s, done.
Resolving deltas: 100% (145491/145491), done.
warning: Remote branch 2c4959b772a35d9d459b0a92f39bb066e9a44d37 not found in upstream origin, using HEAD instead
fatal: not a tree object
--2015-04-13 00:26:38--  http://sources.buildroot.net/linux-2c4959b772a35d9d459b0a92f39bb066e9a44d37.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
Connecting to sources.buildroot.net (sources.buildroot.net)|176.9.16.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-13 00:26:38 ERROR 404: Not Found.

make: *** [/home/fredrik/buildroot/output/build/linux-2c4959b772a35d9d459b0a92f39bb066e9a44d37/.stamp_downloaded] Error 1

这不是强制性的,但它是一个预构建的配置,可确保您拥有一个正常工作的系统。

粘贴错误时,请包含更多行(如50-100行),因为真正的错误不是这个404。它更早,在RPi内核中找不到的事实Git存储我们正在寻找的提交。使用最新的 Buildroot 再试一次,我想我们已经用更新的 RPi 内核提交更新了 raspberrypi2_defconfig。

问题是 RPi 内核 git 存储库经常根据 linux-稳定内核重新设置基础,这意味着 buildroot 引用的提交不再可访问。

解决方案是使用 RPi 内核 git 存储库中的稳定分支,其中不进行变基。这是由 this patch.

完成的