Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Ubuntu Forum Archives > Intrepid Ibex Testing and Discussion (Closed)
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Intrepid Ibex Testing and Discussion (Closed)
Development of Intrepid Ibex is finished. Please ask questions about Ubuntu 8.10 in Absolute Beginner Talk or Main Support Categories.

 
 
Thread Tools Display Modes
Old August 27th, 2008   #1
dinxter
Dipped in Ubuntu
 
dinxter's Avatar
 
Join Date: Oct 2005
Beans: 535
Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27, no guarantees provided :*)

(1) backup /usr/share/virtualbox/src/SUPDRV.h and /usr/share/virtualbox/src/linux/SUPDrv-linux.c

(2) Edit /usr/share/virtualbox/src/SUPDRV.h (LINE 104) and remove the line containing "include <asm/semaphore.h>"

# else /* older kernels */
# include <asm/semaphore.h>
# endif /* older kernels */
# include <asm/semaphore.h> // REMOVE THIS LINE
# include <linux/timer.h>

(3) Edit /usr/share/virtualbox/src/linux/SUPDrv-linux.c (LINE 1331) and change

smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 0 /*retry*/, 1 /* wait */);

to
smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 1 /* wait */);

as retry option has been dropped in 2.6.27

(4) Run /etc/init.d/vboxdrv setup

[EDIT] Just to add, this fixes the compilation errors below from /var/log/vbox-install.log

In file included from /tmp/vbox.2/linux/SUPDrv-linux.c:35:
/tmp/vbox.2/SUPDRV.h:104:30: error: asm/semaphore.h: No such file or directory
/tmp/vbox.2/linux/SUPDrv-linux.c: In function ‘supdrvOSGipResume’:
/tmp/vbox.2/linux/SUPDrv-linux.c:1331: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Error 1

Last edited by dinxter; August 27th, 2008 at 03:15 AM..
dinxter is offline  
Old August 27th, 2008   #2
plun
Chocolate-Covered Ubuntu Beans
 
plun's Avatar
 
Join Date: Nov 2006
Location: Sweden
Beans: 2,075
Ubuntu Development Release
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Thanks !

Works just fine.
plun is offline  
Old August 27th, 2008   #3
podulator
First Cup of Ubuntu
 
Join Date: Jun 2006
Beans: 1
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

magic, thanks
podulator is offline  
Old August 28th, 2008   #4
chacham23
Just Give Me the Beans!
 
Join Date: Nov 2006
Location: Israel
Beans: 73
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

thanks m8
chacham23 is offline  
Old August 29th, 2008   #5
vikrant82
Gee! These Aren't Roasted!
 
vikrant82's Avatar
 
Join Date: Apr 2007
Location: India
Beans: 197
Kubuntu Karmic Koala (testing)
Send a message via ICQ to vikrant82 Send a message via MSN to vikrant82 Send a message via Yahoo to vikrant82 Send a message via Skype™ to vikrant82
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Works fine.
__________________
Intel Pentium M Centrino 1.73Ghz, 1.25gb RAM, 9.10 Karmic, KDE 4.3 Presario V4122TU
vikrant82 is offline  
Old August 29th, 2008   #6
olskar
Dark Roasted Ubuntu
 
olskar's Avatar
 
Join Date: Feb 2007
Location: Sweden
Beans: 1,141
Ubuntu 8.10 Intrepid Ibex
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

I don't understand what I am supposed to do to fix th compilation errors I get?

Quote:
/tmp/vbox.1/linux/SUPDrv-linux.c: I funktion "supdrvOSGipResume":
/tmp/vbox.1/linux/SUPDrv-linux.c:1331: fel: för få argument till funktionen "smp_call_function"
make[2]: *** [/tmp/vbox.1/linux/SUPDrv-linux.o] Fel 1
make[1]: *** [_module_/tmp/vbox.1] Fel 2
make[1]: Lämnar katalogen "/usr/src/linux-headers-2.6.24-19-generic"
make: *** [vboxdrv] Fel 2
__________________
R.I.P. Swedish Integrity
http://www.privacydigest.com/2008/06...rveillance+law
olskar is offline  
Old August 30th, 2008   #7
chronographer
A Carafe of Ubuntu
 
chronographer's Avatar
 
Join Date: Dec 2006
Beans: 145
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Thanks aswell, its worked perfectly, I followed instructions here, just to create a nice circular reference! http://forums.virtualbox.org/viewtopic.php?t=8997
chronographer is offline  
Old August 30th, 2008   #8
scottro
Gee! These Aren't Roasted!
 
scottro's Avatar
 
Join Date: Mar 2008
Beans: 170
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Just wanted to add my thanks as well. This works, by the way, on Fedora Rawhide which is running 2.6.27-lots of other numbers. (As Rawhide tends to update daily, it's almost a waste to put the particular version, but in this case 2.6.27-0.207.rc4.git7.fc10.x86_64).
scottro is offline  
Old August 30th, 2008   #9
plun
Chocolate-Covered Ubuntu Beans
 
plun's Avatar
 
Join Date: Nov 2006
Location: Sweden
Beans: 2,075
Ubuntu Development Release
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Quote:
Originally Posted by olskar View Post
I don't understand what I am supposed to do to fix th compilation errors I get?
You don´t compile this one, just installs Suns version (Ubuntu deb file)
and then using "dinxter´s" walk around.

https://cds.sun.com/is-bin/INTERSHOP...-F@CDS-CDS_SMI

(Suns version includes a minimal portition of proprietary stuff for USB)
plun is offline  
Old August 30th, 2008   #10
olskar
Dark Roasted Ubuntu
 
olskar's Avatar
 
Join Date: Feb 2007
Location: Sweden
Beans: 1,141
Ubuntu 8.10 Intrepid Ibex
Re: Quick fix for virtualbox 1.6.4 PUEL version and kernel 2.6.27

Quote:
Originally Posted by plun View Post
You don´t compile this one, just installs Suns version (Ubuntu deb file)
and then using "dinxter´s" walk around.

https://cds.sun.com/is-bin/INTERSHOP...-F@CDS-CDS_SMI

(Suns version includes a minimal portition of proprietary stuff for USB)

But I have to recompile the kernel module with "/etc/init.d/vboxdrv setup", that is where it fails with the errormessage I wrote above
__________________
R.I.P. Swedish Integrity
http://www.privacydigest.com/2008/06...rveillance+law
olskar is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:03 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry