如何找到特定版本Ubuntu对应的内核源码?
How to find the kernel source corresponding to the Ubuntu of specific version?
最近在研究无线网络,为了达到我的实验目的,需要对mac80211_hwsim做一些修改,但是找不到[=]对应的内核源码17=] 特定版本?如果有人能告诉我如何解决这个问题,那将很有帮助。谢谢!
lihui@ubuntu:~$ modinfo mac80211_hwsim
filename: /lib/modules/3.16.0-30-generic/kernel/drivers/net/wireless/mac80211_hwsim.ko
license: GPL
description: Software simulator of 802.11 radio(s) for mac80211
author: Jouni Malinen
srcversion: FEC587C589C9B337D559437
depends: mac80211,cfg80211
intree: Y
vermagic: 3.16.0-30-generic SMP mod_unload modversions
signer: Magrathea: Glacier signing key
sig_key: 7B:E2:A7:20:0F:17:F0:0C:A0:11:F7:0E:5A:87:4C:37:E3:E0:F6:BE
sig_hashalgo: sha512
parm: radios:Number of simulated radios (int)
parm: channels:Number of concurrent channels (int)
parm: paged_rx:Use paged SKBs for RX instead of linear ones (bool)
parm: rctbl:Handle rate control table (bool)
parm: support_p2p_device:Support P2P-Device interface type (bool)
parm: regtest:The type of regulatory test we want to run (int)
lihui@ubuntu:~$ uname -a
Linux ubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
您要更改 mac80211_hwsim 内核模块吗?
如果是这样,您将必须下载 Linux 3.16 的代码,您将在 linux/drivers/net/wireless/mac80211_hwsim.c.
找到代码
关于内核环境的下载和搭建,网上很容易找到material
如果你想学习和使用内核模块,下面的link就不错了。
https://wireless.wiki.kernel.org/en/users/drivers/mac80211_hwsim
使用以下命令获取当前系统内核源:
sudo apt-get source linux-source
最近在研究无线网络,为了达到我的实验目的,需要对mac80211_hwsim做一些修改,但是找不到[=]对应的内核源码17=] 特定版本?如果有人能告诉我如何解决这个问题,那将很有帮助。谢谢!
lihui@ubuntu:~$ modinfo mac80211_hwsim
filename: /lib/modules/3.16.0-30-generic/kernel/drivers/net/wireless/mac80211_hwsim.ko
license: GPL
description: Software simulator of 802.11 radio(s) for mac80211
author: Jouni Malinen
srcversion: FEC587C589C9B337D559437
depends: mac80211,cfg80211
intree: Y
vermagic: 3.16.0-30-generic SMP mod_unload modversions
signer: Magrathea: Glacier signing key
sig_key: 7B:E2:A7:20:0F:17:F0:0C:A0:11:F7:0E:5A:87:4C:37:E3:E0:F6:BE
sig_hashalgo: sha512
parm: radios:Number of simulated radios (int)
parm: channels:Number of concurrent channels (int)
parm: paged_rx:Use paged SKBs for RX instead of linear ones (bool)
parm: rctbl:Handle rate control table (bool)
parm: support_p2p_device:Support P2P-Device interface type (bool)
parm: regtest:The type of regulatory test we want to run (int)
lihui@ubuntu:~$ uname -a
Linux ubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
您要更改 mac80211_hwsim 内核模块吗? 如果是这样,您将必须下载 Linux 3.16 的代码,您将在 linux/drivers/net/wireless/mac80211_hwsim.c.
找到代码关于内核环境的下载和搭建,网上很容易找到material
如果你想学习和使用内核模块,下面的link就不错了。 https://wireless.wiki.kernel.org/en/users/drivers/mac80211_hwsim
使用以下命令获取当前系统内核源:
sudo apt-get source linux-source