Phytec Linux-Kit phyCORE-PXA270 Quick Start Instructions

Phytec Linux-Kit phyCORE-PXA270 Quick Start Instructions

Hide thumbs Also See for Linux-Kit phyCORE-PXA270:
Table of Contents

Advertisement

Quick Links

PHYTEC Messtechnik GmbH
Quick Start Instructions
Linux-Kit
phyCORE-PXA270
Using Eclipse and the GNU Cross Development Tool Chain
Note: The PHYTEC Linux-phyCORE-PXA270-Disc includes the
electronic version of the English phyCORE-PXA270 Hardware Manual.
Edition: October 2009
A product of a PHYTEC Technology Holding company

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Linux-Kit phyCORE-PXA270 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec Linux-Kit phyCORE-PXA270

  • Page 1 PHYTEC Messtechnik GmbH Quick Start Instructions Linux-Kit phyCORE-PXA270 Using Eclipse and the GNU Cross Development Tool Chain Note: The PHYTEC Linux-phyCORE-PXA270-Disc includes the electronic version of the English phyCORE-PXA270 Hardware Manual. Edition: October 2009 A product of a PHYTEC Technology Holding company...
  • Page 2 PHYTEC Messtechnik GmbH neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product. PHYTEC Messtechnik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages that might result.
  • Page 3: Table Of Contents

    2.7.1 Copying a Program to the Target with the ....... Command Line..............39 2.7.2 Executing a Program on the Target.......39 2.7.3 Executing a Program directly on the Target using SSH40 Chapter 3 Getting More Involved ........41 Configuring and Compiling the Kernel........41 70 min © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 4 Chapter 7 Installing Linux on the phyCORE-PXA270...89 Installing the Boot Loader............89 Configure U-Boot Environment Variables ......91 Restore the U-Boot default configuration ........ 92 Writing the Kernel / Root File System into Flash....93 © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 5: Chapter 1 Introduction

    Introduction Chapter 1 Introduction 5 min In this Quick Start you can find general information on the PHYTEC phyCORE-PXA270, and an overview of the Eclipse software development tool and the GCC C/C++ cross development tool chain. You will also find...
  • Page 6: Professional Support Packages Available

    The “Debugging” chapter provides information on how to debug an application with the Eclipse debugging interface. In addition to the dedicated data for this Rapid Development Kit, the PHYTEC Linux-phyCORE-PXA270-Disc contains supplemental infor- mation on embedded microcontroller design and development in general. © 2009 PHYTEC Messtechnik GmbH...
  • Page 7: Conventions Used In This Quick Start Manual

    At the beginning of each chapter you can find information of the time needed to pass that chapter. You have successfully passed an important part of this Quick Start manual. Provides information to solve common problems. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 8: System Requirements

    Use of this “Rapid Development Kit” requires: • The PHYTEC phyCORE-PXA270. • The PHYTEC Development Board with the included DB-9 serial cable, Ethernet cross-over cable and AC adapter supplying 12 VDC (min. 2 • PHYTEC Linux distribution based on OSELAS from Pengutronix.
  • Page 9: Software Development Tool Chains

    CDT Launch provides the launch mechanism for external tools such as the compiler and debugger. • CDT Debug Core provides debugging functions. • CDT Debug UI provides the user interface for the CDT debugging editors, views, and wizards. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 10: The Gnu Cross Development Tool Chain

    Building a program for a CPU architecture different from the one used on the machine where the compilation is done is accomplished using a cross compiler tool chain and cross-compiled libraries. In this Quick Start we are using the GNU C/C++ cross development tool chain. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 11: Chapter 2 Getting Started

    In these Quick Start Instructions you will have to shutdown the firewall and configure the network card of your host PC. If your host PC is connected to another network, changing the IP address can cause conflicts with existing hosts. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 12: Configuring The Host Platform

    To accomplish the steps in the Quick Start Instructions, you will have to install additional packages. If you don’t install all of these packages, the setup may fail or some configuration steps won’t work correctly. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 13 Getting Started • Open the K menu from the lower-left corner of the desktop and click on the tab Computer. • Open the Administrator Settings / YaST. • Enter your root password and click OK. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 14 Quick Start Instructions • Open Software Management in Software. • Select the filter Search. • Type libxml2-devel and click the Search button. • Check libxml2-devel. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 15 Getting Started • Type python-devel and click the Search button. • Check python-devel. • Type tftp and click the Search button. • Check the packages tftp and yast2-tftp-server. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 16 Quick Start Instructions • Type qt3-devel and click the Search button. • Check qt3-devel. • Select the filter Patterns. • Select Basis Development, C/C++ Development, Tcl/Tk Development. • Click Accept. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 17 Some additional packages will be selected automatically to resolve any dependencies. If problems occur while resolving dependencies, we re- commend going back to a default configuration. • Click Continue to install the packages. • Click Finish. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 18: Set Up Network Card Configuration

    If you change the host’s IP, chances are that problems may occur with other hosts in the network. • Open the YaST Control Center if it is not already opened. • Choose Network Settings in Network Devices. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 19: Disabling The Firewall

    Enter IP address 192.168.3.10 and subnet mask 255.255.255.0 2.2.3 Disabling the Firewall To ensure that there are no problems with connections to the target, the host’s firewall should be disabled. • Select the General tab in the upper-left corner. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 20: Set Up Tftp Server

    TFTP server running. In this passage we show you how to configure a TFTP server. • Open the YaST Control Center if it is not already opened. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 21 If the TFTP Server icon does not exist, restart the YaST Control Center. • Switch the selection to Enable. • The path of the boot image directory should be /tftpboot. If there is a different path, change it to /tftpboot. • Click Finish. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 22: Linux-Phycore-Pxa270-Kit Setup

    Microcom – a program for serial communication with the target. • Linux Kernel archive – this kernel archive contains the Linux kernel source code as well as all patches needed to compile the kernel for the phyCORE-PXA270. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 23: Starting The Setup

    Microcom. • The setup will configure Microcom. 2.3.1 Starting the Setup • To start with the Linux-phyCORE-PXA270-Kit setup, put your PHYTEC Linux-phyCORE-PXA270-Disc into your CD-ROM drive. The following dialog may appear: • Click Cancel. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 24 Quick Start Instructions • From the K menu, select the Applications tab. • Select System ► Terminal ► Terminal Program / Konsole. • Type: cd /media/SO-450 • Enter ./install.sh to launch the setup program. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 25 /media. The mount points can be shown with the command ls /media. Change to the accordant directory if no directory SO-450 should exist. • Enter the root password. • Click Yes to proceed. The welcome screen appears. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 26 Quick Start Instructions • Click Next to continue. • Click Next. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 27 If you decide to individually choose different paths, you must consider this for all further file and path statements when working with this Quick Start. We strongly recommend accepting the default destination location. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 28 After the files have been copied, a dialog box for the Eclipse installation will appear. • Click Yes to install Eclipse. If you want to skip the installation of Eclipse, choose No. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 29 Getting Started We recommend installing Eclipse even if you already have installed Eclipse on your system. The version of Eclipse provided on the setup CD-ROM includes additional plug-ins. • Click Next. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 30 Quick Start Instructions • Click Finish to exit the setup. • Close the terminal window. Now you will have to restart the KDE desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 31: Advanced Configuration Information

    In this part you can find some information on how to change the configuration steps of the setup program by your own. The setup program performed all the following configuration steps. The information in this © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 32 -A username uucp The serial communication program was configured during the setup with the following configuration: 115200 baud, 1 start bit, 8 data bits, 1 stop bit, no parity, no flow control. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 33: Connecting The Host With The Target

    The power connector should have 12 VDC inside, and outside should be ground. After connecting the board with the power supply, the target starts booting. When the target has finished loading the system, you should see a screen similar to the following: © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 34 JFFS by Red Hat. As its name implies, the JFFS2 implements a journaling file system on the memory technology device (MTD) it manages. JFFS2 does not attempt to provide a translation layer that enables the use of a traditional file © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 35 In the line of you user name should be the group uucp. • If the group is missing, select your user name and click the Edit button. • Select the tab Details. • In Groups, check the group uucp. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 36 • Click the Telnet for Target icon on your desktop. A new window with a connection to the target opens. If you can see the user login in the opened window, the network configurations were configured correctly. • Close the window. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 37: Copying An Example To The Target

    FTP protocol with the Konqueror browser. After that you will execute the example on the target. At the end of this passage you can find some information on how to copy and execute a file on the target using the command line. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 38: Copying A Program To The Target

    • First click the phyCORE-PXA270-Kit icon on your KDE desktop. A new window with the contents of the installation directory opens. • Enter the directory HelloWorld. • Click the FTP for Target icon on your desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 39: Using Telnet To Execute A Program On The Target

    Choose Copy here in the appearing context menu. • Close the two windows. 2.6.2 Using Telnet to Execute a Program on the Target • Click the Telnet for Target icon on your KDE desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 40: Using Ssh To Execute A Program On The Target

    RSA-based host authentication. If the machine the user logs in from is listed in /etc/hosts.equiv on the remote machine, and the user name is the same on both sides, the user is allowed to log in. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 41 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. • Click the SSH for Target icon on the desktop. A new window opens. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 42 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. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 43: Advanced Information

    Be sure to enter a slash followed by a space after the IP address. 2.7.2 Executing a Program on the Target • Open a Telnet session to the target: telnet 192.168.3.11 • Type root and press Enter. • Type ./HelloWorld to start the application. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 44: Executing A Program Directly On The Target Using Ssh40

    Quick Start Instructions 2.7.3 Executing a Program directly on the Target using SSH • To start the program, type: ssh root@192.168.3.11 ./HelloWorld After the program has finished, SSH will logout automatically © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 45: Chapter 3 Getting More Involved

    After the configuration you will compile the new kernel using the GNU cross development tool chain. The kernel used by PHYTEC is based a standard kernel available from www.kernel.org. Additionally, the kernel archive in your setup installation directory already includes all necessary patches for the phyCORE- PXA270.
  • Page 46 To use the ARM architecture and ARM cross compiler suitable for the phyCORE-PXA270 instead, you will have to specify the architecture and the cross compiler on the command line. • Type: make xconfig ARCH=arm The kernel configuration tool qconf starts. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 47 The new kernel will be written to arch/arm/boot/uImage. If the process of building the kernel stops with an error, check the values of both ARCH and CROSS_COMPILE. • Close the terminal window. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 48: Writing The Kernel Into The Target's Flash

    The three partitions have the following address ranges: 0x00000000 - 0x0003FFFF: U-Boot (256k) 0x00040000 - 0x0023FFFF: Kernel (2048k) 0x00240000 - 0x01FFFFFF: Root-Filesystem (30464k) You should never erase the U-Boot partition. If this partition is erased, you can’t restart your target. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 49 You can download the kernel from the TFTP server to the target’s RAM, erase the required flash area, and write the kernel from the RAM into the flash with just one simple command: run update_kernel. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 50 Press the RESET button on the target to restart the phyCORE- PXA270 with the new kernel. The target will boot the newly created kernel. • Close Microcom when the target has successfully finished with booting the kernel and mounting the root file system. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 51: Opening An Existing Project

    In this section you will import an existing Eclipse project into your workspace. The imported example project will be compiled with the cross compiler. After compiling the project, you will copy and execute the newly created program on the target. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 52: Copying The Helloworld Project

    • Right-click in the workspace directory and select Paste. 3.2.2 Starting Eclipse and Importing the Example Project • Click the Eclipse icon to start the application. You can find this icon on your desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 53 Getting More Involved • Confirm the Workspace directory with OK. The Welcome screen will appear. • Select File ► Import from the menu bar. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 54 Quick Start Instructions • Select Existing Projects into Workspace. • Click Next. • Select Browse. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 55 Getting More Involved • Double-click the HelloWorld directory in your home directory. • Click OK. • Select Finish to import the project. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 56 SSH. You should now see the “Welcome to the World of the phyCORE-PXA270!” message in the Console window. • Select the Console tab. You will see the following content in the Console window: © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 57: Creating A New Project

    GNU C/C++ cross development tool chain. • Open Eclipse if it isn’t already opened. • Select File ► New ► Project from the menu bar. A new dialog opens. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 58 Quick Start Instructions • Select Managed Make C Project and click Next. • Enter the project name myHelloWorld and click Next. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 59 Getting More Involved • Click Next. • Click Finish. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 60 Quick Start Instructions • Select Yes to open the C/C++ perspective. You will see the C/C++ IDE with the myHelloWorld project. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 61 Right-click on HelloWorld.c in the HelloWorld project which we have worked with previously. • Select Copy. • Select the myHelloWorld project. • Right-click and select Paste. • Double-click on HelloWorld.c in the myHelloWorld project. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 62 To compile your project for the phyCORE-PXA270 instead, you will have to use the GNU C/C++ cross compiler. • Right-click the myHelloWorld project and choose Properties. The Properties dialog appears. • Select C/C++ Build. • Enter arm-iwmmx-linux-gnueabi-gcc into the Command input field. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 63 Getting More Involved • Select GCC C Linker. • Enter arm-iwmmx-linux-gnueabi-gcc into the Command input field. • Select GCC Assembler. • In the Command input field, change the default as to arm-iwmmx- linux-gnueabi-as. • Click Apply. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 64 ./myHelloWorld Be sure to enter the semicolon between ./myHelloWorld and ssh. Be sure the file myHelloWorld on the target will have execution rights, because otherwise ssh will fail. • Click Apply. • Click OK. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 65 If no errors occur while building the project, you will see the following output: You have successfully created your first own project with the Eclipse IDE. You have configured the project to create an application for your target platform. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 66: Changing The Demo Application

    Enter the following two lines in the main() function to declare the buffer and call the write_tty() function. char buf[] = { "Welcome to the World of the phyCORE-PXA270! (serial)\n" }; write_tty(buf, sizeof(buf) - 1); In the next screenshot you can see the complete program. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 67: Executing The Program On The Target Using Microcom

    If you are not logged in, enter root and press Enter. • Type ./myHelloWorld to start the application. • You will see the following output: Welcome to the World of the phyCORE-PXA270! (serial) Welcome to the World of the phyCORE-PXA270! • Close Microcom. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 68: Starting A Program Out Of Eclipse On The Target

    A program can also be executed on the target without compiling a project. In the following section you will learn how to start a program on the target as an external tool. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 69 Getting More Involved • Select Run ► External Tools ► External Tools from the menu bar. • Select Program. • Select New. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 70 Enter root@192.168.3.11 ./myHelloWorld into the Arguments field. • Select Apply. • Select Run. If you want to execute the program the next time, you can use the Run External Programs button from the menu bar. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 71: Automatically Starting The Program When Booting The Target

    /etc/rc.d. These links point to the actual startup scripts in /etc/init.d. First you will have to create a startup script in /etc/init.d. • Click the FTP for Target icon on your KDE desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 72 In the directory /etc/init.d you can see the existing scripts. • Right-click in the opened window and select Create New ► Text File. • Enter myHelloWorld. • Click OK. • Right-click on myHelloWorld and select Open with. • Enter kwrite and click OK. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 73 The text editor KWrite starts with an empty document. • Enter the following two lines: #!/bin/sh /home/myHelloWorld • Select File ► Save. • Close the KWrite window. • Close the FTP window. • Click the Telnet for Target icon on your desktop. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 74 /etc/init.d/myHelloWorld. • In /etc/rc.d, create symbolic link which points /etc/init.d/myHelloWorld. Enter the following command: ln -s /etc/init.d/myHelloWorld /etc/rc.d/S99myHelloWorld • Type ls -l again to check the newly created link. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 75 Because its link in /etc/rc.d starts with S99…, you should see myHelloWorld’s output near the output of the two other scripts that start with S99… (which print all sorts of version information). • Close Microcom. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 76 Now you can add your own programs to the root file system and start these programs automatically when your phyCORE-PXA270 boots. You have successfully passed the “Getting More Involved” part of this Quick Start. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 77: Chapter 4 Debugging An Example Project

    4.1 Starting the GDB Server on the Target In this passage you will learn how to start the GDB server on the target. The GDB server will be used to start and control the myHelloWorld program. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 78 Type root and press Enter. • Start the GDB server: gdbserver 192.168.3.11:10000 myHelloWorld You have started the GDB server on the target. The GDB server is now waiting for connections on TCP port 10000. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 79: Configuring And Starting The Debugger In Eclipse

    • Select myHelloWorld in the Navigator window. • Select Run ► Debug from the menu bar. A dialog to create, manage, and run applications will appear. • Select C/C++ Local Application. • Click New. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 80 Quick Start Instructions • Select the Search Project button. • Click OK . © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 81 Click the Browse button right beside the GDB debugger input field. A new dialog opens to choose the GDB executable. • Click on File System. • Navigate to the directory /opt/OSELAS.Toolchain-1.99.3/arm-iwmmx- linux-gnueabi/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27- sanitized/bin. • Select the file arm-iwmmx-linux-gnueabi-gdb. • Click OK. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 82 Enter 192.168.3.11 (the target’s IP address) in the Host name input field. The host’s GDB will connect to this IP address to communicate with the target’s GDB server. • Click Apply. • Click Debug. A new dialog appears. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 83 Select Yes to switch to the Debug perspective. The Debug perspective opens and the debugger stops at the first line automatically. The host’s GDB is now connected to the GDB server on the target. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 84: Setting A Breakpoint

    If you resume the application, the debugger will stop on this line. • Select the last line in main(). • Right-click into the small grey border on the left-hand side and select Toggle Breakpoint to set a new breakpoint. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 85: Stepping And Watching Variable Contents

    You will see the content of the buf variable in the Variables window. • Click on the variable buf. • Then click on the button Step into to enter the function write_tty(). The debugger stops in write_tty(). You will see the following variable window: © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 86: Changing Variable Values

    In this section you will change the value of a variable. At the end of this part you will see the effect of this change. • Select the count variable in the Variables window. • Right-click on count and select Change Value. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 87: Using The Memory Monitor

    4.6 Using the Memory Monitor In the last section of this chapter you will use the memory monitor to watch the content at a memory address. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 88 Select the Memory tab. • Click Add Memory Monitor. • Enter the address of buffer and click on OK. Remember that the variable’s address might differ on your system. • Change the window size. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 89 • Select ASCII and click OK. You can see the contents of the variable buffer at the address 0xbeda6e48 (or whatever address is used on your system). • Now click the Resume button from the menu bar. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 90 Eclipse for remote debugging. You can step through a project, watch and change the content of variables, and you can use the memory monitor to view the content at a memory address. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 91: Chapter 5 Further Information

    Create and activate a PTXdist project. • Running the phyCORE-PXA270 from network only. • Running the phyCORE-PXA270 stand-alone. • U-Boot on the phyCORE-PXA270. • The phyCORE-PXA270’s Board Support Package (BSP). • Using CAN on the phyCORE-PXA270. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 92: Chapter 6 Summary

    The Debugging part of this Quick Start gave you information on setting up and using the GNU debugger with the Eclipse IDE. You learned how to set breakpoints, watching and changing variable contents, and using the memory monitor. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 93: Installing Linux On The Phycore-Pxa270

    Boot Loader. The installation of the boot loader will be performed by jflash. To run jflash, you will have to use a host running Microsoft Windows. • Insert your PHYTEC Linux-phyCORE-PXA270 -Disc, navigate to the PHYTEC\PCM027 phyCORE-PXA270\Linux- Kit\Software\Tools\ jflash directory.
  • Page 94 • Navigate to the folder jflash. In this folder you can find the batch file prog.bat. • Double-click on prog.bat • A new window opens. • Press Enter for two times to start writing the bootloader into flash. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 95: Configure U-Boot Environment Variables

    115200 baud, 1 start bit, 8 data bits, 1 stop bit, no parity, no flow control. If you want to use a program other than Microcom for serial communication, you will have to setup that program with these settings. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 96: Restore The U-Boot Default Configuration

    If you want to restore to the default configuration you can uses the following command to delete the configuration in the EEPROM: • eeprom write 0 0 10 After pressing the reset button, the default configuration of the bootloader will be used. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 97: Writing The Kernel / Root File System Into Flash

    0x00040000 - 0x0023FFFF: Kernel (2048k) 0x00240000 - 0x01FFFFFF: Root-Filesystem (30464k) In the directory BSP/Images on your PHYTEC Linux-XScale-Disc you can find a file uImage-pcmXXX-Y. This file is the kernel image. There is another file root-pcmXXX-Y.jffs2. This file contains the root file system.
  • Page 98 • Type run update_rootfs to download and write the root file system into the flash. • Press the RESET button on the target to start your target. The target will start with the kernel and root file system you have written into the Flash. © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 99 How would you improve this manual? page Did you find any mistakes in this manual? Submitted by: Customer number: Name: Company: Address: Return to: PHYTEC Messtechnik GmbH Robert-Koch-Str. 39 D-55129 Mainz Fax: +49 (6131) 9221-26 © 2009 PHYTEC Messtechnik GmbH L-677e_5...
  • Page 100 PHYTEC phyCORE-PXA270 Quick Start Instructions Published by © 2009 PHYTEC Messtechnik GmbH Ordering No. L-677e_5 Printed in Germany...
  • Page 101 Suggestions and Improvements © 2009 PHYTEC Messtechnik GmbH L-677e_5...

Table of Contents