Page 1 of 1

Hit a wall with linux device drivers by Jonathan Corbet

Posted: Mon Aug 31, 2020 11:59 pm
by ggodw000
https://www.oreilly.com/library/view/li ... 596005903/
I followed examples can not get past initial hello example.
Starting scull driver examples, code samples are deficient so I looked around above url to see complete source for scull driver but none.

Has anyone studied this book before and wrote the driver in the example?
Or any other device driver book (newer) that has complete code examples?
Thanks.,

Re: Hit a wall with linux device drivers by Jonathan Corbet

Posted: Tue Sep 01, 2020 12:04 am
by ggodw000
looks like I managed to locate through web search on github:

https://github.com/starpos/scull

However there seems to be a serious build problems building with 5.x kernel when it is written for 2.6 kernel. I will try 4.x kernel.

Re: Hit a wall with linux device drivers by Jonathan Corbet

Posted: Tue Sep 01, 2020 7:34 am
by nullplan
Linux has no stable internal kernel API or ABI. Therefore, modules written for 2.6 do not necessarily work for anything else. You are going to have to get the source code for the version the examples were written for. Having an upgrade guide would be nice, but I know of no such thing.