Finally, select ssh.shells and then click Finish. Next you have to say how files are going to be accessed: in this case tick the box marked ssh.files and click Next. Next give the IP address of the target and a nice name for the connection, like so: You will see a list of 8 types of system you can connect to: obviously the one you want is Linux. Configuring the connection in EclipseĬlick on Window->Open Perspective->Other… and select Remote System Explorer.Ĭlick on File->New->Other, double-click Remote System Explorer and select Connection. The last command should be added to your boot-up scripts. Start dropbear /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 Generate an RSA key dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key Typically that means copying these files: I am assuming that you have already cross-compiled the packages. Setting up SSH and SFTP on the targetĮither openSSH or Dropbear will do fine, although if you are using Dropbear you will have to get the sftp binary from openSSH. SSH is the most developed and is the best choice in most cases, so that is what I am going to describe here. FTP gives you file access alone and Telnet gives you terminals. SSH gives you terminal and file access (via sftp). So, which to choose? First, we can eliminate DataStore because it requires Perl and a JVM on the target. There are four options:įor each you need to set up the corresponding server on the target. RSE needs to know how to connect to your target. It is also possible to download the individual components and install them one by one, but getting the complete list and getting the correct versions is not easy. Note that I have de-selected the IP-XACT and NAB components because they have no bearing on what I am trying to achieve here. In Eclipse, select the Help menu and then Software Updates… Select the Available Software tab and select the RSE components you want like this: I save the script as run-eclipse.sh Install Remote System Explorerīy far the simplest thing is to use the software update feature of Eclipse. ![]() The -vm option points Eclipse at the JVM and -vmargs increases the amount of virtual memory from the default 256MB to 512MB, which is only really necessary if you are working with large projects such as the Linux kernel tree. ![]() $HOME/eclipse/eclipse -vm $HOME/jre1.6.0_12/bin/java -vmargs -Xmx512M PATH=/usr/local/poky/eabi-glibc/arm/bin:$PATH I do that by writing a small shell script wrapper which also gives me the opportunity to set the path for the cross tools: #!/bin/bash Then you need to introduce them to each other. In the example I am using the current version, 1.6_12, but any Sun JRE from 1.5 on would work also. Tar xzf Įclipse requires a Sun JVM so download the Java SE runtime from. Extract the tar file into, for example, your home directory cd ~ Note: RSE is broken in SR2: use SR1 or earlier. I used Ubuntu 8.10 on my development PC with an ARM926EJ-S based development board from Digi as the target ( ) and Poky Linux cross tools ( ) but this should work with any recent Linux distribution, target and cross tools Install EclipseĪll this is based on Eclipse Ganymede, so if you don’t have it already, install it together with Sun’s JVM like so:ĭownload Eclipse IDE for C/C++ Developers from. Here, I am going to explain how to do the same using purely open source tools. Proprietary development tool kits based on Eclipse have had these features for years. Now, I’m not a lazy person, but it is surprising how much of a benefit that is. Finally, and this is really neat, RSE links into the C/C++ Development Toolkit (CDT) so that you can run and debug applications on the target without having to copy them there yourself, and, in the case of debug, without having to start gdbserver. The second feature is a remote shell so that you can run a terminal window in Eclipse – a marginal benefit in my opinion. ![]() RSE gives you three things: it allows you to explore the files on the target board, meaning that you can copy files over using drag and drop and, the killer app for me, you can edit a file on the target just by double clicking on it. In this article I will look at one handy plug-in: the Remote System Explorer or RSE. Most people working with embedded Linux are using Eclipse as the IDE, but not always taking full advantage of it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |