fixed typo error for sprintf
Added #include <sys/types.h> for completeness and better cross-compiling support
Fixed error reporting to report if fs_open returning negative values.
Fixed Logic Error and Section Name Typo for linker file which causes romfs fail to be read.