I have few questions about rootfs and Petalinux.
I recently tried to use Petalinux to build only rootfs, because I already has all other components. So I:
- created new project (petalinux-create <args>),
- configured it (petalinux-configure)
- built with command petalinux-built -c rootfs
I expected it to generate initramfs image, because this is default option. But unfortunately it just generated file system to {projectdir}/build/linux/rootfs/targetroot, and didn't generate cpio archive. Can someone explain why? Same thing happened, when I changed rootfs type to initrd. Cpio archive was only generated, when I built whole project again, including kernel, which takes time. So is it a way to build rootfs image without building whole project?
Another question: what type of rootfs should I use? In Xiinx wiki they said, that Zynq uses initramfs since Vivado 2013.1, but on same page there is initrd rottfs for zynq as an example. In Zynq 2016.1 release (LINK) it says, that rootfs is initramfs, so I suppose it is correct one, but as far as I know, initramfs is usually built into kernel. Could someone comment on this?