LinuxQuestions.org
Review your favorite Linux distribution.
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 07-15-2013, 10:39 PM   #1
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
Question Unable to install driver on arm processor


I wanted to download the USB-ISS driver onto my arm processor running ubuntu 12.04,kernel 3.6.0
The below code is the error when I tried to make the driver

Code:
WARNING: Symbol version dump /usr/src/linux-headers-3.6.0-030600rc4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/linaro/devantech-master/i2c-devantech-iss.o
In file included from <command-line>:0:0:
/usr/src/linux-headers-3.6.0-030600rc4/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/home/linaro/devantech-master/i2c-devantech-iss.o] Error 1
make[1]: *** [_module_/home/linaro/devantech-master] Error 2
make: *** [modules] Error 2
I'm really new to linux and I'm unsure of how to solve the error . Any step by step guidance is greatly appreciated
 
Old 07-16-2013, 05:59 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
Quote:
fatal error: generated/autoconf.h: No such file or directory
It seems like you're not set up to do compiling yet. Read the early instructions again.
 
Old 07-16-2013, 09:08 PM   #3
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi thanks for the reply.I had already follow the README file included with the driver - http://galindezrobotics.blogspot.sg/...linux-and.html
I like to know what I lack to set up fully for compiling? Thanks
 
Old 07-16-2013, 09:27 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

those instructions are specific to that driver. What you need to do is get your Ubuntu system ready for compiling things like kernel drivers. You probably need at least to install the build-essential package.

Code:
sudo apt-get install build-essential
The if there are further error messages about missing files, you should install the corresponding packages. The apt-file tool can be of use here. You can install it with:
Code:
sudo apt-get install apt-file
Then update its database
Code:
sudo apt-file update
Then if your comilation fails with a message like in your first post, you can run the following command:
Code:
apt-file search "generated/autoconf.h"
which should tell you that you need to install the kernel-headers file that corresponds to your kernel.


Evo2.
 
Old 07-17-2013, 12:05 AM   #5
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi sadly the problem is not with the build-essential or apt-file so I tried apt-file search "generated/autoconf.h" and got the following long list

Quote:
linux-headers-3.0.27-1-ac100: /usr/src/linux-headers-3.0.27-1-ac100/include/generated/autoconf.h
linux-headers-3.1.1-1400-linaro-lt-mx5: /usr/src/linux-headers-3.1.1-1400-linaro-lt-mx5/include/generated/autoconf.h
linux-headers-3.2.0-1412-omap4: /usr/src/linux-headers-3.2.0-1412-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1413-omap4: /usr/src/linux-headers-3.2.0-1413-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1414-omap4: /usr/src/linux-headers-3.2.0-1414-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1415-omap4: /usr/src/linux-headers-3.2.0-1415-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1416-omap4: /usr/src/linux-headers-3.2.0-1416-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1417-omap4: /usr/src/linux-headers-3.2.0-1417-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1418-omap4: /usr/src/linux-headers-3.2.0-1418-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1419-omap4: /usr/src/linux-headers-3.2.0-1419-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1420-omap4: /usr/src/linux-headers-3.2.0-1420-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1421-omap4: /usr/src/linux-headers-3.2.0-1421-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1422-omap4: /usr/src/linux-headers-3.2.0-1422-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1423-omap4: /usr/src/linux-headers-3.2.0-1423-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1424-omap4: /usr/src/linux-headers-3.2.0-1424-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1425-omap4: /usr/src/linux-headers-3.2.0-1425-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1426-omap4: /usr/src/linux-headers-3.2.0-1426-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1427-omap4: /usr/src/linux-headers-3.2.0-1427-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1429-omap4: /usr/src/linux-headers-3.2.0-1429-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1430-omap4: /usr/src/linux-headers-3.2.0-1430-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1432-omap4: /usr/src/linux-headers-3.2.0-1432-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1433-omap4: /usr/src/linux-headers-3.2.0-1433-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1434-omap4: /usr/src/linux-headers-3.2.0-1434-omap4/include/generated/autoconf.h
linux-headers-3.2.0-1602-armadaxp: /usr/src/linux-headers-3.2.0-1602-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1603-armadaxp: /usr/src/linux-headers-3.2.0-1603-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1605-armadaxp: /usr/src/linux-headers-3.2.0-1605-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1606-armadaxp: /usr/src/linux-headers-3.2.0-1606-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1607-armadaxp: /usr/src/linux-headers-3.2.0-1607-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1608-armadaxp: /usr/src/linux-headers-3.2.0-1608-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1609-armadaxp: /usr/src/linux-headers-3.2.0-1609-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1610-armadaxp: /usr/src/linux-headers-3.2.0-1610-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1611-armadaxp: /usr/src/linux-headers-3.2.0-1611-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1612-armadaxp: /usr/src/linux-headers-3.2.0-1612-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1613-armadaxp: /usr/src/linux-headers-3.2.0-1613-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1614-armadaxp: /usr/src/linux-headers-3.2.0-1614-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1615-armadaxp: /usr/src/linux-headers-3.2.0-1615-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1616-armadaxp: /usr/src/linux-headers-3.2.0-1616-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1617-armadaxp: /usr/src/linux-headers-3.2.0-1617-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1619-armadaxp: /usr/src/linux-headers-3.2.0-1619-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1620-armadaxp: /usr/src/linux-headers-3.2.0-1620-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1621-armadaxp: /usr/src/linux-headers-3.2.0-1621-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-1622-armadaxp: /usr/src/linux-headers-3.2.0-1622-armadaxp/include/generated/autoconf.h
linux-headers-3.2.0-23-omap: /usr/src/linux-headers-3.2.0-23-omap/include/generated/autoconf.h
linux-headers-3.2.0-24-omap: /usr/src/linux-headers-3.2.0-24-omap/include/generated/autoconf.h
linux-headers-3.2.0-25-highbank: /usr/src/linux-headers-3.2.0-25-highbank/include/generated/autoconf.h
linux-headers-3.2.0-25-omap: /usr/src/linux-headers-3.2.0-25-omap/include/generated/autoconf.h
linux-headers-3.2.0-26-highbank: /usr/src/linux-headers-3.2.0-26-highbank/include/generated/autoconf.h
linux-headers-3.2.0-26-omap: /usr/src/linux-headers-3.2.0-26-omap/include/generated/autoconf.h
linux-headers-3.2.0-27-highbank: /usr/src/linux-headers-3.2.0-27-highbank/include/generated/autoconf.h
linux-headers-3.2.0-27-omap: /usr/src/linux-headers-3.2.0-27-omap/include/generated/autoconf.h
linux-headers-3.2.0-29-highbank: /usr/src/linux-headers-3.2.0-29-highbank/include/generated/autoconf.h
linux-headers-3.2.0-29-omap: /usr/src/linux-headers-3.2.0-29-omap/include/generated/autoconf.h
linux-headers-3.2.0-30-highbank: /usr/src/linux-headers-3.2.0-30-highbank/include/generated/autoconf.h
linux-headers-3.2.0-30-omap: /usr/src/linux-headers-3.2.0-30-omap/include/generated/autoconf.h
linux-headers-3.2.0-31-highbank: /usr/src/linux-headers-3.2.0-31-highbank/include/generated/autoconf.h
linux-headers-3.2.0-31-omap: /usr/src/linux-headers-3.2.0-31-omap/include/generated/autoconf.h
linux-headers-3.2.0-32-highbank: /usr/src/linux-headers-3.2.0-32-highbank/include/generated/autoconf.h
linux-headers-3.2.0-32-omap: /usr/src/linux-headers-3.2.0-32-omap/include/generated/autoconf.h
linux-headers-3.2.0-33-highbank: /usr/src/linux-headers-3.2.0-33-highbank/include/generated/autoconf.h
linux-headers-3.2.0-33-omap: /usr/src/linux-headers-3.2.0-33-omap/include/generated/autoconf.h
linux-headers-3.2.0-34-highbank: /usr/src/linux-headers-3.2.0-34-highbank/include/generated/autoconf.h
linux-headers-3.2.0-34-omap: /usr/src/linux-headers-3.2.0-34-omap/include/generated/autoconf.h
linux-headers-3.2.0-35-highbank: /usr/src/linux-headers-3.2.0-35-highbank/include/generated/autoconf.h
linux-headers-3.2.0-35-omap: /usr/src/linux-headers-3.2.0-35-omap/include/generated/autoconf.h
linux-headers-3.2.0-36-highbank: /usr/src/linux-headers-3.2.0-36-highbank/include/generated/autoconf.h
linux-headers-3.2.0-36-omap: /usr/src/linux-headers-3.2.0-36-omap/include/generated/autoconf.h
linux-headers-3.2.0-37-highbank: /usr/src/linux-headers-3.2.0-37-highbank/include/generated/autoconf.h
linux-headers-3.2.0-37-omap: /usr/src/linux-headers-3.2.0-37-omap/include/generated/autoconf.h
linux-headers-3.2.0-38-highbank: /usr/src/linux-headers-3.2.0-38-highbank/include/generated/autoconf.h
linux-headers-3.2.0-38-omap: /usr/src/linux-headers-3.2.0-38-omap/include/generated/autoconf.h
linux-headers-3.2.0-39-highbank: /usr/src/linux-headers-3.2.0-39-highbank/include/generated/autoconf.h
linux-headers-3.2.0-39-omap: /usr/src/linux-headers-3.2.0-39-omap/include/generated/autoconf.h
linux-headers-3.2.0-40-highbank: /usr/src/linux-headers-3.2.0-40-highbank/include/generated/autoconf.h
linux-headers-3.2.0-40-omap: /usr/src/linux-headers-3.2.0-40-omap/include/generated/autoconf.h
linux-headers-3.2.0-41-highbank: /usr/src/linux-headers-3.2.0-41-highbank/include/generated/autoconf.h
linux-headers-3.2.0-41-omap: /usr/src/linux-headers-3.2.0-41-omap/include/generated/autoconf.h
linux-headers-3.2.0-43-highbank: /usr/src/linux-headers-3.2.0-43-highbank/include/generated/autoconf.h
linux-headers-3.2.0-43-omap: /usr/src/linux-headers-3.2.0-43-omap/include/generated/autoconf.h
linux-headers-3.2.0-44-highbank: /usr/src/linux-headers-3.2.0-44-highbank/include/generated/autoconf.h
linux-headers-3.2.0-44-omap: /usr/src/linux-headers-3.2.0-44-omap/include/generated/autoconf.h
linux-headers-3.2.0-45-highbank: /usr/src/linux-headers-3.2.0-45-highbank/include/generated/autoconf.h
linux-headers-3.2.0-45-omap: /usr/src/linux-headers-3.2.0-45-omap/include/generated/autoconf.h
linux-headers-3.2.0-48-highbank: /usr/src/linux-headers-3.2.0-48-highbank/include/generated/autoconf.h
linux-headers-3.2.0-48-omap: /usr/src/linux-headers-3.2.0-48-omap/include/generated/autoconf.h
linux-headers-3.2.0-49-highbank: /usr/src/linux-headers-3.2.0-49-highbank/include/generated/autoconf.h
linux-headers-3.2.0-49-omap: /usr/src/linux-headers-3.2.0-49-omap/include/generated/autoconf.h
note : while struggling with the driver on 3.6.0 kernel , I hand install 3.2.0 kernel too but fail to operate on it

