Phytec phyCORE-LPC3250 Quick Start Instructions

Rapid development kit for linux
Hide thumbs Also See for phyCORE-LPC3250:

Advertisement

Quick Links

QuickStart Instructions
phyCORE-LPC3250 Rapid Development Kit for
Linux
Document No:
L-715e_0
Edition:
April 10, 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 phyCORE-LPC3250 and is the answer not in the manual?

Questions and answers

Summary of Contents for Phytec phyCORE-LPC3250

  • Page 1 QuickStart Instructions phyCORE-LPC3250 Rapid Development Kit for Linux Document No: L-715e_0 Edition: April 10, 2009 A product of a PHYTEC Technology Holding Company...
  • Page 2 PHYTEC America LLC reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages which might result.
  • Page 3: Table Of Contents

    1.7 The PHYTEC Kit CD ........
  • Page 4: Introduction

    This QuickStart Instruction guide 1.2 Professional Support Packages Available PHYTEC backs up our Rapid Development Kits with a Start-Up Guarantee. We invite you to make use of our free Technical Support concerning installation and setup of QuickStart demos until any kit start-up problem you might encounter is resolved.
  • Page 5: Conventions Used In This Quickstart

    This warning will help you avoid potential problems. Helpful information for troubleshooting and resolving potential problems. 1.5 Kit Contents The following PHYTEC hardware components are included in the phyCORE-LPC3250 Linux Rapid Development Kit (part number KPCM-040-Linux) and are necessary for completing the instructions in this QuickStart: •...
  • Page 6: System Requirements

    If you are interested in evaluating the WinCE BSP, or the Keil or IAR BSPs you can install the PHYTEC Kit CD on a Windows system by running the setup.exe. Please refer to the respective QuickStart for each BSP by visiting http://www.phytec.com/products/sbc/ARM-XScale/phyCORE-...
  • Page 7: Getting Started

    Carrier Board. 2. If you ordered the KLCD-011 add-on, plug this into the LCD connector X26 at this time. 3. Plug the phyCORE-LPC3250 SOM into connector X1 on the Carrier Board if it is not already plugged into the board.
  • Page 8: Booting The Pre-Built Images

    NAND:  64 MiB *** Warning ‐ bad CRC or NAND, using default environment In:    serial Out:   serial Err:   serial uboot> 8. The bad CRC warning is normal. This is indicative that the current environment variables that U-Boot attempted to read from NAND Flash were bad, or non-existent. Since the © PHYTEC America LLC 2009...
  • Page 9 Note that the first time the board is booted it will takes a little while for the SSH server to generate new keys. Subsequent boots should be faster. You have successfully booted the pre-built images included on the SD card. © PHYTEC America LLC 2009...
  • Page 10: Getting More Involved

    3 Getting More Involved In this chapter you will install the tools required to build an embedded Linux system for the phyCORE-LPC3250 SOM. You will then be guided through building the boot loader, Linux image, and root file system. Later on in the chapter you will learn how to deploy the images to the SOM using a variety of methods.
  • Page 11 Be aware that LTIB will not show its progress while it is installing; be patient. After install has completed the build will return to a prompt. You are now ready to begin configuring LTIB for a phyCORE-LPC3250 Linux distribution build. © PHYTEC America LLC 2009...
  • Page 12: Building U-Boot, The Linux Kernel, And Root File System

    U-Boot, the Linux kernel, and the root file system have all been built and assembled and are ready to be deployed on the phyCORE-LPC3250 Rapid Development Kit. If you received a Build Succeeded message you can skip the following paragraphs and table and continue to the next section.
  • Page 13 Enter any CFLAGS for gcc/g++ ‐fsigned‐char ‐msoft‐float ‐O3 bootloader choice (X) u‐boot 1.3.3 for the Phytec 3250  board u‐boot flags <empty> kernel (X) Linux 2.6.27.8 for LPC3250/Phytec  3250 Always rebuild the kernel [*] (checked) Produce cscope index [ ] (unchecked) Kernel preconfig linux‐2.6.27.8‐phy3250.config Include kernel headers [ ] (unchecked) Configure the kernel [ ] (unchecked) Leave the kernel sources after build‐ [*] (checked) Package list Check only: [*] busybox [*] module dependencies [*] mp3play [*] mtd‐utils [*] Skeleton base files Target System Configuration Options Check only: [*] start networking [*] start syslogd/klogd Target Image Generation Options Target image: (NFS only) © PHYTEC America LLC 2009...
  • Page 14: Setting Up Tftp

    TFTP is a “trivial” file transfer protocol used to transfer files across networks. Although TFTP is not absolutely required for working with Linux on the phyCORE-LPC3250, it is highly recommended during the building and development phase. TFTP allows the phyCORE-LPC3250 to be...
  • Page 15: Setting Up Nfs

    For this QuickStart NFS is used to access the root file system on the host Linux machine. That is, the root file system for the phyCORE-LPC3250 SOM will actually be located on the remote host Linux machine. This enables easy access and modificatios to the root file system during development.
  • Page 16: Overview Of The Boot Process

    Dynamic loading and access of the Linux kernel and root file system is done via TFTP and NFS, as explained in the previous sections of this document. © PHYTEC America LLC 2009...
  • Page 17: Placing U-Boot Into Nand Flash

    3. Switch to minicom, or the applicable terminal software you’ve chosen for this QuickStart. 4. Press the reset button S1 on the phyCORE-LPC3250 Carrier Board for a clean reboot. If you’ve previously flashed U-Boot to the board make sure you hit the space bar to stop the boot process in the Stage 1 Loader.
  • Page 18 This CRC warning will come up until a saveenv command is executed in U-Boot. This will be done shortly in the next section when U-Boot is configured to boot the Linux kernel. You have successfully placed U-Boot into the NAND Flash and booted the system. © PHYTEC America LLC 2009...
  • Page 19: Configuring U-Boot To Boot Linux Over Tftp

    8. Now copy the kernel image to the tftpboot directory by executing the following command: ~/lpc3250> cp /home/<username>/lpc3250/ltib‐qs/rootfs/boot/uImage / tftpboot Note that after LTIB completes the build process the kernel image is placed in the root file system under the boot/ directory as the file uImage. © PHYTEC America LLC 2009...
  • Page 20: Placing The Kernel Into Nand Flash

    The offset will always be 0x190000. The size will depend on the size of your kernel image you’ve created. The U-Boot tftpboot command will report the size of the image transfered after it is completed. You should see something similiar to the following when the tftpboot tranfer is completed: Bytes transferred = 1701080 (19f4d8 hex) © PHYTEC America LLC 2009...
  • Page 21: Placing The Root File System Into Nand Flash

    5. Now exit from the Target Image Generation Options menu, returning to the main LTIB configuration menu. Select the Configure the Kernel option in the LTIB menu by scrolling to it and hitting the space bar. 6. Exit from LTIB, saving the new configuration. © PHYTEC America LLC 2009...
  • Page 22 17. Now write the image to flash, remembering to use the correct size for your image. This process will take a few minutes to complete: © PHYTEC America LLC 2009...
  • Page 23: Placing The Root File System On An Sd/Mmc Card

    /dev/sdc2, /dev/sdc3, etc... We will use the fdisk command to setup the card with one Linux ext2 partition. To do this fdisk operates on the raw disk data accessed at /dev/sdc (note that NO number is appended to this). If your SD/MMC © PHYTEC America LLC 2009...
  • Page 24 14. Now remount the card by issuing a mount command. Alternatively if your distribution auto mounts the SD/MMC card, you can remove the card and reinsert it to mount it. To mount the card via the mount command, type the following: © PHYTEC America LLC 2009...
  • Page 25 1. Umount the card and remove it from your Linux host machine and then insert it into the SD/MMC card connector X15 on the phyCORE-LPC3250 Carrier Board. 2. Cycle power on the Carrier Board, or press the reset button S1. When U-Boot begins booting hit any key to stop the boot process in U-Boot.
  • Page 26: Building Custom Images

    Flash to host the root file system, then the new ltib-qs/rootfs needs to be copied to the SD/MMC card, or the rootfs.jffs2 image needs to be reflashed to NAND. Please refer to Chapter 3.10 Chapter 3.9 respectively for instructions on updating the root file system. © PHYTEC America LLC 2009...
  • Page 27: Testing Openssh

    3. On the host PC, open a web browser and enter the IP address of your SOM into the address bar. If everything is operating correctly you should see a page appear similar to the one below: © PHYTEC America LLC 2009...
  • Page 28 The default directory out of which documents are served is /usr/htdocs. This can be modified by editing the /usr/conf/httpd.conf configuration file, along with a vast number of other settings to configure the Apache Web Server. © PHYTEC America LLC 2009...
  • Page 29: Adding Your Own Packages

    SD/MMC or NAND Flash as the target location for the root file system then you must either copy the new ltib-qs/rootfs directory to the SD/MMC card, or flash the new rootfs.jffs2 image to the NAND Flash. © PHYTEC America LLC 2009...
  • Page 30: Appendix A: Helpful Hints And Tips

    LTIB training guide -- http://www.bitshrine.org/LTIB_generic_v1.4_-_version_6.4.1.pdf A.2 NAND Flash Layout The default NAND Flash populating the kit version of the phyCORE-LPC3250 SOM is 64MB in size, containing 4096 blocks, each of which are 16KB in size. See Table 4-1 below for a summary of the NAND Flash layout.
  • Page 31: Using Dhcp Instead Of A Static Ip

    Linux will query the DHCP server for an IP address. See below for two examples of the kernel command line configured for static IP and for DHCP. For static IP: uboot> setenv bootargs ‘console=ttyS0,115200n81 root=/dev/mtdblock3 rw  rootfstype=jffs2 ip=<SOM IP address> init=/sbin/init’ For DHCP: uboot> setenv bootargs ‘console=ttyS0,115200n81 root=/dev/mtdblock3 rw  rootfstype=jffs2 ip=dhcp init=/sbin/init’ © PHYTEC America LLC 2009...
  • Page 32: Enabling Ethernet In The Provided Images

    To use DHCP for a dynamic IP, use the following setting: bootargs=console=ttyS0,115200n81 root=/dev/mtdblock3 rw rootfstype=jffs2  init=/sbin/init ip=dhcp If you want to bring the interface up temporarily in Linux without having to enable it in U-Boot, use the ifconfig command as shown below: [root@nxp /]# ifconfig eth0 up <static IP address> © PHYTEC America LLC 2009...

Table of Contents