Sei sulla pagina 1di 2

Check the /usr/wind/target/config/pc486/config.

h file for your settings


- You have to set the interrupt level and the base address from the network card
installed in your PC
- Edit the bootline for your prefferences
- type $ make bootrom_uncmp in your pc486 target directory
- copy this bootrom_uncmp to PC (binary mode) (note:DOS can handle only 8 or les
s char long names)
- be sure you have the make utilities from the vxWorks distribution (mkboot.bat,
vxload.com, vxsys.com, ...)
- insert a formatted floppy into the PC
- type mkboot a: bootrom.dat (bootrom.dat is the bootrom_uncmp file)
- if you are ready, use it :-)

Increase the mbuf's


Edit the file ${WIND_BASE}/target/h/net/mbuf.h
+++
OLD value something like this: #define NUM_INIT_MBUFS 40
/* number of mbufs to initialize */
NEW value: #define NUM_INIT_MBUFS
100 /* number of mbufs to initialize */
---
+++
OLD value: #define MAX_MBUFS 1500
NEW value: #define MAX_MBUFS 3000
---
Now you should rebuild_the_vxWorks_library.

Increase the file descriptors


Edit the file ${WIND_BASE}/target/config/all/configAll.h
#define NUM_FILES 255 /* max 255 files open simultaneously */
Now you should rebuild the vxWorks image.

Changes in the config.h file for boards type:


MVME162-042 (with 8MB)
#define SYS_CPU_FREQ 25000000 /* 25 MHz system clock */
#define LOCAL_MEM_SIZE 0x00800000 /* 8MB min memory */

MVME162-532A (with 16MB)


#define SYS_CPU_FREQ 33000000 /* 33 MHz system clock */
#define LOCAL_MEM_SIZE 0x01000000 /* 16MB min memory */
Rebuild the vxWorks library for your preffered CPU-Type
Change to the directory ${WIND_BASE}/target/src/usr and make your changes in the
*.c files
Rebuild the objects by calling make CPU=MC68040 TOOL=gnu objs,
then rebuild the library make CPU=MC68040 TOOL=gnu lib
Now you can rebuild your vxWorks image and the new features will be included

How do I create a boot-disk?


A: Creating Bootable Floppy from Boot-ROM:
Open DOS window.
From DOS window execute tornado\host\x86-win32\bin\torvars (it will fix environm
ent vars).
From the location of your boot-rom file (tornado\target\config\ BSP-dir\bootrom_
uncmp) type mkboot a: bootrom_uncmp. The mkboot utility will create a bootable f
loppy disk
Creating Bootable Hard Disk from Boot-ROM:
1st stage will be to prepare a Hard Disk that will be suitable for VxWorks envir
onment.
Prepare a Floppy Disk with DOS6.2, FDISK & FORMAT files on it.
Turn off your PC, remove your HD and place VxWorks HD instead.
Boot your PC from DOS 6.2 Floppy Disk.
Run FDISK Create FAT16 2Gbyte partition and set it to be the active partition.
Exit from FDISK, reboot from the Floppy Disk and format the HD by using the FORM
AT command from the Floppy Disk.
Turn Off your PC, reconnect your original HD, and add VxWorks HD as a secondary
HD (for example as disk D).
Turn ON your PC (Windows NT should be activated).
Open DOS window.
From DOS window execute tornado\host\x86-win32\bin\torvars (it will fix environm
ent vars).
From the location of your boot-rom file (tornado\target\config\ BSP-dir\bootrom_
uncmp) copy bootrom_uncmp to file name bootrom.dat.
Type vxsys d: (assuming VxWorks HD is mapped as disk D). The vxsys.com installs
a bootstrap loader that will be used to load bootrom.sys file.
Type vxcopy bootrom.dat d:bootrom.sys. vxcopy copys & converts the bootrom_uncmp
file to the required format.

Potrebbero piacerti anche