Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "DSDP/TML/How to configure TmL demo"

< DSDP‎ | TML
(Running Tml Demo)
(Getting Complete TmL from CVS)
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Pre-requirements ==
+
{{DSDP-TML}}
* Eclipse Europa 3.3
+
  
 +
== Pre-requirements ==
 +
* Eclipse Ganymede 3.4 or newer
  
== Getting the TmL Code ==
+
== Getting the TmL ==
  
=== Getting VNC Viewer Component ===
+
=== Getting TmL SDK Package ===
# Go to [http://www.eclipse.org/dsdp/tml/download/vnc.php vnc viewer download page]
+
# Getting TmL SDK 0.2 package
# Get the file tml-vnc-anonymous.psf [http://www.eclipse.org/dsdp/tml/download/tml-vnc-anonymous.psf (link)]
+
## Using update site [http://download.eclipse.org/dsdp/tml/updates/0.2/].
# Import this file into Eclipse workspace. Please see [http://www.eclipse.org/dsdp/tml/development/cvs_setup.php cvs setup page] for more details.
+
## Download site [http://download.eclipse.org/dsdp/tml/downloads/index.php].
 +
# The examples include source code. If you want TmL source download TmL-SDK-with-sources.
  
=== Getting Device Framework ===
+
== Getting the TmL (optional) ==
# Go to [http://www.eclipse.org/dsdp/tml/download/device.php device download page]
+
# Get the file tml-device-anonymous.psf [http://www.eclipse.org/dsdp/tml/download/tml-device-anonymous.psf (link)]
+
# Import this file into Eclipse workspace. Please see [http://www.eclipse.org/dsdp/tml/development/cvs_setup.php cvs setup page] for more details.
+
  
 +
=== Getting Complete TmL from CVS ===
 +
# Go to [http://download.eclipse.org/dsdp/tml/downloads/index.php Tml download page]
 +
# Get the file tml-all-anonymous.psf [http://www.eclipse.org/downloads/download.php?file=/dsdp/tml/psf/tml-all-anonymous.psf for the most recent version on CVS (HEAD) (link)]
 +
# Import this file into Eclipse workspace. See [http://www.eclipse.org/dsdp/tml/development/cvs_setup.php cvs setup page] for more details.
  
 
=== Tips for Proxy Connections ===
 
=== Tips for Proxy Connections ===
Line 21: Line 24:
  
 
== Configuring the example org.eclipse.tml.device.qemuarm ==
 
== Configuring the example org.eclipse.tml.device.qemuarm ==
# Go to [http://www.h7.dion.ne.jp/~qemu-win/ QEmu ARM download page]
+
# Get the file qemu-0.9.0-arm.zip [http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.9.0-arm.zip (link)]. If you have any problem to download this file, try downloading it directly from [http://www.h7.dion.ne.jp/~qemu-win/ QEmu ARM download page].
# Get the file qemu-0.9.0-arm.zip [http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.9.0-arm.zip (link)].
+
 
# Unzip this file into a temporary folder (Example: C:\Temp\)  
 
# Unzip this file into a temporary folder (Example: C:\Temp\)  
# After unzip it, open the folder qemu-0.9.0-arm  
+
# After unzipping it, open the folder qemu-0.9.0-arm  
# Copy all files from this folder (including subfolders '''keymaps''' and '''License''') to '''qemu''' folder on '''org.eclipse.tml.device.qemuarm''' plugin in your workspace. Overwrite any file in case you are prompted for confirmation. '''Note''': In the case you obtained TML from the SDK zip file, the plugin '''org.eclipse.tml.device.qemuarm''' will be in the form of a JAR file instead of a folder. In this case you can extract the JAR file to a folder named '''org.eclipse.tml.device.qemuarm''' inside the Eclipse plugins folder, perform the copy described above and, finally, remove the JAR file (otherwise this plugin would look duplicated to Eclipse).  
+
# Copy all files from this folder (including subfolders '''keymaps''' and '''License''') to '''qemu''' folder on '''org.eclipse.tml.device.qemuarm''' plugin in your workspace. In case you are prompted for confirmation, overwrite any file. '''NOTE''': If you obtained TmL from the SDK zip file, the plugin '''org.eclipse.tml.device.qemuarm''' will be in the form of a JAR file instead of a folder. In this case you must extract the JAR file to a folder named '''org.eclipse.tml.device.qemuarm''' inside the Eclipse '''plugins''' folder and perform the copy described above. Then, remove the JAR file, otherwise this plugin would look duplicated to Eclipse.  
# Change files '''arm_root.img''' and '''integratorcp.zImage''' to read only.
+
# Change files '''arm_root.img''' and '''integratorcp.zImage''' to read-only.
  
 
== Configuring the example org.eclipse.tml.device.qemureact ==
 
== Configuring the example org.eclipse.tml.device.qemureact ==
# Go to [http://www.reactos.org/en/download.html QEmu ReactOS download page].
+
# Get the file Preloaded with QEmu [http://downloads.sourceforge.net/reactos/ReactOS-0.3.3-REL-qemu.zip (sourceforge link)]. Don´t use save link as, it won´t work, just click it. If you have any problem to download this file you should try the '''Preloaded with QEmu''' link at [http://www.reactos.org/en/download.html QEmu ReactOS download page].
# Get the file Preloaded with QEmu [http://downloads.sourceforge.net/reactos/ReactOS-0.3.3-REL-qemu.zip (sourceforge link)]. Please don´t use save link as, it won´t work, just click it.
+
 
# Unzip this file into a temporary folder (Example: C:\Temp\).  
 
# Unzip this file into a temporary folder (Example: C:\Temp\).  
# After unzip, open the folder ReactOS-0.3.3-QEMU.
+
# After unzipping it, open the folder ReactOS-0.3.3-QEMU.
# Copy all files from this folder (including subfolders '''keymaps''' and '''License''') to '''qemu''' folder on '''org.eclipse.tml.device.qemureact''' plugin in your workspace. Overwrite any file in case you are prompted for confirmation. '''Note''': In the case you obtained TML from the SDK zip file, the plugin '''org.eclipse.tml.device.qemureact''' will be in the form of a JAR file instead of a folder. In this case you can extract the JAR file to a folder named '''org.eclipse.tml.device.qemureact''' inside the Eclipse plugins folder, perform the copy described above and, finally, remove the JAR file (otherwise this plugin would look duplicated to Eclipse).  
+
# Copy all files from this folder (including subfolders '''keymaps''' and '''License''') to '''qemu''' folder on '''org.eclipse.tml.device.qemureact''' plugin in your workspace. In case you are prompted for confirmation, overwrite any file. '''NOTE''': If you obtained TmL from the SDK zip file, the plugin '''org.eclipse.tml.device.qemureact''' will be in the form of a JAR file instead of a folder. In this case you must extract the JAR file to a folder named '''org.eclipse.tml.device.qemureact''' inside the Eclipse '''plugins''' folder and perform the copy described above. Then, remove the JAR file, otherwise this plugin would look duplicated to Eclipse.
# Change the file '''ReactOS.vmdk''' to read only.
+
# Change the file '''ReactOS.vmdk''' to read-only.
  
== Running Tml Demo ==
+
== Running TmL Demo ==
# After examples already configured rebuild all TmL projects (or use clean if your build automatically is checked)
+
# After examples already configured rebuild all TmL projects (or use clean if your build automatically is checked).
 
# Select any TmL plugin and run it as Eclipse Application.
 
# Select any TmL plugin and run it as Eclipse Application.
# Open the TmL Perspective and enjoy it
+
# Open the TmL Perspective so as to create emulator instances. As an example, the following steps guide you in creating and starting a QEmuReact instance.
# Create a new emulator instance by selecting the QEmuReact entry on '''Instance Management''' view. Do this by selecting '''File''' menu > '''New''' > '''Other...''', then choose '''QemuReact Device Instance Wizard''' inside '''Emulators''' folder and click '''Next'''.
+
# Create a new QEmuReact instance. Do this by selecting '''File''' > '''New''' > '''Other...''', then choose '''QemuReact Device Instance Wizard''' inside '''Emulators''' folder and click '''Next'''.
# Type a name to the instance and click '''Next'''.
+
# Type a name for the instance and click '''Next'''.
# Enter '''localhost''' for the Host, ''':0.0''' for the Display and '''5900''' for the Port. Click Finish and the new instance is created.
+
# Enter '''localhost''' for the Host, ''':0.0''' for the Display and '''5900''' for the Port. Click '''Finish''' and the new instance is created.
 +
# Some machines already using the port 5900 for other VNC connections. If you need change this values remember that port and display should be increase together: for port 5901 use :1.0, for port 5902 use :2.0 and go on.
 
# Select the instance just created on '''Instance Management''' view and click '''Start Instance'''.
 
# Select the instance just created on '''Instance Management''' view and click '''Start Instance'''.
# After the instance starting process completes, select the the instance again on '''Instance Management''' view and click '''Connect VNC''' so as to start viewing the Emulator screen. The '''VNC Viewer''' view shows up displaying the QemuReact desktop.
+
# After the instance starting process completes, select the the instance again on '''Instance Management''' view and click '''Connect VNC''' so as to start viewing the Emulator screen. The '''VNC Viewer''' view shows up displaying the QemuReact desktop. The desktop should look like this: [[Image:vnc-view.png]]
  
 
== Comments and questions ==
 
== Comments and questions ==
* Please send us your comments, suggestions or questions. It is very important to help us to improved our framework.   
+
* Please send us your comments, suggestions or questions. It is very important to help us improving our framework.   
  
 
* Newsgroups: news://news.eclipse.org/eclipse.dsdp.tml
 
* Newsgroups: news://news.eclipse.org/eclipse.dsdp.tml

Latest revision as of 16:44, 30 January 2009

Tools for Mobile Linux
TmL Web Site
Project Summary
Mailing List
TmL Wiki
Regular Phone Meetings
Galileo Planning

Pre-requirements

  • Eclipse Ganymede 3.4 or newer

Getting the TmL

Getting TmL SDK Package

  1. Getting TmL SDK 0.2 package
    1. Using update site [1].
    2. Download site [2].
  2. The examples include source code. If you want TmL source download TmL-SDK-with-sources.

Getting the TmL (optional)

Getting Complete TmL from CVS

  1. Go to Tml download page
  2. Get the file tml-all-anonymous.psf for the most recent version on CVS (HEAD) (link)
  3. Import this file into Eclipse workspace. See cvs setup page for more details.

Tips for Proxy Connections

  • Sometimes the procedure above could not work if you are using a internet proxy based connection.
  • If this is your case, open psf files and change all references "pserver:dev.eclipse.org:" by "pserver:proxy.eclipse.org:80".

Configuring the example org.eclipse.tml.device.qemuarm

  1. Get the file qemu-0.9.0-arm.zip (link). If you have any problem to download this file, try downloading it directly from QEmu ARM download page.
  2. Unzip this file into a temporary folder (Example: C:\Temp\)
  3. After unzipping it, open the folder qemu-0.9.0-arm
  4. Copy all files from this folder (including subfolders keymaps and License) to qemu folder on org.eclipse.tml.device.qemuarm plugin in your workspace. In case you are prompted for confirmation, overwrite any file. NOTE: If you obtained TmL from the SDK zip file, the plugin org.eclipse.tml.device.qemuarm will be in the form of a JAR file instead of a folder. In this case you must extract the JAR file to a folder named org.eclipse.tml.device.qemuarm inside the Eclipse plugins folder and perform the copy described above. Then, remove the JAR file, otherwise this plugin would look duplicated to Eclipse.
  5. Change files arm_root.img and integratorcp.zImage to read-only.

Configuring the example org.eclipse.tml.device.qemureact

  1. Get the file Preloaded with QEmu (sourceforge link). Don´t use save link as, it won´t work, just click it. If you have any problem to download this file you should try the Preloaded with QEmu link at QEmu ReactOS download page.
  2. Unzip this file into a temporary folder (Example: C:\Temp\).
  3. After unzipping it, open the folder ReactOS-0.3.3-QEMU.
  4. Copy all files from this folder (including subfolders keymaps and License) to qemu folder on org.eclipse.tml.device.qemureact plugin in your workspace. In case you are prompted for confirmation, overwrite any file. NOTE: If you obtained TmL from the SDK zip file, the plugin org.eclipse.tml.device.qemureact will be in the form of a JAR file instead of a folder. In this case you must extract the JAR file to a folder named org.eclipse.tml.device.qemureact inside the Eclipse plugins folder and perform the copy described above. Then, remove the JAR file, otherwise this plugin would look duplicated to Eclipse.
  5. Change the file ReactOS.vmdk to read-only.

Running TmL Demo

  1. After examples already configured rebuild all TmL projects (or use clean if your build automatically is checked).
  2. Select any TmL plugin and run it as Eclipse Application.
  3. Open the TmL Perspective so as to create emulator instances. As an example, the following steps guide you in creating and starting a QEmuReact instance.
  4. Create a new QEmuReact instance. Do this by selecting File > New > Other..., then choose QemuReact Device Instance Wizard inside Emulators folder and click Next.
  5. Type a name for the instance and click Next.
  6. Enter localhost for the Host, :0.0 for the Display and 5900 for the Port. Click Finish and the new instance is created.
  7. Some machines already using the port 5900 for other VNC connections. If you need change this values remember that port and display should be increase together: for port 5901 use :1.0, for port 5902 use :2.0 and go on.
  8. Select the instance just created on Instance Management view and click Start Instance.
  9. After the instance starting process completes, select the the instance again on Instance Management view and click Connect VNC so as to start viewing the Emulator screen. The VNC Viewer view shows up displaying the QemuReact desktop. The desktop should look like this: Vnc-view.png

Comments and questions

  • Please send us your comments, suggestions or questions. It is very important to help us improving our framework.

Trademarks and Copyright

  • QEmu is a trademark of Fabrice Bellard.
  • ARM is a registered trademark of ARM Limited.
  • ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.

Back to the top