Can mkdosfs create bootable FAT like file system on linux? I don't know if mkfs.fat can create bootable a FAT file-system, but the man page says that can't. The plan is to create a small basic kernel with bootable FAT 12.
The man page says for mkfs.fat: mkfs.fat can not create boot-able filesystems. This isn't as easy as you might think at first glance for various reasons and has been discussed a lot already. mkfs.fat simply will not support it ;)
The options passed to format a bootable floppy:
mkdosfs -v -f 2 -F 12 -r 128 /dev/fd0