when i add below in machine conf file. # image size of ext2 rootfs IMAGE_ROOTFS_SIZE_ext2 = "24576" IMAGE_EXTRA_SPACE_ext2 = "1024" the image generated is as large as 65536KB. but when # image size of ext2 rootfs IMAGE_ROOTFS_SIZE = "24576" IMAGE_EXTRA_SPACE = "1024" is added the file should be about 24576KB. IMAGE_FSTYPES ?= "ext2" this was included. i think it would be a bug. but i test EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x4000 --pad -n" that would work perfectly.
The reason is when IMAGE_ROOTFS_SIZE is referenced IMAGE_FSTYPES is not set in overrides (get_imagecmds and do_rootfs). Since this is a low priority bug, I may bake a fix later
This was fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=adac5a690fd5b4239bb59ec54e3e5174dbcf29e9