RAM 6.0 BUX II Series Guía de usuario Pagina 85

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 189
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 84
3 Porting a BSP to Custom Hardware
3.3 Finalizing Your BSP
77
3
The L2 cache initialization routine sysL2CacheInit( ) should be called from
sysHwInit( ). This routine must not enable the L2 cache when cache is enabled, as
this is done by sysL2CacheEnable( ) later in the boot process. If your reference BSP
calls sysL2cacheInit( ) from sysHwInit2( ), it should be considered a bug in the
BSP.
3.3.6 Boot ROMs
Boot ROMs use the VxWorks kernel. The main differences between the bootrom
image and the vxWorks image are:
The bootrom image uses target/config/all/bootConfig.c instead of
target/config/all/usrConfig.c. These files are very similar, so getting the boot
ROM working involves essentially the same the steps described previously for
the vxWorks image.
The bootrom image is compressed by default. It is decompressed and copied
into RAM in the bootInit.c file.
During cleanup, each variation of the bootrom configuration should be tested.
3.3.7 Providing Bus Interface Support
Bus configuration is often required before devices on the bus can be supported.
This section describes how to configure several bus types—PCI, VME, USB—to
allow devices to be supported.
After the bus is configured, the devices on the bus can be configured.
PCI Bus Interface Support
The libraries pciConfigLib.c, pciConfigShow.c, pciIntLib.c, and pciAutoCfg.c
provide support for the PCI Bus Specification 2.1. These libraries support basic and
automatic configuration.
The PCI bus can be configured manually or automatically. Each method requires a
sysBusPci.c file to provide the BSP-specific routines for PCI configuration. To
configure PCI automatically, sysLib.c includes the following three files:
pciAutoConfigLib.c and pciConfigLib.c (located in the target/src/drv/pci
directory), and sysBusPci.c (located in the BSP directory). sysLib.c also includes a
Vista de pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 188 189

Comentarios a estos manuales

Sin comentarios