Course Description Combined with the actual development experience and the use of development tools, the basic concepts of VxWorks system development and various debugging methods are introduced in detail, so that students can have a deep understanding of VxWorks, master the skills to solve practical problems, and truly use VxWorks
Prerequisite knowledge Have a good C programming foundation
Course format Course teaching and instructing students to give equal emphasis on hands-on experiments The development environment is prepared by the students, and the version is not limited (Vx5/6/7)
cost Open class-no more than 1500 RMB per person per day, 10 people start class Corporate internal training-no more than 15,000 RMB per day, unlimited number of people
Course Outline One system programming (3 days) 1. Introduction to VxWorks
2. Development tools
3. Multitasking development
4. Multitasking communication
5.RTP
6.Utility
7. Debugging mechanism
8.IO system
9. System startup process
Two user mode programming (2 days) 1. What is RTP
2. Inter-process communication
3. Application transplantation
Three multi-core programming (1 day)
|
What is VxWorks?
About real time
About hard real-time
What is BSP
What is Task?
What is RTP?
Start of RTP
Utility APP starts automatically
Component's Kernel Shell command
Boot bootrom boot sequence
加载vxWorks的boot loader有很多种,最常见的就是使用BSP编译的bootrom 它在Target里的执行顺序如下
|
Boot之VxWorks的镜像类型
Boot之vxWorks启动顺序
Tool之VIP
Tool之DKM
Tool之Debugger
Vx7之VmWare
Vx7之VirtualBox
Component之netstat
Component之抓包工具
Component之Spy
C语言之关键字static
UGL之HelloWorld
UGL之绘制多边形
Net之UDP极简编程
Net之TCP极简编程
Net之MultiCast极简编程
Net之SCTP极简编程
Net之TFTP
Net之NFS
Task之消息队列
Component之CMD的0x10x10个命令
命令 | 简介 |
adrsp | Display information on the address space. |
alias | Add an alias or display alias |
arp | IPNET arp control |
bp | Display, set or unset a breakpoint |
C | Switch to C interpreter |
cd | Change current directory. |
cpu | Set/Get CPU affinity |
date | Show/Set current date |
demangle | Display demangled string |
dprintf | Insert a dynamic printf eventpoint |
echo | Display a line of text |
echoclient | TCP/UDP echo client |
echoserver | TCP/UDP echo server |
edr clear | Clear ED&R log |
edr show | Display ED&R log |
edr show boot | Display ED&R records caused by a boot |
edr show fatal | Display fatal records from the ED&R log |
edr show info | Display information records from the ED&R log |
edr show init | Display ED&R records caused by initialization |
edr show interrupt | Display ED&R records caused by an interrupt |
edr show kernel | Display ED&R records created at the kernel-level |
edr show reboot | Display ED&R records caused by a reboot |
edr show rtp | Display ED&R records created by the RTP system |
edr show user | Display ED&R records created at the user-level |
exit | Exit the shell session. |
expr | Evaluate expressions |
file concat | Concatenate and display files. |
file copy | Copy files and directories. |
file create | Create files or directories. |
file list | List the files in a directory. |
file move | Move (rename) files. |
file remove | Remove files or directories. |
ftp | FTP client |
func call | Call a given routine with parameters. |
getenv | Get an environment variable |
history load | Load an history file into the current shell session. |
history save | Save the current shell session history. |
ifconfig | IPNET interface configuration |
ipd | ipd - Interpeak daemon control |
ipversion | Show interpeak product versions |
logout | Logout the shell session. |
lookup | Lookup a symbol |
mem | Memory debug tool |
mem block list | Display information on allocated blocks. |
mem block mark | Mark allocated blocks. |
mem block unmark | Unmark allocated blocks. |
mem dump | Display memory |
mem info | Display memory information |
mem list | Disassemble and display a specified number of instructions |
mem modify | Modify memory values |
mem part list | Display information on memory partition instrumentation. |
mem queue flush | Flush the free queue. |
mem rtp block list | Display information on allocated blocks. |
mem rtp block mark | Mark allocated blocks. |
mem rtp block unmark | Unmark allocated blocks. |
mem rtp part list | Display information on memory partition instrumentation. |
mib2 | Print MIB-2 statistics |
mmap list | Display information on memory mapped objects. |
module | Display the current status for all the loaded modules |
module info | Display complete information for a loaded module |
module load | Load an object module into kernel memory |
module unload | Unload an object module from kernel memory |
more | Browse and page through a text file. |
netstat | IPNET socket and route stats |
nslookup | Query Internet name servers interactively |
object handle | Display the object Id for an object handle. |
object info | Display information on specified objects. |
pcap | Packet capture utility |
ping | IPNET ping utility |
pppconfig | ppp config |
print errno | Print a errno value |
printf | Write formatted output |
pwd | Display current working directory. |
qc | IPNET output queue configuration |
qos | IPNET Quality of Service configuration |
reboot | Reboot the system |
repeat | Repeat a command |
ripctrl | RIP daemon control |
route | IPNET route table control |
rtp | Display process list. |
rtp attach | Attach the shell session to a process. |
rtp background | Run the current or specified process in the shell background. |
rtp continue | Continue a process. |
rtp delete | Delete a process. |
rtp detach | Detach the shell session from a process |
rtp exec | Execute a process. |
rtp foreground | Bring the current or specified process into the shell foreground. |
rtp hooks | Display the list of RTP hooks in the system. |
rtp info | Display process information. |
rtp list | Display the list of RTPs in the system. |
rtp meminfo | Display memory information for a process. |
rtp shl | Display the list of shared libraries in the process. |
rtp stop | Stop a RTP. |
rtp symbols add | Add symbols to a RTP symbol table |
rtp symbols override | Overrides RTP symbol registration policy |
rtp symbols remove | Removes symbols from a RTP symbol table |
rtp task | Display a process task list. |
sd | Display information on shared data regions. |
sd info | Display detail information on shared data regions. |
set | Set the value of a symbol |
set bootline | Change the boot line |
set config | Set or display shell configuration variables |
set cwc | Set the current working context of the shell session |
set deploy | Set or display the system debug flag. |
set env | Set or display shell environment variables |
set history | Set the size of shell history. |
set prompt | Set the shell session prompt |
set symbol | Set the value of a symbol |
setenv | Set an environment variable |
shl | Display information on shared libraries. |
shl info | Display detail information on an SHL. |
show bootline | Display the boot line |
show devices | Display all subsystem-known devices. |
show drivers | Display a list of system drivers |
show fds | Display a list of file descriptor names in the system. |
show history | Display the shell history events. |
show lasterror | Display the last error value of a command. |
slab | Print slab cache information |
sleep | Suspend execution for an interval. |
sockperf | Network performance test tool |
socktest | Socket API test tool |
spy | Begin periodic task activity reports. |
spy clkstart | Start collecting task activity data. |
spy clkstop | Stop collecting task activity data. |
spy report | Display task activity data. |
spy stop | Stop spying and reporting. |
string free | Free a string allocated within the kernel shell |
syscall hooks | Display the list system call hooks. |
syscall monitor | Turn on system call monitor for all system calls. |
syscalls | Display system call group information in the system. |
sysctl | IPNET sysctl configuration |
syslog | syslog |
sysvar | System variable tool |
task | Display a summary of each task's TCB |
task continue | Continue from a breakpoint |
task default | Set or display the default task |
task delete | Delete a task |
task hooks | Display task hook functions |
task info | Display complete information from a task's TCB |
task regs | Set task register value |
task resume | Resume a task |
task spawn | Spawn a kernel or an RTP task with default parameters |
task stack | Display a summary of each task's stack usage |
task step | Single-step a task |
task stepover | Single-step, but step over a subroutine |
task stop | Stop a task |
task suspend | Suspend a task |
task trace | Display a stack trace of a task |
task wait | Display info about the object a task is pending on |
time | Show/Set current time |
tip | Connect to one or several remote systems over serial lines. |
traceroute | Trace route command for IPv4 |
ttcp | ttcp - standard performance test |
ttcp1 | ttcp - min priority |
ttcp7 | ttcp - max priority |
unalias | Remove an alias |
unset config | Remove a shell configuration variable |
user | User admin command |
version | Display VxWorks version information. |
vm context | Display information on the virtual memory context. |