04-12-2016 04:47 AM
Hello Guys,
I would love to have a bit of guidance around the existing materials for the driver hacking(building) on the ni linux real-time platform.
In addition: I am comfortably with the linux platform and c/c++, make, kernel compilation, etc.
Cheers,
Vil
04-12-2016 09:33 AM
vil,
There are some great materials out there on getting started with kernel development, I would recommend starting with a simple module (something as basic as printing to the kernel log on insertion/removal) and expand by researching the areas that you will need to know for the type of kernel module you want to write. A good cross-reference (either online or generated using something like cscope or ctags or the indexer in Eclipse w/ CDT (note: some of the filenames of the kernel source can prove problematic for Windows, kernel development on Windows is not recommended).
A reasonable book is a good curated walk through the majority of the kernel systems, but the problem that these books invariably run into is that the kernel is an evolving, changing system. Even if some of the aspects are a little outdated, the book will tend to have a more careful and complete discussion of the systems within the kernel.
04-12-2016 09:43 AM
One "slightly outdated but mostly still valid" book is: https://lwn.net/Kernel/LDD3/
04-12-2016 09:47 AM
BradM, Gration: Thanks guys for the ideas, I do have come across these myself after a bit of researching today. What I am really looking forward to find is some crio (ni linux rt) specific thoughts or examples, pitfalls, or best practices. However I know that NI rt is just a custom flavour of linux basically running the same kernel, in a pretty alright and typical environment, so I might have to just jump in as you guys mentioned with the ideas provided so far.
04-12-2016 11:01 AM
The biggest "gotchas" are cross-compiliing (if you are taking this approach) and the kernel format on Zynq targets (an Flattened Image Tree with Device Tree Blobs).
04-13-2016 02:02 PM
vil,
If you intend on attending NIWeek this year, we have a planned session that covers this particular area. Keep an eye out and/or contact Deborah_B
05-03-2016 04:43 PM
Details on this NIWeek session are now posted in this discussion, we hope you can make it!
05-04-2016 03:57 AM
Thank you Deborah!