0% found this document useful (0 votes)
183 views32 pages

ml310 Vxworks Quickstart

This document provides instructions for setting up and running demonstrations of VxWorks on an ML310 board using the VxWorks Hardware and Software ACE file. The setup involves booting the board into different configurations using mode switches to run the VxWorks target software and demos. Demos include networking tests, viewing the PCI bus configuration, and mounting a file system to transfer files via FTP. Reboots can be done manually or software-initiated through System ACE commands.

Uploaded by

jumbo_hyd
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views32 pages

ml310 Vxworks Quickstart

This document provides instructions for setting up and running demonstrations of VxWorks on an ML310 board using the VxWorks Hardware and Software ACE file. The setup involves booting the board into different configurations using mode switches to run the VxWorks target software and demos. Demos include networking tests, viewing the PCI bus configuration, and mounting a file system to transfer files via FTP. Reboots can be done manually or software-initiated through System ACE commands.

Uploaded by

jumbo_hyd
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

ML310 VxWorks

QuickStart Tutorial

Note: Screen shots in this


acrobat file appear best when
Acrobat Magnification is set to
133.3%
Overview
• Setup
• Boot ROM with VxWorks Hardware and
Software ACE file
– Target Shell
– Host shell
– DOS File system via System ACE CF Solution
– FTP Server
Additional Setup Details
• Refer to ml310_pci_vxworks_bsp_proj_creation.ppt
for details on:
– Building a BSP with EDK
– Creating VxWorks Projects
– Making ACE files with EDK
– Software Setup
Additional Setup Details
• Refer to ml310_overview_setup.ppt for details on:
– Software Requirements
– ML310 Board Setup
• Equipment and Cables
• Software
• Network
– Terminal Programs
• This presentation requires the
9600-8-N-1 Baud terminal setup
File Setup

• Unzip this file from the ML310 CD to C:\tmp


<cd drive>:\reference_designs\pci\vxworks\ml310_pci_vxworks_bit_elf_ace.zip
Select Boot Configuration
• Insert the CompactFlash into the ML310 board
• Set the red Mode Switches to Configuration 0
(all switches towards the edge of the board)

1
Run VxWorks w/PCI Demo
• Verify the ML310 connections
– Serial port w/ null modem cable
– Network port w/ Ethernet cross-
over cable
• Local network to PC host
• Start the Terminal Program 1
– 9600, 8-N-1,No HW flow control
• Power on the ML310 board
– All the tests should pass (1) 2

• Load Configuration 2 (2)


– At the menu displayed on the
terminal, select “2: VxWorks w/PCI.”
by typing 2 on your keyboard
VxWorks w/PCI Demo
• The VxWorks w/PCI demo includes:
– Networking (1)
– Tornado tools support (2)

2
Target Shell Task Listing

• After the VxWorks banner screen, type i <enter>


• View a list of tasks running on the ML310

2
Network Statistics
• Type ifShow “fei0” <enter>
• Note the number of packets

2
Ping ML310 Target from Host
• Open a DOS window on the PC Host
(Start → Programs → Accessories → Command Prompt)
• Type ping 192.168.0.2 <enter> (1)
– Ping from PC host 192.168.0.1 to ML310 target 192.168.0.2

1
Ping Host from ML310 Target
• Type ping “192.168.0.1” <enter> (1)
– Ping from ML310 target 192.168.0.2 to PC host 192.168.0.1
• Note: VxWorks requires double quotes on the IP address
– Type <Ctrl-C> to end ping

1
Network Statistics

• Type ifShow “fei0” <enter> again (1)


• Number of packets has increased after pinging (2)

2
Scan PCI Bus
• Type 1
pciConfigTopoShow
<enter> (1)
– A [bus, device, function]
listing of devices attached
to the PCI bus is displayed
– Ethernet Network Controller 2
is numbered 0,7,0 (2)
View PCI Configuration Space
• Type pciHeaderShow 0,7,0 <enter> (1)
– PCI configuration header of the onboard Ethernet NIC (i82559) is
displayed

1
Mounting a Local File System
• Mount the System ACE CF file system to prepare for transferring
files via ftp
– Type sysSystemAceMount(0,“/cf0”,1)<enter> (1)
– Type cd “/cf0”<enter> (2)

1
2
List Directory
• The System ACE CF provides DOS FAT16 access
• Type ll to see a listing of files (1)
– Wait for disk check to complete after the initial mount

1
FTP to VxWorks Target
• From the DOS window, perform an FTP transfer of any file to
the ML310 CompactFlash Disk:

cd <tmp dir>
copy vxworks <file name>
ftp 192.168.0.2
<enter*>
<enter*>
binary
put <file name>

* Note: When prompted for a user name or password, just hit the enter key
FTP to VxWorks Target
• In the target server window, type ll again (1)
• The file (2) was transferred via ftp from the host to the
CompactFlash card using the System ACE CF controller

1
2
Create an Executable File
• These commands use I/O redirection with a file:
– Type printf"ll\n">mycmd (1)
– Type <mycmd (2)
• The ll command is automatically executed and the new
mycmd file is
“printed” to the
CompactFlash
card (3)

1
2

3
Establish a Tornado Tools
Connection
• With the VxWorks w/PCI demo running, launch Tornado 2.2
• Launch the target server (1)
• Double-click on the target server icon in the systray to view
the target server console (2)
• If it does not connect, you will
see this icon: 2 1
Host Shell

• Launch a host shell in Tornado and click OK

1
Host Shell
• Type i in the
host shell
• Also type i
in the target
shell
• See the same
task listings
in both shells 1
Tornado Info Browser

• Select Tools→Browser and do a “Stack Check”


Software-Initiated Reboot
• Perform a software-initiated reboot from the target shell
• Reboot using configuration 5, the VxWorks EDK Base Build
– Type sysSystemAceSetJtagConfigAddr(5) <enter>
– Type sysSystemAceJtagReboot(0xCF000000) <enter>
Note: The SYSACE status light on the ML310 will flash to indicate a reboot in progress

1
2
Manually Initiated Reboot
• On the ML310 board, reset the System ACE controller
– Push SW1, SYSACE RESET (1)
• All the tests should pass (2)
• At the Select prompt, type 5
to reload the VxWorks EDK
Base Build (3)
2

1
VxWorks Base Build
• The VxWorks Base Build demo includes:
– Serial port support
– System ACE support
Target Shell Task Listing

• After the VxWorks banner screen, type i <enter>


• View a list of tasks running on the ML310

1
Mounting the File System
• Mount the System ACE CF file system
– Type sysSystemAceMount(0,“/cf0”,1) <enter> (1)
– Type cd “/cf0” <enter> (2)

1
2
List Directory
• The System ACE CF provides DOS FAT16 access
• Type ll to see a listing of files (1)
– Wait for disk check to complete after the initial mount

1
Create an Executable File
• These commands use I/O redirection with a file:
– First delete the mycmd file you created earlier by typing
xdelete “mycmd” (1)
printf"ll\n">mycmd (2)
<mycmd (3)
• The ll command
is automatically
executed and the
new mycmd file
reappears on the 1
CompactFlash 2
card (4) 3
4
Return to ACE Loader
• Either manually reset the the System ACE controller 2
– Push SW1, SYSACE RESET (1)
• Or, perform a software-initiated reset
sysSystemAceSetJtagConfigAddr(0) <enter> (2)
sysSystemAceJtagReboot(0xFFFE2080) <enter> (3)
– Note: Reboot Address (0xFFFE2080) varies 3
from PCI design; this is the opb_sysace base
address in the base design

You might also like