LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-07-2014, 05:50 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
building dependencies for kernel modules in cross compiling environment


I tried to execute depmod.pl with the following command:
$ depmod.pl \
> -k ./vmlinux -F ./System.map \
> -b ${PRJROOT}/images/modules-2.6.20/lib/modules > \
> ${PRJROOT}/images/modules-2.6.20/lib/modules/2.6.20/modules.dep

However the file path is different in my execution environment and it is valid for sure. The file path here i mean to say are for the files vmlinux, System.map , modules.dep and the folder path for modules are in a different location in my executing environment than this but i gave it correctly for sure.

it is giving error message as follows:
"depmod.pl : command not found" even though executable for perl is available and it's path was aleady added in the PATH ( /usr/bin/perl )env variable.
I have checked that the depmod.pl is made as executable in the file's properties.

I am trying this for cross compiled output files vmlinux and System.map and the depmod.pl file is taken from busybox 1.22.1 located in examples folder of busy box source.

Please let me know the reason why it is not building dependencies in modules.dep file.
 
Old 08-07-2014, 06:26 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The error message is pretty clear. You didn't give a full path to depmod.pl and it did not find it in your PATH. The error message never mentioned Perl.
 
Old 08-07-2014, 08:00 AM   #3
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
The error message is pretty clear. You didn't give a full path to depmod.pl and it did not find it in your PATH. The error message never mentioned Perl.
No before executing that command(depmod.pl) i have changed the current working directory using cd(change directory) command to the one where depmod.pl file located.

Last edited by ayyasprings; 08-07-2014 at 08:02 AM. Reason: for adding further information
 
Old 08-07-2014, 08:23 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The current directory is not in your PATH. There are explanations of why in any UNIX manual. You can include the path using ./depmod.pl
 
1 members found this post helpful.
Old 08-08-2014, 02:57 AM   #5
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
The current directory is not in your PATH. There are explanations of why in any UNIX manual. You can include the path using ./depmod.pl
Hi, by prepending./ the command got executed. And I like to share one experience that when using both -k and -F options it didnot work mentioning that only any one of the kernel image(-k option) or System.map (-F option) should be used and not the both at same time. Then removing one of the options it worked. And after that while execution of the command in terminal output i was seeing messages like unresolved symbols for many items. Also when opened modules.dep file there are few rows where there are some .ko files listed corresponding to a .ko file after the ':' character and some doesnot having any .ko files after that ':' character and remains empty. Do these are warnings that at runtime it will cause problem like the symbols are not resolved or not able to link to the required files, so and so? please reply.
 
  


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
Need help with cross-compiling self-written kernel modules TeaYoung Linux - Kernel 6 04-23-2013 05:09 PM
Need help with cross-compiling self-written kernel modules TeaYoung Linux - Newbie 0 04-22-2013 09:17 AM
Cross compiling how it works with dependencies Arm9 cpu linuxmandrake Linux - Software 1 07-06-2010 08:47 AM
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 05:49 AM
cross-compiling modules for a preemptive kernel(2.6.23) Trixy_Tree Linux - Embedded & Single-board computer 1 04-07-2009 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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