5 ms·
I've wanted to do some Linux kernel development for a while now, but I've never mustered the will to go through the process. This script may just be what I nee
by bheadmaster 3y ago
I've wanted to do some Linux kernel development for a while now, but I've never mustered the will to go through the process.
This script may just be what I needed to start.
- ngcc_hk 3y agoI just want to learn. Unfortunately those days with simple source commentary long gone. Hence whilst we have this good tutorial about setup … but how you start to learn more about.
- Galanwe 3y agoConsidering and size and complexity of the Linux kernel, I don't think any amount of source code comments would help you much, unless you already have a strong understanding of the underlying subsystem you want to hack on. "Understanding the Linux kernel", and "Linux device drivers" are pretty good, pragmatic books IMHO to give you a solid understanding of most useful subsystem. As for this kernel building script, I guess it could be handy, but unless you're hacking very frequently I never found the actual build of the kernel to be the more cumbersome part.
- synergy20 3y agothe kernel and device drivers are both a bit out of date unfortunately, hope LF can found new revisions of them.
- protomolecule 3y agoHow relevant are these books today? They were both written in 2005.
- AlotOfReading 3y agoA bit out of date, but not to the point of being useless. I still give them to juniors and interns that want to learn more about kernel work. There's also a much more recent (2022) book called Linux Device Driver Development published by packt. In general, these sorts of books are mainly useful for "what not to do", as general architecture stuff is usually well documented by source code examples and in-kernel docs.
- protomolecule 3y agoThanks!
- bheadmaster 3y ago> unless you're hacking very frequently I never found the actual build of the kernel to be the more cumbersome part Doesn't kernel use incremental builds? All well-designed C projects that I know of compile .c files into .o files and link them, so a single file modification only requires a single recompilation/relinking.
- chlorion 3y agoIt does use incremental builds so long as you don't reset everything. I'm not sure that a lot of people who don't work with make realize that it's smart enough to only rebuild what has changed, and that it's not just a command runner!
- rubenbe 3y agoIf you want to get a good introduction, I recommend the bootlin kernel course. All course material is available on their website. https://bootlin.com/training/kernel/ https://bootlin.com/training/kernel/
- j4hdufd8 3y agoThank you! This looks really good The Linux Foundation has similar offerings but 3x more expensive, less time, and online only https://training.linuxfoundation.org/linux-kernel-development/ https://training.linuxfoundation.org/linux-kernel-developmen...