User's Manual
© SENSITECH INC. CONFIDENTIAL – CONTROLLED DOCUMENT
Page 81 of 83
A Carrier Corp. Company
PART NUMBER T82002163
REV A
losh> mount yaffs /data
Of note is that the 'drive addr' argument is not used when mounting a YAFFS partition. Also of note is that
the 'point' argument needs to correspond to the name of the partition (as defined by the add-yaffs
command) preceded by a forward slash. LogicLoader needs to mount all YAFFS partitions at the root-
directory level. Thus, a partition added using:
'add-yaffs boot ...'
will be mounted using:
'mount ... /boot'.
Note the absence of the '/' character during the 'add-yaffs' command and its presence during the 'mount'
command.
8.2.5 Accessing YAFFS Partitions in an OS
A key advantage of the read/write YAFFS filesystem capability at the LogicLoader level is the ability to
share data stored in the filesystem with an OS environment. If an OS environment (e.g. Linux, WinCE,
VxWorks) implements YAFFS as an OS-accessible file-system, any files available to LogicLoader are
also available to the OS, and vice-versa.
This contributes to significant benefits in the areas of system software upgrades (including OS upgrades)
splash screen changes, script modifications, and other boot-time data that may need to be updated.
8.3 Summary
To use the YAFFS file system within LogicLoader, follow these steps:
1) Decide on a partitioning scheme.
2) Format the partitions by erasing the associated flash blocks.
3) Add the partitions to LogicLoader using the 'add-yaffs' command.
4) Mount the partitions using the 'mount' command.
Steps 3 and 4 must be repeated every time the system is booted. If the YAFFS partitions are frequently
accessed, consider implementing steps 3 and 4 via a boot script. Step 2 only needs to be performed when
creating a brand new partition or when the contents of an existing partition need to be completely erased.
Note: a partition is persistent. Re-adding a partition at boot-time restores access to previously saved data.
Flash blocks must be erased to permanently remove a partition; otherwise, it can be recovered across boots.
Keep in mind the following when working with YAFFS and LogicLoader:
• Ensure that a partition name does not begin with a '/'. LogicLoader’s virtual filesystem uses the
forward slash to indicate the root directory.
• Ensure partitions do not overlap each other, LogicLoader, or the configuration block.
• Ensure that a partition is erased before it is mounted for the first time.