The make command build all targets
您不希望这样做(直到配置Buildroot).
首先需要通过指定目标板来配置Buildroot.
根据manual,您可以从头开始,或者为您的AT91SAM9X25板创建一个Buildroot配置文件,该板来自类似的板,例如configs/at91sam9g20dfc_defconfig
除了Buildroot配置文件,您还需要一个Linux内核配置文件(除非您想尝试从头开始配置内核).
带有AT91SAM9x5的Atmel评估板的内核配置文件是at91sam9x5ek_defconfig
您还应阅读第3.4.2节.创建自己的板支持
So the first my question is: Is there some way to remake rootfs without building toolchain? It takes a lot of time.
答案取决于您如何定义“重制rootfs”.
如果删除目录output / images /,则会重写rootfs的文件.
如果删除output / build /中的目录,则会从源代码重新编译这些包或子系统.
如果将Buildroot配置为使用自己的工具链或外部工具链,则make clean不会删除它们.如果您将Buildroot配置为安装它在其目录之外构建的工具链,那么它可能会在make clean期间不管它.
当然,Buildroot make足够聪明,可以知道自上次构建以来发生了哪些变化以及必须重新编译的内容.
在极少数情况下,您需要删除output / build /中的目录以强制重新编译.
So the second question is: How to build linux within buildroot if I want to use Initial RAM filesystem?
您需要正确配置Buildroot和Linux内核.
make menuconfig
Filesystem images --->
make linux-menuconfig
General setup --->
make
有关使用Buildroot for AT91SAM9x5的更简明信息是this Linx4SAM page
Possibly are there more efficient alternatives than buildroot?
还有其他工具,如Open Embedded,但将其描述为“更有效”是主观的.
附录
how to rebuild rootfs in buildroot
要强制重建rootfs(在本例中为initramfs),请删除output / build / linux-x.xx.xx目录中的三个隐藏文件
.stamp_images_installed
.stamp_initramfs_rebuilt
.stamp_target_installed
1万+




被折叠的 条评论
为什么被折叠?



