“Building a VxWorks Downloadable Kernel Module using Wind River Work Bench 3.2”
NOTE: This is an initial attempt at these instructions for the new work bench, please feel free to point out to any inconsistencies, inaccuracies, typos etc. [Sunku.Monish@colorado.edu]
1. Click on File->New->Project
2. Click on VxWorks6.6->VxWorks Downloadable Kernel Module Project
3. In the Project Wizard Window, pick a folder name where your project files will be saved. By default this will create another directory inside the workspace directory but feel free to browse and save it else where. Click Next.
the 'Build Specs' wizard window, make sure you pick the 'Active Build Spec' you
used to build the kernel. In our case it was SIMNTgnu.
IMPORTANT: Make sure you change this to PENTIUM4gnu when working on actual targets.
5. Use default settings under the 'Build Setup Default' and 'Build Support' wizard windows by clicking Next.
6. Under 'Build Target' wizard window, make sure 'Linker' is selected. This will allow you to download the module to the kernel
7. For the 'Static Analysis' wizard window, use defaults and click Finish. Your new project should apear in the project navigator window, as shown below:
8. Go to the source folder for examples and download the task_two.c file and save it in the folder you made for this module. In this example, that will be under WindRiver\workspace\Two_Task_Module folder. Then Right click on the project under the Project Navigator and click Build Project. Note that the task_two.c file automatically gets added to the project and builds.
Note: There are other ways, which I found more painful, to add files to a project. If you find a more convinient way, please shre it with the rest of the class. The only thing that comes close to this is: right click your project (Two_Task_Module) in the Project Navigator, then clicking New, and then File.
9. Notice in the above image there is a Two_Task_Module.out file. Right click on it and select download from the menu, as shown below:
10. In the pop up window box that appears, select vxsim0 under default (localhost), give a name for the configuration and download the module.
11. Commands like moduleShow and lkup can be used in the target shell which pop’s up once the module is downloaded.