In this video I explain what are boot files and what is their purpose. The raspberry pi when it starts up loads these files. This video should give you a overview about these boot files.
All the source code can be downloaded from https://everythingembedded.gumroad.com/