Chinaunix

标题: [求助]linux-2.4.0内核编译 [打印本页]

作者: _nosay    时间: 2018-09-25 02:34
标题: [求助]linux-2.4.0内核编译
由于学习Linux内核,用的是《Linux内核源代码情景分析》这本书,现在想实践一下,特别是想通过调试,确认一些理解,所以特别渴望能得到大牛们的指导,搞个可以调试linux-2.4.0内核的环境起来:

1. 下载内核源码:
http://cdn.kernel.org/pub/linux/kernel/v2.4/,下载linux-2.4.0.tar.gz

2. README内容:
COMPILING the kernel:

- Make sure you have gcc-2.91.66 (egcs-1.1.2) available.  gcc 2.95.2 may
   also work but is not as safe, and *gcc 2.7.2.3 is no longer supported*.
   Also remember to upgrade your binutils package (for as/ld/nm and company)
   if necessary. For more information, refer to ./Documentation/Changes.


3. gcc源码下载
内核README优先推荐的是gcc-2.91.66,但https://gcc.gnu.org/releases.html里面只能看到2.95.2,并且打开链接,提示:
March 16, 2001: The GNU project and the GCC developers are pleased to announce the release of GCC version 2.95.3.
This release is no longer maintained.

所以我的问题是:
1. 从哪还能下载到2.91.66或2.95.2版本的gcc?
2. 这种很低版本的gcc,现当前很高版本的ubuntu系统里编译安装,会不会遇到什么问题,如果没问题,用它编译linux-2.4.0是不是就能成功了?


作者: _nosay    时间: 2018-09-25 03:38

作者: _nosay    时间: 2018-09-25 03:52

除了gcc,还要更新Documentation/Changes里面提到的一堆东西,估计非常麻烦。。

作者: _nosay    时间: 2018-09-25 03:57
本帖最后由 _nosay 于 2018-09-25 04:17 编辑

gcc替换:
gcc-2.91.66/egcs-1.1.2:https://gcc.gnu.org/pub/gcc/old-releases/egcs/egcs-1.1.2.tar.bz2(优先)
gcc-2.95.2:https://gcc.gnu.org/pub/gcc/releases/gcc-2.95.2/gcc-2.95.2.tar.gz

其它替换:
linux-2.4.0/Documentation/Changes




作者: _nosay    时间: 2018-09-25 18:20



作者: _nosay    时间: 2018-09-26 20:13
https://www.linuxidc.com/Linux/2016-11/137353.htm
https://www.linuxidc.com/Linux/2016-11/137354.htm
https://www.linuxidc.com/Linux/2016-11/137342.htm



作者: _nosay    时间: 2018-09-28 00:58



作者: _nosay    时间: 2018-09-28 10:17
时间久远,环境里的很多东西要往回调,甚至这个过程中依赖的一些老版本软件,已经下载不到了。。


作者: _nosay    时间: 2018-09-28 22:59
Redhat Linux版本历史
RedHat 7.3 (Valhalla)安装镜像

作者: _nosay    时间: 2019-08-06 15:15
https://www.linuxidc.com/Linux/2016-11/137354.htm




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2