Академический Документы
Профессиональный Документы
Культура Документы
QuickStart Tutorial
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
2
Target Shell Task Listing
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
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
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
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
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