📄 target.nr
字号:
'\" t.so wrs.an.\" pc/target.nr - PC386/486 target-specific documentation.\".\" Copyright 1984-1998 Wind River Systems, Inc..\".\" modification history.\" --------------------.\" 01s,23mar98,ms- rewritten to conform with guidlines in BSP developers kit.\" 01r,12mar98,sbs changed info on use of SCSI-2 driver..\" 01q,20nov97,map mention no support for ISA PnP. [SPR# 9877].\" 01p,10jul97,dds added info on use of the SCSI-2 driver for the AHA 2940.\" PCI SCSI Adapter card..\" 01o,25feb97,mas added info on use of mkboot/mkbootFd and reboot device.\" selection using sysWarmType as well as info on the mapping.\" of IRQ numbers to IRQ levels (SPR 7850)..\" 01n,22nov96,dat doc cleanup, added EtherExpress PRO100B support..\" 01m,01nov96,hdn added support for PCMCIA..\" 01l,09sep96,hdn added support for compression..\" 01k,26jul96,hdn added support for ATA and SMC91c9x driver..\" 01j,19jun96,wlf doc: cleanup..\" 01i,23oct95,jdi doc: updated for Tornado.\" 01h,28sep95,hdn cleaned up..\" 01g,03aug95,myz upgraded to 5.3 .\" 01f,06jun94,hdn added changes by Roland for 5.1.1 FCS..\" 01e,13may94,hdn updated to 5.1.1 FCS..\" 01d,01dec93,hdn cleaned up..\" 01c,09nov93,vin upgraded to 5.1.\" 01b,26mar93,hdn added a description about boot rom image..\" 01a,12jan93,hdn written..\".\" NOTE.\" EXOS.\".TH "pc386/486" T "PC 386/486" "Rev: 25 Mar 98" "TORNADO REFERENCE: VXWORKS".SH "NAME".aX "PC 386/486".SH "INTRODUCTION"This manual entry provides board-specific information necessary to run VxWorks for the pc386 and pc486 BSPs. Before using a board with VxWorks, verify that the board runs in the factory configuration by using vendor-supplied ROMs and jumper settings and checking the RS-232 connection.Please note that the pc386 and pc486 BSPs are generic BSPsfor generic PC-AT style motherboards. For best results, the board vendor's documentation should be used in conjunction with this document..SS "BOOT ROMS"The PC386 and PC486 generic boards use a boot diskette instead of boot ROMs. The boot diskette includes the boot sector (sector 0) and a DOS file systemcontaining a boot ROM image named `bootrom.sys'.The boot ROM image could be one of following:.TS Eexpand;c c c cc c c cl l l l. Image is Image LoadsImage Name Description Compressed Into=vxWorks_rom bootable vxWorks No High MemoryvxWorks_rom_low bootable vxWorks No Low MemoryvxWorks.st_rom bootable vxWorks.st Yes High Memorybootrom bootrom Yes Low Memorybootrom_uncmp bootrom No Low Memorybootrom_high bootrom Yes High Memory_.TEVxWorks.st is a fully linked stand alone image which includes a target based shell, symbol table, and network interface. Note that the network interface is not initialized.The boot ROM image must be copied into the floppy disk (a:) or the IDE disk (c:) using the DOS boot utility "mkboot.bat" or the VxWorks boot utilities "mkbootFd" for floppy disks or "mkbootAta" for hard disks.The usage of the two VxWorks boot utilities is as follows:.ne 15.CSSTATUS mkbootFd ( int drive, /* destination drive number: (0 - 3) */ int fdType, /* type of floppy disk: (0 - 1) */ char *in /* source file name */ )STATUS mkbootAta ( int ctrl, /* dest. controller number: (0 - 1) */ int drive, /* dest. drive number: (0 - 1) */ char *in /* source file name */ ).CEBoth routines return OK on success and ERROR if there is an error whilecopying the image from the source onto the disk.EXAMPLES:Example 1: Creating a boot floppy disk using mkbootFd:The floppy disk is in drive 0 (or a:), the diskette is of type 0,and the image file name is `bootrom_uncmp':.CS -> mkbootFd 0, 0, "bootrom_uncmp".CEExample 2: Creating a bootable hard disk using mkbootFd:The hard disk is on ATA controller 0 and is drive number 0(or c:). The image file name is `bootrom_uncmp':.CS -> mkbootAta 0, 0, "bootrom_uncmp".CEThese boards do not have non-volatile RAM; thus, boot parameters are notpreserved whenever the system is powered off. However, static bootparameters can be set in the boot disk by setting the boot parameter lineDEFAULT_BOOT_LINE in config.h.For information on the use of the DOS utility "mkboot.bat" and how to boot VxWorks,please refer to the.I "VxWorks Programmer's Guide, Appendix D: Intel i386/i486."To load VxWorks, and for more information, follow the instructions in the.I "Tornado User's Guide: Getting Started.".SS "Jumpers"Refer to the board vendor's documentation..SH "FEATURES"Since this is a generic BSP for generic PC-AT style motherboards,your board may or may not have all of these features, and yourboard may have some features not discussed here.Your board vendor's documentation should be used in conjunction with this section..SS "Supported Features"Supported features are discussed below in the "Devices" sectionunder the "HARDWARE DETAILS" heading..SS "Unsupported Features"This BSP does not support ISA PnP. Such devices can be supported ifPnP is disabled and the device parameters (IO address, Memory address,IRQ, DMA channel etc) are set to match those in theBSP driver configuration. Ifthe device uses soft-configuration instead of jumpers, an appropriateutility program, usually available from the device manufacturer,should be used to set the device parameters..SS "Feature Interactions"Refer to the board vendor's documentation..SH "HARDWARE DETAILS"This section documents the details of the device drivers and boardhardware elements..SS "Devices"Drivers included with this BSP are for both on-board chipsand for separate adaptor cards that can be used with themotherboard.Refer to the vendor's documentation for both the motherboard andany adaptor cards used. Vendor documentation for on-boardchips may be necessary also.Note that for all ISA drivers, the I/O base address,memory address, and interrupt level must match those in config.hor pc.h.In the table below, drivers ending in the .c extension aredelivered in source form; the other drivers are deliveredin object form only. .TScenter;l l.i8250Sio.c Intel UART tty driveri8237Dma.c 8237 DMA driverpcConsole.c console driveri8042Kbd.c Intel keyboard controlleri8048Kbd.c Intel keyboard controllerm6845Vga.c Motorola M6845 VGA controllernec765Fd.o nec765 floppy disk controllerataDrv.o IDE/ATA hard disk controllerataShow.o IDE/ATA hard disk controller show routinesaic7880Lib.o AHA-2940 PCI SCSI Adapter cardi8253Timer.c Intel 8253 timer driveri8259Pic.c Intel 8259 PICnullNvRam.c null NVRAM librarynullVme.c null VMEbus librarypcmciaLib.o PCMCIA driverpcmciaShow.o PCMCIA driver show routineif_ultra.o SMC Elite16 network interface driverif_eex.o Intel EtherExpress16 network interface driverif_elt.o 3Com EtherLinkIII network interface driverif_ene.o Novell/Eagle 2000 network interface driverif_esmc.o Ampro Ethernet2(SMC 91c9x chip) network interface driverif_fei.o EtherExpress PRO100B network interface driver.TEBelow are some brief notes on each driver.For more details refer to theentry for each driver in the Libraries section of the .I "VxWorks Reference Manual".IP "i8250Sio"Intel 8250 Universal Asynchronous Receiver Transmitter (UART) tty driver.Used for the serial ports.IP "i8237Dma"Driver for the ISA DMA controller.This is used in nec765Fd.c, which alsoserves as a good application example..IP "pcConsole, i8042Kbd and i8048Kbd"Driver for the on-board Intel 8042 and 8048 keyboard controllersTo use these controllersthe INCLUDE_PC_CONSOLE directive must be enabled in config.h. The macroPC_KBD_TYPE should be defined in config.h as PC_PS2_101_KBD to includei8042Kbd.c, and as PC_XT_83_KBD to include i8048Kbd.c..IP "m6845Vga"Driver for the Motorola M6845 VGA controller.To use this controller, define INCLUDE_PC_CONSOLE in config.h..IP "nec765Fd:Driver for the nec765 floppy disk controller.To use this driver, the INCLUDE_FD directive must be enabled inconfig.h..IP "ataDrv and ataShow"Driver for the IDE/ATA hard disk controller. To use this driver, the INCLUDE_ATA directive must be enabled in config.h. Note that the old INCLUDE_IDE directive is replaced by INCLUDE_ATA,and that vxsys() is replaced by mkbootFd() and mkbootAta()..IP "aic7880Lib"Driver for the AHA-2940 PCI SCSI Adapter card. This carduses the AIC-7880 Adaptec SCSI Host Adapter. To use this driver, the INCLUDE_AIC_7880, INCLUDE_SCSI, INCLUDE_SCSI2, and INCLUDE_PCI directives must be enabled in config.h. .IPFor information regarding installing the AHA-2940see the "Adaptec 7800 Family Manager Set User's Guide"..IP "i8253Timer"This library contains routines to manipulate the timer functions on theIntel 8253 chip with a board-independent interface. This library handlesboth the system clock and the auxiliary clock functions..IPThe macros SYS_CLK_RATE_MIN, SYS_CLK_RATE_MAX, AUX_CLK_RATE_MIN, andAUX_CLK_RATE_MAX must be defined to provide parameter checking for thesys[Aux]ClkRateSet() routines..IPThe macro PIT_CLOCK must also be defined to indicate the clock frequencyof the i8253..IPThe system clock is the programmable interrupt timer.The auxiliary clock is the real time clock..IPThis driver includes a timestamp driver; to use thisfeature, the macro INCLUDE_TIMESTAMP must be defined in config.h..IP "i8259Pic"Driver for the Intel 8259A Programmable Interrupt Controller (PIC)..IP "nullNvRam"This library contains dummy non-volatile RAM manipulation routines for targetslacking non-volatile RAM. Read and write routines that return ERRORare included.The macro NV_RAM_SIZE should be defined as NONE for targets lackingnon-volatile RAM..IP "nullVme"This library contains null routines for boards which do not include anycommon bus routines..IP "pcmciaLib and pcmciaShow"Drivers for PCMCIA. In order to use any PCMCIA card the INCLUDE_PCMCIA directivemust be enabled in config.h. These drivers currentlysupport three cards. To use an ATA PC card, enableINCLUDE_ATA; to use an SRAM PC card, enable INCLUDE_SRAM;to use a 3COM Etherlink III PC card, enable INCLUDE_ELT.By default, all three cards are enabled when INCLUDE_PCMCIA is enabled..IP "if_ultra"Driver for the SMC Elite16 (Western Digital 8013WC) and SMC Elite 16 Ultra network cards.To use these controllers the INCLUDE_ULTRA directive must be enabled in config.h. The following jumper configurationsare supported:.ne 10.TScenter;cf3 s cf3 slf3 lf3 lf3 lf3c s c sa a4 a a .SMC Elite 16 SMC Elite16 Ultra.sp .25Jumper Setting Jumper Setting\_ \_W1 SOFT (I/O addr 0x240) W1 SOFT (I/O addr 0x240)W2 NONE/SOFT - NO ROM- NO ROM.TEIRQ levels 2,3,5,7,10,11,15 are supported..IP "if_eex"Driver for the Intel EtherExpress16 network card. To use this board the INCLUDE_EEX directive must be enabled in config.h. This board is soft-configured with no jumpers..IP "if_elt"Driver for the 3Com EtherLinkIII network card.To use this board the INCLUDE_ELTdirective must be enabled in config.h. This board is soft-configured with no jumpers.PnP must be disabled in the soft configuration for this cardto work with vxWorks..IP "if_ene"Driver for several compatible versions of the Novell/Eagle 2000.To use one of these board the INCLUDE_ENEdirective must be enabled in config.h. The I/O base address, memory address, and interrupt level must match those in config.h..IP "if_esmc"Driver for theAmpro Ethernet2(SMC 91c9x chip) network card.To use this board the INCLUDE_ESMCdirective must be enabled in config.h. This board is soft configured.The I/O base address and interrupt level must match those in config.h..IP "if_fei"Generic driver for theIntel 82557 Ethernet network interface chip.An example of a board using this chip is the EtherExpress PRO100B. To use this driver the INCLUDE_FEIdirective must be enabled in config.h.If defined FEI_10MB indicatesthe unit should operate at ethernet speed of 10 megabits per second..SS "Memory Maps".TScenter allbox;c c cl l l.Start Address Size UseLOCAL_MEM_LOCAL_ADRS 0xa0000 lower memory
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -