Reputation: 485
I want to create am minimal Linux system. I have compiled the kernel myself, but I want to use Yocto to build my rootfs. How can I build the smallest possible rootfs to startup and system and open a shell without building the kernel? Also, how can I choose the type of rootfs? I'd like it to be initramfs so I can then embed it in my kernel image.
Upvotes: 1
Views: 1836
Reputation: 1
In my case at Styhead yocto version, I add this line to local.conf
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
And add COMPATIBLE_MACHINE in .bb file, for example I will go for core-image-minimal and my machine is qemuaarch
At core-image-minimal.bb
COMPATIBLE_MACHINE:qemuaarch = "(qemuaarch)"
COMPATIBLE_MACHINE = "^(aarch64|qemuaarch)$"
Then I can build without building Kernel
Upvotes: 0
Reputation: 14607
Without more details both questions would require very long answers. Luckily the Development Manual covers the issues: See Building a tiny system and Building an initramfs image. I would suggest starting with those and asking more specific questions if needed.
Upvotes: 4