Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] vmware-player-6.0.0 and kernel 3.11
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
pums974
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2010
Posts: 78

PostPosted: Fri Sep 06, 2013 9:41 pm    Post subject: [SOLVED] vmware-player-6.0.0 and kernel 3.11 Reply with quote

Hey what about a version bump for vmware-player vmware-tools and vmware-modules ?

I try to make it works myself, but i'm stuck with vmware-modules...

First, I managed to make vmware-modules-271.2 works with linux 3.11 thanks to this patch that I found here.
Then, I managed to make vmware-player-6.0.0.1295980 and vmware-tools-9.6.0.1295980 emerging by adjusting version numbers in ebuild.

vmware-player-6.0.0.1295980
Code:
80c80
< PDEPEND="~app-emulation/vmware-modules-279.${PV_MINOR}
---
> PDEPEND="~app-emulation/vmware-modules-271.${PV_MINOR}

vmware-tools-9.6.0.1295980
Code:
8c8,9
< BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/6.0.0/$(get_version_component_range 4)/linux/packages/"
---
> #BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.$(get_version_component_range 3)/$(get_version_component_range 4)/linux/packages/"
> BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.2/$(get_version_component_range 4)/linux/packages/"


Still I'm not able to adjust patchs files for vmware-modules from those of 271.
Only the 279-3.10.0.patch seems to be a problem.

Is anyone have been already able to make it works ?

EDIT : I corrected the version number of vmware-modules-279.0


Last edited by pums974 on Sat Sep 07, 2013 2:42 pm; edited 2 times in total
Back to top
View user's profile Send private message
chrisyu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 197
Location: China

PostPosted: Sat Sep 07, 2013 12:16 pm    Post subject: Reply with quote

I saw a bump request here https://bugs.gentoo.org/show_bug.cgi?id=484084

And thanks for the patch, it works.
Back to top
View user's profile Send private message
pums974
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2010
Posts: 78

PostPosted: Sat Sep 07, 2013 2:36 pm    Post subject: Reply with quote

Ok I did it thanks to an archlinux patch

So, you just need to replace the 279-3.10.0.patch with vmblock-9.0.2-5.0.2-3.10.patch
Code:
diff -ur vmblock-onlya/linux/control.c vmblock-only/linux/control.c
--- vmblock-only/linux/control.c        2013-02-26 10:17:29.000000000 +0200
+++ vmblock-only/linux/control.c        2013-07-05 19:56:48.298553173 +0300
@@ -208,17 +208,18 @@
    VMBlockSetProcEntryOwner(controlProcMountpoint);
 
    /* Create /proc/fs/vmblock/dev */
-   controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
+   /*controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
                                         VMBLOCK_CONTROL_MODE,
-                                        controlProcDirEntry);
-   if (!controlProcEntry) {
+                                        controlProcDirEntry);*/
+   controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, VMBLOCK_CONTROL_MODE, controlProcDirEntry, &ControlFileOps);
+   if (controlProcEntry == NULL) {
       Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n");
       remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry);
       remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
       return -EINVAL;
    }
 
-   controlProcEntry->proc_fops = &ControlFileOps;
+   /* controlProcEntry->proc_fops = &ControlFileOps; */
    return 0;
 }
Back to top
View user's profile Send private message
cazdli
n00b
n00b


Joined: 15 May 2013
Posts: 17

PostPosted: Wed Sep 18, 2013 2:37 am    Post subject: Reply with quote

Hey there, can I have clarification as to exactly what you did? I'm having issues emerging vmware-modules.
Back to top
View user's profile Send private message
chrisyu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 197
Location: China

PostPosted: Wed Sep 18, 2013 5:34 am    Post subject: Reply with quote

cazdli wrote:
Hey there, can I have clarification as to exactly what you did? I'm having issues emerging vmware-modules.


Here is my way, I am using vmware-workstation.

Code:

mkdir -p /etc/portage/patches/app-emulation/vmware-modules-271.2
cd /etc/portage/patches/app-emulation/vmware-modules-271.2
wget https://raw.github.com/willysr/SlackHacks/master/vmware/vmware-3.11/vmblock.3.11.patch


Change the first several lines, add vmblock-only to path.
Code:

diff --git a/vmblock-only/linux/file.c b/vmblock-only/linux/file.c
index d7ac1f6..5499169 100644
--- a/vmblock-only/linux/file.c
+++ b/vmblock-only/linux/file.c


Then re-emerge vmware-modules-271.2, if you see user patch applied succesfully, I think it'll work again.

Quote:

* Applying user patches from /etc/portage/patches//app-emulation/vmware-modules-271.2 ...
* vmblock.3.11.patch ... [ ok ]
* Done with patching


Good luck.
Back to top
View user's profile Send private message
pums974
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2010
Posts: 78

PostPosted: Wed Sep 18, 2013 7:30 am    Post subject: Reply with quote

I did two independant things.
  • I made vmware works with kernel-3.11
    chrisyu wrote:
    Code:
    mkdir -p /etc/portage/patches/app-emulation/vmware-modules-271.2
    cd /etc/portage/patches/app-emulation/vmware-modules-271.2
    wget https://raw.github.com/willysr/SlackHacks/master/vmware/vmware-3.11/vmblock.3.11.patch

    Change the first several lines, add vmblock-only to path.
    Code:
    diff --git a/vmblock-only/linux/file.c b/vmblock-only/linux/file.c
    index d7ac1f6..5499169 100644
    --- a/vmblock-only/linux/file.c
    +++ b/vmblock-only/linux/file.c


  • I made a version bump of vmware-player (adapt paths)
    Code:
    mkdir -p /usr/portage/local/app-emulation/vmware-player
    mkdir -p /usr/portage/local/app-emulation/vmware-modules
    mkdir -p /usr/portage/local/app-emulation/vmware-tools
    mkdir -p /usr/portage/local/app-emulation/vmware-workstation
    mkdir -p /etc/portage/patches/app-emulation/vmware-modules-279.0

    cp -r /usr/portage/tree/app-emulation/vmware-workstation/files /usr/portage/local/app-emulation/vmware-workstation/
    cp -r /usr/portage/tree/app-emulation/vmware-player/files /usr/portage/local/app-emulation/vmware-player/
    cp -r /usr/portage/tree/app-emulation/vmware-modules/files /usr/portage/local/app-emulation/vmware-modules/

    cp /usr/portage/tree/app-emulation/vmware-modules/vmware-modules-271.2.ebuild /usr/portage/local/app-emulation/vmware-modules/vmware-modules-279.0.ebuild
    cp /usr/portage/tree/app-emulation/vmware-player/vmware-player-5.0.2.1031769.ebuild /usr/portage/local/app-emulation/vmware-player/vmware-player-6.0.0.1295980.ebuild
    cp /usr/portage/tree/app-emulation/vmware-tools/vmware-tools-9.2.3.1031769.ebuild /usr/portage/local/app-emulation/vmware-tools/vmware-tools-9.6.0.1295980.ebuild
    cp /usr/portage/tree/app-emulation/vmware-workstation/vmware-workstation-9.0.2.1031769-r1.ebuild /usr/portage/local/app-workstation/vmware-workstation-10.0.0.1295980.ebuild

    cd /usr/portage/local/app-emulation/vmware-workstation/files
    cp 271-makefile-kernel-dir.patch 279-makefile-kernel-dir.patch
    cp 271-makefile-include.patch 279-makefile-include.patch
    cp 271-netdevice.patch 279-netdevice.patch
    cp 271-vmblock.patch 279-vmblock.patch
    cp 271-apic.patch 279-apic.patch
    cp 271-putname.patch 279-putname.patch

    And edit those files
    • /usr/portage/local/app-emulation/vmware-tools/vmware-tools-9.6.0.1295980
      Code:
      8c8,9
      < BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/6.0.0/$(get_version_component_range 4)/linux/packages/"
      ---
      > #BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.$(get_version_component_range 3)/$(get_version_component_range 4)/linux/packages/"
      > BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.2/$(get_version_component_range 4)/linux/packages/"

    • /usr/portage/local/app-emulation/vmware-player/vmware-player-6.0.0.1295980.ebuild
      Code:
      80c80
      < PDEPEND="~app-emulation/vmware-modules-279.${PV_MINOR}
      ---
      > PDEPEND="~app-emulation/vmware-modules-271.${PV_MINOR}

    • /usr/portage/local/app-emulation/vmware-workstation/vmware-workstation-10.0.0.1295980.ebuild
      Code:
      86c86
      < PDEPEND="~app-emulation/vmware-modules-279.${PV_MINOR}
      ---
      > PDEPEND="~app-emulation/vmware-modules-271.${PV_MINOR}

    • /usr/portage/local/app-emulation/vmware-modules/vmware-modules-279.0.ebuild
      Code:
      24,25c24,25
      <    || ( =app-emulation/vmware-player-6.0.${PV_MINOR}*
      <    =app-emulation/vmware-workstation-10.0.${PV_MINOR}* )"
      ---
      >    || ( =app-emulation/vmware-player-5.0.${PV_MINOR}*
      >    =app-emulation/vmware-workstation-9.0.${PV_MINOR}* )"
      72c72
      < #    kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10.0.patch"
      ---
      >    kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10.0.patch"

    • /etc/portage/patches/app-emulation/vmware-modules-279.0/vmblock-9.0.2-5.0.2-3.10.patch
      Code:
      diff -ur vmblock-onlya/linux/control.c vmblock-only/linux/control.c
      --- vmblock-only/linux/control.c        2013-02-26 10:17:29.000000000 +0200
      +++ vmblock-only/linux/control.c        2013-07-05 19:56:48.298553173 +0300
      @@ -208,17 +208,18 @@
          VMBlockSetProcEntryOwner(controlProcMountpoint);
       
          /* Create /proc/fs/vmblock/dev */
      -   controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
      +   /*controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME,
                                               VMBLOCK_CONTROL_MODE,
      -                                        controlProcDirEntry);
      -   if (!controlProcEntry) {
      +                                        controlProcDirEntry);*/
      +   controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, VMBLOCK_CONTROL_MODE, controlProcDirEntry, &ControlFileOps);
      +   if (controlProcEntry == NULL) {
             Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n");
             remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry);
             remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL);
             return -EINVAL;
          }
       
      -   controlProcEntry->proc_fops = &ControlFileOps;
      +   /* controlProcEntry->proc_fops = &ControlFileOps; */
          return 0;
       }

I think that's it
Back to top
View user's profile Send private message
cazdli
n00b
n00b


Joined: 15 May 2013
Posts: 17

PostPosted: Wed Sep 18, 2013 4:57 pm    Post subject: Reply with quote

i got it working now, thanks for the reply, I kept my folder named under vmware-modules-271. :D
Back to top
View user's profile Send private message
Lori
Apprentice
Apprentice


Joined: 30 Mar 2004
Posts: 265
Location: Barcelona, Spain

PostPosted: Fri Nov 29, 2013 10:49 am    Post subject: Reply with quote

How come this is still not in Portage? Emerging vmware-modules with a 3.11 kernel still fails :(
_________________
"The hunt is sweeter then the kill."
Registered Linux User #176911
Back to top
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 175

PostPosted: Tue Apr 22, 2014 11:11 am    Post subject: Reply with quote

Does this happen for each kernel , bit like Nvidia?

I can't get 279.2 to compile on kernel 3.14.1.
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