You are in over your head if you are asking these questions. An OS isnt one thing. It is many many things working together so asking how to build one is a bit like asking how to build a city.but how can we make os for embedded systems any process details books and softwares?