[原创]内核升级到2.6.27-1了,改进了不少
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 50
- 注册时间: 2006-02-16 16:04
[原创]内核升级到2.6.27-1了,改进了不少
升级内核到2.6.27-1-generic,几点改进:
1。开机很顺利,我的本子在2.6.26-5内核下启动要手工按关机键才能继续
2。无线网卡(ATHEROS5700)可以自己识别使用了
现在的问题:
1。N卡驱动不行(GEFORCE8400G,使用nvidia-glx-173包)
2。VIRTUALBOX安装失败
1。开机很顺利,我的本子在2.6.26-5内核下启动要手工按关机键才能继续
2。无线网卡(ATHEROS5700)可以自己识别使用了
现在的问题:
1。N卡驱动不行(GEFORCE8400G,使用nvidia-glx-173包)
2。VIRTUALBOX安装失败
- daxiawj
- 帖子: 26
- 注册时间: 2006-07-13 15:02
- 来自: CAS/IAP
- 联系:
- SecretZero
- 帖子: 1670
- 注册时间: 2007-08-30 5:39
-
- 帖子: 794
- 注册时间: 2008-01-30 19:19
-
- 帖子: 50
- 注册时间: 2006-02-16 16:04
- cnkanglong
- 帖子: 332
- 注册时间: 2006-03-13 14:42
cnkanglong原创
我升级到了UBUNTU 8.10后,virtualbox1.6.4不能使用了,内核编译不成功,后来看到一篇英文 按着上面说的,编译成功了
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>
注:就是打开 /usr/share/virtualbox/src/SUPDRV.h 这个文件,找到104行,将include <asm/semaphore.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
注:就是打开/usr/share /virtualbox/src/linux/SUPDrv-linux.c这个文件,找到1331行,把这些内容 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 0 /*retry*/, 1 /* wait */); 变为 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 1 /* wait */);
实际上就是将上面这句话里面的 0 /*retry*/ 删掉
(4) Run /etc/init.d/vboxdrv setup
注:就是运行这个命令 sudo /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
__________________
"Don't you know how many brain cells alcohol destroys? " she said. I didn't reply, I was too busy trying to remove the spoon I had somehow managed to get stuck up my nose....
Last edited by dinxter; 2 Days Ago at 03:15 AM.
dinxter is offline Reply With Quote
我英文水平不高,在后面加一下注解,希望对大家有用。我已经成功运行了,我是在8.10上运行的
听说现在ubuntu 8.04升级内核也出现了这个问题。
我升级到了UBUNTU 8.10后,virtualbox1.6.4不能使用了,内核编译不成功,后来看到一篇英文 按着上面说的,编译成功了
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>
注:就是打开 /usr/share/virtualbox/src/SUPDRV.h 这个文件,找到104行,将include <asm/semaphore.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
注:就是打开/usr/share /virtualbox/src/linux/SUPDrv-linux.c这个文件,找到1331行,把这些内容 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 0 /*retry*/, 1 /* wait */); 变为 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 1 /* wait */);
实际上就是将上面这句话里面的 0 /*retry*/ 删掉
(4) Run /etc/init.d/vboxdrv setup
注:就是运行这个命令 sudo /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
__________________
"Don't you know how many brain cells alcohol destroys? " she said. I didn't reply, I was too busy trying to remove the spoon I had somehow managed to get stuck up my nose....
Last edited by dinxter; 2 Days Ago at 03:15 AM.
dinxter is offline Reply With Quote
我英文水平不高,在后面加一下注解,希望对大家有用。我已经成功运行了,我是在8.10上运行的
听说现在ubuntu 8.04升级内核也出现了这个问题。
- 恨铁不成钢
- 帖子: 28
- 注册时间: 2008-06-14 8:44
-
- 帖子: 50
- 注册时间: 2006-02-16 16:04
- jialeadmin
- 帖子: 724
- 注册时间: 2008-06-17 23:17
- 来自: 灾区
- 联系:
- sevk
- 帖子: 2060
- 注册时间: 2007-05-08 16:26
- 系统: arch
- 来自: 火星内核某分子内某原子核内
- 联系:
- SecretZero
- 帖子: 1670
- 注册时间: 2007-08-30 5:39
- hethe
- 帖子: 3666
- 注册时间: 2005-08-01 9:14
照抄别人帖子没关系,但是没必要加上自己原创的字样吧cnkanglong 写了:cnkanglong原创
我升级到了UBUNTU 8.10后,virtualbox1.6.4不能使用了,内核编译不成功,后来看到一篇英文 按着上面说的,编译成功了
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>
注:就是打开 /usr/share/virtualbox/src/SUPDRV.h 这个文件,找到104行,将include <asm/semaphore.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
注:就是打开/usr/share /virtualbox/src/linux/SUPDrv-linux.c这个文件,找到1331行,把这些内容 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 0 /*retry*/, 1 /* wait */); 变为 smp_call_function(VBoxDrvLinuxGipResumePerCpu, pDevExt, 1 /* wait */);
实际上就是将上面这句话里面的 0 /*retry*/ 删掉
(4) Run /etc/init.d/vboxdrv setup
注:就是运行这个命令 sudo /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
__________________
"Don't you know how many brain cells alcohol destroys? " she said. I didn't reply, I was too busy trying to remove the spoon I had somehow managed to get stuck up my nose....
Last edited by dinxter; 2 Days Ago at 03:15 AM.
dinxter is offline Reply With Quote
我英文水平不高,在后面加一下注解,希望对大家有用。我已经成功运行了,我是在8.10上运行的
听说现在ubuntu 8.04升级内核也出现了这个问题。
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.