|
|

楼主 |
发表于 2006-5-30 10:48:59
|
显示全部楼层
心动不如行动,现在就开始!
主机环境:VMware+FC5.0最新补丁
目标机:S3C2410
测试:windowsxp下的ARM软件仿真(未定)
步骤:
1.VMware 创建新的4G磁盘,FC5下分为两个区, /dev/sdb1 3.8G reiserfs,/dev/sdb2 swap
2.FC5 root下创建lfs用户,口令为lfslfs
/home/lfs/.bashrc 内容如下:
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/cross-tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
unset CFLAGS
unset CXXFLAGS
export LFS_HOST="i386-redhat-linux-gnu"
export LFS_TARGET="arm-unknown-linux-gnu"
cd /mnt/lfs/sources
/home/lfs/.bash_profile 内容如下:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH HOME/bin
export PATH
unset USERNAME
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
3.建立 lfs_init.sh:
#!/bin/bash
mount /dev/sdb1 /mnt/lfs
export LFS=/mnt/lfs
# install -dv $LFS
install -dv $LFS/tools
ln -sv $LFS/tools /
install -dv $LFS/cross-tools
ln -sv $LFS/cross-tools /
install -dv $LFS/sources
# groupadd lfs
# useradd -s /bin/bash -g lfs -m -k /dev/null lfs
# passwd lfs
chown -v lfs:lfs $LFS/tools
chown -v lfs:lfs $LFS/cross-tools
chown -v lfs:lfs $LFS/sources
su - lfs
4.root 下,运行 lfs_init.sh ,建立环境.
5.在 /mnt/lfs/sources 下建 lfs_build.sh:
待续... |
|