LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-04-2019, 07:50 PM   #1
gglq000
Member
 
Registered: Mar 2012
Posts: 46

Rep: Reputation: Disabled
any good book resource for device driver development?


Few months back I have acquired "linux device drivers" nu Jonathan Corbet by OReilly 3rd edition which is based on 2.6 kernel. But now, the 5.0.0 is out and apparently samples in the book is not building at all in either 5.0.0 or 4.x.x kernel.

root@<hostname>:~/dev-learn/device-drivers# make
make -C /lib/modules/4.19.52+/build
make[1]: Entering directory '/usr/src/linux-headers-4.19.52+'
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[3]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:532: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 2
Makefile:631: recipe for target 'include/config/auto.conf.cmd' failed
make[1]: *** [include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.52+'
Makefile:19: recipe for target 'all' failed
make: *** [all] Error 2


To solve
1. i can try to get antiqurated version of linux distro with 2.6 kernel so that I have a better chance of going smooth through examples but it may come with its own problems.

2. Obtain a newer version of the book that cover 4/5.x.x kernel.
But I dont see any newer version since 3d ed. which is based on 2.6. Any other book on device driver development that has good hands-on coverage with latest and newer kernels?
 
Old 10-05-2019, 02:21 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,679

Rep: Reputation: Disabled
Quote:
Originally Posted by gglq000 View Post
Few months back I have acquired "linux device drivers" nu Jonathan Corbet by OReilly 3rd edition which is based on 2.6 kernel. But now, the 5.0.0 is out and apparently samples in the book is not building at all in either 5.0.0 or 4.x.x kernel.
This issue may not have anything to do with the kernel or even your code:
Quote:
Originally Posted by gglq000 View Post
root@<hostname>:~/dev-learn/device-drivers# make
make -C /lib/modules/4.19.52+/build
make[1]: Entering directory '/usr/src/linux-headers-4.19.52+'
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
What does bison --version return on your system?
 
Old 10-16-2019, 04:00 AM   #4
gglq000
Member
 
Registered: Mar 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
This issue may not have anything to do with the kernel or even your code:

What does bison --version return on your system?
damn, fuck it. I have been tricked by this stupid library issue countless times. So subtle.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there any good book that teach how to design good code? xeon123 Programming 2 12-09-2011 01:13 PM
Difference between device driver development and linux application development tennythomas Linux - Hardware 3 10-26-2011 08:52 AM
good book about heading up a development team? secretlydead Programming 4 09-01-2011 09:12 AM
suggest a resource.....Python with Web Development In Mind ? (tutorial/book/etc) Ubunoob001 Programming 2 12-18-2010 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration