As you've already been told, and for a more in depth/quick process you can try this
About the device sources, if there's none in GitHub then you'll have to try looking for a device that has similar hardware as yours (the soc and architecture, camera, display etc.) And try to make necessary...