User's Manual

© SENSITECH INC. CONFIDENTIAL – CONTROLLED DOCUMENT
Page 82 of 83
A Carrier Corp. Company
PART NUMBER T82002163
REV A
Explanation of Script
losh> erase B10 B256 /dev/nand0
Purpose of erase command:
This command erases non-volatile <device>. When using a memory mapped device (such as NOR flash)
the <start address> and <length> parameters indicate the memory address and the length in bytes. When
using a block device (such as NAND flash) the <start block> and <number of blocks> indicate the first
block number and the number of blocks to erase. Note; some devices, such as NAND flash, are marked
with bad blocks by the device manufacturer, these blocks will not be erased and the erase command will
indicate which blocks have been marked bad.
losh> add-yaffs boot nand B10 B256\
Purpose of add-yaffs command:
This command adds a YAFFS partition into LoLo's partition table. You must execute this command before
attempting to mount the YAFFS partition itself. When creating a partition in a NOR flash device, the start
location is a memory address and the length is in bytes. When creating a partition in a NAND flash device,
the start location is the start block and the length indicates the number of blocks.
This command must be called after a reset in order to make LoLo aware of a YAFFS partition. To create a
new YAFFS partition, use the erase command to erase the range of addresses containing the YAFFS file
system in flash memory before calling add-yaffs.
losh> mount yaffs /boot
Purpose of mount command:
This command mounts a filesytem of type <fstype> onto LoLo's root filesystem at point <point>. If the
mount command is successful, you may use other shell commands to access the new filesystem.
losh> erase B267 B128 /dev/nand0
Purpose of erase command:
This command erases non-volatile <device>. When using a memory mapped device (such as NOR flash)
the <start address> and <length> parameters indicate the memory address and the length in bytes. When
using a block device (such as NAND flash) the <start block> and <number of blocks> indicate the first
block number and the number of blocks to erase. Note; some devices, such as NAND flash, are marked
with bad blocks by the device manufacturer, these blocks will not be erased and the erase command will
indicate which blocks have been marked bad.
losh> add-yaffs data nand B267 B128
Purpose of add-yaffs command:
This command adds a YAFFS partition into LoLo's partition table. You must execute this command before
attempting to mount the YAFFS partition itself. When creating a partition in a NOR flash device, the start
location is a memory address and the length is in bytes. When creating a partition in a NAND flash device,
the start location is the start block and the length indicates the number of blocks.
This command must be called after a reset in order to make LoLo aware of a YAFFS partition. To create a
new YAFFS partition, use the erase command to erase the range of addresses containing the YAFFS file
system in flash memory before calling add-yaffs.
losh> mount yaffs /data
Purpose of mount command:
This command mounts a filesytem of type <fstype> onto LoLo's root filesystem at point <point>. If the
mount command is successful, you may use other shell commands to access the new filesystem.