LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-05-2011, 01:51 AM   #1
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 21

Rep: Reputation: 0
Can't compile a driver without header files present?


Background info

I'm working with a GuruPlug...maybe you've heard of them.

I'm trying to get EasyCap DC60 drivers installed on it
(easycap_dc60.0.9.tar.gz), but in the README file I see that the "header files" must be present.

Unfortunately they are not. This little wall wart runs Debian/Lenny, probably some server oriented build.

uname -r reports:

2.6.32-00007-g56678ec

It boots to RunLevel 2 and stays there, incidentally.

I tried apt-get install linux-headers-$(uname -r) but I am told "file not found" or something similar.

Does anyone have ideas about how to proceed?
 
Old 06-05-2011, 04:03 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,368

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Kernel headers should be in /usr/include/linux, mainly.
Have you includes? can't you copy them in?
 
Old 06-12-2011, 12:51 PM   #3
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Angry GuruPlug -- no includes, and no room to copy them if I did.

The GuruPlug only has 500 Mb of flash nand for a "hard drive"
the debian/lenny distro is "horribly foreshortened" and I don't
have any access to "includes".

My head is spinning with all the advice I've seen on the net about
"cross compiling" on a different machine and copying the driver files
manually to the GuruPlug.

I DOESN'T HELP ONE BIT that Xmarks keeps eating all my bookmarks in Firefox either.
 
Old 06-13-2011, 02:49 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,368

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Quote:
Originally Posted by dkathrens77 View Post
I tried apt-get install linux-headers-$(uname -r) but I am told "file not found" or something similar.

Does anyone have ideas about how to proceed?
If you can grab/find some kernel source (2.6.32.x or near it) and cd into the top source dir, there are 2 commands
make headers_check
make headers_install

One of which installs a set of headers. The worrying thing is, though, that you compile with 3 tools
1. gcc
2. glibc (libraries & includes)
3. kernel headers

Now if you haven't got headers, they didn't set your distro up to compile, so I'd wonder about the other 2. Check
ls -l /usr/bin/cc
 
Old 06-13-2011, 08:40 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Maybe this will help: Building ARM GNU Cross compiler …

Compiling Linux Kernel for the Plug Computer - PlugWiki especially: 2 Crosscompiling the kernel

I'm giving up on Google; duckduckgo

BTW, builds for ARM are done all the time. Why depend on the plug to do the compile when you can build on a faster system with more resource(s)?
 
Old 06-14-2011, 11:03 AM   #6
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Thumbs up Wow I didn't know that.

Thanks for all this good info. I'm amazed not only how much there is to learn,
but that Linux/Ubuntu makes all this functionality available.

This is how I usually learn...I have a goal in mind and I learn what I need
to achieve it--asking questions along the way of course.

Thanks again for sharing your expertise with me.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to compile c++ program without changing #include line & header files not system Dstruct0 Programming 3 04-03-2011 08:20 PM
how to create a driver makefile which uses header files outside current dir? netskink Linux - Kernel 5 05-21-2009 10:35 AM
ndiswrapper shows 'driver present, hardware present' but no wlan0 0x12d3 Linux - Wireless Networking 2 05-11-2007 07:43 PM
compile header files need? macaal Linux - Games 3 02-12-2007 10:24 AM
Kernel header files needed for Nvidia driver installation natalinasmpf Linux - Hardware 10 12-08-2003 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 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
Open Source Consulting | Domain Registration