LPC-2478-STK Software Quickstart Guide



Similar documents
SheevaPlug Development Kit README Rev. 1.2

Getting started with ARM-Linux

Application Development Kit for Android Installation Guide

Matrix 510/520 User Guide

VoIP Laboratory B How to re flash an IP04

Quick Start Guide. Quick Start Guide. taskit GmbH. for Portux920T EU / SW Portux Mini-PC Portux Panel-PC Panel-Card MoLUX Stamp

Pwn Plug Community Edition 1.1 Installation Guide

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

Embedded Linux Platform Developer

PBX DIGITAL TELEPHONE EXCHANGE MAINTENANCE GUIDE

The embedded Linux quick start guide lab notes

Buildroot for Vortex86EX (2016/04/20)

APPLICATION NOTE. How to build pylon applications for ARM

Embedded Display Module EDM6070

Sistemi ad agenti Principi di programmazione di sistema

Version 1.0. File System. Network Settings

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

File Transfers. Contents

File Transfers. Contents

Embedded Linux development training 4 days session

How Do I Recover infiniti Remotes and Line Cards?

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

E-Blocks Easy Internet Bundle

ipac-5010 User Guide + -

HotelTV1. Client Software Update REV A0.6 D October. Web : Mail : support@vestek.com.tr Tel :

An Embedded Wireless Mini-Server with Database Support

AN10866 LPC1700 secondary USB bootloader

SecureLinx Spider Duo Quick Start Guide

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

HotelTV. Client Software Update REV A0.10 D October. Web : Mail : support@vestek.com.tr Tel :

INTRODUCTION FEATURES OF THE ICM

4 Networking Generators

HOWTO configure Xinu under Virtual Box

3.1 Connecting to a Router and Basic Configuration

Creating a Webserver on the Nios development kit Stratix Edition board Enoch Hwang

Cosmic Board for phycore AM335x System on Module and Carrier Board. Application Development User Manual

Type Message Description Probable Cause Suggested Action. Fan in the system is not functioning or room temperature

CPSC 226 Lab Nine Fall 2015

Waspmote. Quickstart Guide

Connecting the DG-102S VoIP Gateway to your network

AN10811 Programming SPI flash on EA3131 boards Rev May 2009 Application note Document information Info Content Keywords Abstract

December 2002, ver. 1.0 Application Note 285. This document describes the Excalibur web server demonstration design and includes the following topics:

AVR32737: AVR32 AP7 Linux Getting Started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

WinCON8000-R2/R8. Hardware User s Manual

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

TouchKit driver user guide for Linux

Assignment 09. Problem statement : Write a Embedded C program to switch-on/switch-off LED.

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

SBC6245 Single Board Computer

The Embedded Linux Quick Start Guide In the Beginning... Embedded Linux Conference Europe 2010

S7 for Windows S7-300/400

Capture Pro Software FTP Server Output Format

3. Programming the STM32F4-Discovery

IOVU-571N ARM-based Panel PC

Application & Quick-Start Guide

RocketRAID 174x SATA Controller Ubuntu Linux Installation Guide

MBC-SAM9G35 Core Board Overview

Information Sheet IS13011A. VS Series - Recovering / Installing the Operating System. (For Software Version 4.x) Issue

AXE027 PICAXE USB CABLE

Instructions on How to Use HyperTerminal to Test Serial Ports ...

Using the Xenium-OS V2.0

Future Technology Devices International Ltd. Mac OS X Installation Guide

1-Port R422/485 Serial PCIe Card

1. MOXA NPort Express TCP/IP to RS-232 server

First Steps. Remote Access Gateway IGW/922. with DIL/NetPC ADNP/9200

Capture Pro Software FTP Server System Output

Design and Development of Embedded Multimedia Terminal

GeBro-BACKUP. Die Online-Datensicherung. Manual Pro Backup Client on a NAS

PMOD Installation on Linux Systems

Allworx Installation Course

Remote Access Server - Dial-Out User s Guide

RocketRAID 2640/2642 SAS Controller Ubuntu Linux Installation Guide

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Survey of Filesystems for Embedded Linux. Presented by Gene Sally CELF

Track One Building a connected home automation device with the Digi ConnectCore Wi-i.MX51 using LinuxLink

Procedure to Create and Duplicate Master LiveUSB Stick

Honeywell Internet Connection Module

Moxa Device Manager 2.0 User s Guide

SBC8600B Single Board Computer

RecoveryVault Express Client User Manual

How to deploy console cable to connect WIAS-3200N and PC, to reset setting or check status via console

Online Backup Client User Manual

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

EDS1100/2100. VMware Image for Linux Software Developers Kit (SDK) Quick Start Guide

Zynq SATA Storage Extension (Zynq SSE) - NAS. Technical Brief from Missing Link Electronics:

FLASH PROCEDURE for GSM BENTEL and DSC cards

Atcom IP-04 User Manual

Installation and Operation Guide

STLinux Software development environment

Short Manual Intellect v SP2 module Unipos Contents:

Getting Started with Kinetis SDK (KSDK)

How to Backup XenServer VM with VirtualIQ

Chapter 2. Basic Concepts Linux Workstation. 2.1 Types of Hosts

Test a WR21 Router. How to test a WR21 router step by step. UK Support June 2015

Online Backup Linux Client User Manual

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Transcription:

LPC-2478-STK Software Quickstart Guide By default, the board executes the U-Boot bootloader located in the internal flash. It's menu is displayed on the serial port of the board. The default settings of the bootloader are: Com port: 115200 bps, 8N1 LAN settings: IP address: 192.168.0.158 Netmask: 255.255.255.0 Server IP: 192.168.0.240 MAC: 00:de:ad:b0:05:03 A NULL-modem cable is needed to connect the board to a host PC Programming u-boot to the board: If the u-boot image gets corrupted for some reason, the user can easily restore it by using the free FlashMagic utility (available from http://www.flashmagictool.com). Select the correct processor type and frequency and under "Step 2 - Erase" select "Erase all Flash+Code read protect". Then load the "u-boot-bin.hex" file available in the "Images" section on the CD. Connect the board and close the "ISP_E" and "RST_E" jumpers. Then press the start button at the utility and, after the programming has completed, the u-boot image should be restored to the factory default. Remember to use a correct DB9 RS232 cable. Here is an example wiring: cross wires 2 and 3 cross wires 4 and 6 cross wires 7 and 8 Running uclinux: As the board does not have a sufficiently large amount of non-volatile memory on board, the uclinux kernel and root filesystem must be transferred to the board every time the system starts up. There are several ways to do that - by using an USB flash drive, by using an SD/MMC card, by using a network TFTP server or through the serial port. If you wish to use an USB flash drive, copy the files to it, the plug it in the board and issue the following commands lpc-2478-stk # usb start lpc-2478-stk # fatls usb 0 <size of your file> <filename> lpc-2478-stk # fatload usb 0 <load_address> <filename> If you use an SD/mmc card, substitute "usb" in the above example with "mmc" You can also use a TFTP server on the network to load the images. This saves time during e.g. development, because the step of transfering the file to an intermediate medium is elliminated. You need to make sure that the "Server IP" option is set correctly for your network (the address can be changed with the "setenv serverip 192.168.0.240", "saveenv" commands). The command is: lpc-2478-stk# tftpboot <load_address> <filename>

If the above methods are unavailable to you for some reaseon, you can still load a file through the serial line. The syntax is: lpc-2478-stk# loady <load_address> 115200 Then send the file through your terminal program using the ymodem protocol. As an example of the above, to run uclinux from an USB flash drive: 1. copy the files vmlinux.bin and romfs_5.img to the flash drive 2. plug it in the board, apply power and interrupt the boot process 3. issue the following commands: lpc-2478-stk# usb start lpc-2478-stk# fatload usb 0 0xa0800000 romfs_5.img lpc-2478-stk# fatload usb 0 0xa0008000 vmlinux.bin lpc-2478-stk# go a0008000 Compiling u-boot The u-boot image has been built under a cygwin host using the GNUARM-gcc_3.4.3 available under the "Utils" folder. After you have your buld enviroenment set up correctly (basically installing cygwin and GNUARM under windows or installiing an arm gcc cross compiler under linux), extract the sources from the "U-boot" directory and issue: lpc_2478_stk_config After a while you should have a new u-boot image u-boot-bin.hex. Recompiling uclinux You need to use a linux host in order to build the uclinux kernel due to some cross-compiling issuses. You also need to use the Snapgear arm-linux toolchain available from their ftp site (also included on the CD). First extract the toolchain somewhere: $ cd ~ $ mkdir -p lpc-2478-uclinux/snapgear-cross $ cd lpc-2478-uclinux/snapgear-cross $ tar zxf ~/arm-linux-tools-20061213.tar.gz Add the toolchain to your PATH variable: $ PATH=$PATH:~/lpc-2478-uclinux/snapgear-cross/usr/local/bin Extract the sources: $ cd ~/lpc-2478-uclinux/ $ tar zxf uclinux-dist-lpc_2478_stk-20081007.tgz Enter the directory and configure for Vendor=NXP, Product=LPC2468 $ cd uclinux-dist-lpc_2478_stk Then compile the distribution The vmlinux.bin kernel image and the romfs_5.img root filesystem will be stored in the uclinux-dist-lpc_2478_stk/images/ directory.

