Introduction

The SmpDemo is written for the real tim OS from On-Time. To run the demo you must do following steps:

  1. Download the demo version of the On-Time operating system.
  2. Install the On-Time demo.
  3. Set the enviormet variable RtTarget the install path. (usually "C:\Progam files\OnTime RTOS ???")
  4. The next step denents on the used target hardware

      - VmWare target
      - PC connected on COM1 with null modem cable
      - PC connected on LPT1 with laplink cable

VmWare Target

  1. Download the free VmWare player.
  2. Set the port for the debug communication in $(RtTarget)\Bin\Rttarget.ini to:

       [COM]
       Port=\\.\pipe\vcom
       ;IOBase=888
       ;Baudrate=115200
       ;StartTimeout=10000
       ;OverlappedIO=1
       ;UnloadDriver=1
       ;LPTIdleData=0
       ...
     
  3. Set the port for the target  in .\SmbDemoRt\DemoPc.cfg to:

       ...
       #ifdef BOOT
         COMPort COM1 115200 4 0x3F8 Halt
         VideoRAM ColorText
         BOOTFLAGS = 0
         Locate BootCode   BIOSBOOT.EXE LowMem   
         Locate BootData   BootData     LowMem 0 16
         Locate DiskBuffer DiskBuffer   LowMem
       #endif

     
  4. Open the "MS-Visual Studio 6.0" and compile the VmWareDisk project
  5. Start the virtual machine .\SmbDemoRt\VmWare\SmbDemo.vmx with the VmWare player.
  6. Select as network card the LANCE_DEVICE:
        
        ./SmbDemoRt/Netcfg.h(36)
        #define DEVICE_ID LANCE_DEVICE


     
  7. Select a free ip address in network
        
        ./SmbDemoRt/Netcfg.h(30)
        static BYTE bNetMask [] = {255, 255, 255,  0};
        static BYTE bTargetIP[] = {192, 168,   0, 10};
     
  8. Select a your own workgroup in:

        ./SmbDemoRt/SmbDemo.cpp(343)
        strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
     
  9. Compile and start the SmbDemo project, after that thr new host \\RtClient must be visilble in the explorer.

     

PC on COM1

  1. Connect the target PC with a null-modem-cable (COM1 to COM1).
  2. Set the port for the debug communication in $(RtTarget)\Bin\Rttarget.ini to:

       [COM]
       Port=COM1
       ;IOBase=888
      
    Baudrate=115200
       ;StartTimeout=10000
       ;OverlappedIO=1
       ;UnloadDriver=1
       ;LPTIdleData=0
       ...
     
  3. Set the port for the target  in .\SmbDemoRt\DemoPc.cfg to:

       ...
       #ifdef BOOT
         COMPort COM1 115200 4 0x3F8
         VideoRAM ColorText
         BOOTFLAGS = 0
         Locate BootCode   BIOSBOOT.EXE LowMem   
         Locate BootData   BootData     LowMem 0 16
         Locate DiskBuffer DiskBuffer   LowMem
       #endif

     
  4. Insert a formated disk in A:
  5. Open the "MS-Visual Studio 6.0" and compile the Target project. A bootdisk must be created in A:
  6. Insert the bootdisk in your target PC, and boot from this disk.
  7. Select as network card the card type from your target PC:
        
        ./SmbDemoRt/Netcfg.h(36)
        #define DEVICE_ID
    ?????

     
  8. Select a free ip address in network
        
        ./SmbDemoRt/Netcfg.h(30)
        static BYTE bNetMask [] = {255, 255, 255,  0};
        static BYTE bTargetIP[] = {192, 168,   0, 10};
     
  9. Select a your own workgroup in:

        ./SmbDemoRt/SmbDemo.cpp(343)
        strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
     
  10. Compile and start the SmbDemo project, after that thr new host \\RtClient must be visilble in the explorer.

 


 

PC on LPT1

  1. Connect the target PC with a lablink-cable  (LPT1 to LPT1).
  2. Set the port for the debug communication in $(RtTarget)\Bin\Rttarget.ini to:

       [COM]
       Port=LPT1
       IOBase=0x378
       ;Baudrate=115200
       ;StartTimeout=10000
       ;OverlappedIO=1
       ;UnloadDriver=1
       ;LPTIdleData=0
       ...
     
  3. Set the port for the target  in .\SmbDemoRt\DemoPc.cfg to:

       ...
       #ifdef BOOT
         COMPort LPT1 115200 5 0x378  // irq could be 7 instead of 5
         VideoRAM ColorText
         BOOTFLAGS = 0
         Locate BootCode   BIOSBOOT.EXE LowMem   
         Locate BootData   BootData     LowMem 0 16
         Locate DiskBuffer DiskBuffer   LowMem
       #endif

     
  4. Insert a formated disk in A:
  5. Open the "MS-Visual Studio 6.0" and compile the Target project. A bootdisk must be created in A:
  6. Insert the bootdisk in your target PC, and boot from this disk.
  7. Select as network card the card type from your target PC:
        
        ./SmbDemoRt/Netcfg.h(36)
        #define DEVICE_ID
    ?????

     
  8. Select a free ip address in network
        
        ./SmbDemoRt/Netcfg.h(30)
        static BYTE bNetMask [] = {255, 255, 255,  0};
        static BYTE bTargetIP[] = {192, 168,   0, 10};
     
  9. Select a your own workgroup in:

        ./SmbDemoRt/SmbDemo.cpp(343)
        strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
     
  10. Compile and start the SmbDemo project, after that thr new host \\RtClient must be visilble in the explorer.