Changes between Version 2 and Version 3 of Developer/Simulators/VMWare
- Timestamp:
- 11/23/14 06:38:33 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Simulators/VMWare
v2 v3 5 5 This page describes how to setup serial port in RTEMS and VMWare in order to simulate RTEMS serial communication application in VMWare running on Windows. 6 6 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).7 As 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). 8 8 = Serial Port Hardware Setup = 9 9 10 10 Sometimes 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. 11 11 12 [[BR]]<center>13 12 [[Image(Serial_2ports.jpg)]] 14 </center>[[BR]]15 13 16 14 The 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. … … 24 22 Unlike 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. 25 23 26 [[BR]]<center>27 24 [[Image(Serial_Address.jpg)]] 28 </center>[[BR]]29 25 30 26 As shown above, it shows up as a PCI serial port at 0xFEE8 with IRQ 16. … … 51 47 Click on ''Add Hardware'' in ''Commands'' panel, and choose ''Serial Port'': 52 48 53 [[BR]]<center>54 49 [[Image(Serial_physical.jpg)]] 55 </center>[[BR]]56 50 57 [[BR]]<center>58 51 [[Image(Serial_properties.jpg)]] 59 </center>[[BR]]60 52 = Enable Serial Port = 61 53 … … 64 56 Click on ''Configure VM'' in ''Commands'' panel, go to ''Power'' tab, and check the box under BIOS setup: 65 57 66 [[BR]]<center>67 58 [[Image(Serial_bios.jpg)]] 68 </center>[[BR]]69 59 70 60 Power 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. 71 61 72 [[BR]]<center>73 62 [[Image(Serial_bios_cfg.jpg)]] 74 </center>[[BR]]75 63 76 64 Later 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. … … 79 67 For 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. 80 68 81 [[BR]]<center>82 69 [[Image(Serial_Grub.jpg)]] 83 </center>[[BR]]84 70 85 [[BR]]<center>86 71 [[Image(Serial_HyperTerminal.jpg)]] 87 </center>[[BR]]88 72 89 [[BR]]<center>90 73 [[Image(Serial_test.jpg)]] 91 </center>[[BR]]92 74 93 75 As 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.