怎样编译生成linux-headers linux-headers-generic?

编译打包和其他
回复
waterstarsx
帖子: 4
注册时间: 2012-05-09 10:06

怎样编译生成linux-headers linux-headers-generic?

#1

帖子 waterstarsx » 2012-05-09 23:36

内核3.3 改善了电源问题。。所以我升级了,但是virtualbox无法运行,网上很多都说要重新编译内核模块,但是编译内核模块需要linux-headers linux-headers-generic。
请问怎样生成这两个东西?不要用apt-get的,内核太新了,apt-get找不到。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 怎样编译生成linux-headers linux-headers-generic?

#2

帖子 leeaman » 2012-05-09 23:52

你什么编译的,生成deb包的时候加参数kernel-headers,大概是这个就可以生成了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
waterstarsx
帖子: 4
注册时间: 2012-05-09 10:06

Re: 怎样编译生成linux-headers linux-headers-generic?

#3

帖子 waterstarsx » 2012-05-10 0:01

leeaman 写了:你什么编译的,生成deb包的时候加参数kernel-headers,大概是这个就可以生成了
用make-kpkg编译,生成了headers,但是没有header-generic......而且用这个headers编译执行/etc/init.d/vboxdrv setup 提示asm/type.h找不到。。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 怎样编译生成linux-headers linux-headers-generic?

#4

帖子 leeaman » 2012-05-10 0:18

linux-headers-generic这个是一个元软件包,没有内容的,你这个不知道是不是精简了什么,还是vbox的问题?不好说
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
waterstarsx
帖子: 4
注册时间: 2012-05-09 10:06

Re: 怎样编译生成linux-headers linux-headers-generic?

#5

帖子 waterstarsx » 2012-05-10 1:11

leeaman 写了:linux-headers-generic这个是一个元软件包,没有内容的,你这个不知道是不是精简了什么,还是vbox的问题?不好说
linux-headers我是装了,那个3.3.2是kernel.org上下的阿,vbox也是官网下的。。。我直接把/lib/modules/3.3.2里面的build指向我编译后的源码了。
按照vbox提示 执行/etc/init.d/vboxdrv setup
但是提示 modprobe vboxdrv failed
执行dmesg
看到 warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)
vboxdrv does not agree module_layout

弄了几天了。。快放弃了。
回复