If you need to make changes to the configuration options, use the command Developing uclinux applications It is best to add your custom application to the uclinux build system. See the corresponding documentation file in the uclinux distribution: uclinux-dist-lpc_2478_stk/documentation/adding-user-apps-howto The distribution contains a simple framebuffer application that user can use as a starting point. It's located in the following directory: uclinux-dist-lpc_2478_stk/user/fbtest It can be selected for inclusion in the uclinux ROMFS image by selecting fbtest in the Miscellaneous Applications uclinux user/vendor configuration menu. On the uclinux board command prompt the frame buffer application can be executed: $ fbtest An alternative way to fill the screen with random pixels is to execute the following command $ dd if=/dev/urandom of=/dev/fb0 Common Questions Q: What drivers are included in LPC-2478-STK uclinux? A: The following peripherals have drivers: - Ethernet - RS232 (used for Linux console) - SDRAM - LCD framebuffer (no mmap access, though; only file-based through /dev/fb0) The following peripherals lack support in uclinux: - Touchscreen - MP3 decoder - USB device and host - IrDA - PS2 - CAN - SD/MMC - Audio Recent CDs include a framebuffer example for uclinux. Here is a sample output from the LPC-2478-STK uclinux/busybox shell: # cat /proc/devices Character devices:

1 mem 4 /dev/vc/0 4 tty 4 ttys 5 /dev/tty 5 /dev/console 7 vcs 10 misc 13 input 29 fb 90 mtd Block devices: 1 ramdisk 7 loop 31 mtdblock Q: What drivers are included in LPC-2478-STK uboot? A: The following peripherals have drivers: - Ethernet - RS232 (used for console) - SDRAM - USB host - LCD with boot splash screen - SD/MMC (see next question!) Q: I have problems using an SD/MMC card under U-Boot. A: There are known problems with the U-Boot version used on our LPC boards. Here is what our customer Fred Rothganger emailed us: In case you are curious, the problem has very little to do with the driver, and mostly to do with an improperly relocated interrupt vector block. This is a bug in the version of U-Boot that you distributed on CD, and is triggered any time an interrupt occurs in U-Boot. Since the SD/MMC driver is the first module that actually sets up an interrupt, this is where the crash occurs. Even more specifically, the bug is in board/lpc_2478_stk/lowlevel_init.c. The first thing the lowlevel_init() function does is (try to) copy the interrupt vectors to the beginning of SRAM. It does this using a GCC inline assembly directive. The problem with the assembly code is that it executes conditioned on NE, rather than unconditionally. Changing it to the unconditional form fixes the problem with crashes during an interrupt. There are several other problems with this code, but I'm too tired now to enumerate them clearly. You should have someone check this code over carefully to ensure it makes sense. Q. I have problems compiling. What cross compiler should I use? A. Please check that you are using the following compiler: http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/arm-linux-tools-20061213.tar.gz An early batch of CDs contained incorrect compiler. Also triple-check that the snapgear toolchain is the only cross compiler reachable from PATH. Q: I can't build uclinux. I get strange syntax or link errors. A: First ensure that you are using the correct cross compiler (the issue is discussed above). You also must have a host compiler, development libraries and tools installed.

Among other libraries and tools you may need your distribution should contain zlib1g-dev and genromfs - apt-get these packages if they are not available. Try to compile with no modification to the source first. The build process has been tested and proves working. Provide a link to the kernel sources: $ rm -f linux-2.6.x $ ln -s linux-2.6.24.2-lpc2468-patched linux-2.6.x Clean your uclinux-dist directory: mrproper Get rid of symbolic links left from previous builds: $ rm -f tools/ucfront-gcc $ rm -f tools/ucfront-g++ $ rm -f tools/cksum $ rm -f tools/ucfront-ld $ rm -f lib/libz.a $ rm -f lib/uclibc Ensure that environment variables are set correctly: $ printenv CROSS_COMPILE arm-linux- $ printenv ARCH arm Finally configure for Vendor=NXP, Product=LPC2468 and retry the build: