LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-16-2010, 08:25 AM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
Difficulty finding driver while kernel compilation?


Hello Guys,

I am in verse to compile kernel and I found that I missed out adding a module vmwgfx during make menuconfig. I tried searching for vmwgfx under DRM section but couldnt find the same.

I referred:

http://www.linuxhq.com/kernel/v2.6/3...x/vmwgfx_drv.h

and found that 2.6.35-rc5 does contain the specific driver changelogs.
can anyone help me with the same.
 
Old 07-16-2010, 10:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,518

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

Quoting from help in menuconfig:
Code:
Symbol: DRM_VMWGFX [=n]                                                                                                     |
  | Prompt: DRM driver for VMware Virtual GPU                                                                                   |
  |   Defined at drivers/gpu/drm/vmwgfx/Kconfig:1                                                                               |
  |   Depends on: STAGING [=y] && !STAGING_EXCLUDE_BUILD [=n] && DRM [=m] && PCI [=y] && FB [=m]                                |
  |   Location:                                                                                                                 |
  |     -> Device Drivers                                                                                                       |
  |       -> Staging drivers (STAGING [=n])                                                                                     |
  |         -> Exclude Staging drivers from being built (STAGING_EXCLUDE_BUILD [=n])                                            |
  |   Selects: FB_DEFERRED_IO [=n] && FB_CFB_FILLRECT [=m] && FB_CFB_COPYAREA [=m] && FB_CFB_IMAGEBLIT [=m] && DRM_TTM [=n]
Regards
 
Old 07-17-2010, 02:57 PM   #3
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
Where did you find this entry?
Which option you select?
I dint see such entries under DRM section while make menuconfig
 
Old 07-17-2010, 03:40 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,518

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

While in menuconfig you can press "/" to search for a specific option.
You must uncheck "Exclude Staging drivers from being built" and you'll get the options you want

Regards

Last edited by bathory; 07-17-2010 at 04:09 PM.
 
1 members found this post helpful.
Old 07-19-2010, 04:51 AM   #5
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
Awesome !!!

That finally solved my problem
Bathory, You again did it.
thnx
 
Old 07-25-2010, 09:20 AM   #6
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
One More Query - I started compiling 2.6.35-rc5 but I can see that most of modules by default selected which took around 2 hours to run make command. Say, If I only wanted to test if vmware drivers like vmxnet3 , pvscsi and vmware_balloon drivers comes supplied and its version what command I need to run.

I just have been assigned with a job to track these 3 drivers. thats it.
Anything like make menuconfig --scsi=vmxnet3 --misc-driver=vmware_ballon etc etc.
Help is appreciated.

Last edited by linuxunix; 07-25-2010 at 09:21 AM.
 
Old 07-25-2010, 10:05 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,518

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
If I can understand well what you want to do, you can use find/grep.
For example to find if vmxnet is included in the kernel tree and its version, you can run:
Code:
grep VERSION `find /usr/src/linux-x-y-z -type f -iname "vmxnet*"`
 
Old 07-26-2010, 01:40 AM   #8
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
Sorry, I think I need to be little clear about what i say.
Here is what I want to ask:

Whenever I compile kernel, I just want to compile modules related to vmxnet3, vmw_pvscsi and vmware_balloon.
All i run :
Code:
make menuconfig
and search for those drivers. Press Spacebar to make it highlight as <M> so that it will compile with these drivers modules.
Now When I compile it it tried to compile all modules starting with <M>.
Now this is a long list as I am totally unconcerned about the other drivers apart from vmware drivers.
Now Can I run make menuconfig --with-vmxnet3 --with-vmw_pvscsi kind of stuff so that I can only compile these modules.
By Default <M> is listed at various drivers modules which is not of my interest.

Pls Suggest.
 
Old 07-26-2010, 03:30 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,518

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Ah, I see what you want to do.
To compile for example vmxnet3, go to /usr/src/linux/drivers/net/vmxnet3, and add at the end of Makefile
Code:
all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
(note: there must be a <tab> before make or make will fail)
Then run
Code:
make
from the same directory
Take a look here for details

Regards
 
  


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
compilation error: something to do with finding the right kernel source directories? Gatemaze Linux - Kernel 4 06-15-2008 06:17 PM
kernel version mixup for driver compilation takatam Mandriva 3 01-17-2005 05:48 AM
Kernel Driver compilation amish_geek Linux - Software 1 09-20-2004 09:18 AM
problems with driver compilation, kernel 2.4.22-10mdk MasterOfTheWind Linux - General 0 07-29-2004 09:12 AM
IDE driver trend - compilation into kernel northtwilight Linux - Hardware 2 03-10-2004 08:28 AM


All times are GMT -5. The time now is 07:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration