For my older pies I found https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/ great. But this is arm assembly territory. I believe subsequent generations of pi have had good tutorials. OS, of course, is a very large, encompassing term. What is a minimal OS?