Changes between Version 3 and Version 4 of Docs/Prog/Manual/DeviceSupport/Network
- Timestamp:
- 01/13/10 10:35:19 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/Network
v3 v4 1 1 = Network = 2 2 3 == Network File System (NFS) Testing==3 == Network File System (NFS) == 4 4 It 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: 5 5 … … 10 10 11 11 {{{ 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> 13 13 }}} 14 Replace 90.1.2.69:/tftpboot/ltib with the appropriate IP address and share name of your NFS share14 Replace "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. 15 15 16 16 Type: … … 19 19 # cd /mnt/nfs 20 20 }}} 21 to change to the NFS directory. You can then run an application from the NFS folder such as: 21 to 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. 22 Make sure the application is flagged as executable from the host. To set a file as executable: 22 23 24 {{{ 25 # chmod +x indicator 26 }}} 27 28 To run the application type: 23 29 {{{ 24 30 # ./indicator & 25 31 }}} 26 To run an application named indicator. Make sure the application is flagged as executable from the host. To stop a running application type: 32 To 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 37 The "&" 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 39 To stop a running application type: 27 40 28 41 {{{ 29 42 # ps 30 43 }}} 44 This will list the running processes: 45 {{{ 31 46 PID TTY TIME CMD 32 47 1 ? 00:00:02 init … … 48 63 92 ? 00:00:00 kacpi_notify 49 64 }}} 50 This will list the running processes.Identify the PID number of the process to stop and type:65 Identify the PID number of the process to stop and type: 51 66 52 67 {{{ 53 68 # kill <PID> (where <PID> is the appropriate process ID) 54 69 }}} 70 71 The "pidof" statement allows for another method of stopping a process: 72 {{{ 73 # kill 'pidof indicator' 74 }}} 75 76 Note if you accidentally press ENTER before closing the apostrophe you may get a prompt: 77 {{{ 78 > 79 }}} 80 It is not possible to get out of this prompt until a closing apostrophe "'" is typed and ENTER is pressed: 81 {{{ 82 >' 83 Unknown command 84 # 85 }}} 86 55 87 At times you may lose track of your current path. To check the current path type: 56 88