Page 1
® phyCORE -LPC3180 QuickStart Instructions Programming Embedded Linux on phyCORE-LPC3180 Note: The PHYTEC Spectrum CD includes the electronic version of the English phyCORE-LPC3180 Hardware Manual Edition: May 2007 A product of a PHYTEC Technology Holding company...
Page 2
LLC neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product. 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.
2.5 LPC3180 Boot Process ..............8 Getting Started ..................9 3.1 Installing Rapid Development Kit Software ........9 3.1.1 Installing PHYTEC Spectrum CD ......... 9 3.1.2 Install the Segger jlink.exe and J-Link Drivers....10 3.2 Interfacing the phyCORE®-LPC3180 to a Host-PC....... 11 3.3 Flashing Images ................
LPC3180 Carier Board. The phyCORE-LPC3180 Carrier Board contains the I/O connectors as well as any other interface circuitry not provided on the phyCORE module itself. The phyCORE module, combined with the PHYTEC Carrier Board, provides a platform to jump start embedded designs and propel concept to prototype and finished product.
The Segger J-LINK is included in the Rapid Development Kit version with the part number KPCM-031-LINUX. The phyCORE-LPC3180 is a USB OTG enabled device. When operating as an embedded host, an OTG device can only supply up to 8mA of operating current. Most non-OTG enabled USB devices require more than 8mA of operating current so a powered USB hub is typically required to interface USB devices.
(1). Configuration of the boot mode is done via an external jumper on the phyCORE- LPC3180 Carrier Board. By default the Carrier Board should be configured for boot process (2). Please refer to the PHYTEC phyCORE-LPC3180 hardware manual for details on changing this setting if required.
3.1 Installing Rapid Development Kit Software 3.1.1 Installing PHYTEC Spectrum CD The current version of the PHYTEC Spectrum CD for ARM7/9 does not provide a setup program for automatic installation of the LINUX specific kit contents . You will need to manually copy the demos, manuals, and other support documents for this Rapid Development Kit to your local hard drive.
The Segger J-Link includes a CD-ROM with the required Windows drivers and the jlink.exe command prompt utility. In addition PHYTEC provides the most recent version (as of the printing of this manual) of the J-Link drivers on the Spectrum CD for ARM7/9. Alternatively you can download...
Getting Started 3.2 Interfacing the phyCORE®-LPC3180 to a Host-PC Connecting the phyCORE-LPC3180, mounted on the phyCORE Carrier Board, to your computer is simple. • Ensure proper jumper settings on the phyCORE Carrier Board as shown in Figure 1. All phyCORE-LPC3180 Carrier Board jumper settings can be referenced in the phyCORE-LPC3180 Hardware Manual section 13.1.1.
Getting Started 3.3 Flashing Images Flashing images on the phyCORE-LPC3180 involves using one or both of the NAND Flash controllers available on the LPC3180. Both the SLC and MLC NAND Flash controllers on the LPC3180 can be used to write to the SLC NAND Flash device populating the phyCORE-LPC3180. Special attention should be paid to which Flash controller is being used when writing to NAND Flash.
QuickStart Instructions 3.3.2 Writing Images to Flash To boot Linux from phyCORE-LPC3180 NAND Flash, four images must be written to the NAND Flash: (1) SIBL, (2) U-Boot, (3) the Linux image, and (4) the Linux file system. The Bootflash utility is used to burn these images to NAND Flash.
Page 17
Getting Started • Select 2 from the menu for the default 32 MB SDRAM populating the phyCORE-LPC3180 Linux development kits. If you have SDRAM of a different size, please select accordingly. • Now return to the command prompt window and quite the Jlink program by entering q in the command prompt J-Link>q...
(non) login: root The phyCORE-LPC3180 is a USB OTG enabled device. When operating as an embedded host, an OTG device can only supply up to 8mA of operating current. Most non-OTG enabled USB devices require more than 8mA of operating current so a powered USB hub is typically required to interface USB devices.
Page 22
• If you have successfully setup the default gateway, you should be able to ping an outside IP address, such as PHYTEC’s IP address: ~ # ping 72.34.40.39 Press CTRL+C to abort pinging after verifying that packets are being sent and received.
You have now successfully demonstrated use of a USB-Ethernet adapter within the Linux operating system environment. PHYTEC is currently working on instructions for building the Linux kernel and file system using the source BSP provided on the PHYTEC Spectrum CD. Please visit the following PHYTEC product page for additional and updated documentation: http://www.phytec.com/products/sbc/ARM-XScale/phyCORE-ARM9-LPC3180.html...
• Copy the Arm Linux GCC toolchain arm-linux-gcc-2004-q1-vfp.tar.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\Arm to your host machine. The remainder of this Quickstart guide assumes that the path for the Arm toolchain on the host machine is /usr/local/arm/gnu.
To build a Kernel image, the Arm Linux GCC toolchain must be copied to the Linux host machine as described in section 5.1. • Copy the phyCORE-LPC3180 Linux kernel patch linux-2.6.10-phytec3180.patch.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\BSP Source\kernel to your host machine. The remainder of this Quickstart guide assumes that the path for the kernel patch on the host machine is /usr/local/arm/kernel.
Copy the phyCORE-LPC3180 ext2 root file system root_fs_arm.ext2.phytec.gz from the PHYTEC Spectrum CD: phyBASIC\pC-LPC3180\Linux\File System to your host machine. The remainder of this Quickstart guide assumes that the path for the phyCORE-LPC3180 ext2 root file system on the host machine is /usr/local/arm/rootfs.
5.5.5 Building a New Root File System Important: If it is required to build a new root file system, the kernel and the libraries in the root file- system must be built with the same compiler. root_fs_arm.ext2.phytec was built with arm-linux-gcc v3.4.0 with vfp support.
The JFFs2 file system must be copied to /dev/mtd0 when Linux is running. • Boot-up the phyCORE-LPC3180 and stop U-Boot from autostarting Linux • When adding a JFFS2 flash file system, space must be made in the NAND flash. The start offset of the JFFS2 is 0x01000000 and the end address is 0x1f000000.
Page 30
Suggestions for Improvement Document: phyCORE-LPC3180 QuickStart Instructions - LINUX Document number: L-698e_2, May 2007 How would you improve this manual? Did you find any mistakes in this manual? page Submitted by: Customer number: Name: Company: Address: Return to: PHYTEC America LLC...
Need help?
Do you have a question about the phyCORE-LPC3180 and is the answer not in the manual?
Questions and answers