Home
Develop Under Tornado 2.2.1 / VxWorks 5.5.1 07/20/2005
Contents
1. NB ks884xWorkspace E faa C components igi COM Component Object Model img VsFusion a application components ig development tool components ig hardware cg network components fa basic network initialization comp E a network devices a networking protocols gl obsolete components ff operating system components Z Tornado Workspace ks884xWorkspace E LIEZ File Edit View Project Build Debug Tools Window Help oleja ee amp zl obi ae Zz mfe 21 ala El s x cc o es l a x sm egi el al fic fa imi Workspace ks884xWi p Build Spec Flefault_ks8841 7 GQ ks884xWorkspace 2 A default A default ks8841 A default ks8841 shBus A default ks8842 A delaull ks8842 shBus A default rom A default romCompress A default romResident Files J VeWorks Builds Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e Page9 2005 Micrel Semiconductor BIC del KSZ88XX VxWorks Driver Installation Guide 4 2 Build VxWorks Image from Tornado KS88XX Project Building VxWorks images from KS884X project select the build specification from the Build Specification drop down list Figure 4 2 1 Figure 4 2 1 Build Specification Selection Tornado Workspace ks884xWorkspace x File Edit View Project Build Debug Tools Window Help Dae e amp v doble Zizi 2 21 z alalcclela l
2. EI Enel KSZ88XX VxWorks Driver Installation Guide 2 KS88XX END Drivers The KS88XX BSP contains two Enhance Network Drivers END interface One for KS8841 2P PCI bus interface and another is for KS8841 42 61 62 32bit generic bus interface Table 2 1 END Source and Include Files Description File Name Description Ks884xEnd c END Ethernet driver for KS8841P or KS8842P PCI bus interface Ks884xEnd h IND Ethernet driver header for KS8841P or KS8842P PCI bus interface Ks884xEnd shBus c END Ethernet driver for KS8841M KS8842M KS8861M KS8862M 32bit generic bus interface Ks884xEnd shBus h END Ethernet driver header for KS8841M KS8842M KS8861M KS8862M 32bit generic bus interface The drivers are designed to operate the KS88XX devices and demonstrate their hardware features They share some common code that is called the KS884X library This library provides an application programming interface to program the KS88XX hardware Please consult the KS88XX Programmer s Guide to understand how to use the APIs Because the library code is shared in several platforms the drivers may not run efficiently To increase performance the conditional INLINE can be defined to put some functions inline The generic version of the KS884X END driver is used for generic bus such as the SH bus used in the Renesas MS7751RSE01 reference board It uses a list
3. And also since the KS8841 42 61 62M is little endian device set KS8841 42 61 62M evaluation board to do bytes swap by set JP6 2 3 closed 2 Please reference the e602201_sh7751 Hitachi SuperHO RISC engineSH7751 Series SH7751 SH7751R Hardware Manual for the detail information about SH7751R microprocessor via the website www renesas com Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Pages 2005 Micrel Semiconductor EI Enel KSZ88XX VxWorks Driver Installation Guide 3 KS88XX BSP Installation This section describes how to install KS88XX BSP under Tornado 2 2 1 VxWorks 5 5 1 for SH4 B NOTE For more detail information about Tornado Project Facility see the Tornado 2 2 User s Guide chapter 4 Projects 3 1 1 Creating KS88XX BSP Directory KS88XX BSP directory and its files are created by copying the ks884x zip to installDir target config Unzip ks884x zip under installDir target config directory It is successful if you s a new directory installDir target config ks884x 3 1 2 Creating KS88XX Project Directory We use the project facility for configuring and building VxWorks image and boot ROM image Copy the workspace file ks884xWorkspace wsp to installDir target proj KS88XX BSP project directory is created by copying the ks884x gnu zip to installDir target proj Unzip ks884x gnu zip under installDir target proj directo
4. Bj x Exec ala RA ks884x Workspace B L ks884x gnu Builds A default A default ks8841 A default_ks8841_shBus A BRETT UTR A defaut k Open default_ks8842 A de au jc Delete default_ks8842 A default Set default_ks8842 as Active Build A default_rc Dependencies Build vxWorks ReBuild All vxWorks Stop Build New Build Properties Files J Vsworks Builds Right click on the build specification e g default KS8842 and selects Set default KS8842 as Active Build Then Right click on the build specification again e g default KS8842 and selects Rebuild All VxWorks The Build Output window will display build messages including errors and warnings Figure 4 2 2 Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 10 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide Figure 4 2 2 Build Output Tornado Build Output File Edit View Project Build Debug Tools Window Help oleja e e zl ejl en Es WM E D 1 1 3 l sw o g4 Build C Tornado221SH target proj ks884x gnu ks884x gnu wpj clean vxWorks DKS PCI c C Tornado221S5H target config ks884x ks884xEnd shBus c Build Spec defaut 8842 warm prjObjs lst Generating prjObjs lst ccsh g m4 ansi fno builtin I IC Tornado221SH target config ks884x IC Tornado221
5. DKS PCI w synTbl c o synTbl o ccsh g m4 ansi fno builtin I IC Tornado221SH target config ks884x IC Tornado221 SH target h IC Tornado221SH target config comps sre IC sTornado2215H target src drv DC PU SH7750 DTOOL FAMILY gnu DTOOL gnu DPRJ BUILD DDEF VXVORKS DDEF KS58842 DKS PCI BUS DKS PCI c C Tornado2215H target config comps src dataSegPad c ldsh X n e sysInit Ttext 0c002000 5 dataSegPad o partiallmage o ctdt o symTbl o N T C Tornado221SH target h tool gnu ldscripts link RAM o vxWorks C NTornado221SH host x86 win32 bin vxsize sh v 0c400000 c002000 vxWorks vxWorks 919600 t 68128 d 46224 b 1033952 3152160 unused Done Files J Vaworks Builds E RA ks884xWorkspace B L ks884x gnu Builds A default A default ks8841 A default ks8841 shBus A A default ks8842 shBus A default rom A default romCompress A default romRiesident The types for a VxWorks image are VxWorks A RAM based image usually loaded into SDRAM memory by a VxWorks boot ROM over the network FTP server running on the host where the VxWorks image is stored This is the default development image The build specifications are e Default KS8841 Build VxWorks for KS8841P PCI bus interface BSP e Default KS8842 Build VxWorks for KS8842P PCI bus interface BSP e Default KS8841 shBus Build VxWorks for KS8841M KS8861M 32bit Gen
6. SH target h IC XTornado221SH target config comps src IC Tornado2215H target src drv DC IPU SH7750 DTOOL FAMILY gnu DTOOL gnu DPRJ BUILD DDEF VXVORKS DDEF KS58842 DKS PCI BUS DKS PCI c C Tornado221SH target config comps src version c iccsh r nostdlib W1 X W1 0 prjObjs lst version o Wl start group N LC Tornado221SH target lib sh SH7750 gnu LC Tornado221SH target lib sh SH7750 lcplus lgnucplus lvxcom larch lcommoncc ldcc ldrv lgcc lnet los lr pc ltffs lvxfusion lvxvmi lwdb lwind lwindview C XTornado221SH target lib libS H7750gnuvx a Wl end group o partiallmage o nmsh g partiallmage o prjObjs lst wtxtcl C Tornado221SH host sreNhutils munch tcl c sh gt ctdt c iccsh c fdollars in identifiers g m4 ansi fno builtin I IC Tornado221SH target c onfig ks884x IC Tornado221SH target h IC Tornado221SH target config comps sre IC XTor mado221SH target sre drv DCPU SH7750 DTOOL FAMILY gnu DTOOL gnu DPRJ BUILD DDEF VXWOR KS DDEF_KS8842 DKS PCI BUS DKS PCI ctdt c o ctdt o copy partiallmage o tmp o 1 file s copied C NTornado221SH hostx x86 win32X bin makeSynTbl bat sh tmp o symTbl c iccsh c fdollars in identifiers g m4 ansi fno builtin I IC Tornado221SH target c onfig ks884x IC Tornado221SH target h IC Tornado221SH target config comps sre IC XTor inado221SH target src drv DCPU SH7750 DTOOL FAMILY gnu DTOOL gnu DPRJ BUILD DDEF VXWOR KS DDEF_KS8842 DKS PCI BUS
7. 1 command from your laptop Windows Command Prompt to test whether the KS8841 2M 32 is accessible over the network Figure 8 1 Figure 8 1 Issue PING from the laptop Command Prompt C ND C gt ping 192 168 2 1 Pinging 192 168 2 1 with 32 bytes of data Reply from 192 168 2 1 bytes 32 time lt i ms TTL 64 Reply from 192 168 2 1 bytes 32 time lt i9ms TTL 64 Reply from 192 168 2 1 bytes 32 time lt i9ms TTL 64 Reply from 192 168 2 1 bytes 32 time lt i ms TTL 64 Ping statistics for 192 168 2 1 Packets Sent 4 Received 4 Lost z Approximate round trip times in milli seconds Minimum ms Maximum ms Average ms HS Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page20 2005 Micrel Semiconductor
8. Ethernet driver for KS8841P or KS8842P PCI bus interface 2 2 Mapping K88XX Device to SH7751R Memory Area The generic version of the KS88XX END driver maps KS8841 42 61 62M device to SH7751R Area4 memory space while PCI version of the KS884X END driver maps KS8841 2P device to SH7751R Area7 PCI memory space e Mapping KS8841 42 61 62M device to SH7751R 32bit generic bus Selects CS4 Expansion Area4 to map KS8841 42 61 62M memory space Sets CS4 to 32 bit bus size And also configure CS4 to byte control mode allow accessing KS8841 42 61 62M by 8 bit 16 bit or 32 bit Configures CS4 to 3 wait states Configures CS4 memory base address to logical address 0xB0000000 and KS8841 42 61 62M is mapped to logical address 0xB0000000 e Mapping KS8841 2P device to SH7751R PCI bus KS8841 2P device is mapped to SH7751R Area7 PCI memory space by VxWorks PCI Auto Configuration mechanism for automated PCI device scanning and configuration on PCI based systems VxWorks PCI Auto configuration facility also specifies the KS8841 2P PCI base memory and PCI interrupt line KS8841 2P PCI device is operation on memory base only 2 3 KS88XX BSP Operate As Endian Mode Renesas MS7751RSE01 reference board can operate using either big endian or little endian byte order But since the KS88XX BSP is build for big endian byte order we set MS7751RSE01 reference board as big endian mode by set SW4 6 to ON
9. Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 13 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide 6 Booting VxWorks This section covers bringing up VxWorks on a Renesas MS7751RSE01 reference board with the relatively simple configuration matching the default software image The AMD Am79C97X PCnet PCI END driver is called lnPci and should be Specified as the boot device to the boot ROM E NOTE For more detail information about how setup Host Target Communication see the Tornado 2 2 User s Guide chapter 2 4 Host Target Communication Configuration 6 1 Connecting a Cable for the Ethernet Connection Connecting an Ethernet cable between your host and the Renesas MS7751RSEO1 reference board at 10BASE T 100BASE TX via RJ 45 connector CN7 6 2 Booting VxWorks From Network FTP Server The VxWorks image only contains one specific KS884X END driver as described in the previous section 3 2 To test the specific of KS884X driver by loading the VxWorks this contains that END driver We use FTP user ID to distinguish loading different KS884X driver s VxWorks image The following section explains how to set FTP server for loading specific VxWorks image 6 2 1 Starting FTP Server To boot VxWorks over the network you must have an FTP server running on the host where the VxWorks image is stored and the FTP server must have a use
10. I Tera Term COMI VT EN inl xj File Edit Setup Control Window Help H elp for help messages lease Send A S format Record Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 12 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide After the message is displayed send the S format object file bootrom hex by using the file transfer function of communication software Downloading the image can take several minutes depending on the file size and baud rate Once the download is complete the ROM monitor automatically erases and reprograms the flash Ii Tera Term COMI VT E 2 5 x File Edit Setup Control Window Help H elp for help messages lash ROM data copy to RAM lease Send A S format Record tart Addrs 8808888088 nd Addrs 888043CiB8 ransfer complete lash chip erase complete rogram complete lash write complete eady gt Turn power OFF change the SW5 3 and SW5 4 setting OFF and ON respectively to select the flash as the boot device The baud rate setting does not apply to VxWorks therefore the status of SW5 1 and SW5 2 does not have to be changed Set the host communication software baud rate to 9600 the default VxWorks console baud rate which can be changed in config h and power on the target The console should display the VxWorks boot screen Confidential Information Rev 0 3 2180
11. of banks to access registers The PCI version of the KS884X END driver is used for PCI bus It uses a flat address space to access registers It uses lists of descriptors to send and receives packets The KS8841M and KS8861M has one PHY port to send and receive packets while the KS8842M and KS8862M has two It is possible to create two network devices in the KS8842 62 driver so that the operating system can control which port to send packets 2 1 KS88XX Evaluation Board There are two kinds of KS88XX evaluation boards one for 32bit generic bus interface called KS8841 42 61 62M evaluation board and the other for PCI bus interface called KS8841 2P evaluation board The KS88XX evaluation boards are the Add on boards for Renesas MS7751RSEO1 reference board Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page4 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide KS8841 42 61 62M evaluation board is designed to be plugged in to Renesas MS7751RSEO1 reference board expansion slot CN1 which is connected to SH7751R SH bus to test VxWorks END Ethernet driver for KS8841M KS8842M KS8861M or KS8862M 32bit generic bus interface KS8841 2P evaluation board is designed to be plugged in to Renesas MS7751RSE01 reference board PCI slot CN8 or CN9 which is connected to SH7751R PCI bus to test VxWorks END
12. within that seven second period the boot loader will attempt to proceed with a default configuration and will not be able to boot the target with VxWorks Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 15 2005 Micrel Semiconductor BIC del KSZ88XX VxWorks Driver Installation Guide Figure 6 3 1 Boot Program Communication and Boot Banner Display B Tera Term COMI T x ebd File Edit Setup Control Window Help UxWorks System Boot opyright 1984 2662 Wind River Systems Inc PU HITACHI ULSI MS7751RSE ersion UxWorks5 5 1 SP version 1 2 6 reation date Jun 20 2005 18 67 13 im any key to stop auto boot UxWorks Boot The boot program displays the VxWorks boot prompt as follows VxWorks Boot To display the current default boot parameters type p at the boot prompt as follows VxWorks Boot p A display similar to the following appears This example corresponds to the configuration shown in boot device S dmPpei processor number sU host name host file name VxWorks inet on ethernet e gt 192 168 1 1 ffffffQ00 inet on backplane b host inet h s OS eee 10 gateway inet g user u ks8842 ftp password pw blank use rsh wind flags f s 30 target name tn SUSBTITSTIE startup Script s other o To change the boot parameters type c at the boot prompt as fol
13. 3C 95 A5 5A IP Address 192 168 2 1 ort 1 Link Status Down ort 2 Link Status Down Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 17 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide Figure 6 3 3 KS8842 PCI Bus VxWorks Booting Display 1 SI x BI Tera Term COMI T Fie Edit Setup Control Window Help UxMorks opyright 1984 2082 Wind River Systems Inc CPU HITACHI ULSI MS7751RSE Runtime Name UxWorks untime Uersion 5 5 1 BSP version 1 2 8 Created Jul 6 2885 12 01 19 WDB Comm Type UDB COMM END WDB Ready Ethernet Group PCI BUS Ethernet Driver demo KS8842 PCI Enhanced Network Driver Version 8 1 2 Driver Version 8 1 5 Chip ID 8840 Device Revision Base Address 9xFD9009800 AC address 08 08 78 22 44 55 IP Address unknown fail to get IP address of device ksPci 75 Link Status Down Link Status Down Ethernet Group PCI BUS Ethernet Driver demo KS8842 PCI Enhanced Network Driver Version 9 1 2 Driver Uersion 8 1 5 Chip ID 8840 Device Revision Base Address 69xFD900800 AG address 08 08 78 22 44 55 IP Address 192 168 2 1 ort 1 Link Status Doun ort 2 Link Status Doun Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 18 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Drive
14. EP REED ERE VEU FE PERS EL UY APER TEPORE DICE POE I PEE DR EEPR HEX V REIN soros 19 Testin KSSSXX BSP M 20 Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page2 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide 1 Overview This document describes how to install and build KS88XX BSP under Tornado 2 2 1 VxWorks 5 5 1 for SH4 The KS88XX drivers were developed and tested with Renesas MS7751RSEO01 reference board 2 NOTE KS88XX BSP works for Micrel KSZ8841M KSZ8842M KSZ8861M KS28862M generic bus and KSZ8841P KSZ8842P PCI bus Ethernet device Before starting installs KS88XX BSP Tornado 2 2 1 VxWorks 5 5 1 for SH4 must be installed on the host system Microsoft Windows e The KS88xx BSP Packet Contains ks884x zip o This zip file contains KS88XX BSP files ks884x gnu zip o This zip file contains KS88XX Project files ks884xWorkspace wsp o Contains information about the workspace including KS884X project belongs to it Please see SH7751R Solution Engine MS7751RSE01 User s Manual via the website www windriver com for more information about Renesas MS7751RSEO1 reference target Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page3 2005 Micrel Semiconductor
15. Get driver port 1 total received packets counters Get driver port 2 total received packets counters Port Repeat MAC IP Tx ARP request packet to ks884X The top of portions are CLI command input output data format and the bottoms of portions are CLI command syntax Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 USA 408 944 0800 e http www micrel com Page 19 2005 Micrel Semiconductor E CHEL KSZ88XX VxWorks Driver Installation Guide 8 Testing KS88XX BSP The KS88XX BSP END Ethernet interface is assigned to a fix IP address 192 168 2 1 And set an IP number on the same sub net to your laptop For xample set the IP address of your laptop is 192 168 2 10 The following section describes the procedures to test KS8841M KS8842M KS8841P KS8842P KS8861M or KS8862M device s END driver transmit receive Ethernet packets BE Note If you want to use a IP address other than this you need to change IP address in the usrApplnit c ksSetEndlf file and rebuild your project Plugs KS8841 42 61 62M in to Renesas MS7751RSE01 reference board expansion slot CN1 Or Plugs KS8841P or KS8842P in to Renesas MS7751RSE01 reference board PCI slot CN8 or CN9 Connects an Ethernet cable between your laptop and one of the ports on the KS8842M 32 or only one port on KS8841M 32 Power on the target Uses the PING 192 168 2 1 or TELNET 192 168 2
16. K The Workspace window provides the framework for the project facility The window displays information about projects files VxWorks components if any and build options in three tabbed views Files VxWorks and Builds Figure 4 1 3 4 1 4 4 1 5 Figure 4 1 3 Workspace Window Views Files Tornado Workspace ks884x Workspace 8 xl File Edit View Project Build Debug Tools Window Help Disig e 21919 R H E ETES Zizi 1 2 ZI el SIA e e Bj A x Ew mueve FREE Build Spec default ks8841 7 EER ks884x Workspace ae hardware c E ks884xEnd c E ks884xEnd_shBus c E Ke Diag c E ks_contig c E Ke mirror c E ks_qos c E ks rate c ks stp c E ks table c ks vlan c G linkSyms c priConfig c romlnit s E romStart c sysALib s E sysLib c E target c G ustApplnit c Y C1 External Dependencies 3 Obiect Modules default_ks8841 Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 USA 408 944 0800 e http www micrel com Pages 2005 Micrel Semiconductor EI Creel KSZ88XX VxWorks Driver Installation Guide Figure 4 1 4 Workspace Window Views VxWorks E 18 xi Tornado Workspace ks884x Workspace File Edit View Project Build Debug Tools Window Help nee e S er ehka EE EET ss ss cci l eul mu ewe zer Workspace ks884xWorkspac Build Spec defaut ksss O O o l
17. din din tin tin tin tin din tin tin Ka Ka Wow w wow u y m u y m u y m u y m ww N R s L maci mac2 vlan Display help message BankNum RegNum Width Read ks884 register BankNum RegNum RegData Width Modify ks8848 register BankNum RegNum BitMask BitPat Time0ut Poll register bit if it match bit pattern BufNum BufOffset Len Display contents of debug buffer BufNum BufOffset WData Write data to debug buffer maximum length is 64 BufNum Buf0Offset FData BufInc Len Fill data to debug buffer Port But Num Len Repeat Sane But Delay Tx packet from debug buffer to ks884X BufNum TimeOut Rx packet from ks884 and store in debug buffer lt start at BufNum Table Index Count Read ks8844 table data register Table Index RegDataH RegDataL Write ks884X table data register Table Index Count TRUE Show ks884 table Port Clear software MIB counter database clear all if Port 4 DumpFlag Start Stop dumpping transmit packet data DumpFlag Start Stop dumpping receive packet data Start Stop dumpping receive packet data Reset the device Set Early Receive Threshold Cin unit of 64 byte Set Early Transmit Threshold lt in unit of 64 byte Enable Disable Early Transmit Receive 1 Enable Disable Ethernet cable diagnostics Get Link status Set Link speed Get device MAC address Get device IP address Get driver port 1 total transmit packets counters Get driver port 2 total transmit packets counters
18. ecific KS884X END drivers Table 6 3 1 User ID and its home directory user ID home directory Include END Driver ks8841pci installDir target proj ks884x_gnu default_KS8841 KS8841 PCI END driver z ks8842pci installDir target proj ks884x_gnu default_KS8842 n 8842 PCI D driver ks8841 installDir target proj ks884x_gnu default_KS8841_shBus LD 8841 61 32bit eneric bus D driver ks8842 installDirNtargetNprojNks884x gnuNdefault KS8842 shBus n 8842 62 32bit eneric bus D driver AQ RHQ KIA Ale 6 3 Default Boot Process When you boot VxWorks with the default boot program you must use the VxWorks command line to provide the boot program with information that allows it to find the VxWorks image on the host and load it onto the target The default boot program is designed for a networked target and needs to have the correct host and target network addresses the full path and name of the file to be booted the user name and so on When you power on the target hardware and each time you reset it the target system executes the boot program from ROM during the boot process the target uses its serial port to communicate with your terminal or workstation The boot program first displays a banner page and then starts a seven second countdown visible on the screen as shown in Figure 6 3 1 Unless you press any key on the keyboard
19. eric bus interface BSP e Default KS8842 shBus Build VxWorks for KS8842M KS8862M 32bit Generic bus interface BSP NOTE Binaries produced by a build are created in the buildName Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Pagell 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide subdirectory of your project directory 5 Program Boot ROM into ROM Flash Memory This section describes the procedure for programming the VxWorks boot ROM image bootrom hex into the on board flash using the Hitachi ROM monitor The boot ROM image consists of a minimal VxWorks configuration and a boot loader mechanism by using on board AMD Am79C97X Ethernet controller Make sure to install the big endian ROM monitor Set the SW4 6 to ON Set the baud rate using the SW5 1 and SW5 2 as highest possible supported by the host terminal program For the Windows HyperTerminal set to 115200 SW5 1 and SW5 2 both ON Configure the host terminal program to use the same baud rate Connect the serial cable to the MS7751RSE01 CN2 connector Set the boot device to the socketed EPROM SW5 3 and SW5 4 both ON Power on the target The host terminal program should display I Tera Term COMI T E jn xj File Edit Setup Control Window Help H elp for help messages Issue the command to program the flash
20. lows Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 16 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide VxWorks Boot c Once you have entered the boot parameters initiate booting by typing the Q command at the boot prompt VxWorks Boot The VxWorks booting display along with BSP message on the host Hyper terminal screen as Figure 6 3 2 or Figure 6 3 3 The BSP messages contain Bus interface of KS8841 or KS8842 interface END Ethernet driver version KS8842 or KS8841 hardware driver version KS8841 2 Chip ID KS8841 2 Device Revision KS8842 or KS8841 base address that is mapped to the CPU memory space MAC address of KS8841 or KS8842 station IP address of KS8841 or KS8842 target Port Link Status Figure 6 3 2 KS8842 32bit Generic Bus VxWorks Booting Display Tera Term COMI YT Ex File Edit Setup Control Window Help UxMorks opyright 1984 2082 Wind River Systems Inc CPU HITACHI ULSI MS7751RSE Runtime Name UxWorks untime Uersion 5 5 1 BSP version 1 2 8 Created Jun 24 2005 18 05 18 WDB Comm Tape MDB COMM END B Ready Ethernet Group 32 bit Generic Bus Ethernet Driver demo KS8842 Generic Bus Enhanced Netuork Driver Uersion 8 1 2 Driver Uersion 8 1 5 Chip ID 8800 Device Revision Base Address 6xBOG60060 AC address 90 90
21. mitre KS88XX VxWorks Driver Installation Guide Micrel KSZ88XX Family VxWorks Driver Installation Guide Develop Under Tornado 2 2 1 VxWorks 5 5 1 Version 0 3 07 20 2005 Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 USAe 408 944 0800 e http www micrel com Page 2005 Micrel Semiconductor MICAEL KSZ88XX VxWorks Driver Installation Guide Contents I Denari 3 Z KS88XX END Drivers iii 4 2 1 KS88XX Evaluation Board nennen nemen emen enen ener nennen 4 2 2 Mapping K88XX Device to SH7751R Memory Area 5 2 3 KS88XX BSP Operate As Endian Mode eese 5 3 KS88XX BSP Installation sss ss sss aaa 6 3 1 1 Creating KS88XX BSP Directory rl 6 3 1 2 Creating KS88XX Project Directory cirie 6 4 Build VxWorks from Project Facility for KS88XX BSP eessessessoesoossessossocssessossocesesssse 7 4 1 Starting Tornado KS88XX Project eerte ninna nega tao e Eae anas 7 4 2 Build VxWorks Image from Tornado KS88XX Project eese 10 5 Program Boot ROM into ROM Flash Memoory e eese eerte ee sss ee eren eee to esse 12 EN In REI 14 6 1 Connecting a Cable for the Ethernet Connection seen 14 6 2 Booting VxWorks From Network FTP Server eee 14 6 2 1 sano BILIE 14 6 3 Default Boot ProG6eS88 er eet ia 15 7 CLEILODIDAIBUS iiie er APO
22. r ID and password defined that your VxWorks target can use to identify itself Tornado includes an FTP server called WFTPD The WFTPD utility is distributed as installDir host x86 win32 bin wftpd32 exe Before an FTP client MS7751RSE01 target can connect to FTP server you must specify the following information N A user ID Choose whatever arbitrary name you wish as the user ID for the VxWorks that contains the testing KS884X END driver Be sure to Specify the same name as the user u VxWorks boot parameter e g ks8842 for KS8842M 32 generic bus END driver N A password for that user ID Use any memorable arbitrary string and be sure to specify the same string as the ftp password pw VxWorks boot parameter e g wind Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page 14 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide A home directory where the VxWorks image which contains the KS8842M 32 generic bus END driver is stored E g installDir target proj ks884x_gnu default_KS8842 Eri Figure 6 3 1 Adding a New User for WFTPD x User Name User ks8842 New User Delete Change Pass Home Directory CATORNADO22 T Restricted to home Help Rights gt gt The table 6 3 1 list of example of user ID and home directory for the different VxWorks image contains the sp
23. r Installation Guide 7 CLI Commands The KS8841 2 BSP provides a set of CLI commands to help user to debug KS8841 2 device From VxWorks Shell command prompt type hwhelp will display all the CLI commands that the BSP provides Figure 6 1 gt hwhelp Figure 7 1 CLI hwhelp command Display E Tera Term comi vT EEE eee PSE File Edit Setup Control Window Help Register number Register data to write Register data width to read write 1 in BYTE 2 in WORD 4 in LONG Mask defining bit pattern field Bit pattern to check for Debug buffer number Debug buffer offset Debug buffer length Buffer data to write e g FF 88 BI BA Buffer data to fill Buffer data to fill by increasing count Repeat times Port number lt by lookup i direct to porti 2 direct to port2 3 direct to porti and 2 1 use same buffer to Tx continuous next buffer to Tx Time in ms to wait before giving up Table index Number of table entry items max Count maci 8 mac2 1924 vlan 6 mib 102 Table Update Write Data Register High bit 63 bit_32 Table Update Write Data Register Low bit 31 bit 8 gt 1 Start dumpping packet 8 Stop dummping packet Delay ms between continous transmit packets mib Table identifier Xmaci static MAC mac2 dynamic MAC HOOOOHO But EEEEEEE DUOXEREEEREE ff RegDataH egDataL DumpFlag a a a a Ca a a a a a a a PS Ca a a a a a a al SSR N Ka Ka K tin dn tin tin dln tin
24. ry It is successful if you see following new directory Table 3 1 2 Project Directory Description Directory Description target proj ks884x_gnu ks884x gnu wpj specification consists of a set of options that define the VxWorks image type makefile rules macros as well as compiler assembler and linker options target proj ks884x_gnu default_ks8841 To build VxWorks image for KS8841P PCI bus interface BSP target proj ks884x_gnu default_ks8842 To build VxWorks image for KS8842P PCI bus interface BSP target proj ks884x_gnu default_ks8841_shBus To build VxWorks image for KS8841M 32 32bit generic bus interface BSP target proj ks884x_gnu default_ks8842_shBus To build VxWorks image for KS8842M 32 32bit generic bus interface BSP Ss NOTE For the purposes of others VxWorks project files s the Tornado 2 2 User s Guide chapter 4 4 2 Project Files for VxWorks Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page6 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide 4 Build VxWorks from Project Facility for KS88XX BSP This section describes how to build VxWorks image for KS88XX BSP from Tornado 2 2 1 project facility 4 1 Starting Tornado KS88XX Project To start Tornado click on the Start button on the Windows taskbar and select Programs Then select the Tornado program gro
25. up called Tornado with default installation and click on Tornado Click Existing from the Project window Figure 4 1 1 Figure 4 1 1 Tornado Main Window with Existing Project Window lt J x Tornado File Edit View Project Build Debug Tools Window Help Dae sele Sle fi a E 3 3 El lakeelal l Bj x 2 al Bee BERE HE Recent New Existing Enter a workspace to open or press Browse to search OK C Tomado221SH target proj ks884xWorkspace wsp Cancel Help Browse v Show this window on startup Then click on Browse selection of ks884xWorkspace wsp under target proj directory from the Workspace Browse window Figure 4 1 2 Confidential Information Rev 0 3 2180 Fortune Drive San Jose CA95131 US As 408 944 0800 e http www micrel com Page7 2005 Micrel Semiconductor MICHEL KSZ88XX VxWorks Driver Installation Guide Figure 4 1 2 Tornado Workspace Browse Window Look in proi er E3 hmse7751_diab ms7750Rse_gnu ms7751Rse_le_gnule hmse7751 gnu ms7750Rse le diable simpc gnu hmse7751 le diable ms7750Rse le gnule DIST hmse7751 le gnule Ca ms 7751Rse diab Ra ms7751Rse ks884x gnu ms7751Rse gnu Ra WorkspaceD ms7750Rse diab C3 ms7751Rse le diable File name ksBB4g workspace Files of type Workspace Files wsp Cancel After the selection of ks884xWorkspace wsp for the workspace and click Open then O
Download Pdf Manuals
Related Search
Related Contents
Vendredi 14 septembre MH-X50+ LED Spot moving head bedienungsanleitung MCG SSP System Manual Candy CB 63 TR User's Manual Karcher K 2.91 MD Vacuum Cleaner User Manual 平井寺 トンネル有料道路 Neff D79S23 cooker hood Mode d`emploi Copyright © All rights reserved.
Failed to retrieve file