Regarding FreeDOS, please get information from the following websites.

Source code         : http://www.freedos.org
License information : http://www.freedos.org
Modified version    : http://download.cyberlink.com/ftpdload/others/BOOTIMG_src.zip