|
发表于 2007-9-28 18:30:11
|
显示全部楼层
Post by cgood
我的,是这样的。
livecd6.2-5 附带着jhalfs2.1
passwd root
passwd jhalfs
cfdisk
----------------------------------------------------------------------------
sda1 1500M swap
sda2 8500M
----------------------------------------------------------------------------
mkswap /dev/sda1
swapon /dev/sda1
mkfs.reiser4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/build_dir
chmod -v a+wt /mnt/build_dir
chown -v jhalfs /mnt/build_dir
su jhalfs
cd jhalfs-2.1/
make
--------------------------------------
为了减少时间,check都取消~~~
但是我不知道在全部软件包安装之后应该做什么了.......
不知道jhalfs到底做了些什么,那些工作没有做,后续应该补充什么,都不知道。正在查中......
当然,如果有楼主指点下就好了。
我和你一样,现在还在编译中呢,都编译了8个小时了,呵呵
破电脑,PII400,内存64m,我也不知道编译后做什么
我的方法,参考的网上的方法:
1.启动
boot:
按F1将会出现帮助画面。
可以设置显示屏的显示配置在boot后输入
linux vga=792或是其他数字以设置屏幕显示的配置。
选择时区
配置系统时钟
出现Press Enter to activate this virtual console提示时,按回车进入控制台启动完成。
2.设置网络
进入后按回车,输入net-setup设置网络(可以不设置)
3、设置密码:
# passwd root
# passwd jhalfs
4、如远程控制启动SSH,否则在原机上操作不启动SSH
# /etc/rc.d/init.d/sshd start
客户端软件可以使用PuTTY,远程登陆到服务器
5、分区
使用cfdisk,分成2个分区,hda1 500M,hda2 4500M
# mkswap /dev/hda1 格式化swap
# swapon /dev/hda1 使用swap分区
# mkfs.reiserfs /dev/hda2 格式化hda2(提示:输入mkfs后按tab键,显示分区类型)
6、挂载分区
# mkdir –pv /mnt/lfs
# mount –v –t reiserfs /dev/hda2 /mnt/lfs (注意自己的分区设备号)
# chmod a=rwx /mnt/lfs
7、转到jhalfs用户进入jhalfs目录
# su jhalfs
$ cd
$ cd jhalfs-2.1/
8、修改编译优化参数
$ cd optimize/opt_config.d
$# cat /proc/cpuinfo | grep "model name"查看CPU类型
$ vi O3pipe_march
将其中的所有的-march=pentium4根据你的CPU类型进行需要优化
本文改为-march=pentium2
详细参考如下:
386: -march=i386
486: -march=i486
Pentium (Intel):-march=pentium
Pentium MMX (Intel): -march=pentium-mmx
Pentium PRO (Intel): -march=pentiumpro
Pentium II (Intel): -march=pentium2
Celeron (Intel):-march=pentium2
Pentium III (Intel): -march=pentium3
Celeron2 (Intel):-march=pentium3
Celeron (Willamette-Intel):-march=pentium4
Pentium 4 (Intel):-march=pentium4
K6 (AMD): -march=k6
K6-2 (AMD): -march=k6-2
K6-3 (AMD): -march=k6-3
Athlon (AMD): -march=athlon
Athlon-tbird, aka K7 (AMD): -march=athlon-tbird
Athlon-tbird XP (AMD):-march=athlon-xp
Athlon 4(AMD): -march=athlon-4
Athlon XP (AMD): -march=athlon-xp
Athlon MP (AMD): -march=athlon-mp
9、开始编译
$ cd
$ cd jhalfs-2.1/
$ make
出现以下菜单
--- BOOK Settings --->
Use BOOK (Linux From Scratch) --->选择要编译的类型
(X) Linux From Scratch要编译LFS选择这个
( ) Cross-Compiled Linux From Scratch这个是CLFS
( ) Cross-Compiled Linux From Scratch (Sysroot method)也是CLFS不过还在开发
( ) Cross-Compiled Linux From Scratch (Embedded Systems)貌似嵌入系统的CLFS
( ) Hardened Linux From Scratch HLFS这个是用在安全方面的
( ) Beyond Linux From Scratch BLFS这个大家都知道
Release (Working Copy) ---> 使用哪个版本的BOOK
( ) SVN 最新的,开发中的
(X) Working Copy 稳定版,也是光盘上带的
( ) Branch or stable book 分枝?
(/usr/share/LFS-BOOK-6.2-XML) Loc of working copy (mandatory)选择书的位置,默认的主可以
[ ] Add custom tool support
[ ] Add blfs-tool support
--- General Settings --->常规设置
[ ] Change the default user/group for this build 建立LFS的用户和组,可以不选
(/mnt/build_dir) Build Directory 建立的LFS位置,本文改成 /mnt/lfs
Retrieve source files 源的位置
(/lfs-sources) Package Archive Directory 别改,默认就可以
(http://ftp.lfs-matrix.net/) FTP mirror 如果需要下载,使用这个地址下
Always retrieve kernel package (see help)
Run the makefile 退出菜单后直接make
[ ] Rebuild files
--- Build Settings --->
Run testsuites 运行测试,默认是选上的,建议不要取消
Tests level (Only final system Glibc, GCC and Binutils testsuites) ---> 可以选择测试的内容默认的就行了
Flavour (Don't stop on test suite failures) --->
[ ] Use a custom fstab file 使用fstab文件,需要指定fstab文件位置
[ ] Build the kernel 要不要自动编译内核,需要指定内核配置文件的位置
Strip Installed Binaries/Libraries 好像是自动清理调试代码
Install vim-lang package vim的语言支持补丁,建议加上
(GMT) TimeZone 时区
($LANG) Language 语言设置en_US.UTF8
Groff page size (letter) --->
--- Advanced Features --->高级设置
Create SBU and disk usage report
[ ] Run comparison analysis on final stage
Use optimization (see help) 使用优化参数
Optimization level (Final system only) --->全部默认就行了
--- Internal Settings (WARNING: for jhalfs developers only) --->
[ ] Rebuild the Makefile (see help)
---
Load an Alternate Configuration File
Save Configuration to an Alternate File
完成后退出程序经过输入2个yes后开始编译。 |
|