LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install New Module on newly 2.6.35-rc5 kernel !!! (http://www.linuxquestions.org/questions/linux-newbie-8/install-new-module-on-newly-2-6-35-rc5-kernel-820147/)

linuxunix 07-16-2010 05:20 AM

Install New Module on newly 2.6.35-rc5 kernel !!!
 
Recently I was trying to look into vmware pvscsi modules for newly announced linux kernel 2.6.35-rc2. I compiled the kernel with option: make oldconfig where it asked me for various interactive options and all I did is Kept pressing the Enter ENTER key(Donno if that is the correct way to slect default ).The Kernel Compilation anyway went fine and I can see new kernel at grub screen, booted and it went fine.Now when I explored I found that nor the vmware_balloon and vmw_pvscsi modules are present which means I need to install these modules.
I came to know that recently a new version of the vmware memory drivers being included through this page:

http://www.linuxhq.com/kernel/v2.6/3...ware_balloon.c

where you can see an entry like:

Code:

MODULE_AUTHOR("VMware, Inc.");
 MODULE_DESCRIPTION("VMware Memory Control (Balloon) Driver");
-MODULE_VERSION("1.2.1.0-K");
+MODULE_VERSION("1.2.1.1-k");

Doesn't it mean that the new kernel has new driver version inboxed?

Also, I tried to install modules through modprobe and insmod(seems that this doesnt work) but couldnt do that.

bathory 07-16-2010 05:39 AM

Hi,

I guess you didn't add support for this module in your newly compiled kernel. To verify, run:
Code:

grep VMWARE /usr/src/linux-2.6.35-rc5/.config
To add the driver you have to recompile your kernel. Go to: Device Drivers -> Misc devices and add "VMware Balloon Driver" as a module

Regards

linuxunix 07-16-2010 05:42 AM

Thats True.

here's the output:

Code:

# CONFIG_VMWARE_BALLOON NOT SET
# CONFIG_VMWARE_PVSCSCI NOT SET

May I know what steps are needed for the recompile.

bathory 07-16-2010 05:50 AM

To recompile your kernel, you should enter the directory /usr/src/linux-2.6.35-rc5 and run
Code:

make menuconfig
or "make xconfig" if you like a gui.

Go to: Device Drivers -> Misc devices, scroll down to "VMware Balloon Driver" and press "M" to compile it as module
Save, exit and then do what you did last time after running "make oldconfig"

Regards

linuxunix 07-16-2010 05:53 AM

Thanks.Let me try out now.

linuxunix 07-16-2010 05:58 AM

When I am trying to run this command it throws error:

Code:

linux-xx82:/usr/src/linux-2.6.35-rc5 # make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
linux-xx82:/usr/src/linux-2.6.35-rc5 #

I installed python-curses but the error still remained.
i am installing it on SLES 11 SP1

bathory 07-16-2010 06:03 AM

You need the ncurses package
Or try the "make xconfig" way

linuxunix 07-16-2010 06:09 AM

I did installed libncurses but things dint work.
Code:

linux-xx82:/usr/src/linux-2.6.35-rc5 # rpm -qa *curses*
ncurses-utils-5.6-90.55
libncurses6-5.6-90.55
yast2-ncurses-pkg-2.17.13-1.25
python-curses-2.6.0-8.7
yast2-ncurses-2.17.14-1.4
libncurses5-5.6-90.55
linux-xx82:/usr/src/linux-2.6.35-rc5 #

#make xconfig
Code:

[linux-xx82:/usr/src/linux-2.6.35-rc5 # make xconfig
  CHECK  qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o'.  Stop.
make: *** [xconfig] Error 2
linux-xx82:/usr/src/linux-2.6.35-rc5 #


linuxunix 07-16-2010 06:12 AM

Installed QT3 packages too but no working.
Just rebooted the OS to see if it works !!

bathory 07-16-2010 06:29 AM

In both cases you'll need the development packages too
Here is what I get from a Suse 10.3
Code:

rpm -qa|grep ncurses
rpm -qa|grep -i curses
yast2-ncurses-2.15.27-16
ncurses-5.6-41
ncurses-devel-5.6-41

rpm -qa|grep -i qt
yast2-control-center-qt-2.15.4-12
dbus-1-qt3-0.62-110.1
poppler-qt-0.5.4-101.4
dbus-1-qt3-devel-0.62-110.1
yast2-qt-2.15.16-19
qt3-3.3.8-76.2
qt3-devel-3.3.8-76.2


linuxunix 07-16-2010 06:38 AM

Seems that I am missing with devel package:

Code:

linux-xx82:/usr/src/linux-2.6.35-rc5 # rpm -qa | grep ncurses
ncurses-utils-5.6-90.55
libncurses6-5.6-90.55
yast2-ncurses-pkg-2.17.13-1.25
yast2-ncurses-2.17.14-1.4
libncurses5-5.6-90.55


bathory 07-16-2010 06:44 AM

I don't know about SLES but can you use your package manager to install it?
It look like it exists in your installation media (suse/i586/ncurses-devel-5.6-90.55.i586.rpm ) according to this

linuxunix 07-16-2010 07:31 AM

I have installed ncurses and itd dependent packages ( ie tack) and now it seems to run.
Will Post the further output.


All times are GMT -5. The time now is 05:31 PM.