📄 root_file_system_structure.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><h2><a name="root_file_system_structure" id="root_file_system_structure">Root File System Structure</a></h2><div class="level2"><p>By default uClinux implements a simple RAM based file system. The root file system for uClinux is built from the directory <code>./uClinux鈥慸ist/romfs/</code>. To add files to the uClinux default file system simply add them under this directory and recompile the kernel. To control the size of the RAM file system, for the BF533-STAMP platform, edit the following lines in : <code>vendors/AnalogDevices/BF533-STAMP/Makefile</code>: </p><pre class="code"># Blocks must be a multiple of 256BLOCKS = 4096</pre><p><code>tftp 0×1000000 uImage</code><code>0×1000000</code><code>tftp 0×20000000</code></p><p>Blocks sets the size of the ramfs in bytes. Setting it to 4096 provides a 4Meg file system, and will occupy 4Meg of SDRAM (if an uncompressed file system is used).</p><p>A summary of the directories in this file system are given below: </p><ul><li class="level1"><div class="li"><code><strong>/bin</strong></code> - (Binaries) This directory contains the executable binaries for programs that were selected in the application configuration window when compiling the kernel.</div></li><li class="level1"><div class="li"><code><strong>/dev</strong></code> - (Devices) On the target system this directory will contain the device files for the system. For more information see <a href="device_files.html" class="wikilink1" title="device_files.html">Device Files</a>.</div></li><li class="level1"><div class="li"><code><strong>/etc</strong></code><code> </code>- (Etc.) This directory contains various system configuration files.</div></li><li class="level1"><div class="li"><code><strong>/home</strong></code> - (Home) This directory provides a location for system users to store their files.</div></li><li class="level1"><div class="li"><code><strong>/lib</strong></code> - (Libraries) This directory is for shared libraries.</div></li><li class="level1"><div class="li"><code><strong>/mnt</strong></code> - (Mount) This directory contains any mounted file systems.</div></li><li class="level1"><div class="li"><code><strong>/proc</strong></code> - (Processes) This directory stores virtual files which contain information on system processes.</div></li><li class="level1"><div class="li"><code><strong>/tmp</strong></code> - (Temporary) In uClinux this directory is a link to /var/tmp.</div></li><li class="level1"><div class="li"><code><strong>/usr</strong></code> - (User) This directory stores various user programs.</div></li><li class="level1"><div class="li"><code><strong>/var</strong></code> - (Various) Unlike the other directories which exist on the device <code>/dev/root</code>, this directory exists on the device <code>/dev/ram0</code>, this makes it the only writable directory as the other directories exist on a read-only file system.</div></li></ul></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -