Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vmware modules patch for kernel 2.6.39 - CONFIG_BKL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Tue May 24, 2011 2:23 pm    Post subject: vmware modules patch for kernel 2.6.39 - CONFIG_BKL Reply with quote

Had to upgrade the kernel for wireless hardware support, and find VMWare is broken with 2.6.39.. (seems familiar)

OK, I've been Googling around and have found the Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=368139, the patches http://weltall.heliohost.org/wordpress/2011/05/14/running-vmware-workstation-player-on-linux-2-6-39-updated/ and various instructions.

I've patched VMWare from source before, but really want to stick with an emerge this time.

I'm sure it's really obvious from the bug report (to people who are more familiar with patching) , but precisely how do I apply these patches? I can find source in /usr/lib/vmware/modules/source, only a couple of months old, so it shouldn't be from the old vmware-server installation....

I'm trying (in /usr/lib/vmware/modules/source) :

edward source # patch -p1 < /home/edward/Downloads/vmware2.6.39fixed.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r source-original/vmblock-only/linux/dentry.c source/vmblock-only/linux/dentry.c
|--- source-original/vmblock-only/linux/dentry.c 2011-03-26 04:03:06.000000000 +0100
|+++ source/vmblock-only/linux/dentry.c 2011-05-14 19:05:49.000000000 +0200
--------------------------
File to patch: ^C

edward source # updatedb
edward source # locate vmblock-only
edward source #
edward source # locate dentry.c
/usr/src/linux-2.6.29/fs/9p/vfs_dentry.c
/usr/src/linux-2.6.29/fs/ecryptfs/dentry.c
/usr/src/linux-2.6.29/fs/gfs2/ops_dentry.c
/usr/src/linux-2.6.29/fs/hpfs/dentry.c
/usr/src/linux-2.6.39/fs/9p/vfs_dentry.c
/usr/src/linux-2.6.39/fs/ecryptfs/dentry.c
/usr/src/linux-2.6.39/fs/gfs2/dentry.c
/usr/src/linux-2.6.39/fs/hpfs/dentry.c


Thanks in advance.
Back to top
View user's profile Send private message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Wed May 25, 2011 4:12 am    Post subject: Reply with quote

Just downgraded the kernel back to 2.6.38.7, which has CONFIG_BKL, and also has the wireless drivers.

Will leave it alone until I'm forced to upgrade again.....
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Wed May 25, 2011 9:46 am    Post subject: Reply with quote

I have added the ebuild plus patch to my overlay at http://git.overlays.gentoo.org/gitweb/?p=user/seden.git (available via layman -a seden) and am currently updating to 2.6.39 to test the ebuild and the patch.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Wed May 25, 2011 11:51 am    Post subject: Reply with quote

I have now tested the ebuild, and my VMs are now up and running with gentoo-sources-2.6.39.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
xmaes
n00b
n00b


Joined: 13 Aug 2008
Posts: 69
Location: Madrid

PostPosted: Thu May 26, 2011 6:56 pm    Post subject: Reply with quote

thank you works fine on my pc.
Back to top
View user's profile Send private message
zerros
Apprentice
Apprentice


Joined: 02 Jun 2010
Posts: 179

PostPosted: Fri Jun 10, 2011 10:02 am    Post subject: Reply with quote

Thanks for this topic, but I don't have any /usr/lib/vmware/modules/source
I am a beginner on gentoo.

if i try to setup vmware-modules, it fails with CONFIG_BKL: is not set when it should be.

How can I apply this patch if I don't have the source of vmware-modules ?

thanks in advance for your help.
_________________
- zerros -
Back to top
View user's profile Send private message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Tue Jul 19, 2011 3:08 am    Post subject: Reply with quote

zerros wrote:

if i try to setup vmware-modules, it fails with CONFIG_BKL: is not set when it should be.

How can I apply this patch if I don't have the source of vmware-modules ?


That beat me too :) The unpacked sources will be around somewhere, but 2.6.38.7 does what I need (for now), and has CONFIG_BKL available.

If you want 2.6.39, have a look at

http://linuxreviews.org/man/layman/

http://en.gentoo-wiki.com/wiki/Overlay

then install layman and add the seden overlay which Yamakazure has kindly spent the time working on to fix this issue, and install vmware/modules from his ebuilds
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Thu Jul 21, 2011 2:58 pm    Post subject: Reply with quote

mole wrote:

then install layman and add the seden overlay which Yamakazure has kindly spent the time working on to fix this issue, and install vmware/modules from his ebuilds


Seems he's removed it in the meantime. Any other overlay around?
Back to top
View user's profile Send private message
smparkes
n00b
n00b


Joined: 21 Jul 2011
Posts: 8
Location: United States

PostPosted: Thu Jul 21, 2011 9:11 pm    Post subject: Reply with quote

someone12345 wrote:
Seems he's removed it in the meantime. Any other overlay around?


See https://bugs.gentoo.org/show_bug.cgi?id=368139#c16: sounds like it got moved into the vmware overlay (though I haven't tried it)(yet).
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Fri Jul 22, 2011 1:20 pm    Post subject: Reply with quote

Works.
Back to top
View user's profile Send private message
1089
n00b
n00b


Joined: 25 Jul 2011
Posts: 4

PostPosted: Mon Jul 25, 2011 12:33 pm    Post subject: Reply with quote

Yamakuzure wrote:
I have now tested the ebuild, and my VMs are now up and running with gentoo-sources-2.6.39.

Ich danke Ihnen sehr für Ihre Arbeit, herr Yamakuzure! Prima!
Back to top
View user's profile Send private message
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Sat Jul 30, 2011 10:55 am    Post subject: Reply with quote

has anyone tried 3D support?
my 3D doesnt work.

mks| GLUtil_InstallExtensionLists: Missing extension GL_ARB_vertex_blend
mks| GLUtil_InstallExtensionLists: Missing extension
GL_ARB_vertex_shader_texture_lod
mks| GLUtil_InstallExtensionLists: Missing extension
GL_ATI_vertex_shader_texture_lod
mks| GLUtil_InstallExtensionLists: Missing extension GL_APPLE_fence
mks| GLUtil_InstallExtensionLists: Missing extension
GL_APPLE_flush_buffer_range
_________________
No Rolex on my wrist Or platinum on my chest 'Cause I don't need that shit to impress
Back to top
View user's profile Send private message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Wed May 09, 2012 3:29 pm    Post subject: Reply with quote

OK, had been running a patched 2.6.29 with VMWare server 1 OK, but udev upgrade forced me to a newer kernel.

No vmware-server in portage so used the vmware overlay - but emerging vmware modules then fails for both 3.3.4-gentoo and 2.6.38.7 kernels, and hit a bug that's been around since January this year (no action taken yet).

the seden overlay doesn't have vmware (as mentioned before), but there is a go-vmware overlay referred to at :

http://www.disconnected-by-peer.at/index.php?blog=5

with instructions on how to install at : http://en.gentoo-wiki.com/wiki/VMware_Server

which give the command : layman --overlays=http://ftp.disconnected-by-peer.at/pub/overlay/geos_one-overlay.xml --add=go-vmware

which then fails with "Exception: Overlay "go-vmware" does not exist". Also fails if I change go-vmware to go-virtualisation (the xml file contains go-virtualisation but not go-vmware so thought I'd try it)

Can't find anything relevant in http://www.gentoo.org/proj/en/overlays/userguide.xml, so stumped for now.

Is anyone using this overlay, or could give any advice how to add it? Looks like it has Server version 1 patched right up to kernel 3.1, which would be ideal....
Back to top
View user's profile Send private message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Wed May 09, 2012 6:08 pm    Post subject: Reply with quote

Compiling from source isn't going too well either :

applied patch from http://www.disconnected-by-peer.at/index.php?blog=5 - for kernel 3.1

Modified vmware-config.pl to make $header_version_uts always match $gSystem{'uts_release'} to stop vmware complaining of mismatch

Symlinked /usr/src/linux/include/generated/autoconf.h to /usr/src/linux/include/autoconf.h so vmware-config could find it.

Now vmware-config.pl fails with :

/tmp/vmware-config0/vmnet-only/userif.c: In function 'VNetCsumCopyDatagram':
/tmp/vmware-config0/vmnet-only/userif.c:565:3: error: incompatible type for argument 1 of 'kmap'
/usr/src/linux-3.3.4-gentoo/arch/x86/include/asm/highmem.h:60:7: note: expected 'struct page *' but argument is of type 'const struct <anonymous>'
/tmp/vmware-config0/vmnet-only/userif.c:568:3: error: incompatible type for argument 1 of 'kunmap'
/usr/src/linux-3.3.4-gentoo/arch/x86/include/asm/highmem.h:61:6: note: expected 'struct page *' but argument is of type 'const struct <anonymous>'

I am trying 3.3.4 but wouldn't have thought much has changed from 3.1 ?

:( :( :(
Back to top
View user's profile Send private message
mole
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2009
Posts: 81

PostPosted: Thu May 10, 2012 6:01 am    Post subject: Reply with quote

Working with VMWare server version 1.0.10 build 203137 installed from source, using the Mario patch, kernel 2.6.38.7, vmware-config.pl modified and symlink to autoconf.h as last post.

Will try and get the go-vmware overlay (if it still exists) later...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum