Changes between Version 2 and Version 3 of Developer/Simulators/VMWare


Ignore:
Timestamp:
Nov 23, 2014, 6:38:33 AM (5 years ago)
Author:
Chris Johns
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/VMWare

    v2 v3  
    55This page describes how to setup serial port in RTEMS and VMWare in order to simulate RTEMS serial communication application in VMWare running on Windows.
    66
    7 As mentioned in [wiki:QEMU#QEMU_and_USB QEMU and USB], simulator is useful in developing USB support in RTEMS. So hopefully this page might also be helpful for someone to use VMWare as an aid to develop new RTEMS device drivers (USB, new gigabit ethernet, etc).
     7As mentioned in [wiki:TBR/UserManual/QEMU#QEMUandUSB QEMU and USB], simulator is useful in developing USB support in RTEMS. So hopefully this page might also be helpful for someone to use VMWare as an aid to develop new RTEMS device drivers (USB, new gigabit ethernet, etc).
    88= Serial Port Hardware Setup =
    99
    1010Sometimes there is no built-in serial port in modern PCs especially notebooks. Here a notebook with a serial PCMCIA card and USB Serial Converter is used. A null modem cable connects these 2 ports together.
    1111
    12 [[BR]]<center>
    1312[[Image(Serial_2ports.jpg)]]
    14 </center>[[BR]]
    1513
    1614The serial PCMCIA card is the one we're going to access in RTEMS application. Any type of serial port can be used on the other end of the wire.
     
    2422Unlike traditional serial ports, the base address of serial PCMCIA card is not 0x3F8 or 0x2F8. This mismatched base address presents a challenge, and casts doubt about whether the whole thing would work or not.
    2523
    26 [[BR]]<center>
    2724[[Image(Serial_Address.jpg)]]
    28 </center>[[BR]]
    2925
    3026As shown above, it shows up as a PCI serial port at 0xFEE8 with IRQ 16.
     
    5147Click on ''Add Hardware'' in ''Commands'' panel, and choose ''Serial Port'':
    5248
    53 [[BR]]<center>
    5449[[Image(Serial_physical.jpg)]]
    55 </center>[[BR]]
    5650
    57 [[BR]]<center>
    5851[[Image(Serial_properties.jpg)]]
    59 </center>[[BR]]
    6052= Enable Serial Port =
    6153
     
    6456Click on ''Configure VM'' in ''Commands'' panel, go to ''Power'' tab, and check the box under BIOS setup:
    6557
    66 [[BR]]<center>
    6758[[Image(Serial_bios.jpg)]]
    68 </center>[[BR]]
    6959
    7060Power up the VM, go to Advanced | I/O Device Configuration, and enable COM1 and COM2. Make sure base I/O addresses match what're in the above uart.h.
    7161
    72 [[BR]]<center>
    7362[[Image(Serial_bios_cfg.jpg)]]
    74 </center>[[BR]]
    7563
    7664Later on we check if the serial port is enabled by clicking on the serial port icon in the bottom right corner of VMWare Remote Console.
     
    7967For a quick test, we can replace init.c in sample hello test program directory with a [wiki:TBR/UserManual/Simple_Serial_Test_Program Simple Serial and Shell Test Program], build ISO image, and test it in VMWare.
    8068
    81 [[BR]]<center>
    8269[[Image(Serial_Grub.jpg)]]
    83 </center>[[BR]]
    8470
    85 [[BR]]<center>
    8671[[Image(Serial_HyperTerminal.jpg)]]
    87 </center>[[BR]]
    8872
    89 [[BR]]<center>
    9073[[Image(Serial_test.jpg)]]
    91 </center>[[BR]]
    9274
    9375As shown above, the RTEMS application in VMWare successfully communicated with a HyperTerminal in Windows. The existence of /dev/ttyS1 is also shown in RTEMS Shell.