LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2015, 05:07 AM   #1
LittleLenni
LQ Newbie
 
Registered: Feb 2015
Posts: 22

Rep: Reputation: Disabled
Compiling the ad193x module


Hi everybody,

I would like to test the compatibility of the ad193x driver with my Beagelboard xM. The sources for the module can be found in sound/soc/codecs/ad193x.c/h. I copied them on my Beagleboard and now would like to compile them but I can't really figure out how. Could anyone of you help me or point me to a good tutorial? I tried to set up a makefile as shown here http://www.tldp.org/LDP/lkmpg/2.4/html/x208.htm but if I tried to execute the makefile I get "permission denied" even as a superuser :/ I called the makefile by ./makefile ... does it even work this way?

Any help would be really appreciated!

Thanks in advance!

Regards,

Lenni
 
Old 03-30-2015, 06:25 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
There's a couple of issues here.

First, one doesn't execute a Makefile, instead you run "make" and it will look for the file named "Makefile", capitalization I believe applies. If you use a different name or the Makefile is in a different path than the current working directory, then you can issue "make -f <make-file-name>" however I'm not sure doing that from a different path is a good choice. What I've seen is a Makefile or a series of them will change directory to where the Makefile is located and then run the "make" command.

Neither here nor there, you created a Makefile on your own and the second issue is that you likely are not properly set up to compile this correctly in any case. It is a driver, and thus a kernel module. And there are certain things you need to do to be able to compile kernel modules. You need to obtain the module sources and the kernel headers. I don't know the full set of steps for an existing distribution, but a good search would be "Beagleboard xM how to build kernel modules" and that may give you some better guidance.

Also I think the xM is old, not sure. I'm am sure that the Beagleboard Black is the newest and most recently maintained one. I do know that the Beagleboard google groups are maintained pretty well by Robert C Nelson, he is pretty responsive if you ask questions.
 
Old 03-31-2015, 10:45 AM   #3
LittleLenni
LQ Newbie
 
Registered: Feb 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi rtmistler,

thanks for the info you gave me. I finally could compile it by adjusting the Kconfig file I found in the folder and the script of Robert C Nelson that downloads and compiles the Kernel for the BBxM. I tried to message that guy but he didn't answere me ... I'll probably try again in google groups.

Regards,

Lenni
 
Old 03-31-2015, 11:53 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Recommend you post a new question to the groups because many people don't pay attention to messages, unless of course they happened to post their email in a link saying exactly that. The only contact I've had with him was via the groups and his responses.
 
  


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
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 01:45 AM
Invalid module error after compiling Acronis module cryogenica Linux - General 2 03-17-2008 04:23 PM
compiling a module eltn Programming 5 04-01-2006 07:30 PM
Use of MODULE macro while compiling a module fssengg Linux - Newbie 0 03-31-2006 07:13 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

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