[英]Configuring initramfs with buildroot and uboot
I am attempting to get initramfs working on an embedded linux device using buildroot and uboot. 我试图让initramfs使用buildroot和uboot在嵌入式Linux设备上工作。 I have been following the guides have have initramfs set up in the buildroot and kernel config.
我一直在遵循指南,在buildroot和内核配置中设置了initramfs。 However as far as I can tell it is not being built into the kernel, although a CPIO or the root FS is being included in the output.
但是据我所知,尽管输出中包含了CPIO或根FS,但它并未内置在内核中。
My questions is twofold. 我的问题是双重的。 First, from a high level standpoint, is my understanding of the boot process correct?
首先,从较高的角度来看,我对引导过程的理解正确吗?
This means the image I flash onto the chip is an IMG with a boot and system partition, the system partition is ext4 and contains the CPIO archive within. 这意味着我刷新到芯片上的映像是具有引导和系统分区的IMG,系统分区是ext4,并且其中包含CPIO存档。 I am not sure how to make item 3 actually happen from here.
我不确定如何使第3项实际上从这里发生。
Second, in terms of actual configurations, the Buildroot menuconfig has a number of options for filesystems 其次,在实际配置方面,Buildroot菜单配置具有许多文件系统选项
Then in the kernel config 然后在内核配置中
What is buildroot generating here? 这里的buildroot是什么? From my end it looks like I am getting duplicate images (CPIO and ext4) and the CPIO is being ignored.
从我的角度来看,好像我正在获得重复的图像(CPIO和ext4),并且CPIO被忽略了。
For people who may have the same question, the best way forward is to become more familiar with uboot and it's options. 对于可能有相同问题的人,最好的解决方法是更加熟悉uboot及其选项。 In particular the role uboot-env.txt plays in the process.
特别是uboot-env.txt在此过程中扮演的角色。
My understanding of buildroot was wrong. 我对buildroot的理解是错误的。 The process is
这个过程是
This may be of interest if the process is confusing to you. 这可能会感兴趣如果这个过程是混乱给你。
Here is what the system was doing 这是系统正在做的
Better understanding the process and components I was able to restructure my img file and use the bootloader to load the kernel that was built with the cpio. 更好地了解过程和组件之后,我能够重组img文件并使用引导加载程序来加载使用cpio构建的内核。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.