MadWifi 在 2.6.18 上的更新

[前一篇]提到了把笔记本上的内核升级到了 2.6.18,在家里用的是以太网卡,没有用到无线。昨天是假期度完之后第一次打开,然后就发现内核升级以后我没有把 MadWifi 加上去,原来用的是 0.9.1,在 2.6.18 下编译通不过,仔细看了一下,发现它是通过包含 $KERNEL_BUILD/include/linux/version.h 这个文件(在 kernelversion.c</code),然后用 <code>gcc -E 做预处理,最后 grep</grep> 一个自己的变量(<code>char *uts_release = UTS_RELEASE;),再进行处理得到内核的版本号。在 2.6.17 是没有问题的,因为这个 UTS_RELEASE 常量确实位于 version.h 中,而在 2.6.18 中,这个常量换到了 include/linux/uts_release.h 中。

刚开始还抱有幻想,以为把这个改完以后就可以了,没想到还出了 proc_net 没找到这样的错,只好在用别的机器下一个最新的包,放在移动硬盘上,在笔记本上拷贝过来重新编译,最后没有什么问题,搞定。

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You can use BBCode tags in the text.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
          _       __  __   _____          __   __  _     __   __
_ _ | |__ | \/ | | ___| _ _ \ \ / / | | __ \ \ / /
| | | | | '_ \ | |\/| | | |_ | | | | \ V / | |/ / \ V /
| |_| | | | | | | | | | | _| | |_| | | | | < | |
\__,_| |_| |_| |_| |_| |_| \__, | |_| |_|\_\ |_|
|___/
Enter the code depicted in ASCII art style.