how do i install the kernel-headers file that corresponds to my kernel 3.6.0? Or perhaps I should replace kernel 3.6.0 to 3.2.0 instead
 
Old 07-17-2013, 12:28 AM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
You want to compile a kernel module...
Since compiling a kernel module is related to compiling a kernel...

ubuntu compile kernel

would be a good place to start searching

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
 
Old 07-17-2013, 01:09 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by Gisela0110 View Post
how do i install the kernel-headers file that corresponds to my kernel 3.6.0? Or perhaps I should replace kernel 3.6.0 to 3.2.0 instead
You can find out which package corresponds to your running kernel with the "uname -r" command. But there were no linux-header-3.6.0* packages listed. How did you install the kernel you are currently running?

Evo2.
 
Old 07-17-2013, 04:23 AM   #8
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
@Evo2
uname - r "3.6.0-rc4"
Quote:
How did you install the kernel you are currently running?
Sorry I actually inherited the whole embedded system from my seniors and don't know how they installed it.
Is there a way to get the linux header now? Or do I need to restart from scratch?
Thanks for your patient guidance
 
Old 07-17-2013, 06:25 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
Embedded system? You won't be able to compile much on that, as you'll get caught for ram, tmp and disk space. Mightn't even have any of the tools, either.

I know this sucks, but cross compiling might be a safer bet. Why not ASK your seniors what the <expletive deleted> they did.
 
