Common Commands in VxWorks

Common Commands in VxWorks:

i displays basic information about tasks; when the parameter is 0, it shows all tasks.

ti displays the TCB information of tasks.

d shows the memory content at the target address.

devs lists all devices on the target system.

version displays the VxWorks version number.

memShow shows information about the total number of free and allocated space in system memory.

memPartShow displays memory partition blocks and statistics.

moduleShow shows all loaded modules.

iosDevShow displays information about system devices.

iosDrvShow displays information about system drivers.

semShow shows information about semaphores.

regsShow displays information about all registers.

taskShow shows task TCB information.

taskRegsShow displays the contents of task registers.

coreShow shows CPU frequency, DDR frequency, system frequency, level 1 cache, level 2 cache, and MSR register information.

coreLbcShow displays detailed information about the LBC controller registers.

vxBusShow shows detailed information about vxBus.

pciConfigTopoShow displays PCI configuration information.

pciDevShow [pci device number] displays information about the specified PCI device.

TempratureShow displays the current temperature.

-> cmd enters command mode.

[ VxWorks ] C exits command mode.

Format and Restore the File System:

1. [cmd] sysTffsFormat

2. [cmd] cd FlashVolume

3. [cmd] file create -d FILE_DIR

4. [cmd] cd FILE_DIR

5. [cmd] ftp ip_addr and enter username and password to log in.

6. ftp> cd to the directory where the file to be downloaded is located.

7. ftp> binary (switch to binary mode when downloading .ini files).

8. ftp> get FILE

9. ftp> quit

10. [cmd] ls -l (check if the size of the downloaded file matches the size of the file on the FTP server to prevent download errors).

Leave a Comment