Introduction
The SmpDemo is written for the real tim OS from
On-Time. To run the demo you must do
following steps:
- Download the
demo version of the
On-Time operating system.
- Install the On-Time demo.
- Set the enviormet variable
RtTarget the install path. (usually
"C:\Progam
files\OnTime RTOS ???")
- 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
- Download the free
VmWare player.
- 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
...
- 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
- Open the "MS-Visual
Studio 6.0" and compile the VmWareDisk
project
- Start the virtual machine
.\SmbDemoRt\VmWare\SmbDemo.vmx with the
VmWare player.
- Select as network card the LANCE_DEVICE:
./SmbDemoRt/Netcfg.h(36)
#define
DEVICE_ID LANCE_DEVICE
- 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};
- Select a your own workgroup in:
./SmbDemoRt/SmbDemo.cpp(343)
strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
- Compile and start the
SmbDemo project, after that thr new host
\\RtClient must be visilble in the explorer.
PC on COM1
- Connect the target PC with a null-modem-cable
(COM1 to COM1).
- 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
...
- 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
- Insert a formated disk in A:
- Open the "MS-Visual
Studio 6.0" and compile the Target
project. A bootdisk must be created in A:
- Insert the bootdisk in your target PC, and
boot from this disk.
- Select as network card the card type from your
target PC:
./SmbDemoRt/Netcfg.h(36)
#define
DEVICE_ID
?????
- 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};
- Select a your own workgroup in:
./SmbDemoRt/SmbDemo.cpp(343)
strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
- Compile and start the
SmbDemo project, after that thr new host
\\RtClient must be visilble in the explorer.
PC on LPT1
- Connect the target PC with a lablink-cable
(LPT1 to LPT1).
- 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
...
- 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
- Insert a formated disk in A:
- Open the "MS-Visual
Studio 6.0" and compile the Target
project. A bootdisk must be created in A:
- Insert the bootdisk in your target PC, and
boot from this disk.
- Select as network card the card type from your
target PC:
./SmbDemoRt/Netcfg.h(36)
#define
DEVICE_ID
?????
- 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};
- Select a your own workgroup in:
./SmbDemoRt/SmbDemo.cpp(343)
strncpy(sNmbConfig.cWorkgroup,"WORKGROUP",sizeof(sNmbConfig.cWorkgroup));
- Compile and start the
SmbDemo project, after that thr new host
\\RtClient must be visilble in the explorer.
Copyright © 2007 Anton Zechner