LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   VMWare kernel module build fails (https://www.linuxquestions.org/questions/linux-from-scratch-13/vmware-kernel-module-build-fails-61397/)

jpbarto 05-23-2003 01:01 PM

VMWare kernel module build fails
 
Have an LFS 4.0 system. Downloaded VMWare from their website... installed fine. However when it tries to build its kernel modules the build is successful, but when loaded into the kernel it fails due to unresolved symbols.

Am I missing something? Does something need to be built into my kernel that isn't perhaps? Is anyone familiar with what the VMWare modules depend upon? I emailed the folks who sell vmware but they haven't emailed me back yet. its been a week the bastards.

any help would be greatly appreciated.

thanks in advance,
jpbarto

P.S. the kernel is 2.4.21-rc1

lfslinux 05-23-2003 01:07 PM

Which vmware version are you using? I'm using vmware a whole lot here, been bitten by that kernel problem ore than once too.

jpbarto 05-23-2003 01:43 PM

sorry about that... its the downloadable VMWare Workstation 4 eval version.

lfslinux 05-23-2003 02:28 PM

I'm still on old-school vmware 3.something so what I have to say may not be entirely accurate for the 4.x version.

First of all, when vmware's installation asks you to compile a kernel module, it will get the kernel headers from /lib/modules/<version>/build/

Then make sure /boot/System.map is up-to-date as well. It must be the same file that was generate during your last compile. So make sure that /lib/modules/<version>/build/System.map and /boot/System.map are identical. If not, cp the file from build/ to /boot.

It can also be caused when you compile a kernel but never installed it (ie: copied from arch/i386/boot/bzImage to /boot and then reboot the computer to load that new kernel).

So, make sure the running kernel matches the files in /lib/modules/<version>/build/ and likewise with System.map.

I think those unresolved symbols are generated by the depmod program. I think vmware's install program might be running depmod after it copies the kernel module to /lib/modules/<version>/ but I'm not entirely sure.

Either way, when you run depmod you should not get unresolved symbols at all, so you can use depmod to test to make sure your setup is working properly.

jpbarto 05-23-2003 02:57 PM

I'll give it a shot when I get home thank you.

jpbarto 05-23-2003 03:57 PM

lfslinux: the kernel source matches that running (I just rebuilt it the other night to include acpi support). The only thing that didn't match up was the system.map... so I copied that over and reran the vmware-confg.pl.

it still finds unresolved symbols in the vmmon module. the unresolved symbols are as follows:
symbol kunmap_high
symbol highmem_start_page
symbol kmap_high

is there a module / kernel feature I'm missing?

lfslinux 05-23-2003 04:05 PM

When you run depmod do you see the same unresolved symbols?

jpbarto 05-23-2003 04:12 PM

I cd to vmware-distrib/lib/modules/source and untar the vmmon.tar. I cd to vmmon-only and type make. the build goes fine and I'm left with a module vmmon-up-2.4.21-rc1 in a driver-2.4.21-rc1 directory. I cp the new module over to /lib/2.4.21-rc1/kernel/drivers and type 'depmod'. I'm told that the new module has unresolved symbols. I type 'modprobe vmmon-up-2.4.21-rc1' and I am told that kunmap_high, highmem_start_page, and kmap_high are all unresolved symbols.

any ideas?

jpbarto 05-23-2003 04:27 PM

looks like it may be an issue with the highmem support my kernel has for my gig of ram. hmmm... I could turn it off and still use 900 MB of my ram.

It appears that many other modules have had trouble in the past with highmem calls... haven't found any for 2.4.21 specifically though... any suggestion on how to fix it?


All times are GMT -5. The time now is 01:07 AM.