comparison rvinterf/etmsync/fsio.help @ 593:f315cdb1555f

fc-fsio help updated for new rm command
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 04 Feb 2020 03:52:50 +0000
parents 01c97de62dda
children 3a9b8f9c7225
comparison
equal deleted inserted replaced
592:a0754c98fc2b 593:f315cdb1555f
2 === all 2 === all
3 The following commands are available: 3 The following commands are available:
4 4
5 cpout Copy content out of device FFS to host file system 5 cpout Copy content out of device FFS to host file system
6 cpout-file Copy out a single file 6 cpout-file Copy out a single file
7 delete Delete FFS object
8 dieid Retrieve Calypso die ID via ETM query 7 dieid Retrieve Calypso die ID via ETM query
9 exec Execute a command script 8 exec Execute a command script
10 exit Exit from fc-fsio 9 exit Exit from fc-fsio
11 fd Low level file descriptor operations 10 fd Low level file descriptor operations
12 ffs2ver TMFFS2 version query 11 ffs2ver TMFFS2 version query
21 mk-std-dirs Create standard set of FFS directories 20 mk-std-dirs Create standard set of FFS directories
22 pirelli-get-imei Retrieve factory IMEI on Pirelli DP-L10 21 pirelli-get-imei Retrieve factory IMEI on Pirelli DP-L10
23 pirelli-magnetite-init Initialize FFS for FC Magnetite fw on Pirelli target 22 pirelli-magnetite-init Initialize FFS for FC Magnetite fw on Pirelli target
24 preformat Preformat FFS on device (dangerous!) 23 preformat Preformat FFS on device (dangerous!)
25 readlink Raw interface to ffs_readlink() API call 24 readlink Raw interface to ffs_readlink() API call
25 rm Delete FFS object
26 set-imeisv Write /etc/IMEISV or /pcm/IMEI file 26 set-imeisv Write /etc/IMEISV or /pcm/IMEI file
27 set-pcm-string Write /pcm/CGxx files 27 set-pcm-string Write /pcm/CGxx files
28 set-rfcap Write /gsm/com/rfcap file 28 set-rfcap Write /gsm/com/rfcap file
29 stat Raw interface to ffs_xlstat() API call 29 stat Raw interface to ffs_xlstat() API call
30 symlink Create a symlink in device FFS 30 symlink Create a symlink in device FFS
51 cpout-file target-pathname host-pathname 51 cpout-file target-pathname host-pathname
52 52
53 This command is like regular cpout, but assumes that the target pathname refers 53 This command is like regular cpout, but assumes that the target pathname refers
54 to a single file and not a directory, and skips the pathname validation and 54 to a single file and not a directory, and skips the pathname validation and
55 xlstat query steps toward that end. 55 xlstat query steps toward that end.
56
57 === delete
58 delete ffs-pathname
59
60 This command deletes the named object in the device FFS, which must be a regular
61 file, an empty directory or a symlink.
62
63 Note that in classic UNIX there are two different "delete file system object"
64 elementary operations: unlink for regular files or symlinks and rmdir for empty
65 directories, but TI's FFS implementation provides a single ffs_remove() API call
66 instead for deleting all 3 object types; our delete command is the interface to
67 this ffs_remove() API call.
68 56
69 === dieid 57 === dieid
70 This command sends an ETM query for the Calypso die ID to the running firmware 58 This command sends an ETM query for the Calypso die ID to the running firmware
71 on the target and displays the returned result. 59 on the target and displays the returned result.
72 60
212 200
213 This command provides raw access to the ffs_readlink() API call and displays 201 This command provides raw access to the ffs_readlink() API call and displays
214 the returned response as a hex dump. Use ls -l (or ll) as a more user-friendly 202 the returned response as a hex dump. Use ls -l (or ll) as a more user-friendly
215 interface. 203 interface.
216 204
205 === rm
206 rm [-f] ffs-pathname
207
208 This command deletes the named object in the device FFS, which must be a regular
209 file, an empty directory or a symlink.
210
211 Note that in classic UNIX there are two different "delete file system object"
212 elementary operations: unlink for regular files or symlinks and rmdir for empty
213 directories, but TI's FFS implementation provides a single ffs_remove() API call
214 instead for deleting all 3 object types; our rm command is the interface to
215 this ffs_remove() API call.
216
217 If the -f option is given, the condition where the object to be deleted does not
218 exist is treated as not-an-error; all other errors are still reported.
219
217 === set-imeisv 220 === set-imeisv
218 set-imeisv fc XXXXXXXX-YYYYYY-ZZ # write /etc/IMEISV 221 set-imeisv fc XXXXXXXX-YYYYYY-ZZ # write /etc/IMEISV
219 set-imeisv pcm XXXXXXXX-YYYYYY-ZZ # write /pcm/IMEI 222 set-imeisv pcm XXXXXXXX-YYYYYY-ZZ # write /pcm/IMEI
220 223
221 This command sets the IMEISV to be used for GSM operation and stores it either 224 This command sets the IMEISV to be used for GSM operation and stores it either