LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2012, 01:18 PM   #1
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Rep: Reputation: 12
To start with kernel programming


Hello everybody, I need your help.
I am a linux newbee and I know a little bit about system prigramming in linux.
I want to start off with kernal programming and kernal development.
Please could you suggest me the best and popular easy to understand kernal programming books?

Thanks...
 
Old 02-18-2012, 06:10 PM   #2
looop
Member
 
Registered: Oct 2011
Location: Denmark
Distribution: Slackware - Mac OS X Lion - RedHat 6 - MS Win 2003 server - A/UX - FreeBSD - FreeNAS - pfsense
Posts: 75

Rep: Reputation: Disabled
First thing it is kernel
Second What do you know at all about programming?
Third: Download the linux kernel and take a look
Fourth: The Linux Kernel modul programming guide
 
Old 02-19-2012, 12:30 AM   #3
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
??

@looop I don't understand. I am trying to start it but i don't know where to start from. I know C and C++ and system calls under unix. Also a bit of shell scripting. I want to start with kernal development and writing modules for device drivers. And i want to get started. What version of linux kernal source would be the best to learn?. Thanks
 
Old 02-19-2012, 12:51 AM   #4
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
Kernel

@looop Oh yes.!! Damn its Kernel. I get it.
 
Old 02-19-2012, 03:16 AM   #5
looop
Member
 
Registered: Oct 2011
Location: Denmark
Distribution: Slackware - Mac OS X Lion - RedHat 6 - MS Win 2003 server - A/UX - FreeBSD - FreeNAS - pfsense
Posts: 75

Rep: Reputation: Disabled
Have you tried searching google there a a lot of site which helps you start, like: http://www.learninglinuxkernel.com/
 
1 members found this post helpful.
Old 02-19-2012, 05:38 AM   #6
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
other than what loop suggested you can look at these books too
http://www.amazon.com/Linux-Kernel-D...9647709&sr=8-1
http://lwn.net/Kernel/LDD3/
 
1 members found this post helpful.
Old 02-19-2012, 09:37 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by abhishekgit View Post
I want to start off with kernal programming and kernal development.
May I know WHY do you want to start with "kernel programming/development"?

Is it just because you are finding it cool or you want to get some task accomplished
which the current kernel doesn't support?

Your answer may help others to help you.
 
1 members found this post helpful.
Old 02-20-2012, 12:18 AM   #8
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@Anisha Kaul
I've been working on shell scripting and system programming in linux for quite sometime. I am studying computer science engineering and Kernel programming is not one of my subjects. I read about kernel programming and found it interesting and i can accomplish tasks only after i learn it. I just want to get started. Thanks for your time.
 
Old 02-20-2012, 12:21 AM   #9
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
I want to start from scratch. I am very very new to linux. Easy to read pdfs including all the pre-requisites i need to know to start with it would really be helpful.
Thank you
 
Old 02-20-2012, 06:24 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by abhishekgit View Post
I read about kernel programming and found it interesting and i can accomplish tasks only after i learn it. I just want to get started.
It is nice to know that you want to learn Kernel programming because you
find it "interesting".

Just one warning I'd like to give you (no offense intended) - It is not
easy to learn something "properly" unless and until you have a task to
accomplish (through it), i.e when you have a task it means you have a
problem for which you intend to search solutions.

In your case, you will be searching solutions for the problems which don't
exist!

I think before reading, writing, or even thinking about "coding", you
should figure out what the heck is kernel programming all about.

Before you think about writing a kernel from scratch, I suggest that you
read the meaning and the need of the types of device drivers (do you need your
own customized device driver?), system calls (do you need your own customized
system call?).

Check this out: http://www.linuxquestions.org/questi...-books-873556/

Last edited by TheIndependentAquarius; 02-20-2012 at 06:30 AM.
 
1 members found this post helpful.
Old 02-21-2012, 07:14 AM   #11
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@Anisha Kaul.
Well certainly. :-). I have indeed come across the things a master in kernel programming can accomplish, I found all those things(flexibility, modifications etc) fascinating and i hope i ll be able to write patches, device drivers and solve my problems only after i learn it. I am following your steps. Greatly helping me, also motivating. Thanks a ton!! :-)
 
Old 02-21-2012, 07:36 AM   #12
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
Thanks everybody. Your assistance are appreciated.
 
Old 03-03-2012, 10:30 AM   #13
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
Linux kernel

Hello everyone,
I am trying to learn kernel programming. Which is the best kernel version to experiment on? Kindly post the command lines to download it. Thanks


Regards...
 
Old 03-03-2012, 11:34 AM   #14
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
I suggest trying the latest stable kernel (3.2.9 at the moment), available from http://www.kernel.org/

Download the archive (Full Source) and unpack it:

Code:
tar xjfv linux-3.2.9.tar.bz2
 
1 members found this post helpful.
Old 03-03-2012, 12:28 PM   #15
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
Smile Thanks, One more thing??..

@ricstirato Thanks. It worked. I downloaded 2.6.17 instead because i found an ebook which had the tutorial based on it. I am trying to configure it by the following command.
Code:
$ make menuconfig
And i am getting this
Code:
 HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory
compilation terminated.
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
Kindly guide. Thanks for your time
 
  


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
how to start kernel programming sham Programming 4 08-06-2007 11:17 PM
Where to start with programming?? suicideducky Programming 4 09-18-2006 03:20 AM
Difference between Userland programming and Kernel Programming.. meetsagittarian Programming 1 02-20-2006 01:26 AM
Beginning Kernel Programming -- where to start? koodoo Programming 7 11-17-2005 02:08 PM
I want to start programming, need help though... Eits0 Programming 8 05-16-2002 09:46 AM


All times are GMT -5. The time now is 08:37 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