Changes between Version 3 and Version 4 of Docs/Prog/Manual/DeviceSupport/Network


Ignore:
Timestamp:
01/13/10 10:35:19 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/DeviceSupport/Network

    v3 v4  
    11= Network =
    22
    3 == Network File System (NFS) Testing ==
     3== Network File System (NFS) ==
    44It is helpful to setup an NFS share on your host computer for application testing. You may place your executables to be tested in the directory and access them from the target hardware. Using MiniCom, HyperTerminal or another communications program to communicate with the debug serial port 115000 8N1 the prompt should appear as:
    55
     
    1010
    1111{{{
    12 # mount –t nfs !90.1.2.69:/tftpboot/ltib /mnt/nfs –o nolock <CR>
     12# mount –t nfs 192.168.1.100:/srv/nfs /mnt/nfs –o nolock <CR>
    1313}}}
    14 Replace 90.1.2.69:/tftpboot/ltib with the appropriate IP address and share name of your NFS share
     14Replace "192.168.1.100:/srv/nfs" with the appropriate IP address and share name of your NFS share. "/srv/nfs" is NFS share name already configured when using the VMware development image.
    1515
    1616Type:
     
    1919# cd /mnt/nfs
    2020}}}
    21 to change to the NFS directory. You can then run an application from the NFS folder such as:
     21to change to the NFS directory. You can then run an application directly from the NFS folder without having to copy it to the 825 NAND.
     22Make sure the application is flagged as executable from the host. To set a file as executable:
    2223
     24{{{
     25# chmod +x indicator
     26}}}
     27
     28To run the application type:
    2329{{{
    2430# ./indicator &
    2531}}}
    26 To run an application named indicator. Make sure the application is flagged as executable from the host. To stop a running application type:
     32To run an application named indicator. Note the "./" at the beggining is needed to tell the OS to run the executable in the current directory. Alternatively, you may run the executable file by specifying the full path:
     33{{{
     34# /mnt/nfs/indicator &
     35}}}
     36 
     37The "&" symbol specifies that the application will run in a new thread so you may continue to type commands, for example to check memory or copy files while the program is running. If the "&" symbol is not specified the terminal will be locked until the program exits or "CTRL-C" from the terminal will usually be able to stop the execution.
     38
     39To stop a running application type:
    2740
    2841{{{
    2942# ps
    30 
     43}}}
     44This will list the running processes:
     45{{{
    3146  PID TTY          TIME CMD
    3247    1 ?        00:00:02 init
     
    4863   92 ?        00:00:00 kacpi_notify
    4964}}}
    50 This will list the running processes. Identify the PID number of the process to stop and type:
     65Identify the PID number of the process to stop and type:
    5166
    5267{{{
    5368# kill <PID>  (where <PID> is the appropriate process ID)
    5469}}}
     70
     71The "pidof" statement allows for another method of stopping a process:
     72{{{
     73# kill 'pidof indicator'
     74}}}
     75
     76Note if you accidentally press ENTER before closing the apostrophe you may get a prompt:
     77{{{
     78>
     79}}}
     80It is not possible to get out of this prompt until a closing apostrophe "'" is typed and ENTER is pressed:
     81{{{
     82>'
     83Unknown command
     84#
     85}}}
     86
    5587At times you may lose track of your current path. To check the current path type:
    5688