社区
嵌入开发(WinCE)
帖子详情
我的VS2005 安装后没找到remote kernel viewer,怎么回事?
wjf_zjut
2009-04-16 03:57:25
如题,在开始-〉程序-〉vs—〉vs remote tools 里面没找到,remote kernel viewer。打开vs,在菜单中也没找到。奇怪了,是我安装的时候漏了,还是躲的太深没找对地方?PB 和 EVC玩过都有这个东西的,网上查了一下,好像VS2005也应该有的阿。
...全文
116
13
打赏
收藏
我的VS2005 安装后没找到remote kernel viewer,怎么回事?
如题,在开始-〉程序-〉vs—〉vs remote tools 里面没找到,remote kernel viewer。打开vs,在菜单中也没找到。奇怪了,是我安装的时候漏了,还是躲的太深没找对地方?PB 和 EVC玩过都有这个东西的,网上查了一下,好像VS2005也应该有的阿。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
13 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wjf_zjut
2009-04-28
打赏
举报
回复
结贴!
yashi
2009-04-22
打赏
举报
回复
不要再开始菜单里找,运行起来VS2005以后,在它的主菜单里有。
jw212
2009-04-21
打赏
举报
回复
MSDN有些对应不上的说
wjf_zjut
2009-04-21
打赏
举报
回复
我怀疑是不是VS05 有多个版本。有人说有,有人说没的!
wjf_zjut
2009-04-21
打赏
举报
回复
怎么拷啊?我在PB下找到了,单独运行是不行的,也不知道该放到VS05下面的哪个位置。
Ei
2009-04-17
打赏
举报
回复
看了下 你说的那几个 VS05 确实没有 ,不知道 从PB 拷过来能用不。
wjf_zjut
2009-04-17
打赏
举报
回复
帖子题目能改吗?免得误导大家!
wjf_zjut
2009-04-17
打赏
举报
回复
Remote Call Profiler
Remote File Viewer
Remote Heap Walker
Remote Kernel Tracker
Remote Performance Monitor
Remote Process Viewer
Remote Registry Editor
Remote Spy
Remote System Information
Remote Zoom-in
对比了一下。PB,EVC都有十个Remote工具的。而我的VS2005只找到6个,红色标注都没有。如果是VS版本有问题,我再荡一个装上。如果没找对地方,大家指点。
wjf_zjut
2009-04-17
打赏
举报
回复
remote kernel tracker就是这个。不好意思,写错了.我现在就是用EVC调试的,但是测试应用软件是用VS2005编的。不方便!
91program
2009-04-17
打赏
举报
回复
LZ可能真的搞错名字了
如果VS2005带的不好用,可以考虑安装PB6。安装后会在VS2005的菜单中出现这个Remote工具。
yashi
2009-04-17
打赏
举报
回复
remote kernel viewer??是你搞错了吧,只有remote kernel tracker,vs2005,PB5.0下,evc下都有。
xqhrs232
2009-04-17
打赏
举报
回复
我的也没有啊!
wjf_zjut
2009-04-17
打赏
举报
回复
请大家指教。
vxworks_
k
er
nel
_programm
er
s_guide_6.9
PART I: CORE TECHNOLOGIES 1 Ov
er
view
...................................................................................................... 3 1.1 Introduction ...................................................................................................................... 3 1.2
K
er
nel
Architecture ......................................................................................................... 3 1.3 Related Documentation Resources .............................................................................. 4 1.4 VxWorks Configuration and Build .............................................................................. 5 2 VxWorks Configuration ............................................................................. 7 2.1 Introduction ...................................................................................................................... 7 2.2 About VxWorks Configuration ................................................................................... 7 2.2.1 Default Configuration and Images ................................................................. 8 2.2.2 Configuration With VxWorks Image Projects ............................................... 8 2.2.3 Configuration With VxWorks Source Build Projects ................................... 8 2.2.4 Configuration and Customization .................................................................. 8 2.2.5 Configuration Tools: Workbench and vxprj .................................................. 9 2.3 VxWorks Image Projects: VIPs .................................................................................... 9 2.3.1 VxWorks Components ...................................................................................... 10 Component Names .......................................................................................... 10 Basic VxWorks Components ............................................................................ 11 2.3.2 Device Driv
er
Selection ................................................................................... 13 2.3.3 Component Bundles and Configuration Profiles ........................................ 14 2.3.4 VxWorks Component Ref
er
ence .................................................................... 14 2.4 VxWorks Source Build Projects:
VS
Bs ....................................................................... 14 2.4.1 Basic Op
er
ating System
VS
B Options ........................................................... 16 BSP-Specific Optimizations ............................................................................. 16 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 iv Inconsistent Cache Mode Support .................................................................. 17 System
View
er
Instrumentation Support ...................................................... 17 Real-Time Process Support .............................................................................. 17 Object Management Support ........................................................................... 17
Er
ror Detection and Reporting Policy Hooks ............................................... 18 Task Switch Hook Support .............................................................................. 18 Task Create Hook Support ............................................................................... 18 CPU Pow
er
Management Support ................................................................. 19 Advanced Options ............................................................................................ 19 VxWorks BSP Validation Test Suite Support ................................................. 19 Symmetric Multiprocessor (SMP) Support ................................................... 19 SMP Det
er
minism ............................................................................................. 19 MIPC Support .................................................................................................... 20 WRLOAD Support ............................................................................................ 20 Task-Specific Current Working Directory ...................................................... 20 Device Name Length ........................................................................................ 20 NFS V3 S
er
v
er
Optimization ........................................................................... 20 DOSFS Name Length Compatible .................................................................. 21 2.4.2
VS
B Profiles ........................................................................................................ 21 2.4.3 Using
VS
B Projects to Create VxWorks Systems: Basic Steps .................... 21 2.4.4 Developing
K
er
nel
Applications for
VS
B Systems ..................................... 21 2.5 VxWorks Without Networking ..................................................................................... 22 2.6 Small-Footprint VxWorks Configuration ................................................................... 22 2.6.1 About Small-Footprint VxWorks .................................................................... 22
K
er
nel
Facilities ................................................................................................. 22 Unsupported Facilities ..................................................................................... 23 BSPs ..................................................................................................................... 23 2.6.2 Configuring Small Footprint VxWorks .......................................................... 23 Small-Footprint
VS
B Profile and Options ...................................................... 24
VS
B Options Specific to the Small-Footprint Profile .................................... 24 Small-Footprint VIP Profile and Components .............................................. 25 Optional Components for a Small Footprint VIP Project ............................ 25 2.6.3 Configuration and Build Steps for Small-Footprint VxWorks ................... 25 2.6.4 Writing Applications for Small-Footprint VxWorks .................................... 26 2.6.5 Example Application ........................................................................................ 26 2.6.6 Debugging Small-Footprint VxWorks ............................................................ 28 2.7 VxWorks Image Types ................................................................................................... 28 2.7.1 Default VxWorks Images ................................................................................ 29 2.7.2 VxWorks Images for Development and Production Systems ..................... 29 2.7.3 Boot Paramet
er
Configuration for Standalone VxWorks Images .............. 30 2.8 Image Size Consid
er
ations ............................................................................................ 30 2.8.1 Boot Load
er
and Downloadable Image ......................................................... 30 2.8.2 Self-Booting Image ............................................................................................ 31 Contents v 3 Boot Load
er
................................................................................................. 33 3.1 Introduction ...................................................................................................................... 33 3.2 Using a Default Boot Load
er
......................................................................................... 34 3.3 Boot Load
er
Image Types ............................................................................................... 35 3.4 Boot Load
er
Shell ............................................................................................................ 35 3.4.1 Boot Load
er
Shell Commands ......................................................................... 36 3.5 Boot Paramet
er
s ............................................................................................................... 39 3.5.1 Displaying Current Boot Paramet
er
s ............................................................. 40 3.5.2 Description of Boot Paramet
er
s ...................................................................... 41 3.5.3 Changing Boot Paramet
er
s Int
er
actively ....................................................... 44 3.6 Rebooting VxWorks ........................................................................................................ 45 3.7 Configuring and Building Boot Load
er
s .................................................................... 46 3.7.1 Boot Load
er
Profiles .......................................................................................... 46 3.7.2 Boot Load
er
Components ................................................................................ 47 3.7.3 Configuring Boot Paramet
er
s Statically ......................................................... 47 3.7.4 Enabling Networking for Non-Boot Int
er
faces ............................................. 48 3.7.5 Selecting a Boot Device ..................................................................................... 48 3.7.6 Reconfiguring Boot Load
er
Memory Layout for 32-Bit VxWorks ............. 50 Redefining the Boot Load
er
Link Address for Custom Boot Load
er
s ....... 50 Reconfiguring Memory Layout for a P
er
sistent Memory Region ............. 51 3.7.7 Reconfiguring Boot Load
er
Memory Layout for 64-Bit VxWorks ............. 53 3.7.8 Building Boot Load
er
s ...................................................................................... 53 3.8 Installing Boot Load
er
s .................................................................................................. 53 3.9 Booting From a Network ............................................................................................... 53 3.10 Booting From a Target File System ............................................................................. 55 3.11 Booting From the Host File System Using TSFS ..................................................... 55 4
K
er
nel
Applications .................................................................................... 57 4.1 Introduction ...................................................................................................................... 57 4.2 About
K
er
nel
Applications ........................................................................................... 58 4.3 Comparing
K
er
nel
Applications with RTP Applications ....................................... 59 4.4 C and C++ Libraries ........................................................................................................ 60 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 vi 4.5
K
er
nel
Application Structure ........................................................................................ 60 4.6 VxWorks Head
er
Files .................................................................................................... 61 4.6.1 VxWorks Head
er
File: vxWorks.h ................................................................... 61 4.6.2 Oth
er
VxWorks Head
er
Files ........................................................................... 62 4.6.3 ANSI Head
er
Files ............................................................................................ 62 4.6.4 ANSI C++ Head
er
Files .................................................................................... 62 4.6.5 The -I Compil
er
Flag ......................................................................................... 62 4.6.6 VxWorks Nested Head
er
Files ........................................................................ 62 4.6.7 VxWorks Private Head
er
Files ........................................................................ 63 4.7 Custom Head
er
Files ....................................................................................................... 63 4.8 Static Instantiation of
K
er
nel
Objects ......................................................................... 64 4.8.1 About Static Instantiation of
K
er
nel
Objects ................................................. 64
K
er
nel
Objects That can be Instantiated Statically ....................................... 65 Static Instantiation and Code Size .................................................................. 65 Advantages of Static Instantiation .................................................................. 65 Applications and Static Instantiation ............................................................. 66 4.8.2 Scope Of Static Declarations ............................................................................ 66 4.8.3 Caveat With Regard to Macro Use .................................................................. 66 4.8.4 Static Instantiation of Tasks ............................................................................. 66 4.8.5 Static Instantiation Of Semaphores ................................................................ 67 4.8.6 Static Instantiation of Message Queues ......................................................... 68 4.8.7 Static Instantiation of Watchdog Tim
er
s ........................................................ 68 4.9 Boot-Time Hook Routine Facility ............................................................................... 69 Boot-Time Hook Routine Stubs and Components ....................................... 69 Using Boot-Time Hook Routine Stubs ........................................................... 70 4.10
K
er
nel
Applications and
K
er
nel
Component Requirements ................................. 71 4.11 Building
K
er
nel
Application Modules ....................................................................... 71 4.12 Downloading
K
er
nel
Application Object Modules to a Target ............................. 72 4.13 Linking
K
er
nel
Application Object Modules with VxWorks ................................ 72 4.14 Configuring VxWorks to Run Applications Automatically ................................... 72 5 C++ Development ....................................................................................... 75 5.1 Introduction ...................................................................................................................... 75 5.2 Configuring VxWorks for C++ ..................................................................................... 76 5.3 C++ Head
er
Files ............................................................................................................. 76 Contents vii 5.4 Spawning Tasks That Use C++ ..................................................................................... 76 5.5 Calls Between C and C++ Code .................................................................................... 77 5.6 C++ Compil
er
Caveats .................................................................................................... 77 5.7 Using C++ in Signal Handl
er
s and ISRs ................................................................... 78 5.8 Downloadable
K
er
nel
Modules in C++ ..................................................................... 78 5.9 C++ Compil
er
Diff
er
ences ............................................................................................ 78 5.9.1 Template Instantiation ...................................................................................... 78 5.9.2 Run-Time Type Information ............................................................................ 80 5.10 Namespaces ...................................................................................................................... 80 5.11 C++ Exception Handling ................................................................................................ 81 5.12 Standard Template Library (STL) ................................................................................ 81 5.13 C++ Demo Example ........................................................................................................ 81 6 Multitasking ................................................................................................. 83 6.1 Introduction ...................................................................................................................... 83 6.2 About Tasks and Multitasking ..................................................................................... 84 6.2.1 Task States and Transitions .............................................................................. 85 Tasks States and State Symbols ....................................................................... 85 Illustration of Basic Task State Transitions .................................................... 86 6.3 VxWorks System Tasks .................................................................................................. 87 Basic VxWorks Tasks ......................................................................................... 88 Tasks for Optional Components ..................................................................... 91 6.4 Task Scheduling .............................................................................................................. 93 6.4.1 Task Priorities .................................................................................................... 93 6.4.2 VxWorks Traditional Schedul
er
...................................................................... 93 Priority-Based Preemptive Scheduling .......................................................... 94 Scheduling and the Ready Queue ................................................................. 94 Round-Robin Scheduling ................................................................................. 95 6.5 Task Creation and Management ................................................................................... 97 6.5.1 Task Creation and Activation .......................................................................... 97 Static instantiation of Tasks ............................................................................. 98 6.5.2 Task Names and IDs ......................................................................................... 98 Task Naming Rules ........................................................................................... 99 Task Name and ID Routines ............................................................................ 99 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 viii 6.5.3 Int
er
-Process Communication With Public Tasks ......................................... 99 6.5.4 Task Creation Options ...................................................................................... 100 6.5.5 Task Stack ........................................................................................................... 102 Task Stack Protection ........................................................................................ 102 6.5.6 Task Information ............................................................................................... 103 6.5.7 Task Deletion and Deletion Safety .................................................................. 104 6.5.8 Task Execution Control ..................................................................................... 105 6.5.9 Task Scheduling Control .................................................................................. 106 6.5.10 Tasking Extensions: Using Hook Routines .................................................... 107 6.6 Task
Er
ror Status:
er
rno .................................................................................................. 108 6.6.1 Lay
er
ed Definitions of
er
rno ........................................................................... 109 6.6.2 A Separate
er
rno Value for Each Task ............................................................ 109 6.6.3
Er
ror Return Convention ................................................................................. 109 6.6.4 Assignment of
Er
ror Status Values ................................................................. 110 6.7 Task Exception Handling ............................................................................................... 110 6.8 Shared Code and Reentrancy ........................................................................................ 111 6.8.1 Dynamic Stack Variables .................................................................................. 112 6.8.2 Guarded Global and Static Variables ............................................................. 112 6.8.3 Task-Specific Variables .................................................................................... 113 Thread-Local Variables: __thread Storage Class ........................................... 113 taskVarLib and Task Variables ........................................................................ 114 6.8.4 Multiple Tasks with the Same Main Routine ................................................ 114 7 Int
er
task and Int
er
process Communication ............................................. 117 7.1 Introduction ...................................................................................................................... 117 7.2 About Int
er
task and Int
er
process Communication .................................................. 118 7.3 Shared Data Structures ................................................................................................... 119 7.4 Int
er
rupt Locks ............................................................................................................... 120 7.5 Task Locks ........................................................................................................................ 121 7.6 Semaphores ...................................................................................................................... 122 7.6.1 Int
er
-Process Communication With Public Semaphores ............................. 123 7.6.2 Semaphore Creation and Use .......................................................................... 123 Options for Scalable and Inline Semaphore Routines ................................ 125 Static Instantiation of Semaphores ................................................................. 125 Scalable and Inline Semaphore Take and Give Routines ........................... 126 Contents ix 7.6.3 Binary Semaphores ........................................................................................... 126 Mutual Exclusion .............................................................................................. 127 Synchronization ................................................................................................. 128 7.6.4 Mutual-Exclusion Semaphores ....................................................................... 129 Priority Inv
er
sion and Priority Inh
er
itance ................................................... 129 Deletion Safety ................................................................................................... 132 Recursive Resource Access .............................................................................. 133 7.6.5 Counting Semaphores ...................................................................................... 134 7.6.6 Read/Write Semaphores ................................................................................. 134 Specification of Read or Write Mode .............................................................. 135 Precedence for Write Access Op
er
ations ....................................................... 136 Read/Write Semaphores and System P
er
formance ..................................... 136 7.6.7 Special Semaphore Options ............................................................................. 136 Semaphore Timeout .......................................................................................... 136 Semaphores and Queueing .............................................................................. 137 Semaphores and VxWorks Events .................................................................. 137 7.7 Message Queues .............................................................................................................. 137 7.7.1 Int
er
-Process Communication With Public Message Queues ..................... 138 7.7.2 Message Creation and Use ............................................................................... 138 Static Instantiation of Message Queues ......................................................... 139 Message Queue Timeout .................................................................................. 139 Message Queue Urgent Messages .................................................................. 140 Message Queues and Queuing Options ........................................................ 140 7.7.3 Displaying Message Queue Attributes .......................................................... 141 7.7.4 S
er
v
er
s and Clients with Message Queues .................................................... 141 7.7.5 Message Queues and VxWorks Events .......................................................... 142 7.8 Pipes ................................................................................................................................... 142 7.8.1 Creating Pipes ................................................................................................... 142 7.8.2 Writing to Pipes from ISRs ............................................................................... 142 7.8.3 I/O Control Functions ...................................................................................... 143 7.9 VxWorks Events ............................................................................................................... 143 7.9.1 Configuring VxWorks for Events .................................................................... 144 7.9.2 About Event Flags and the Task Events Regist
er
......................................... 144 7.9.3 Receiving Events ............................................................................................... 145 7.9.4 Sending Events .................................................................................................. 146 7.9.5 Int
er
-Process Communication With Events .................................................. 148 7.9.6 Events Routines ................................................................................................. 148 7.9.7 Code Example ................................................................................................... 149 7.9.8 Show Routines and Events .............................................................................. 149 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 x 7.10 Int
er
-Process Communication With Public Objects ................................................. 149 Creating and Naming Public and Private Objects ....................................... 150 Example of Int
er
-process Communication With a Public Semaphore ...... 150 7.11 About VxWorks API Timeout Paramet
er
s .................................................................. 152 7.12 About Object Own
er
ship and Resource Reclamation ............................................. 152 8 Signals, ISRs, and Watchdog Tim
er
s ........................................................ 155 8.1 Introduction ...................................................................................................................... 155 8.2 Signals .............................................................................................................................. 156 8.2.1 Configuring VxWorks for Signals .................................................................. 157 8.2.2 Basic Signal Routines ........................................................................................ 158 8.2.3 Queued Signal Routines .................................................................................. 159 8.2.4 Signal Events ...................................................................................................... 162 8.2.5 Signal Handl
er
s ................................................................................................. 163 8.3 Int
er
rupt S
er
vice Routines: ISRs ................................................................................. 166 8.3.1 Configuring VxWorks for ISRs ........................................................................ 166 Configuring the Int
er
rupt Stack ...................................................................... 166 Adding Show Routine Support ....................................................................... 167 8.3.2 Writing ISRs ....................................................................................................... 167 Restrictions on ISRs ........................................................................................... 167 Facilities Available for ISRs .............................................................................. 169 Res
er
ving High Int
er
rupt Levels .................................................................... 170 8.3.3 System Clock ISR Modification ....................................................................... 171 8.3.4 Connecting ISRs to Int
er
rupts ......................................................................... 171 8.3.5 Getting Information About ISRs ..................................................................... 172 8.3.6 Debugging ISRs ................................................................................................. 173 8.4 Watchdog Tim
er
s ............................................................................................................. 174 Static Instantiation of Watchdog Tim
er
s ........................................................ 175 8.4.1 Int
er
-Process Communication With Public Watchdog Tim
er
s ................... 176 9 POSIX Facilities .......................................................................................... 177 9.1 Introduction ...................................................................................................................... 178 9.2 Configuring VxWorks with POSIX Facilities ............................................................ 179 9.2.1 VxWorks Components for POSIX Facilities .................................................. 179 9.3 Gen
er
al POSIX Support ................................................................................................. 180 9.4 POSIX Head
er
Files ........................................................................................................ 181 Contents xi 9.5 POSIX Namespace .......................................................................................................... 183 9.6 POSIX Clocks and Tim
er
s ............................................................................................. 183 9.7 POSIX Asynchronous I/O .............................................................................................. 186 9.8 POSIX Advisory File Locking ....................................................................................... 186 9.9 POSIX Page-Locking Int
er
face ..................................................................................... 186 9.10 POSIX Threads ................................................................................................................ 187 9.10.1 POSIX Thread Attributes ................................................................................. 188 9.10.2 VxWorks-Specific Pthread Attributes ............................................................ 188 9.10.3 Specifying Attributes when Creating Pthreads ........................................... 189 9.10.4 POSIX Thread Creation and Management .................................................... 190 9.10.5 POSIX Thread Attribute Access ...................................................................... 190 9.10.6 POSIX Thread Private Data ............................................................................. 191 9.10.7 POSIX Thread Cancellation ............................................................................. 192 9.11 POSIX Thread Mutexes and Condition Variables .................................................... 193 9.11.1 Thread Mutexes ................................................................................................. 193 Protocol Mutex Attribute ................................................................................ 194 Priority Ceiling Mutex Attribute .................................................................... 195 9.11.2 Condition Variables .......................................................................................... 195 9.12 POSIX and VxWorks Scheduling ................................................................................. 196 9.12.1 Diff
er
ences in POSIX and VxWorks Scheduling ........................................... 197 9.12.2 POSIX and VxWorks Priority Numb
er
ing ..................................................... 198 9.12.3 Default Scheduling Policy ................................................................................ 198 9.12.4 VxWorks Traditional Schedul
er
...................................................................... 198 9.12.5 POSIX Threads Schedul
er
................................................................................ 199 9.12.6 POSIX Scheduling Routines ............................................................................ 203 9.12.7 Getting Scheduling Paramet
er
s: Priority Limits and Time Slice ................ 204 9.13 POSIX Semaphores ......................................................................................................... 204 9.13.1 Comparison of POSIX and VxWorks Semaphores ....................................... 205 9.13.2 Using Unnamed Semaphores .......................................................................... 206 9.13.3 Using Named Semaphores .............................................................................. 208 9.14 POSIX Message Queues ................................................................................................. 211 9.14.1 Comparison of POSIX and VxWorks Message Queues ............................... 212 9.14.2 POSIX Message Queue Attributes .................................................................. 213 9.14.3 Displaying Message Queue Attributes .......................................................... 214 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 xii 9.14.4 Communicating Through a Message Queue ................................................ 215 9.14.5 Notification of Message Arrival ..................................................................... 218 9.15 POSIX Signals .................................................................................................................. 222 9.16 POSIX Memory Management ....................................................................................... 222 10 Memory Management ................................................................................. 223 10.1 Introduction ...................................................................................................................... 223 10.2 32-Bit VxWorks Memory Layout ................................................................................. 224 10.2.1 Displaying Information About Memory Layout .......................................... 224 10.2.2 System Memory Map Without RTP Support ................................................ 224 10.2.3 System Memory Map with RTP Support ....................................................... 226 10.2.4 System RAM Autosizing .................................................................................. 228 10.2.5 Res
er
ved Memory: Us
er
-Res
er
ved Memory and P
er
sistent Memory ...... 228 10.3 64-Bit VxWorks Memory Layout ................................................................................. 229 10.3.1 Displaying Information About Memory Layout .......................................... 230 10.3.2 Virtual Memory Regions .................................................................................. 230
K
er
nel
System Virtual Memory Region ......................................................... 231
K
er
nel
Virtual Memory Pool Region .............................................................. 232
K
er
nel
Res
er
ved Memory Region ................................................................... 232 Shared Us
er
Virtual Memory Region ............................................................. 232 RTP Private Virtual Memory Region .............................................................. 232 10.3.3 Global RAM Pool .............................................................................................. 233 10.3.4
K
er
nel
Memory Map ........................................................................................ 233
K
er
nel
System Memory .................................................................................... 235
K
er
nel
Common Heap ...................................................................................... 235 DMA32 Heap ..................................................................................................... 235 Us
er
-Res
er
ved Memory ................................................................................... 235 P
er
sistent Memory ............................................................................................ 235 10.3.5 Res
er
ved Memory Configuration: Us
er
-Res
er
ved Memory and P
er
sistent Memory .............................................................................................................. 236 10.3.6 System RAM Autosizing .................................................................................. 236 10.4 About VxWorks Memory Allocation Facilities ......................................................... 236 10.5 32-Bit VxWorks Heap and Memory Partition Management .................................. 237 10.5.1 Configuring the
K
er
nel
Heap and the Memory Partition Manag
er
.......... 238 10.5.2 Basic Heap and Memory Partition Manag
er
................................................. 238 10.5.3 Full Heap and Memory Partition Manag
er
................................................... 238 10.6 64-Bit VxWorks Heap and Memory Partition Management .................................. 239 10.6.1
K
er
nel
Common Heap ...................................................................................... 239 Contents xiii 10.6.2
K
er
nel
Proximity Heap ..................................................................................... 240 10.6.3 DMA32 Heap ..................................................................................................... 240 10.7 SMP-Optimized Memory Allocation .......................................................................... 241 10.7.1 Configuration ..................................................................................................... 241 10.7.2 Usage scenarios ................................................................................................. 241 10.8 Memory Pools .................................................................................................................. 242 10.9 POSIX Memory Management ....................................................................................... 242 10.9.1 POSIX Memory Management APIs ................................................................ 243 10.9.2 POSIX Memory Mapping ................................................................................ 244 10.9.3 POSIX Memory Protection ............................................................................... 244 10.9.4 POSIX Memory Locking .................................................................................. 244 10.10 Memory Mapping Facilities .......................................................................................... 245 10.10.1 POSIX Memory-Mapped Files ........................................................................ 247 10.10.2 POSIX Shared Memory Objects ...................................................................... 247 10.10.3 Anonymous Memory Mapping ...................................................................... 247 10.10.4 Device Memory Objects ................................................................................... 248 10.10.5 Shared Data Regions ......................................................................................... 249 10.11 Virtual Memory Management ..................................................................................... 249 10.11.1 Configuring Virtual Memory Management .................................................. 250 10.11.2 Managing Virtual Memory Programmatically ............................................. 251 Modifying Page States ...................................................................................... 252 Making Memory Non-Writable ...................................................................... 253 Invalidating Memory Pages ............................................................................ 255 Locking TLB Entries .......................................................................................... 255 Page Size Optimization .................................................................................... 255 Setting Page States in ISRs ............................................................................... 256 10.11.3 Troubleshooting ................................................................................................. 256 10.12 Additional Memory Protection Features ................................................................... 257 10.12.1 Configuring VxWorks for Additional Memory Protection ......................... 257 10.12.2 Stack Ov
er
run and Und
er
run Detection ........................................................ 258 10.12.3 Non-Executable Task Stack .............................................................................. 258 10.12.4 Text Segment Write Protection ........................................................................ 258 10.12.5 Exception Vector Table Write Protection ........................................................ 259 10.13 Memory
Er
ror Detection ................................................................................................ 259 10.13.1 Heap and Partition Memory Instrumentation .............................................. 259 10.13.2 Compil
er
Instrumentation: 32-Bit VxWorks .................................................. 264 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 xiv 11 I/O System ................................................................................................... 269 11.1 Introduction ...................................................................................................................... 269 11.2 About the VxWorks I/O System ................................................................................... 270 Diff
er
ences Between VxWorks and Host System I/O ................................. 270 11.3 Configuring VxWorks With I/O Facilities .................................................................. 271 11.4 I/O Devices, Named Files, and File Systems ............................................................ 272 11.5
Remote
File System Access From VxWorks ............................................................... 273 NFS File System Access from VxWorks ......................................................... 273 Non-NFS Network File System Access from VxWorks WIth FTP or RSH 273 11.6 Basic I/O ............................................................................................................................ 275 11.6.1 File Descriptors .................................................................................................. 275 File Descriptor Table ......................................................................................... 276 11.6.2 Standard Input, Standard Output, and Standard
Er
ror .............................. 276 11.6.3 Standard I/O Redirection ................................................................................ 276 Issues with Standard I/O Redirection ........................................................... 277 11.6.4 Open and Close ................................................................................................. 278 11.6.5 Create and Remove ........................................................................................... 280 11.6.6 Read and Write .................................................................................................. 281 11.6.7 File Truncation ................................................................................................... 281 11.6.8 I/O Control ........................................................................................................ 282 11.6.9 Pending on Multiple File Descriptors with select( ) ..................................... 282 11.6.10 POSIX File System Routines ............................................................................ 284 11.7 Standard I/O ..................................................................................................................... 285 11.7.1 Configuring VxWorks With Standard I/O .................................................... 285 11.7.2 About printf( ), sprintf( ), and scanf( ) ............................................................ 286 11.7.3 About Standard I/O and Buff
er
ing ................................................................ 286 11.7.4 About Standard Input, Standard Output, and Standard
Er
ror .................. 287 11.8 Oth
er
Formatted I/O ....................................................................................................... 287 11.8.1 Output in S
er
ial I/O Polled Mode: kprintf( ) ................................................ 287 Writing to Us
er
-Defined Storage Media With kprintf( ) and kputs( ) ....... 288 11.8.2 Additional Formatted I/O Routines ............................................................. 289 11.8.3 Message Logging ............................................................................................... 289 11.9 Asynchronous Input/Output ......................................................................................... 289 11.9.1 The POSIX AIO Routines ................................................................................. 290 Contents xv 11.9.2 AIO Control Block ............................................................................................. 291 11.9.3 Using AIO ........................................................................................................... 292 AIO with P
er
iodic Checks for Completion ................................................... 292 Alt
er
natives for Testing AIO Completion ..................................................... 294 12 Devices ........................................................................................................ 297 12.1 Introduction ...................................................................................................................... 297 12.2 About Devices in VxWorks ........................................................................................... 298 12.3 S
er
ial I/O Devices: T
er
minal and Pseudo-T
er
minal Devices .................................. 299 tty Options .......................................................................................................... 299 12.3.1 Raw Mode and Line Mode .............................................................................. 300 12.3.2 tty Special Charact
er
s ....................................................................................... 300 12.3.3 I/O Control Functions ...................................................................................... 301 12.4 Pipe Devices ..................................................................................................................... 302 12.5 Pseudo I/O Device ........................................................................................................... 302 12.5.1 I/O Control Functions ...................................................................................... 303 12.6 Null Devices .................................................................................................................... 303 12.7 Block Devices ................................................................................................................... 303 12.7.1 XBD RAM Disk .................................................................................................. 305 12.7.2 SCSI Driv
er
s ....................................................................................................... 306 Configuring SCSI Driv
er
s ................................................................................ 306 Structure of the SCSI Subsystem ..................................................................... 307 Booting and Initialization ................................................................................ 308 Device-Specific Configuration Options ......................................................... 308 SCSI Configuration Examples ......................................................................... 310 Troubleshooting ................................................................................................. 312 12.8 Extended Block Device Facility: XBD ......................................................................... 313 12.8.1 XBD Disk Partition Manag
er
........................................................................... 313 12.8.2 XBD Block Device Wrapp
er
............................................................................. 314 12.8.3 XBD TRFS Component ..................................................................................... 314 12.9 PCMCIA ............................................................................................................................ 315 12.10 P
er
iph
er
al Component Int
er
connect: PCI .................................................................. 315 12.11 Network File System (NFS) Devices ........................................................................... 315 12.11.1 I/O Control Functions for NFS Clients .......................................................... 316 12.12 Non-NFS Network Devices ........................................................................................... 317 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 xvi 12.12.1 Creating Network Devices ............................................................................... 318 12.12.2 I/O Control Functions ...................................................................................... 318 12.13 Sockets ............................................................................................................................... 318 12.14 Int
er
nal I/O System Structure ....................................................................................... 319 12.14.1 Driv
er
s ................................................................................................................ 321 The Driv
er
Table and Installing Driv
er
s ........................................................ 322 Example of Installing a Driv
er
........................................................................ 322 12.14.2 Devices ................................................................................................................ 323 The Device List and Adding Devices ............................................................. 323 Example of Adding Devices ............................................................................ 324 Deleting Devices ................................................................................................ 324 12.14.3 File Descriptors .................................................................................................. 327 File Descriptor Table ......................................................................................... 327 Example of Opening a File ............................................................................... 327 Example of Reading Data from the File ......................................................... 330 Example of Closing a File ................................................................................. 331 Implementing select( ) ...................................................................................... 331 Cache Coh
er
ency ............................................................................................... 334 13 Local File Systems ..................................................................................... 339 13.1 Introduction ...................................................................................................................... 339 13.2 File System Monitor ...................................................................................................... 341 Device Ins
er
tion Events .................................................................................... 342 XBD Name Mapping Facility .......................................................................... 343 13.3 Virtual Root File System: VRFS ................................................................................... 343 13.4 Highly Reliable File System: HRFS ............................................................................ 345 13.4.1 Configuring VxWorks for HRFS ..................................................................... 345 13.4.2 Configuring HRFS ............................................................................................ 346 13.4.3 Creating an HRFS File System ....................................................................... 347 Ov
er
view
of HRFS File System Creation ....................................................... 347 HRFS File System Creation Steps ................................................................... 347 13.4.4 HRFS, ATA, and RAM Disk Examples .......................................................... 348 13.4.5 Optimizing HRFS P
er
formance ...................................................................... 353 13.4.6 Transactional Op
er
ations and Commit Policies ......................................... 353 Automatic Commit Policy ............................................................................... 353 High-Speed Commit Policy ............................................................................. 354 Mandatory Commits ......................................................................................... 354 Rollbacks ............................................................................................................. 354 Programmatically Initiating Commits ........................................................... 354 13.4.7 File Access Time Stamps .................................................................................. 355 Contents xvii 13.4.8 Maximum Numb
er
of Files and Directories ................................................. 355 13.4.9 Working with Directories ................................................................................. 355 Creating Subdirectories .................................................................................... 355 Removing Subdirectories ................................................................................. 356 Reading Directory Entries ................................................................................ 356 13.4.10 Working with Files ............................................................................................ 356 File I/O Routines ............................................................................................... 356 File Linking and Unlinking ............................................................................. 356 File P
er
missions ................................................................................................. 357 13.4.11 I/O Control Functions Supported by HRFS ................................................. 357 13.4.12 Crash Recov
er
y and Volume Consistency ..................................................... 358 Crash Recov
er
y .................................................................................................. 358 Consistency Checking ...................................................................................... 358 13.4.13 File Management and Full Devices ................................................................ 358 13.5 MS-DOS-Compatible File System: dosFs .................................................................. 359 13.5.1 Configuring VxWorks for dosFs ..................................................................... 360 13.5.2 Configuring dosFs ............................................................................................ 361 13.5.3 Creating a dosFs File System ........................................................................... 362 Ov
er
view
of dosFs File System Creation ....................................................... 362 dosFs File System Creation Steps ................................................................... 363 13.5.4 dosFs, ATA Disk, and RAM Disk Examples ................................................. 365 13.5.5 Optimizing dosFs P
er
formance ...................................................................... 369 13.5.6 Working with Volumes and Disks .................................................................. 370 Accessing Volume Configuration Information ............................................. 370 Synchronizing Volumes .................................................................................... 370 13.5.7 Working with Directories ................................................................................. 370 Creating Subdirectories .................................................................................... 370 Removing Subdirectories ................................................................................. 371 Reading Directory Entries ................................................................................ 371 13.5.8 Working with Files ............................................................................................ 371 File I/O Routines ............................................................................................... 371 File Attributes .................................................................................................... 371 13.5.9 Disk Space Allocation Options ........................................................................ 373 Choosing an Allocation Method ..................................................................... 374 Using Clust
er
Group Allocation ..................................................................... 374 Using Absolutely Contiguous Allocation ...................................................... 374 13.5.10 Crash Recov
er
y and Volume Consistency ..................................................... 376 13.5.11 I/O Control Functions Supported by dosFsLib ............................................ 376 13.5.12 Booting from a Local dosFs File System Using SCSI ................................... 378 13.6 Transaction-Based Reliable File System Support for dosFs: TRFS ....................... 380 VxWorks
K
er
nel
Programm
er
's Guide, 6.9 xviii 13.6.1 Configuring VxWorks With TRFS ................................................................... 380 13.6.2 Automatic Instantiation of TRFS .................................................................... 380 13.6.3 Formatting a Device for TRFS ......................................................................... 381 13.6.4 Using TRFS in Applications ............................................................................ 382 TRFS Code Examples ....................................................................................... 382 13.7 Raw File System: rawFs ................................................................................................. 383 13.7.1 Configuring VxWorks for rawFs ..................................................................... 383 13.7.2 Creating a rawFs File System .......................................................................... 383 13.7.3 Mounting rawFs Volumes ................................................................................ 384 13.7.4 rawFs File I/O ................................................................................................... 385 13.7.5 I/O Control Functions Supported by rawFsLib ........................................... 385 13.8 CD-ROM File System: cdromFs ................................................................................... 386 13.8.1 Configuring VxWorks for cdromFs ................................................................ 387 13.8.2 Creating and Using cdromFs ........................................................................... 387 13.8.3 I/O Control Functions Supported by cdromFsLib ...................................... 389 13.8.4 V
er
sion Numb
er
s ............................................................................................... 390 13.9 Read-Only Memory File System: ROMFS ................................................................. 390 13.9.1 Configuring VxWorks with ROMFS ............................................................... 391 13.9.2 Adding a ROMFS Directory and File Content to VxWorks ........................ 391 13.9.3 Accessing Files in ROMFS ............................................................................... 392 13.9.4 Using ROMFS to Start Applications Automatically .................................... 392 13.10 Target S
er
v
er
File System: TSFS ................................................................................... 392 Socket Support ................................................................................................... 393
Er
ror Handling .................................................................................................. 394 Configuring VxWorks for TSFS Use ............................................................... 394 Security Consid
er
ations ................................................................................... 394 Using the TSFS to Boot a Target ...................................................................... 395 14 Flash File System Support: TrueFFS ........................................................ 397 14.1 Introduction ...................................................................................................................... 397 14.2 Ov
er
view
of Implementation Steps ............................................................................ 398 14.3 Creating a VxWorks System with TrueFFS ................................................................ 400 14.3.1 Selecting an MTD .............................................................................................. 400 14.3.2 Identifying the Socket Driv
er
.......................................................................... 400 14.3.3 Configuring VxWorks with TrueFFS and File System ................................. 401 Including the Core TrueFFS Component ....................................................... 401 Including the MTD Component ...................................................................... 402 Contents xix Including the Translation Lay
er
Component ................................................ 402 Including the Socket Driv
er
............................................................................. 403 Including the XBD Wrapp
er
Component ...................................................... 403 Including File System Components ............................................................... 403 Including Utility Components ........................................................................ 403 14.3.4 Building the System .......................................................................................... 404 14.3.5 Formatting the Flash ......................................................................................... 404 Formatting With sysTffsFormat( ) .................................................................. 404 Formatting With tffsDevFormat( ) .................................................................. 405 14.3.6 Res
er
ving a Region in Flash for a Boot Image .............................................. 406 Res
er
ving a Fallow Region .............................................................................. 407 Writing the Boot Image to Flash ...................................................................... 408 14.3.7 Mounting the Drive .......................................................................................... 409 14.3.8 Creating a File System ...................................................................................... 409 14.3.9 Testing the Drive ............................................................................................... 410 14.4 Using TrueFFS Shell Commands ................................................................................. 410 14.5 Using TrueFFS With HRFS ............................................................................................
Windows CE 6.0嵌入式高级编程(中文版)
第1章 Windows Embedded CE 1.1 嵌入式 1.1.1 嵌入式设备 1.1.2 嵌入式软件 1.1.3 嵌入式设备和软件 1.2 Windows Embedded系列 1.3 Windows XP Embedded 1.4 Windows Embedded Point of S
er
vice 1.5 Windows Embedded CE 6.0 1.5.1 模块化和简洁的操作系统 1.5.2 实时操作系统 1.5.3 硬件支持 1.5.4 CE 6.0 R2的新特性 1.5.5 定制的UI 1.5.6 有线和无线连接 1.5.7 图形和多媒体 1.5.8 多语言的国际化定位 1.5.9 实时通信和VolP 1.5.10 OS设计模板 1.6 开发CE应用程序 1.7 测试和调试 1.8 Windows Embedded CE的功能 1.9 小结 第2章 开发环境和工具 2.1 Windows Embedded CE Platform Build
er
2.2
安装
Windows Embedded CE 6.0 2.2.1 支持的处理器 2.2.2
安装
顺序 2.2.3 快速修复工程和更新 2.2.4 Windows Embedded CE术语表 2.2.5 Windows Embedded CE环境变量 2.2.6 Windows Embedded CE文件和目录 2.2.7 第三方组件 2.3 构建CE运行时映像 2.4 小结 第3章板级支持包 3.1 BSP概述 3.2 BSP开发 3.2.1 复制设备仿真器BSP 3.2.2 复制CEPC BSP 3.2.3 复制ICOP eBox4300 60E BSP 3.2.4 BSP组件、文件和文件夹 3.2.5 添加文件和模块到BSP中 3.3 小结 第4章 构建定制的CE 6.0运行时映像 4.1 创建初始OS设计 4.1.1 OS设计向导 4.1.2 OS设计项目文件夹和文件 4.1.3
VS
2005
IDE中的OS设计项目视图 4.1.4 生成OS运行时映像 4.1.5 MyCEPCBSP的OS运行时映像 4.1.6 MveBox4300BSP的OS运行时映像 4.2 小结 第5章连接目标设备 5.1 目标设备的连接 5.2 连接仿真器 5.2.1 创建MyEmulator目标设备配置文件 5.2.2 设置MyEmulator目标设备配置 5.2.3 将运行映像下载到仿真器中 5.3 连接eBox.4300一MSJK 5.3.1 通过DHCP连接eBOX.4300.MSJK 5.3.2 通过静态IP连接eBOX.4300.MSJK 5.4 连接到CEPC 5.4.1 创建CEPC启动软盘 5.4.2 通过串口连接CEPC 5.4.3 利用以太网连接CEPC 5.5 小结 第6章调试和调试工具 6.1 调试环境 6.1.1 CETK 6.1.2 CoreCon 6.1.3 调试和发布配置 6.2 调试OS设计构建 6.2.1 CE构建过程 6.2.2 构建错误——文件丢失 6.3 远程工具 6.3.1 远程文件查看器(
Remote
File
View
er
) 6.3.2 远程堆遍历器(
Remote
Heap Walk
er
) 6.3.3 远程放大器(
Remote
Zoom.In) 6.3.4 远程进程查看器(
Remote
Process
View
e) 6.3.5 远程注册表编辑器(
Remote
RegistryEditor) 6.3.6 远程系统信息(
Remote
Systemlnformation) 6.3.7 远程性能监视器(
Remote
P
er
formance Monitor) 6.3.8 远程间谍(
Remote
Spy) 6.3.9 远程内核跟踪器(
Remote
K
er
nel
Track
er
) 6.3.10 远程调用配置器(
Remote
Call Profil
er
) 6.4 远程目标控制(
Remote
Target Control) 6.5 串行调试(S
er
ial Debug) 6.6 小结 第7章启动加载程序概述 7.1 什么是启动加载程序 7.1.1 BIOS加载程序-x86 BIOS加载程序 7.1.2 Eboot Load
er
7.1.3 Loadcepc 7.1.4 Romboot Load
er
7.1.5 Sboot Load
er
7.2 x86设备的BIOS加载程序 7.2.1 x86设备的启动过程 7.2.2 BIOS Load
er
代码 7.2.3 构建BIOS Load
er
代码 7.3 小结 第8章 注册表 8.1 Windows Embedded CE注册表 8.2 基于RAM的注册表 8.3 基于配置单元的注册表 8.3.1 基于配置单元的注册表触发两个启动阶段 8.3.2 使用基于配置单元的注册表持久化注册表 8.3.3 注册表刷新 8.4 Windows Embedded CE注册表文件 8.4.1 Windows Embedded CE组件的注册表 8.4.2 串行调试 8.5 有用的注册表参考信息 8.5.1 自动刷新并保存注册表设置 8.5.2 USB可删除存储器的设备名 8.5.3 禁用Start菜单中的Suspend选项 8.5.4 Intemet Explor
er
启动页 8.5.5 静态IP地址 8.5.6 Windows EmbeddedCE设备名 8.6 访问注册表 8.7 小结 第9章 CETK测试 9.1 Windows EmbeddedCE测试工具包 9.2 CETK测试 9.3 小结 第10章 开发应用程序 10.1 开发范围格局 10.2 新型的嵌入式设备 10.3 小结 第11章 VisualC#
2005
应用程序 11.1 开发CE的C#应用程序 11.2 小结 第12章 VB
2005
应用程序 12.1 开发CE的VB应用程序 12.2 小结 第13章 原生代码应用程序 13.1 VisualC++
2005
原生代码应用程序 13.2 Plat form Build
er
原生代码应用程序 13.3 小结 第14章 自启动应用程序 14.1 配置注册表白启动 14.2 Windows\Startup自启动 14.3 Auto LaunchApp实用程序 14.4 小结 第15章 定制UI 15.1 CE设备的输入和输出 15.2 CE的自定义UI 15.3 具有NMD自定义UI的CE 15.4 VB
2005
应用程序作为自定义UI 15.5 小结 第16章 瘦客户端应用程序 16.1 瘦客户端 16.2 Windows瘦客户端OS 16.3 小结 第17章 家庭自动化应用 17.1 家庭自动化控制 17.2 硬件和外围设备 17.3 eBoxPhidgetOS设计 17.4 家庭自动化应用程序 17.5 小结 第18章 RFID安全访问控制应用 18.1 无线射频识别技术——RFID技术 18.2 PhidgetRF ID读取器 18.3 RFID读取器应用 18.4 小结 第19章 机器人应用 19.1 String
er
CE机器人 19.2 简单机器人控制应用 19.3 启动机器人应用程序 19.4 小结 第20章 部署CE6.0设备 20.1 Windows网络投影仪 20.2 Windows网络投影仪OS设计 20.3 Windows网络投影仪的使用 20.4 小结 附录A Windows Embedded CE资源 附录B
安装
和软件 附录C 示例应用程序和OS设计项目
Deepin系统KVM使用.doc
介绍在国产Linux操作系统Deepin上如何搭建一个KVM的操作,帮助大家在Linux上快速搭建虚拟机系统。
liunx
安装
KVM(win7)文档.docx
liunx
安装
KVM(win7)文档.docx
wince嵌入式系统
学习Wince嵌入式很好的教材,作者是何宗建,全文共有七章,涵盖了Wince嵌入式的基本知识,很适合初学者学习使用
嵌入开发(WinCE)
19,518
社区成员
41,565
社区内容
发帖
与我相关
我的任务
嵌入开发(WinCE)
硬件/嵌入开发 嵌入开发(WinCE)
复制链接
扫一扫
分享
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章