Philips LPC3180 Application Note
Philips LPC3180 Application Note

Philips LPC3180 Application Note

Getting started linux with

Advertisement

Quick Links

AN10476
Getting started Linux with LPC3180
Rev. 013 — 21 Dec 2006
Document information
Info
Content
Keywords
Linux, ARM9, LPC3180
Abstract
This application note describes how to start Linux with Philips LPC3180
MCU(ARM926EJ-S core), including how to setup the system and make
small modifications and how to add user applications to the system.
Application note

Advertisement

Table of Contents
loading

Summary of Contents for Philips LPC3180

  • Page 1 Document information Info Content Keywords Linux, ARM9, LPC3180 Abstract This application note describes how to start Linux with Philips LPC3180 MCU(ARM926EJ-S core), including how to setup the system and make small modifications and how to add user applications to the system.
  • Page 2 Add sections about SDRAM/NAND flash related sections. Update with software updates of JFFS2/USB OTG function. Update with new SIBL programming method by using LPC3180 Loader. Add the method of modifying rootfs and creating new rootfs. More explanation about NFS usage for application debugging.
  • Page 3: Introduction

    NAND flash. This block contains the SIBL(secondary boot loader) that will initialize the main functions of the LPC3180. After initialization SIBL will continue scanning the NAND flash for images and executables and load these in memory.
  • Page 4: Software Under Windows

    • A SD card (For SD card interface function testing) 2.2 Software under Windows Software running under Windows environment: • ARM Realview development suit (preferably version 1.2) or RVDK for Philips (For running or debugging in SDRAM) • Cygwin (For building SIBL) 2.3 Software under Linux...
  • Page 5: Building Sibl

    3.2 Building U-boot To build the sources you must copy U-boot sources and the patch to a drive on your Linux environment. Make sure the cross compiler is enabled(refer to linux-2.6.10-lpc3180/setup_links): export PATH=$PATH:/usr/local/arm/gnu/release-3.4.0-vfp/bin/arm-linux- gcc:/usr/lucy/uboot/u-boot-1.1.1/tools export ARCH=arm export CROSS_COMPILE=arm-linux- Untar the source: tar –zxvf...
  • Page 6: Building Root File System

    -A arm -O Linux -T Filesystem -C none -a 0x80800000 -e 0 -n "My RootFS v0.1" -d root_fs_arm.ext2.phytec.gz rootfs_phytec.ubt <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 6 of 28...
  • Page 7: Running From Sdram

    Sibl and U-Boot is started automatically. In the Serial terminal window press enter to stop auto-boot. 43210 Initialize only Main entry returned U-Boot 1.1.1 (Jan 25 2006 - 12:00:24) <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 7 of 28...
  • Page 8 The root password is empty (i.e. simply press enter). You are now running Linux! Uncompressing Linux............done, booting the kernel. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 8 of 28...
  • Page 9 ARM PLL080 DMA Controller: Address = 31000000, irq = 28 DMA Controller setup: 16 requestors, 32-bit wide bus, 2 master interfaces, 8 channels <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 9 of 28...
  • Page 10 (2003/06/06):Pegasus/Pegasus II USB Ether net driver usbcore: registered new driver pegasus spi-lpc3180: SPI Test Dec 14 2006 CS driver running on platform=premo Found clock frequency for spi-1 is 104000000 initialising CS table Found clock frequency for spi-2 is 104000000 initialising CS table isp1301_generic 1-002d: chiprev 2.10, driver 26 May 2006...
  • Page 11: Using Mmc/Sd Card Devices

    When you insert a SD card at boot time, Linux will automatically detect that and try to mount the device. If you do so later you will have to mount the device manually. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006...
  • Page 12: Connecting Usb

    As the LPC3180 does not have an Ethernet controller onboard, the Ethernet connection is established over USB. To be able to do so the following items are required: - A USB hub (as the LPC3180 is unable to provide enough power to a connected USB device)
  • Page 13: Connection Between Pc And The Board

    ~ # httpd & Type “httpd://192.168.0.2/” in the address bar, the file system contents will display in the IE window. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 13 of 28...
  • Page 14: Connection Using Dhcp

    /mnt/$NFS_WORK_PATH mount -o nolock -t nfs $NFS_HOST:$NFS_WORK_PATH /mnt/$NFS_WORK_PATH Set $NFS_HOST and $NFS_WORK_PATH to the values matching your environment. e.g. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 14 of 28...
  • Page 15: Jffs2 Support

    In the debugger, type and e.g.: ‘stop’ readfile,raw,gui "d:\Linux\Images\rootfs_phytec.ubt"=0x80000000 readfile,raw,gui "d:\Linux\Images\uboot_phytec.ubt"=0x80900000 readfile,raw,gui "d:\Linux\Images\uImage_phytec.ubt"=0x80600000 Or use the aliases ‘fr, fu, and fk’ <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 15 of 28...
  • Page 16: Flashing Sibl

    - Connect PC and Phytec board UART5 with serial cable; - Make sure no serial terminal is connected to the command port of the Phytec board and start LPC3180_loader; <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 16 of 28...
  • Page 17 - Reset the board when a dialog pops up, the download process will start automatically. The whole download process should not take longer than a minute. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006...
  • Page 18: Using Seehau Software

    Below figures reflect the basic settings for the function. For details of the tool usage, please refer the Nohau’s related user manual. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 18 of 28...
  • Page 19: Starting From Nand Flash

    9 (CodeSourcery ARM Q1 2004)) #25 Tue Jan 17 16:41:49 CST 2006 CPU: ARM926EJ-Sid(wt)RR [41069264] revision 4 (ARMv5TEJ) …… …… …… <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 19 of 28...
  • Page 20: Adding User Applications

    Makefile. The major difference is the compilation tool in the Makefile should not be normal ‘gcc’, but the cross compiling tool as ‘arm-linux- gcc’, which will generate image files that can run on LPC3180 (ARM9 CPU core). E.g.
  • Page 21: Nand Flash Support In Sibl

    [Remark] The boldface files are the key files for NAND flash driver porting. When users use different NAND flash devices, they still use the same LPC3180 on-chip NAND flash controller that has the same code implementation. We can port the NAND flash driver with modifying only the device dependent codes.
  • Page 22: Nand Flash Support In U-Boot

    // the erase block size of the device (B) // the bit-field to store chip relevant options …… struct nand_manufacturers nand_manuf_ids[] = { …… <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 22 of 28...
  • Page 23: Device Dependent Functions Porting

    We should be clear that users may connect different kinds of NAND flash devices, but they use the same NAND flash controller – LPC3180 on-chip NAND flash controller. It’s the NAND flash controller that gives the sequential logic control on the NAND flash device.
  • Page 24: Sdram Porting

    MPMCAHBControl0 MPMCAHBControl2 MPMCAHBControl3 MPMCAHBControl4 MPMCDynamicConfig0 MPMCDynamicRasCas0 MPMCDynamicReadConfig MPMCDynamictRP MPMCDynamictRAS MPMCDynamictSREX MPMCDynamictWR MPMCDynamictRC MPMCDynamictRFC MPMCDynamictXSR MPMCDynamictRRD MPMCDynamictMRD MPMCDynamicCDLR MPMCDynamicControl MPMCDynamicControl MPMCDynamicRefresh <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 24 of 28...
  • Page 25: Sdram Definitions In U-Boot

    U-boot process for dram_init SDRAM. But neither need modification. <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 25 of 28...
  • Page 26: Appendix -- Default Flash Layout

    Sibl size approx 0xd44 (3.396) 0x0000.8000 Rootfs.ubt 0x0049.0000 uImage.ubt 0x0066.0000 uboot.ubt 0x0100.0000 15 MB partition for JFFS2 filesytem 0x00EF.FFFF <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 26 of 28...
  • Page 27: Disclaimers

    RC5 standard UATM-5000 for allocation of remote customers using or selling these products for use in such applications do so control commands defined by Philips. at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application. 11. Patents Right to make changes —...
  • Page 28: Table Of Contents

    SDRAM initialization in SIBL ......24 SDRAM definitions in U-boot ......25 Appendix -- Default flash layout ........26 Disclaimers ............27 Licenses .............27 Patents ...............27 Trademarks ............27 <12NC> © Koninklijke Philips Electronics N.V. 2004. All rights reserved. Application note Rev.03 — 21 Dec 2006 28 of 28...

Table of Contents