LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-12-2009, 06:32 PM   #1
droneprime
LQ Newbie
 
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Rep: Reputation: 15
Making the Linux Kernel a Project in Eclipse


Well, the Subject kinda says it all.

I want to know how to get the Linux Kernel source to import as a new project in Eclipse.

I've had some trouble doing this, namely because of the LENGTHY indexing process. At some point in the process it failed to find some files. No, I can't remember where it failed. At that point I was so frustrated that I started over.

I don't have a problem running menuconfig in the shell, but I would like to have the rest of the build process in Eclipse. The line I need to use to build the kernel in the shell is "make && make modules_install && make install". I need to use this line because I am messing around with KGDB and module debugging.

Thanks in advance guys.
 
Old 09-28-2009, 04:49 PM   #2
droneprime
LQ Newbie
 
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Original Poster
Rep: Reputation: 15
Okay, well, I worked this out. But as always, there are still problems.

This is the tutorial that worked for me. Following this post I was able to index the kernel. Attempting to build the kernel in Eclipse still fails, but it really isn't a problem because it is just as easy to build the kernel on the command line. So there it is, a working, indexed kernel project.

From this point, I would like to integrate this process with KGDB debugging. The kernel that I have indexed is a KGDB enabled build that I know functions properly. Befor I started workng with eclipse, I was able to get KGDB debugging working to my satisfaction (see my previous posts if interested).

Now here comes the trouble. I want to attach eclipse CDT debugging to an active KGDB enabled kernel. When I use a .gdbinit file, none of the commands are interpreted correctly. Namely, if I have "target remote /dev/ttyS0" in the .gdbinit file, I get a "Project is not currently being run" error box. Yet, if I copy the exact same command into the console box within eclipse, no error occurs. This is really a shame because that kind of eliminates the benefits of the GUI.

Does anyone have experience with remote debugging within eclipse? I would just like to know what settings I should use for configuring the debugging dialogue. I'm pretty sure that I want to use just the gdb debugger, as opposed to the gdbserver debugger for attaching to a remote gdb stub. Other things like shared libraries continue to confound me. I really don't want to overload this post with information about my problems, so I'll try to limit the details, suffice to say that I have been working on this for a while now and would appreciate any help you guys can give me.

Thanks in advance!
 
Old 10-24-2009, 11:43 AM   #3
tomasza
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Tutorial

Can you please give the link to this tutorial that you have found.
 
Old 10-28-2009, 02:10 PM   #4
droneprime
LQ Newbie
 
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Original Poster
Rep: Reputation: 15
It's been a while since I paid any attention to this issue, but I think that this is the tutorial that work for me.

Give it a try and let me know if this works for you. I can dive back into the bookmarks folder again if this is not what you were looking for.

http://issaris.blogspot.com/2007/12/...code-from.html
 
Old 10-30-2009, 03:16 PM   #5
tomasza
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Tutorial

Yes. It helped me Thank you very much.
 
  


Reply



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
I Can't build any project with Eclipse barbuceanu Linux - Newbie 2 05-05-2008 01:28 PM
Can't build any project with Eclipse barbuceanu Linux - Software 2 05-05-2008 10:44 AM
eclipse project run aral Programming 1 05-04-2006 03:52 PM

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

All times are GMT -5. The time now is 11:48 AM.

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
Open Source Consulting | Domain Registration