Page 1
® phyCORE -AM335x QuickStart Instructions Document No.: L-779e_6 Release Nos.: SO-498v6 PD15.2.1 Ubuntu 14.04 Edition: April 2016 A product of a PHYTEC Technology Holding company...
Page 2
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.
... work with Eclipse and Qt Creator ..setup your own Linux host system. This first section gives a short introduction on the Phytec phyCORE-AM335x Kit and its QuickStart. Also, you will find general requirements and information to successfully pass the QuickStart.
[PCM-051-xxx] 1.3 Overview of these QuickStart Instructions This QuickStart gives you an overview of the phyCORE-AM335x. Its content ranges from the first startup, to building your own kernel and file system, to the point of building your own Eclipse...
We can not guarantee to successfully support you with your own environment. To follow this QuickStart you need our phyCORE-AM335x virtual machine hard disk image. The hard disk image includes all software installations and configurations (e.g. pre-built Yocto BSP, Eclipse, Qt Creator) necessary for a successful start-up of the phyCORE-AM335x.
Page 26
You will find the executable file, which can only run on your host system, in the workspace/myHelloWorld/Debug directory. To compile your project for phyCORE-AM335x instead, you will have to use the GNU C/C++ cross compiler. Right-click the myHelloWorld project and choose Properties.
Double-click HelloWorld.c in the myHelloWorld project. First include the following two additional header files: #include <unistd.h> #include <fcntl.h> Then add the function write_tty(), which writes n bytes to the first serial interface (which, on the phyCORE-AM335x, is connected to the system console /dev/console): void write_tty (char *buffer, int count) { int out; ...
Page 32
Type . to start the application. /myHelloWorld You will see the following output: .Welcome to the World of PHYTEC! (serial). .Welcome to the World of PHYTEC!... Close Microcom. When you start the application via an SSH session, you only see one output line. When you execute the program with Microcom, you see two output lines.
Select Run. Now the program is executed on the target and you will see the output .Welcome to the World of PHYTEC! (serial) in the Microcom window. If you want to execute the program the next time, you can use the Run External Programs button from the menu bar.
4.4 Compile and Run the Demo Application on the Target Now we want to compile and run the demo application on the phyCORE-AM335x. To carry out the steps described in this section and section 4.6 you need an RDK with display and touchscreen.
Page 56
On the connected display you will see the HelloWidget application. Click the big button with the Phytec logo to enable and disable the Welcome label. To see the different build steps click Compile output which can be found in the bottom menu bar.
In some cases you do not want to compile and run the application on the target. For example if the phyCORE-AM335x is not connected to the host or if you only changed some user interface relevant things and you do not want to copy the application and all the necessary resources to the target.
In this chapter of the QuickStart we describe only the basic Yocto usage. For in-depth explanations refer to the Yocto Reference Manual. In this part you will learn how to use the Yocto Project and the Phytec BSP. 5.1 Add new Packages to the Root Filesystem with Yocto The BSP was pre-build in the virtual machine, but to save disk space some parts were removed after building.
Flash memory. Before the images can be written into the Flash, it must be uploaded to the phyCORE-AM335x from a TFTP server. This will be done from the command line of the bootloader. The partition of the root filesystem will be formatted.
Page 71
/dev/nand0.root.ubi.root Enter to boot the phyCORE-AM335x with the new kernel and root filesystem. boot After the target has successfully finished booting, type to log in. root Now we can test the newly installed editor nano by trying to open a file with it.
Finally you must restart your system after the installation is finished. After that the system boots up and you can log into Ubuntu. Configure your network connection now and connect the phyCORE-AM335x. 6.1.2 Installation of Software Packages First of all various software packages that are required must be installed using the package manager APT.
The phyLinux script is a basic management tool for Phytec Yocto BSP releases. It is mainly a tool to get started with the BSP structure. You can get all the BSP sources without the need of interacting with Repo or Git.
You have successfully set up the TFTP server. In the future the phyCORE-AM335x can access to the /tftpboot/ folder to load the images. 6.1.8 Optional Settings In the following section we list the optional settings. These settings are not mandatory for a successful operation of this QuickStart.
Need help?
Do you have a question about the phyCORE-AM335x and is the answer not in the manual?
Questions and answers