Old 07-17-2013, 08:47 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by Gisela0110 View Post
Sorry I actually inherited the whole embedded system from my seniors and don't know how they installed it.
Is there a way to get the linux header now? Or do I need to restart from scratch?
Thanks for your patient guidance
Ouch. I would consider it completely unreasonable to expect you to compile modules against a kernel you know nothing about.
Looking more carefully at your first post, I see that you have:
Code:
/usr/src/linux-headers-3.6.0-030600rc4/
but given the error it seems to be incomplete. Perhaps that kernel may it may have been built outside of the kernel-package infrastructure.

It's a bit hard for me to say whether you should start from scratch because I don't know enough about what you are actually doing. However if it was me, I probably would start from scratch since I hate inheriting undocumented messes created by others.

Cheers,

Evo2.
 
Old 07-17-2013, 10:12 PM   #11
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi thanks for all the concern .Having no idea how I should carrying on, I decided to do some "housekeeping" with all the works I inherited and found an old backup img.And so I tried to compile the driver on this new found "hope" and got this instead
Quote:
linaro@linaro-ubuntu-desktop:~/devantech-master$ make
make: *** /usr/src/linux-headers-3.6.0-rc4: No such file or directory. Stop.
make: *** [modules] Error 2
so I tried to install the missing header and got this
Quote:
linaro@linaro-ubuntu-desktop:~/devantech-master$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.6.0-rc4
E: Couldn't find any package by regex 'linux-headers-3.6.0-rc4'
any idea how I can get the linux-header now?
 
Old 07-17-2013, 10:23 PM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by Gisela0110 View Post
any idea how I can get the linux-header now?
The method I described will only work if the kernel was made as a kernel-image deb package and there was a corresponding kernel-headers deb package made at the same time (and is available in a repository listed in /etc/apt/sources.list).

Evo2.
 
Old 07-17-2013, 10:24 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

sorry that should be linux-image and linux-headers (these packages used to be called kernel-image and kernel-headers back when Debian only used the Linux kernel).

Evo2.
 
  


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
Unable to install RHEL 5.4 in GUI mode in PC with dual care processor Aki Tomar Red Hat 1 05-23-2012 10:22 AM
distro to install on smart book with wm8505 arm processor starkadder Linux - Laptop and Netbook 1 06-23-2010 02:47 PM
I'm confused again, Is an Arm processor the same as a MIPS processor? MrUmunhum Linux - Hardware 3 09-24-2009 04:47 AM
Linux on ARM processor knobby67 Programming 1 09-19-2009 07:45 AM
par2 for arm processor steve51184 Linux - Software 8 02-04-2009 01:18 PM


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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration