Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.