advertisement
phyCORE-MPC5200B-IO Getting Started
•
Enter root as login and press Enter.
•
Enter ./HelloWorld and press Enter.
The program starts and you should see the following output:
Welcome to the World of the phyCORE-MPC5200B-IO!
Using SSH to Execute a Program on the Target
SSH can be used if you want to execute a program directly from the host on the target. Later, this will be used to execute programs out of Eclipse on the target. Before you can start programs out of Eclipse, you have to log in to the target via SSH from the command line for one time. This is necessary to add the RSA public key of the target to the list of known hosts.
There are several authentication methods when using SSH.
The method used on the phyCORE-MPC5200B-IO is the
hosts.equiv
method combined with RSA-based host authentication.
If the machine the user logs in from is listed in
© 2009 PHYTEC Messtechnik GmbH L-679e_6
35
phyCORE-MPC5200B-IO Quick Start Instructions
/etc/hosts.equiv
on the remote machine, and the user name is the same on both sides, the user is allowed to log in.
On the target, the file /etc/hosts.equiv has the following entry:
# file: /etc/hosts.equiv
#
# Allow access from everywhere.
#
+ +
The “
+ +
” means that every user can log in from every host.
When the host connects to the target, the file
~/.ssh/known_hosts
(on the host) is consulted when using
hosts.equiv
with RSA host authentication to check the public key of the target. The key must be listed in this file to be accepted. When the host connects to the target for the first time, you will be asked to store the target’s RSA pubic key to your ~/.ssh/known_hosts. If you agree to do this, then the host will be able to connect to the target without entering a password.
This authentication method closes security holes due to IP spoofing, DNS spoofing, and routing spoofing. But note that
/etc/hosts.equiv
is, in general, inherently insecure and should be disabled if security is a concern.
36
•
Click the SSH for Target icon on the desktop.
A new window opens.
© 2009 PHYTEC Messtechnik GmbH L-679e_6
phyCORE-MPC5200B-IO Getting Started
In this window you can see that the authenticity of the phyCORE-
MPC5200B-IO can’t be established. This is normal if you want to create an SSH connection for the first time.
•
Enter yes and press Enter to continue. The RSA public key of the target will be permanently added to the list of the known hosts.
Troubleshooting:
If an error occurs and you can’t see the root@phyCORE:~> prompt, open a terminal window and enter the following command:
•
rm ~/.ssh/known_hosts
Try to log in again by entering:
•
ssh
•
Enter yes to add the target to the list of known hosts.
Now you should see the target’s prompt.
We expect that you haven’t changed the SSH configuration file on your host. If you change this file, the authentication may not work.
Now you are logged in, you can execute programs on the target.
© 2009 PHYTEC Messtechnik GmbH L-679e_6
37
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 5 Introduction
- 5 Rapid Development Kit Documentation
- 5 Professional Support Packages Available
- 6 Overview of this Quick Start Manual
- 7 Conventions Used in this Quick Start Manual
- 8 System Requirements
- 8 Software Development Tool Chains
- 8 Eclipse
- 9 The GNU Cross Development Tool Chain
- 11 Getting Started
- 11 Requirements of the Host Platform
- 12 Configuring the Host Platform
- 12 Installing Software Packages
- 18 Set Up Network Card Configuration
- 19 Disabling the Firewall
- 20 Set Up TFTP Server
- 22 Linux-MPC5200B-IO-Kit Setup
- 23 Starting the Setup
- 31 Advanced Configuration Information
- 32 Connecting the Host with the Target
- 36 Copying an Example to the Target
- 37 Copying a Program to the Target
- 38 Using Telnet to Execute a Program on the Target
- 39 Using SSH to Execute a Program on the Target
- 42 Advanced Information
- 42 Copying a Program to the Target with the Command Line
- 42 Executing a Program on the Target
- 42 Executing a Program directly on the Target using SSH
- 44 Getting More Involved
- 44 Configuring and Compiling the Kernel
- 48 Writing the Kernel into the Target’s Flash
- 51 Opening an Existing Project
- 51 Copying the HelloWorld Project
- 52 Starting Eclipse and Importing the Example Project
- 56 Creating a New Project
- 66 Changing the Demo Application
- 67 Executing the Program on the Target using Microcom
- 68 Starting a Program out of Eclipse on the Target
- 77 Debugging an Example Project
- 77 Starting the GDB Server on the Target
- 79 Configuring and Starting the Debugger in Eclipse
- 84 Setting a Breakpoint
- 84 Stepping and Watching Variable Contents
- 86 Changing Variable Values
- 88 Using the Memory Monitor
- 91 Further Information
- 92 Summary