VMware Communities
bkrajnik
Contributor
Contributor
Jump to solution

kernel-5.0.7 and workstation pro 14.1.7 /sbin/modinfo exited with status 256

Hi,

is anyone using kernel-5.0.7 with any workstation pro?

At the moment I have like below:

Invoking modinfo on "vmmon".

"/sbin/modinfo" exited with status 256.

Invoking modinfo on "vmnet".

"/sbin/modinfo" exited with status 256.

Invoking modinfo on "vmblock".

"/sbin/modinfo" exited with status 256.

Invoking modinfo on "vmci".

"/sbin/modinfo" exited with status 256.

Invoking modinfo on "vsock".

"/sbin/modinfo" exited with status 0.

to be installed: vmmon status: 0

to be installed: vmnet status: 0

And in compiler logs:

/tmp/modconfig-2NNvCx/vmmon-only/linux/driver.c:985:1: warning: always_inline function might not be inlinable [-Wattributes]

LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

^~~~~~~~~~~~~~~~~~~~~~~

/tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:

/tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c:1502:25: error: ‘totalram_pages’ redeclared as different kind of symbol

    extern unsigned long totalram_pages;

                         ^~~~~~~~~~~~~~

In file included from /tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c:42:

./include/linux/mm.h:52:29: note: previous definition of ‘totalram_pages’ was here

static inline unsigned long totalram_pages(void)

                             ^~~~~~~~~~~~~~

/tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c:1648:4: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]

    do_gettimeofday(&tv);

    ^~~~~~~~~~~~~~~

    do_settimeofday64

/tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c:3203:40: error: macro "access_ok" passed 3 arguments, but takes just 2

    if (!access_ok(VERIFY_WRITE, p, size)) {

                                        ^

/tmp/modconfig-2NNvCx/vmmon-only/linux/hostif.c:3203:9: error: ‘access_ok’ undeclared (first use in this function)

    if (!access_ok(VERIFY_WRITE, p, size)) {

         ^~~~~~~~~

/tmp/modconfig-2NNvCx/vmnet-only/userif.c:145:52: error: macro "access_ok" passed 3 arguments, but takes just 2

    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

                                                    ^

/tmp/modconfig-2NNvCx/vmnet-only/userif.c:145:9: error: ‘access_ok’ undeclared (first use in this function)

    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

         ^~~~~~~~~

Is anyone who can help?

0 Kudos
1 Solution

Accepted Solutions
bkrajnik
Contributor
Contributor
Jump to solution

I found out already solution:

1. Clone new module source from https://github.com/mkubecek/vmware-host-modules.git by run:

git clone -b workstation-14.1.7 https://github.com/mkubecek/vmware-host-modules.git

2. Create new tar files for vmmon.tar and vmnet.tar

3. Replace the 2 original files on /usr/lib/vmware/modules/source

4. Then run sudo vmware-modconfig --console --install-all

View solution in original post

0 Kudos
1 Reply
bkrajnik
Contributor
Contributor
Jump to solution

I found out already solution:

1. Clone new module source from https://github.com/mkubecek/vmware-host-modules.git by run:

git clone -b workstation-14.1.7 https://github.com/mkubecek/vmware-host-modules.git

2. Create new tar files for vmmon.tar and vmnet.tar

3. Replace the 2 original files on /usr/lib/vmware/modules/source

4. Then run sudo vmware-modconfig --console --install-all

0 Kudos