ML30 VxWorks QuickStart Tutorial Note: Screen shots in this acrobat file appear best when Acrobat Magnification is set to 33.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 ml30_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 ml30_overview_setup.ppt for details on: Software Requirements ML30 Board Setup Equipment and Cables Software Network Terminal Programs This presentation requires the 9600-8-N- Baud terminal setup
File Setup Unzip this file from the ML30 CD to C:\tmp <cd drive>:\reference_designs\pci\vxworks\ml30_pci_vxworks_bit_elf_ace.zip
Select Boot Configuration Insert the CompactFlash into the ML30 board Set the red Mode Switches to Configuration 0 (all switches towards the edge of the board)
Run VxWorks w/pci Demo Verify the ML30 connections Serial port w/ null modem cable Network port w/ Ethernet crossover cable Local network to PC host Start the Terminal Program 9600, 8-N-,No HW flow control Power on the ML30 board All the tests should pass () Load Configuration 2 (2) At the menu displayed on the terminal, select 2: VxWorks w/pci. by typing 2 on your keyboard 2
VxWorks w/pci Demo The VxWorks w/pci demo includes: Networking () 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 ML30 2
Network Statistics Type ifshow fei0 <enter> Note the number of packets 2
Ping ML30 Target from Host Open a DOS window on the PC Host (Start Programs Accessories Command Prompt) Type ping 92.68.0.2 <enter> () Ping from PC host 92.68.0. to ML30 target 92.68.0.2
Ping Host from ML30 Target Type ping 92.68.0. <enter> () Ping from ML30 target 92.68.0.2 to PC host 92.68.0. Note: VxWorks requires double quotes on the IP address Type <Ctrl-C> to end ping
Network Statistics Type ifshow fei0 <enter> again () Number of packets has increased after pinging (2) 2
Scan PCI Bus Type pciconfigtoposhow <enter> () A [bus, device, function] listing of devices attached to the PCI bus is displayed Ethernet Network Controller is numbered 0,7,0 (2) 2
View PCI Configuration Space Type pciheadershow 0,7,0 <enter> () PCI configuration header of the onboard Ethernet NIC (i82559) is displayed
Mounting a Local File System Mount the System ACE CF file system to prepare for transferring files via ftp Type syssystemacemount(0, /cf0,)<enter> () Type cd /cf0 <enter> (2) 2
List Directory The System ACE CF provides DOS FAT6 access Type ll to see a listing of files () Wait for disk check to complete after the initial mount
FTP to VxWorks Target From the DOS window, perform an FTP transfer of any file to the ML30 CompactFlash Disk: cd <tmp dir> copy vxworks <file name> ftp 92.68.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 () The file (2) was transferred via ftp from the host to the CompactFlash card using the System ACE CF controller 2
Create an Executable File These commands use I/O redirection with a file: Type printf"ll\n">mycmd () Type <mycmd (2) The ll command is automatically executed and the new mycmd file is printed to the CompactFlash card (3) 2 3
Establish a Tornado Tools Connection With the VxWorks w/pci demo running, launch Tornado 2.2 Launch the target server () 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
Host Shell Launch a host shell in Tornado and click OK
Host Shell Type i in the host shell Also type i in the target shell See the same task listings in both shells
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 ML30 will flash to indicate a reboot in progress 2
Manually Initiated Reboot On the ML30 board, reset the System ACE controller Push SW, SYSACE RESET () All the tests should pass (2) At the Select prompt, type 5 to reload the VxWorks EDK Base Build (3) 2 3
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 ML30
Mounting the File System Mount the System ACE CF file system Type syssystemacemount(0, /cf0,) <enter> () Type cd /cf0 <enter> (2) 2
List Directory The System ACE CF provides DOS FAT6 access Type ll to see a listing of files () Wait for disk check to complete after the initial mount
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 () printf"ll\n">mycmd (2) <mycmd (3) The ll command is automatically executed and the new mycmd file reappears on the CompactFlash 2 card (4) 3 4
Return to ACE Loader Either manually reset the the System ACE controller Push SW, SYSACE RESET () Or, perform a software-initiated reset syssystemacesetjtagconfigaddr(0) <enter> (2) syssystemacejtagreboot(0xfffe2080) <enter> (3) Note: Reboot Address (0xFFFE2080) varies from PCI design; this is the opb_sysace base address in the base design 2 3