LinuxSir.cn,穿越时空的Linuxsir!

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

编译好LFS之后的问题

[复制链接]
发表于 2006-2-17 23:15:59 | 显示全部楼层
你只需要把你目标机器上的硬盘驱动,如果是普通的硬盘一般用默认的内核就可以了,如果是SCSI硬盘则需要选上相应的设备驱动;网卡自然也要选择相应的设备,其实想挪到其它机器上如果指令系统相同的话,主要就是内核的设备驱动选择的问题,针对目标机器选择相应的就行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-18 07:33:40 | 显示全部楼层
Post by youbest
你只需要把你目标机器上的硬盘驱动,如果是普通的硬盘一般用默认的内核就可以了,如果是SCSI硬盘则需要选上相应的设备驱动;网卡自然也要选择相应的设备,其实想挪到其它机器上如果指令系统相同的话,主要就是内核的设备驱动选择的问题,针对目标机器选择相应的就行。


:thank ,还有个问题:内核应该遵循怎么的原则进行编译?cup那里我就不知道应该怎么选了……
:help
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 10:38:46 | 显示全部楼层

应该用initrd吧

The key role of initrd here is to re-use the configuration data during
normal system operation without requiring the use of a bloated "generic"
kernel or re-compiling or re-linking the kernel.

定制通用的kernel ,为每台机子定制initrd,让他们配置启动机子。

is it right?

A second scenario is for installations where Linux runs on systems with
different hardware configurations in a single administrative domain. In
such cases, it is desirable to generate only a small set of kernels
(ideally only one) and to keep the system-specific part of configuration
information as small as possible. In this case, a common initrd could be
generated with all the necessary modules. Then, only /linuxrc or a file
read by it would have to be different.

这里也这么说的。
回复 支持 反对

使用道具 举报

发表于 2006-2-19 11:53:02 | 显示全部楼层
最好的方法 还是自动检测硬件并且加载相应的模块。
基本上 LiveCD 都有这个功能。至于是怎么做到的,要看看才知道。

定制 kernel 或者 linuxrc 这几个文件,机器少还可以,多起来也够呛。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 12:57:43 | 显示全部楼层
Post by 终极幻想
最好的方法 还是自动检测硬件并且加载相应的模块。
基本上 LiveCD 都有这个功能。至于是怎么做到的,要看看才知道。

定制 kernel 或者 linuxrc 这几个文件,机器少还可以,多起来也够呛。


兄弟,能说明一下应该找那些资料好吗?我第一次接触内核的说。
回复 支持 反对

使用道具 举报

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

本版积分规则

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