EasyManuals Logo

STW TC1 User Manual

STW TC1
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #78 background imageLoading...
Page #78 background image
6 Software
User Manual 78/374
Type ‘?’ or ‘help’ in case you need it
To activate the overlay filesystem, add the parameter "overlay_on" to the U-Boot bootargs:
setenv ubifsargs setenv bootargs console=ttyPSC3,115200 ubi.mtd=0 root=ubi0:rootfs rw
rootfstype=ubifs quiet overlay_on
After saving the U-Boot variables and booting the TC1 the overlay feature can be used.
Activate the overlay filesystem in the user space
To activate the overlay filesystem, add the parameter "overlay_on" to the user space:
fw_setenv ubifsargs setenv bootargs console=ttyPSC3,115200 ubi.mtd=0 root=ubi0:rootfs rw
rootfstype=ubifs quiet overlay_on
After restarting the TC1 the overlay feature can be used.
Examples
Example1:
If the user changes the /etc/init.d/rc.conf file, the changes will be stored to
/mnt/dataflash/stw/overlay/etc/init.d/rc.conf.
The original root filesystem remains unchanged.
If the user deletes the /mnt/dataflash/stw/overlay/etc/init.d/rc.conf file, the original /etc/init.d/rc.conf file from the
rootfs will be restored.
Example2:
If the user deletes the /etc/init.d/scripts/bt script in the root filesystem, then the TC1 behaves like the file is
gone. But the file is not really deleted. Only a flag in the corresponding overlay directory is set. In this case the
flag is set in the /mnt/dataflash/stw/overlay/etc/init.d/script directory.
# ls -al /mnt/dataflash/stw/overlay/etc/init.d/scripts/
total 3
drwxrwxr-x 2 root root 288 Nov 24 15:57 .
drwxrwxr-x 3 root root 360 Nov 19 15:41 ..
---------- 1 root root 0 Nov 24 15:57 .wh.bt
After removing the flag or deactivating the overlay, the file is restored in the root filesystem.
6.5.2 NAND Flash
The NAND flash is mounted to the path /mnt/dataflash.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STW TC1 and is the answer not in the manual?

STW TC1 Specifications

General IconGeneral
BrandSTW
ModelTC1
CategoryController
LanguageEnglish