⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 157.htm

📁 pcb设计资料初学者难得的入门资料包含工厂制作过程
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://202.112.58.200"><font face="黑体"><big><big>Tsinghua</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center">         嵌入式系统                            (BM: turbolinux jacobw)          </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p   align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="100" align="center" valign="top"><br><p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="65.htm">上一层</a>][<a href="158.htm">下一篇</a>]
<hr><p align="left"><small>发信人: turbolinux (hoho~神啊,救救我吧...), 信区: Embedded <br>

标  题: Embedded Linux Howto  (4) <br>

发信站: BBS 水木清华站 (Thu Jul 12 00:31:33 2001) <br>

  <br>

4. Creating a root file system <br>

4.1 Creating a new partition <br>

Quoted from the LFS-HOWTO at http://huizen.dds.nl/~glb/ <br>

  <br>

Before we can build our new Linux system, we need to have an empty Linux <br>

 partition on which we can build our new system. If you already have a <br>

Linux Native partition available, you can skip this subsection and the <br>

following one. <br>

  <br>

Start the fdisk program (or cfdisk if you prefer that program) with <br>

the appropriate hard disk as the option (like /dev/hda if you want to <br>

create a new partition on the primary master IDE disk). Create a Linux <br>

Native partition, write the partition table and exit the (c)fdisk <br>

program. If you get the message that you need to reboot your system to <br>

ensure that that partition table is updated, then please reboot your <br>

system now before continuing. <br>

  <br>

4.2 Creating an ext2 file system on the new partition <br>

Quoted from the LFS-HOWTO at http://huizen.dds.nl/~glb/ <br>



  <br>

To create a new ext2 file system we use the mke2fs command. Give $LFS as <br>

 the only option and the file system will be created. <br>

  <br>

From now on I'll refer to this newly created partition as $EMBPART. <br>

$EMBPART should be substituted with the partition you have created. <br>

  <br>

4.3 Mounting the partition <br>

To access the newly created filesystem, you have to mount it. For this <br>

create a /mnt/hda? directory and type at shell prompt: <br>

  <br>

mkdir /mnt/hda? <br>

mount $EMBPART /mnt/hda? <br>

If you created your partition on /dev/hda4, and you mounted it on <br>

/mnt/hda4, when this document will tell you to copy a file to $dollar; <br>

EMBPART/usr/bin then you will need to copy that file to <br>

/mnt/hda4/usr/bin. <br>

  <br>

  <br>

  <br>

  <br>

4.4 Populating the filesystem <br>



The root filesystem must contain everything needed to support a full <br>

Linux system. We will build a directory structure not that far from <br>

the File Hierarchy Standard <br>

  <br>

Directories <br>

Directories are made by using the mkdir fonction in the new mounted <br>

filesystem. <br>

  <br>

/proc <br>

Directory stub required by the proc filesystem. <br>

  <br>

/etc <br>

System configuration file <br>

  <br>

/sbin <br>

Critical System binaries <br>

  <br>

/bin <br>

Basic binaries considered part of the system <br>

  <br>

/lib <br>

Shared Libraries to provide run time support <br>



  <br>

/mnt <br>

Mount point for maintenance <br>

  <br>

/usr <br>

Additional utilities and applications <br>

  <br>

  <br>

cd /mnt/hda? <br>

mkdir bin dev home proc sbin usr boot etc liv mnt root tmp var <br>

mkdir -p usr/bin usr/sbin usr/share usr/lib <br>

mkdir -p etc/config etc/default etc/init.d etc/rc.boot <br>

mkdir -p etc/rc0.d etc/rc1.d etc/rc2.d etc/rc3.d etc/rc4.d etc/rc5.d <br>

etc/rc6.d etc/rcS.d <br>

the /dev directory <br>

The dev directory is the stub required to perform devices input / <br>

output. Each file in this directory may be created using the mknod <br>

function. You may avoid losing time by directly copying the required dev <br>

 entries from your desktop Linux. <br>

  <br>

cp -av /dev/???? /mnt/hda? <br>

  <br>



  <br>

-- <br>

Welcome to http://www.EnjoySmart.com <br>

  -->Dedicated to Smart Home & Network Appliances <br>

  <br>

  <br>

※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.174.125] <br>

</small><hr>
<p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="65.htm">上一层</a>][<a href="158.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -