6 Software
User Manual
69/374
High Level Hardware Access
Path
Input
information
Output
information
Description
/etc/init.d/scripts/filesystem p1
This user space interface includes the device and
partition information of the system.
p1:
< start >
copies data from NOR to RAM and remounts
the temporarily file system, mounts USB
device to /mnt/usbdisks, prepare NAND
Example at rc.conf: Use shared memory
Useful for other applications that need shared memory.
1. Check export variable TMPFS in /etc/init.d/rc.conf
export TMPFS="tmpfs"
2. Enable shared memory section in /etc/init.d/scripts/filesystem
# Shared memory, in case a application would need it:
if [ "$TMPFS" = "tmpfs" ]
then
mount -t $TMPFS shm /dev/shm
fi
# Shared memory end
Example: Read file system usage statistics by using /bin/df
The dataflash is the only partition that is not mounted to RAM. All other have a partition size of 8MB exclude the
rootfs itself which has a size of 48 MB.
After the kernel has been loaded by the U-Boot from RAM, the system partitions are:
# df
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 48.6M 39.7M 8.9M 82% /
rwfs 7.9M 312.0K 7.6M 4% /mnt/rwfs
rwfs 7.9M 312.0K 7.6M 4% /tmp
rwfs 7.9M 312.0K 7.6M 4% /var
rwfs 7.9M 312.0K 7.6M 4% /dev
rwfs 926.3M 14.2M 907.4M 2% /etc/ppp
rwfs 7.9M 312.0K 7.6M 4% /mnt/usbdisks
ubi1:dataflash 926.3M 14.2M 907.4M 2% /mnt/dataflash
unionfs 926.3M 14.2M 907.4M 2% /usr
unionfs 926.3M 14.2M 907.4M 2% /etc
unionfs 926.3M 14.2M 907.4M 2% /opt
unionfs 926.3M 14.2M 907.4M 2% /lib
unionfs 926.3M 14.2M 907.4M 2% /home
unionfs 926.3M 14.2M 907.4M 2% /root
NOTE:
In case of writing log files to e.g. var directory, it is important to keep in mind that the allocated size is
8MB. If the log file reaches the size of 8MB, not further data can be stored.
Содержание TC1
Страница 1: ...TC1 User Manual Version of this document V1 00r0 ...
Страница 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Страница 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Страница 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Страница 174: ...7 Teleservice Application Framework User Manual 174 374 ADDRESS 6 SIZE 4 TYPE UINT32 UNIT COMMENT EnginePower ...
Страница 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...
Страница 223: ...7 Teleservice Application Framework User Manual 223 374 Association between logic hysteresis and threshold ...
Страница 293: ...8 Development Tools User Manual 293 374 3 Adapt the Build Options in order to build the binary with debug symbols ...
Страница 302: ...8 Development Tools User Manual 302 374 2 Adapt the Build Options in order to build the binary with debug symbols ...