Hello All,
I guess i have found out a way. Now yocto is not supporting .u-boot format for filesystem compilation.
The yocto now is supporting following image fstypes by default.
jffs2
jffs2.sum
cramfs
ext2
ext2.gz
ext2.bz2
ext3
ext3.gz
ext2.lzma
btrfs
live
squashfs
squashfs-xz
ubi
ubifs
tar
tar.gz
tar.bz2
tar.xz
cpio
cpio.gz
cpio.xz
cpio.lzma
vmdk
elf
So what i did was,
1. First i compiled with option ext3 and ext3.gz in local.conf.
IMAGE_FSTYPES += "ext3 ext3.gz "
Then, i used below command to get what i wanted.
2. Do bitbake again.
bitbake core-image-minimal // Now the image is of ext3.gz format
3. Now
cd tmp/deploy/images/imx6qsabresd/
4. Run the below command to generate ramdisk image.
mkimage -A arm -O linux -T ramdisk -C gzip -n core-image-minimal -d core-image-minimal-imx6qsabresd-XXXX.rootfs.ext3.gz core-image-minimal-imx6qsabresd-XXXXX.rootfs.ext3.gz.u-boot
Here core-image-minimal is the name of the RAMDISK image.
NOTE: MAKE SURE "mkimage" is there on UBUNTU else run
sudo apt-get install u-boot-tools
To burn ramdisk
dd if=ramdiskimageXXX.uboot of=/dev/mmcblk0 bs=10M seek=1
Bootargs to boot from RAMDISK
U-Boot > setenv bootargs 'root=/dev/ram rw ramdisk_size=13239 console=ttymxc0,115200'
U-Boot > setenv bootcmd 'mmc dev 1;fatload mmc 1 0x12000000 uImage;fatload mmc 1 0x18000000 imx6q-magik2.dtb; mmc read 0x20000000 0x5000 0x2200;bootm 0x12000000 0x20000000 0x18000000'
U-Boot > boot
Thanks all,