热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

linux 2.6.22.1 的在s3c2410平台的移植(下)

来源: 作者: 时间:2008-08-25 Tag: 点击:
二 配置

[root@localhost busybox-1.4.2]# make defconfig
[root@localhost busybox-1.4.2]# make xconfig
=============================================
修改配置 主要修改如下
=============================================
Busybox Settings
Build Options
[*]Build BusyBox as a static binary
//选此项静态编译。

Miscellaneous Utilities
[]taskset //选了就会出错

-------------------------------------------------
三 编译
[root@localhost busybox-1.5.1]# make all install
-----------------------------------------------------------------
最后会在 busybox-1.5.1/_install/目录生成你要的 bin sbin usr 目录
------------------------------------------------------------------
2. 编写linuxrc 文件
-----------------------------------------------------------------
#!/bin/sh
#e cho "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc

echo "re-create the /etc/mtab entries"
# re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /

#mount some file system
echo "mount /dev/shm as tmpfs"
/bin/mount -n -t tmpfs tmpfs /dev/shm

#挂载/proc为proc文件系统
echo "mount /proc as proc"
/bin/mount -n -t proc none /proc

#挂载/sys为sysfs文件系统
echo "mount /sys as sysfs"
/bin/mount -n -t sysfs none /sys

/bin/mount -f -t ramfs ramfs /etc

echo "yaffs is mounted"
/bin/mount -t yaffs /dev/mtdblock/1 /mnt/yaffs
exec /sbin/init
---------------------------------------------------------------------
3. 权限修改
chmod chmod 775 linuxrc 
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册