linux-headers-2.6.24-16与linux-header-2.6.24-16-generic,哪个是真正的核?
不好意思,标准菜鸟,请哪位告知一下,谢谢~
[问题]请问/usr/src下的两个目录
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 30
- 注册时间: 2008-05-14 9:44
-
- 帖子: 30
- 注册时间: 2008-05-14 9:44
- HuntXu
- 帖子: 5776
- 注册时间: 2007-09-29 3:09
上面的问题,ls都懒么?generic全是指向另外那个目录的链接啊...
3楼的问题,你是否是想编译内核?
3楼的问题,你是否是想编译内核?
代码: 全选
hunt@bubble:/home$ ls -all /usr/src/linux-headers-2.6.24-19-generic
总用量 504
drwxr-xr-x 6 root root 664 2008-06-17 09:17 .
drwxrwsr-x 8 root src 312 2008-06-17 09:17 ..
drwxr-xr-x 3 root root 632 2008-06-17 09:17 arch
lrwxrwxrwx 1 root root 32 2008-06-17 09:17 block -> ../linux-headers-2.6.24-19/block
-rw-r--r-- 1 root root 80049 2008-06-05 04:52 .config
lrwxrwxrwx 1 root root 33 2008-06-17 09:17 crypto -> ../linux-headers-2.6.24-19/crypto
lrwxrwxrwx 1 root root 40 2008-06-17 09:17 Documentation -> ../linux-headers-2.6.24-19/Documentation
lrwxrwxrwx 1 root root 34 2008-06-17 09:17 drivers -> ../linux-headers-2.6.24-19/drivers
lrwxrwxrwx 1 root root 29 2008-06-17 09:17 fs -> ../linux-headers-2.6.24-19/fs
drwxr-xr-x 5 root root 1168 2008-06-17 09:17 include
lrwxrwxrwx 1 root root 31 2008-06-17 09:17 init -> ../linux-headers-2.6.24-19/init
lrwxrwxrwx 1 root root 30 2008-06-17 09:17 ipc -> ../linux-headers-2.6.24-19/ipc
lrwxrwxrwx 1 root root 33 2008-06-17 09:17 Kbuild -> ../linux-headers-2.6.24-19/Kbuild
lrwxrwxrwx 1 root root 33 2008-06-17 09:17 kernel -> ../linux-headers-2.6.24-19/kernel
lrwxrwxrwx 1 root root 30 2008-06-17 09:17 lib -> ../linux-headers-2.6.24-19/lib
lrwxrwxrwx 1 root root 35 2008-06-17 09:17 Makefile -> ../linux-headers-2.6.24-19/Makefile
-rw-r--r-- 1 root root 101 2008-06-05 04:52 .missing-syscalls.d
lrwxrwxrwx 1 root root 29 2008-06-17 09:17 mm -> ../linux-headers-2.6.24-19/mm
-rw-r--r-- 1 root root 422667 2008-06-05 04:53 Module.symvers
lrwxrwxrwx 1 root root 30 2008-06-17 09:17 net -> ../linux-headers-2.6.24-19/net
lrwxrwxrwx 1 root root 34 2008-06-17 09:17 samples -> ../linux-headers-2.6.24-19/samples
drwxr-xr-x 6 root root 1800 2008-06-17 09:17 scripts
lrwxrwxrwx 1 root root 35 2008-06-17 09:17 security -> ../linux-headers-2.6.24-19/security
lrwxrwxrwx 1 root root 32 2008-06-17 09:17 sound -> ../linux-headers-2.6.24-19/sound
drwxr-xr-x 2 root root 48 2008-06-05 04:52 .tmp_versions
lrwxrwxrwx 1 root root 30 2008-06-17 09:17 usr -> ../linux-headers-2.6.24-19/usr
HUNT Unfortunately No Talent...
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 30
- 注册时间: 2008-05-14 9:44
唉,并不是我想编译内核,但是我现在需要装网卡驱动,而其中有一步便是HuntXu 写了:上面的问题,ls都懒么?generic全是指向另外那个目录的链接啊...
3楼的问题,你是否是想编译内核?
代码: 全选
hunt@bubble:/home$ ls -all /usr/src/linux-headers-2.6.24-19-generic 总用量 504 drwxr-xr-x 6 root root 664 2008-06-17 09:17 . drwxrwsr-x 8 root src 312 2008-06-17 09:17 .. drwxr-xr-x 3 root root 632 2008-06-17 09:17 arch lrwxrwxrwx 1 root root 32 2008-06-17 09:17 block -> ../linux-headers-2.6.24-19/block -rw-r--r-- 1 root root 80049 2008-06-05 04:52 .config lrwxrwxrwx 1 root root 33 2008-06-17 09:17 crypto -> ../linux-headers-2.6.24-19/crypto lrwxrwxrwx 1 root root 40 2008-06-17 09:17 Documentation -> ../linux-headers-2.6.24-19/Documentation lrwxrwxrwx 1 root root 34 2008-06-17 09:17 drivers -> ../linux-headers-2.6.24-19/drivers lrwxrwxrwx 1 root root 29 2008-06-17 09:17 fs -> ../linux-headers-2.6.24-19/fs drwxr-xr-x 5 root root 1168 2008-06-17 09:17 include lrwxrwxrwx 1 root root 31 2008-06-17 09:17 init -> ../linux-headers-2.6.24-19/init lrwxrwxrwx 1 root root 30 2008-06-17 09:17 ipc -> ../linux-headers-2.6.24-19/ipc lrwxrwxrwx 1 root root 33 2008-06-17 09:17 Kbuild -> ../linux-headers-2.6.24-19/Kbuild lrwxrwxrwx 1 root root 33 2008-06-17 09:17 kernel -> ../linux-headers-2.6.24-19/kernel lrwxrwxrwx 1 root root 30 2008-06-17 09:17 lib -> ../linux-headers-2.6.24-19/lib lrwxrwxrwx 1 root root 35 2008-06-17 09:17 Makefile -> ../linux-headers-2.6.24-19/Makefile -rw-r--r-- 1 root root 101 2008-06-05 04:52 .missing-syscalls.d lrwxrwxrwx 1 root root 29 2008-06-17 09:17 mm -> ../linux-headers-2.6.24-19/mm -rw-r--r-- 1 root root 422667 2008-06-05 04:53 Module.symvers lrwxrwxrwx 1 root root 30 2008-06-17 09:17 net -> ../linux-headers-2.6.24-19/net lrwxrwxrwx 1 root root 34 2008-06-17 09:17 samples -> ../linux-headers-2.6.24-19/samples drwxr-xr-x 6 root root 1800 2008-06-17 09:17 scripts lrwxrwxrwx 1 root root 35 2008-06-17 09:17 security -> ../linux-headers-2.6.24-19/security lrwxrwxrwx 1 root root 32 2008-06-17 09:17 sound -> ../linux-headers-2.6.24-19/sound drwxr-xr-x 2 root root 48 2008-06-05 04:52 .tmp_versions lrwxrwxrwx 1 root root 30 2008-06-17 09:17 usr -> ../linux-headers-2.6.24-19/usr
ln -s /usr/src/linux-XXX /usr/src/linux
我先前用两个header都试过了,都报错,所以我才想找真正的内核
我昨天才正式用ubuntu的,所以……唉,提得问题比较简单,还请见谅,谢谢~
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 30
- 注册时间: 2008-05-14 9:44
--------------------------------------------------------------------------BigSnake.NET 写了:报什么错
uname -r <--- 用这个就对
在装网卡驱动的时候,因为显示
Your kernel version : 2.6.24-16-generic
Your header version : 2.6.24.3
不匹配
Check kernel header version(Kernel:2.6.24 != Header:2.6.24.3) [failed]
--------------------------------------------------------------------------
uname -r 显示的是kernel version : 2.6.24-16-generic
但实际装网卡驱动的时候需要 kernel version与header version版本相同,奇怪的是新装的ubuntu系统中,两者竟然如上面显示的那样版本是不一样的,所以出现无法安装驱动的问题。
而我手动将header version改为2.6.24-16,虽然通过了版本检验,但最后编译的时候却还是失败了。
唉,我的笔记本网卡是Marvell的,ubuntu8.04无法辨识,手动安装Marvell公司主页上提供的linux驱动,忙碌一整天也没有成功,有谁能帮我一下吗?