由于学习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是不是就能成功了?
|