Reference/Tutorial to run basic "Hello World" driver in Ubuntu

Asked by Himanshu

Hi,

My aim is to develop the understanding of device driver in Ubuntu environment. I have searched on Google and was able to find all the examples/tutorials which was based on linux 2.6 kernel version. Since I am using Ubuntu 12.04 which has the kernel version 3.2.0.29, I am not able to try those examples.
I have no knowledge of driver whatsoever, please help me on the same by providing references and documents specific to Ubuntu.
Please let me know in case any more information is required at my end.

Thanks and Regards

Himanshu Singhal

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you contact driver teams. They may be able to advise

Revision history for this message
Himanshu (hmnsh18) said :
#2

Would you be kind enoght provide me the link or address where I can contact
for the above query?

On Sun, Feb 17, 2013 at 8:20 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #222110 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> I suggest you contact driver teams. They may be able to advise
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/222110/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> You received this question notification because you asked the question.
>

--
Himanshu Singhal

Design Engineer - Application Group
Freescale Semiconductors Pvt Ltd
http://www.freescale.com
Mobile : +91 9911974100

Revision history for this message
Sam_ (and-sam) said :
#3
Revision history for this message
Himanshu (hmnsh18) said :
#4

I am very sorry...but I still couldn't figure out what to do? :-(

On Sun, Feb 17, 2013 at 8:51 PM, Sam_
<email address hidden>wrote:

> Your question #222110 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> Status: Open => Answered
>
> Sam_ proposed the following answer:
> Perhaps contact Bryce.
> https://blueprints.launchpad.net/ubuntu/+spec/desktop-r-hybrid-graphics
> https://wiki.ubuntu.com/X/Dev
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/222110/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> You received this question notification because you asked the question.
>

--
Himanshu Singhal

Design Engineer - Application Group
Freescale Semiconductors Pvt Ltd
http://www.freescale.com
Mobile : +91 9911974100

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

In principle there should be no difference whether you are using the 2.6 or 3.2 kernel (or any other one).
You should be able to use the 2.6 tutorial, you have just to adapt the commands to use the right kernel version, and of course you have to start with the current kernel source.

If you provide more information, e.g. which of the several tutorials you are using, and what the details of your problem are, we might be able to help with more details.

Just a hint:
You may have to replace occurences in Makefile like
...make -C /lib/modules/2.6.11/build ...
by
...make -C /lib/modules/3.2.58/build ... or similar,
or even better
by
make -C /lib/modules/$(shell uname -r)/build

Revision history for this message
Himanshu (hmnsh18) said :
#6

Hi

Thanks a ton :-)
It really helped me and I was able to build and load simple hello world
module. For your information I am attaching the book I am referring.
Since my environment is set, now I should be able to move forward.
Thanks once again.

Regards
Himanshu Singhal

On Mon, Feb 18, 2013 at 8:11 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #222110 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> In principle there should be no difference whether you are using the 2.6
> or 3.2 kernel (or any other one).
> You should be able to use the 2.6 tutorial, you have just to adapt the
> commands to use the right kernel version, and of course you have to start
> with the current kernel source.
>
> If you provide more information, e.g. which of the several tutorials you
> are using, and what the details of your problem are, we might be able to
> help with more details.
>
> Just a hint:
> You may have to replace occurences in Makefile like
> ...make -C /lib/modules/2.6.11/build ...
> by
> ...make -C /lib/modules/3.2.58/build ... or similar,
> or even better
> by
> make -C /lib/modules/$(shell uname -r)/build
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/222110/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/222110
>
> You received this question notification because you asked the question.
>

--
Himanshu Singhal

Design Engineer - Application Group
Freescale Semiconductors Pvt Ltd
http://www.freescale.com
Mobile : +91 9911974100

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

If your problem has been resolved, please mark this question as solved, either by opening the link that you find in the e-mail that you receive, or by visting https://answers.launchpad.net/ubuntu/+question/222110 and pressing the respective button.

Revision history for this message
Himanshu (hmnsh18) said :
#8

Thanks Manfred Hampl, that solved my question.