OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:13 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Hit a wall with linux device drivers by Jonathan Corbet
PostPosted: Mon Aug 31, 2020 11:59 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
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.,

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: Hit a wall with linux device drivers by Jonathan Corbet
PostPosted: Tue Sep 01, 2020 12:04 am 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
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.

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: Hit a wall with linux device drivers by Jonathan Corbet
PostPosted: Tue Sep 01, 2020 7:34 am 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
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.

_________________
Carpe diem!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], Google [Bot] and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group