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.
WARNING:
It is recommended to store all the user data to /mnt/dataflash to avoid data loss.
Summary of Contents for TC1
Page 1: ...TC1 User Manual Version of this document V1 00r0 ...
Page 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Page 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Page 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Page 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...