LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: mrhaigui

怎样编辑/etc/make.conf文件

[复制链接]
发表于 2007-3-13 23:58:40 | 显示全部楼层
initrd has NEVER been a prerequisite of successfully booting Linux. In other words, it is quite normal that you can boot Linux without using a initrd.
if you want to know something more, i suggest reading the following two docs:
/usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt
/usr/src/linux/Documentation/initrd.txt
回复 支持 反对

使用道具 举报

发表于 2007-3-14 00:38:48 | 显示全部楼层
我以后看看,现在我都看不及了.多谢!
回复 支持 反对

使用道具 举报

发表于 2007-3-14 05:19:55 | 显示全部楼层
Post by zhllg

if you want to know something more, i suggest reading the following two docs:
/usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt
/usr/src/linux/Documentation/initrd.txt

Thanks!
回复 支持 反对

使用道具 举报

发表于 2007-3-14 10:25:25 | 显示全部楼层
initrd.img或initrd.gz的主要任务我觉得是加载ide驱动或其它驱动模块,如果驱动已经编入内核。它好像就不需要存在了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-14 11:08:58 | 显示全部楼层
我把我的make.conf貼上来
大家看看对不对阿
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"

ACCEPT_KEYWORDS="~x86"

USE="cjk nls nptl nptlonly -qt -kde gtk gnome"

GENTOO_MIRRORS="http://61.135.158.199"
SYNC="rsync://61.135.158.199/gentoo-portage"

MAKEOPTS="-j2"

FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}"
回复 支持 反对

使用道具 举报

发表于 2007-3-14 13:02:12 | 显示全部楼层
genkernel不是用来编译通用内核的,它的作用是为了简化内核安装,并规范配置文件的管理。
genkernel --menuconfig all 其实就是

make mrproper
make menuconfig
make
make modules_install
mkinitrd
cp /usr/src/linux/vmlinuz /boot/linux-2.6.19-r1
回复 支持 反对

使用道具 举报

发表于 2007-3-14 16:39:03 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-3-15 00:44:24 | 显示全部楼层
Post by mrhaigui

LDFLAGS="-Wl,-O1"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}"

具体地问:这三个是什么作用?
回复 支持 反对

使用道具 举报

发表于 2007-3-15 02:15:48 | 显示全部楼层
LDFLAGS gcc传递给连接器ld的参数
fetch command,下载命令
resume command,断点续传命令
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表