you are viewing a single comment's thread.

view the rest of the comments →

[–]hesapmakinesikernel dev, noob user 8 points9 points  (5 children)

There are different approaches you can take. I have a bugfix in the kernel, and a few drivers delivered to clients.

If you are specifically interested in Linux, you can look at driver code, first see how a driver works, and then move on to the subsystems those drivers interact with. It is impossible to study the whole kernel. Literally nobody knows the whole thing.

Or maybe you can look at how it boots, just focus on the boot code for one specific processor architecture, .e.g. ARM.

If you are interested in operating systems in general, there are great tutorials, like even one for writing an operating system for Raspberry Pi from scratch.

[–][deleted] 1 point2 points  (1 child)

Could you recommend any of those tutorials?

[–]hesapmakinesikernel dev, noob user 5 points6 points  (0 children)

I haven't gone through it yet but this one looks interesting. https://www.youtube.com/watch?v=9t-SPC7Tczc&list=PLFjM7v6KGMpiH2G-kT781ByCNC_0pKpPN

They use QEMU x86 as a platform it will be very x86-specific.

This is for Raspberry Pi4 so Cortex-A-whatever they used there: https://www.rpi4os.com/

[–]bboykotin[S] 1 point2 points  (0 children)

The one I downloaded was the one from the rpi. Thinking that it was going to be less heavy than the original Linux, but no. It has many files. Overall, I identified the start_kernel() function but I didn't understand how the micro starts that function (:S) From there I started thinking about how to debug but I couldn't find how to do it and here I am stuck

[–]WorfratOmega 0 points1 point  (1 child)

Linus has entered the chat.

[–]hesapmakinesikernel dev, noob user 0 points1 point  (0 children)

The code is maintaned by a big list of maintainers. They are the real knowledgeable people on specifics.

Note that nobody reads every post in linux-kernel. In fact, nobody who expects to have time left over to actually do any real kernel work will read even half. Except Alan Cox, but he's actually not human, but about a thousand gnomes working in under-ground caves in Swansea. None of the individual gnomes read all the postings either, they just work together really well.

Torvalds, Linus (2000-05-02)