Changes between Version 4 and Version 5 of Docs/Prog/Manual/Foundation/ApplicationModeStartup


Ignore:
Timestamp:
11/23/11 14:57:55 (13 years ago)
Author:
travis_l
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/Foundation/ApplicationModeStartup

    v4 v5  
    882. Standard Indicator
    99
    10 3. Setup
    11 
    12 When "1. Application Mode" is selected the uClinux operating system will start to allow applications to run.
     103. Legal metrology information / Setup
     11
     12When "1. Application Mode" is selected the micro c Linux operating system will load to allow applications to run.
    1313
    1414Linux uses a startup script file /etc/rc.d/rc.local to provide startup instructions. This script file is a text file containing a sequence of commands. This is similar to the AUTOEXEC.BAT file in an MS-DOS environment.
     
    9191}}}
    9292
    93 The command “sh” means to call a shell script. The “appmenu.sh” is the filename of the script, and the “&” ampersand character indicates that the script runs in a separate thread from the terminal. This allows for typing commands from the terminal while the script is running.
     93The command “sh” means to call a shell script. The “appmenu.sh” is the filename of the script, and the “&” ampersand character indicates that the script runs in a separate process from the terminal. This allows for typing commands from the terminal while the script is running.
    9494
    9595To view this script type:
     
    266266If the value is from 21 to 38 a custom application script is executed. Refer to the “[wiki:Docs/Prog/Manual/ConfigurationUtility Configuration Utility] documentation for information about configuring custom menu items.
    267267
    268 If the value is 99 the script will call the “reboot” function with the “&” character so that it runs in a different thread. The appmenu script will then exit. This is necessary so the reboot function can unmount the NAND. The reboot function will kill the wtsvr process if it is running and unmount the NAND then do a software restart of the OPI board microprocessor. The boot loader startup display will return. Note that this does not reboot the mainboard.
     268If the value is 99 the script will call the “reboot” function with the “&” character so that it runs as a different process. The appmenu script will then exit. This is necessary so the reboot function can unmount the NAND. The reboot function will kill the wtsvr process if it is running and unmount the NAND then do a software restart of the OPI board microprocessor. The boot loader startup display will return. Note that this does not reboot the mainboard.
    269269
    270270The “esac” statement is needed to end the “case” conditions. (esac is case spelled backwards).
     
    282282The appmenu program displays the application menu.
    283283
    284 '''/mnt/nand/bin/loadrec''' – This application is normally automatically called, so a typical user need not know these details. When an “.S19” or “.bin” flash update is selected in the file manager a script file is created which calls the “loadsrec” program with the appropriate filename and options to perform the flash. It may be useful at times to call “loadsrec” manually, or to create special shell scripts which call “loadsrec”.
     284'''/mnt/nand/bin/loadsrec''' – This application is normally automatically called, so a typical user need not know these details. When an “.S19” or “.bin” flash update is selected in the file manager a script file is created which calls the “loadsrec” program with the appropriate filename and options to perform the flash. It may be useful at times to call “loadsrec” manually, or to create special shell scripts which call “loadsrec”.
    285285
    286286The command line must be specified such as: