Changeset c2153cf in rtems
- Timestamp:
- 02/29/08 00:23:04 (15 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- faa242e8
- Parents:
- fbd6c0f
- Location:
- doc
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/ChangeLog
rfbd6c0f rc2153cf 1 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * shell/.cvsignore, shell/Makefile.am, shell/memory.t, 4 shell/preface.texi, shell/shell.texi: Added much information the 5 Preface. Created initial version of Configuration and Intialization 6 chapter. Links are now complete from start to end of manual. 7 * shell/confinit.t: New file. 8 1 9 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com> 2 10 -
doc/shell/.cvsignore
rfbd6c0f rc2153cf 1 confinit.texi 1 2 file.texi 2 3 general.texi -
doc/shell/Makefile.am
rfbd6c0f rc2153cf 15 15 FILES = shell.texi preface.texi 16 16 17 GENERATED_FILES = general.texi file.texi memory.texi rtems.texi network.texi 17 GENERATED_FILES = confinit.texi general.texi file.texi memory.texi \ 18 rtems.texi network.texi 18 19 19 20 COMMON_FILES += $(top_srcdir)/common/cpright.texi … … 22 23 shell_TEXINFOS = $(FILES) $(COMMON_FILES) $(GENERATED_FILES) 23 24 24 general.texi: general.t25 confinit.texi: confinit.t 25 26 $(BMENU2) -p "Preface" \ 26 27 -u "Top" \ 27 -n "" < $< > $@ 28 -n "General Commands" < $< > $@ 29 30 general.texi: general.t 31 $(BMENU2) -p "Configuration and Initialization rtems_shell_init - initialize the shell" \ 32 -u "Top" \ 33 -n "File and Directory Commands" < $< > $@ 28 34 29 35 file.texi: file.t 30 $(BMENU2) -p " " \36 $(BMENU2) -p "General Commands exit - exit the shell" \ 31 37 -u "Top" \ 32 -n " " < $< > $@38 -n "Memory Commands" < $< > $@ 33 39 34 40 memory.texi: memory.t 35 $(BMENU2) -p " " \41 $(BMENU2) -p "File and Directory Commands cd - alias for chdir" \ 36 42 -u "Top" \ 37 -n " " < $< > $@43 -n "RTEMS Specific Commands" < $< > $@ 38 44 39 45 rtems.texi: rtems.t 40 $(BMENU2) -p " " \46 $(BMENU2) -p "Memory Commands malloc - obtain information on C program heap" \ 41 47 -u "Top" \ 42 -n " " < $< > $@48 -n "Network Commands" < $< > $@ 43 49 44 50 network.texi: network.t 45 $(BMENU2) -p " " \51 $(BMENU2) -p "RTEMS Specific Commands dname - displays information about named drivers" \ 46 52 -u "Top" \ 47 -n " " < $< > $@53 -n "Function and Variable Index" < $< > $@ 48 54 49 55 EXTRA_DIST = general.t file.t memory.t rtems.t network.t -
doc/shell/memory.t
rfbd6c0f rc2153cf 439 439 @c 440 440 @page 441 @subsection malloc - obtain information on cprogram heap441 @subsection malloc - obtain information on C program heap 442 442 443 443 @pgindex malloc -
doc/shell/preface.texi
rfbd6c0f rc2153cf 8 8 9 9 @ifinfo 10 @node Preface, General Commands, Top, Top10 @node Preface, Configuration and Initialization, Top, Top 11 11 @end ifinfo 12 12 @unnumbered Preface 13 13 14 14 Real-time embedded systems vary widely based upon their 15 operational and maintenance requirements. Many of these 16 systems now include a command line interface which can 17 be used to diagnostic 15 operational and maintenance requirements. Some of these 16 systems provide ways for the user or developer to interact 17 with them. This interaction could be used for operational, 18 diagnostic, or configuration purposes. The capabilities 19 described in this manual are those provided with RTEMS to 20 provide a command line interface for user access. Some 21 of these commands will be familiar as standard POSIX utilities 22 while others are RTEMS specific or helpful in debugging 23 and analyzing an embedded system. As a simple example of 24 the powerful and very familiar capabilities that the RTEMS 25 Shell provides to an application, consider the following 26 example which hints at some of the capabilities available: 27 28 @smallexample 29 Welcome to rtems-4.8.99.0(SPARC/w/FPU/sis) 30 COPYRIGHT (c) 1989-2008. 31 On-Line Applications Research Corporation (OAR). 32 33 Login into RTEMS 34 35 login: rtems 36 Password: 37 38 RTEMS SHELL (Ver.1.0-FRC):/dev/console. Feb 28 2008. 'help' to list commands. 39 SHLL [/] $ cat /etc/passwd 40 root:*:0:0:root::/:/bin/sh 41 rtems:*:1:1:RTEMS Application::/:/bin/sh 42 tty:!:2:2:tty owner::/:/bin/false 43 SHLL [/] $ ls /dev 44 -rwxr-xr-x 1 rtems root 0 Jan 01 00:00 console 45 -rwxr-xr-x 1 root root 0 Jan 01 00:00 console_b 46 2 files 0 bytes occupied 47 SHLL [/] $ stackuse 48 Stack usage by thread 49 ID NAME LOW HIGH CURRENT AVAILABLE USED 50 0x09010001 IDLE 0x023d89a0 - 0x023d99af 0x023d9760 4096 608 51 0x0a010001 UI1 0x023d9f30 - 0x023daf3f 0x023dad18 4096 1804 52 0x0a010002 SHLL 0x023db4c0 - 0x023df4cf 0x023de9d0 16384 6204 53 0xffffffff INTR 0x023d2760 - 0x023d375f 0x00000000 4080 316 54 SHLL [/] $ mount -L 55 File systems: msdos 56 SHLL [/] $ 57 @end smallexample 58 59 In the above example, the user @i{rtems} logs into a 60 SPARC based RTEMS system. The first command is 61 @code{cat /etc/passwd}. This simple command lets us 62 know that this application is running the In Memory 63 File System (IMFS) and that the infrastructure has 64 provided dummy entries for @i{/etc/passwd} and a few 65 other files. The contents of @i{/etc/passwd} let 66 us know that the user could have logged in as @code{root}. 67 In fact, the @code{root} user has more permissions 68 than @code{rtems} who is not allowed to write into the 69 filesystem. 70 71 The second command is @code{ls /dev} which lets us 72 know that RTEMS has POSIX-style device nodes which 73 can be accesses through standard I/O function calls. 74 75 The third command executed is the RTEMS specific 76 @code{stackuse} which gives a report on the stack 77 usage of each thread in the system. Since stack 78 overflows are a common error in deeply embedded systems, 79 this is a surprising simple, yet powerful debugging aid. 80 81 Finally, the last command, @code{mount -L} hints that 82 RTEMS supports a variety of mountable filesystems. With 83 support for MS-DOS FAT on IDE/ATA and Flash devices as 84 well as network-based filesystens such as NFS and TFTP, 85 the standard free RTEMS provides a robuse infrastructure 86 for embedded applications. 87 88 This manual describes the RTEMS Shell and its command set. 89 In our terminology, the Shell is just a loop reading user 90 input and turning that input into commands with argument. 91 The Shell provided with RTEMS is a simple command reading 92 loop with limited scripting capabilities. It can be connected 93 to via a standard serial port or connected to the RTEMS 94 @code{telnetd} server for use across a network. 95 96 Each command in the command set is implemented as a single 97 subroutine which has a @i{main-style} prototype. The commands 98 interpret their arguments and operate upon stdin, stdout, and 99 stderr by default. This allows each command to be invoked 100 independent of the shell. 101 102 The described separation of shell from commands from communications 103 mechanism was an important design goal. At one level, the RTEMS 104 Shell is a complete shell environment providing access to multiple 105 POSIX compliant filesystems and TCP/IP stack. The subset of 106 capabilities available is easy to configure and the standard 107 Shell can be logged into from either a serial port or via telnet. 108 But at another level, the Shell is a large set of components which 109 can be integrated into the user's developed command interpreter. 110 In either case, it is trivial to add custom commands to the command 111 set available. 112 -
doc/shell/shell.texi
rfbd6c0f rc2153cf 67 67 68 68 @include preface.texi 69 @include confinit.texi 69 70 @include general.texi 70 71 @include file.texi … … 80 81 @menu 81 82 * Preface:: 83 * Configuration and Initialization:: 82 84 * General Commands:: 83 85 * File and Directory Commands:: … … 96 98 @c 97 99 98 @node Function and Variable Index, Concept Index, , Top100 @node Function and Variable Index, Concept Index, Network Commands route - show or manipulate the ip routing table, Top 99 101 @unnumbered Function and Variable Index 100 102 @printindex fn
Note: See TracChangeset
for help on using the changeset viewer.