Can we build initramfs for apalis imx6 using BSP 2.6.1?

Hi, I am trying to build initramfs using the instruction from http://developer.toradex.com/knowledge-base/initramfs-and-tmpfs but I end up with errors.

build@build:~/production/oe-core2.6.1/build$ bitbake -v core-image-minimal-initramfs
Loading cache: 100% |##################################################################################| ETA:  00:00:00
Loaded 3311 entries from dependency cache.
WARNING: No bb files matched BBFILE_PATTERN_bitbake-npm-layer '^/home/build/production/oe-core2.6.1/build/../build/workspace/recipes/bitbake-npm/'
NOTE: Resolving any missing task queue dependencies
NOTE: selecting pigz-native to satisfy gzip-native due to PREFERRED_PROVIDERS
NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to PREFERRED_PROVIDERS
NOTE: selecting linux-toradex to satisfy virtual/kernel due to PREFERRED_PROVIDERS
NOTE: selecting opkg-native to satisfy opkg-native due to PREFERRED_PROVIDERS
NOTE: selecting opkg-utils-native to satisfy virtual/update-alternatives-native due to PREFERRED_PROVIDERS
ERROR: Nothing RPROVIDES 'initramfs-live-install' (but /home/build/production/oe-core2.6.1/build/../layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb RDEPENDS on or otherwise requires it)
ERROR: initramfs-live-install was skipped: incompatible with host arm-angstrom-linux-gnueabi (not in COMPATIBLE_HOST)
NOTE: Runtime target 'initramfs-live-install' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['initramfs-live-install']
NOTE: Target 'core-image-minimal-initramfs' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['core-image-minimal-initramfs', 'initramfs-live-install']
ERROR: Required build target 'core-image-minimal-initramfs' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal-initramfs', 'initramfs-live-install']

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
build@build:~/production/oe-core2.6.1/build$

So I found a patch to include host in …/layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb

Use the same restriction as initramfs-live-install

COMPATIBLE_HOST = "(i.86|x86_64).*-linux"

And then, it throws new error as in the following,

NOTE: selecting linux-toradex to satisfy virtual/kernel due to PREFERRED_PROVIDERS
NOTE: selecting opkg-native to satisfy opkg-native due to PREFERRED_PROVIDERS
NOTE: selecting opkg-utils-native to satisfy virtual/update-alternatives-native due to PREFERRED_PROVIDERS
ERROR: Nothing PROVIDES 'core-image-minimal-initramfs'
ERROR: core-image-minimal-initramfs was skipped: incompatible with host arm-angstrom-linux-gnueabi (not in COMPATIBLE_HOST)
NOTE: Target 'core-image-minimal-initramfs' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['core-image-minimal-initramfs']
NOTE: Target 'angstrom-lxde-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['angstrom-lxde-image', 'core-image-minimal-initramfs']
ERROR: Required build target 'angstrom-lxde-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['angstrom-lxde-image', 'core-image-minimal-initramfs']

Summary: There were 31 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Any idea?

Regards,
Manickaraj

Finally, I got an initramfs (initramfs-debug-image-apalis-imx6.cpio.gz) using “initramfs-debug-image” recipe.

Thank you for providing your solution, worked for me too!