Getting started with ARM-Linux



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

Version 1.0. File System. Network Settings

The embedded Linux quick start guide lab notes

Matrix 510/520 User Guide

APPLICATION NOTE. How to build pylon applications for ARM

Debugging Network Communications. 1 Check the Network Cabling

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

Procedure to Create and Duplicate Master LiveUSB Stick

Update Firmware from GUI

How Do I Recover infiniti Remotes and Line Cards?

Buildroot for Vortex86EX (2016/04/20)

ipac-5010 User Guide + -

TB168 (Rev4) - Networking Linux Based Controls

Table of Contents. Safety Warnings..3. Introduction.. 4. Host-side Remote Desktop Connection.. 5. Setting Date and Time... 7

Utilizing MBARI s Software Infrastructure and Application for MOOS (SIAM) for NOAA s Real-time Environmental Coastal Observing Network (RECON)

External Storage 200 Series. User s Manual

VoIP Laboratory B How to re flash an IP04

GX-V. Quick Start Guide. Microsoft Hyper-V Hypervisor. Before You Begin SUMMARY OF TASKS. Before You Begin WORKSHEET VIRTUAL GMS SERVER

V Series Rapid Deployment Version 7.5

FRM301 SNMP Upgrade Procedure

PBX DIGITAL TELEPHONE EXCHANGE MAINTENANCE GUIDE

QNAP SYSTEMS INC. QNAP Digital Signage Player Web Console Manual

Embedded Linux development training 4 days session

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

Deploying IBM Lotus Domino on Red Hat Enterprise Linux 5. Version 1.0

50-Port 10/100/1000Mbps with 4 Shared SFP. Managed Gigabit Switch WGSW Quick Installation Guide

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

Quick Note 32. Using Digi RealPort with a Digi TransPort Router. UK Support September 2012

3.5 EXTERNAL NETWORK HDD. User s Manual

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

Connecting the DG-102S VoIP Gateway to your network

SheevaPlug Development Kit README Rev. 1.2

T3 Mux M13 Multiplexer

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

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Product Description. Licenses Notice. Introduction TC-200

Avaya Media Server Monitoring and Management. David Lover Chief Strategy and Technology Officer, Cross

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

Installation and Configuration for Linux

Networking Alpha signs on a TCP/IP network

Create a virtual machine at your assigned virtual server. Use the following specs

Load Balancing. Outlook Web Access. Web Mail Using Equalizer

Savvius Insight Initial Configuration

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

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

SNAKE OS for Str8132-Based NAS USER MANUAL. Snake OS version ( ) Authors: Douglas Gazineu Jarko Papalitsas José Maciel Miguel Moreto

Connections and wiring Diagram

Firewall VPN Router. Quick Installation Guide M73-APO09-380

3.1 Connecting to a Router and Basic Configuration

D-LINK DPH-140S SIP PHONE INSTALLATION GUIDE

HOWTO configure Xinu under Virtual Box

USER MANUAL GUIMGR Graphical User Interface Manager for FRM301/FRM401 Media Racks

SGI NAS. Quick Start Guide a

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM Version 1.32r 10/9/2012 USER MANUAL

OpenWRT - embedded Linux for wireless routers

In the following installation procedures, do not disconnect the Mediatrix 3000 Series while the LEDs are flashing.

Installing the Operating System or Hypervisor

Chapter 4 Management. Viewing the Activity Log

Pwn Plug Community Edition 1.1 Installation Guide

ML310 VxWorks QuickStart Tutorial. Note: Screen shots in this acrobat file appear best when Acrobat Magnification is set to 133.3%

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

Multi-Homing Dual WAN Firewall Router

Howto: Changing Password for an Ingate Firewall 1450/1500/1550/1600/1650/1900 or Ingate SIParator 45/50/55/60/65/90

Application & Quick-Start Guide

Voice Over Internet Protocol (VoIP) Configuration

Virtual Appliance for VMware Server. Getting Started Guide. Revision Warning and Disclaimer

Ultra Thin Client TC-401 TC-402. Users s Guide

Secure Proxy Server Installation Guide

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

Command Line Reference. for the FriendlyNET Dual 56K

Dominion KX II-101-V2

SUSE LINUX Enterprise Server for SGI Altix Systems

NETWORK SETUP GLOSSARY

Load Balancing for esafe Gateway 3.0 when using Alteon s AD2 or AD3

DRO-210i LOAD BALANCING ROUTER. Review Package Contents

Setup Manual and Programming Reference. RGA Ethernet Adapter. Stanford Research Systems. Revision 1.05 (11/2010)

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

GMS. 1 Create the virtual machine 2 Configure the virtual machine 3 Configure the virtual GMS server. Quick Start Guide. Microsoft Hyper-V Hypervisor

VoIPon Tel: +44 (0) Fax: +44 (0)

Liebert IntelliSlot Web Cards

Version 1.0 Revision MODBUS/TCP Ethernet Communication Interface API for the Intelligent Instrumentation WinCE Platform SETUP MANUAL

BIODEX. ATOMLAB 500/WIPE TEST COUNTER DATA MANAGER SOFTWARE Version 1.10 (and higher). OPERATION MANUAL

ARMSDK-VM Virtual Appliance A preconfigured Linux system

Quick Installation Guide. Overview. PLANET VIP-156/VIP-156PE/VIP-158 Quick Installation Guide

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

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

Vantage RADIUS 50. Quick Start Guide Version 1.0 3/2005

Cisco ISE Command-Line Interface

Client and Server System Requirements

Read Me First for the HP ProCurve Routing Switch 9304M and Routing Switch 9308M

Updating MNS-BB CUSTOMER SUPPORT INFORMATION PK012906

Cross-Platform and Embedded Systems Development

Unpacking the Product. Rack Installation. Then, use the screws provided with the equipment rack to mount the firewall in the rack.

Chapter 3 Management. Remote Management

SNMP Upgrade Procedure for NV Transmitters

RN-XV-RD2 Evaluation Board

System administration basics

Transcription:

Getting started with ARM-Linux www.embeddedarm.com (480)-837-5200 usa Connecting serial communications and power (JP2 must be installed to enable console) An ANSI terminal or a PC running a terminal emulator is required to communicate with your Embedded PC. The serial parameters are 115200 baud, 8 data, and no parity. If you are running Linux, the minicom program works well, Windows users can run the Hyperterm application. Connect the DB9 female connector labeled COM1 to a null modem cable. Connect the other end of the null modem cable to a serial port on the host. Technologic Systems offers a null modem cable with both 25 pin and 9 pin connectors at each end as part number CB7-05. Some systems also require the 10-pin header to 9-pin Sub-D adapter which is P/N: RC-DB9 Connect a regulated 5VDC, ( 1A minimum) power source using the included 2 screw terminal strip/connector. Please note the polarity printed on the board. The boot sequence has four distinct stages, TS-BootROM messages, RedBoot ROM monitor messages, Linux Kernel messages and login prompts. Messages, by default, are all displayed on COM1 at 115200 baud. Startup sequence Apply 5VDC power. The board mounted LED will blink, followed immediately by the display of TS-BootROM messages and RedBoot messages RedBoot, if not interrupted by the user within one second, loads the Linux kernel from flash and boots to the onboard flash chip. The file system loads, networking, logging, Apache web server, etc. are started. The login prompt is displayed, type root to login, with no password. A Bash login prompt will then appear. WARNING Ensure that JP5 is removed when booting from the default flash file-system. Special scripts look for it and run special test programs that will use up system resources. Page 1 of 26

Booting Upon power up, the board executes proprietary Technologic Systems boot-code, then immediately executes RedBoot. RedBoot is a feature rich boot-rom monitor, that allows manipulation of the onboard flash, JFFS2 images, loading and execution of a kernel or executable from either tftp (trivial ftp), serial console, or from flash, and offers gdb debugging stubs. By default, a pre-existing RedBoot script is executed, if not interrupted by the user within one second a Linux kernel is loaded into memory from flash, booting into the pre-existing JFFS2 file-system. One can view the RedBoot defaults for the board, as well as the default script, by entering at the RedBoot command prompt: fconfig -l The defaults can be changed by simply entering fconfig at the RedBoot prompt and answering the prompts. A final chance to write or discard the changes to the board will be given by RedBoot. The default script instructs RedBoot to load the Linux kernel from the flash, and instruct the Linux kernel to use the JFFS2 image on the flash chip for its root file-system. The Linux kernel must be loaded into memory address 0x00218000. Loading the kernel from flash is done automatically by RedBoot in the default script with the following command: fis load vlinux After loading the kernel, the default script then executes the kernel with the following command: exec -c "console=ttyam0,115200 root=/dev/mtdblock1 Loading and executing Kernels from RedBoot RedBoot can load a kernel or executable in one of three ways. It can load an executable from the serial console, a tftp server, or directly from flash. The default boot-script loads the kernel from flash into memory by executing fis load vmlinux -b 0x00218000 To load an image from a TFTP server, use the following command load b 0x00218000 h 192.168.0.1 vmlinux the h option specifies the IP address of your TFTP server To execute a Linux kernel from RedBoot, the following command is used exec c console=ttyam0,115200 root=/dev/mtdblock1 the c option passes the Linux kernel any specified kernel arguments. Page 2 of 6

TCP/IP configuration for JFFS2 file system in on-board flash The TCP/IP settings for eth0 are configured in the file /etc/sysconfig/ifcfg-eth0, here is a listing : DEVICE=eth0 IPADDR=192.168.0.50 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 BOOTPROTO=static ENABLE= yes # Name of ethernet interface # Internet Protocol address of this ethernet interface. # Used with NETWORK to determine which IP s are local. # Used with NETMASK to determine which IP s are local. # Broadcast IP for system wide messages. # Static IP (change static to DHCP ) # Load device on boot. The TCP/IP network settings are configured in the file /etc/sysconfig/network_cfg, here is a listing: NETWORKING=yes GATEWAY= 192.168.0.1 GW_DEV=eth0 HOSTNAME=ts7200 BOOTPROTO=no FORWARD_IPV4=no DEFRAG_IPV4=no # Enable networking on startup # Gateway for internet access. # Default gateway # Host name of this computer. The TCP/IP name resolution server is configured in the file /etc/resolv.conf, here is a listing: Nameserver 192.168.0.1 # Name server for domain name lookups. To access the web server, open a web browser and enter 192.168.0.50 as the address. (The development system on 256 MB Compact Flash is Debian 3, see www.debian.org for info.) Linux utilities /sbin/ifconfig /usr/bin/df /usr/bin/free Display information about ethernet settings. Display disk space usage. Display memory usage. Most of the Linux utilities you would expect are present on the file-system. In total there are over 120 utilities installed on the file system. Many of the basic utilities are implemented using Busybox, check Linux notes After the kernel is done booting the init process reads the file /etc/inittab. The inittab file will call / etc/rc.d/rcs.sysinit as part of the system initialization. The runlevel then defaults to 3, which will run the /etc/rcs script and call all the scripts linked in the /etc/rc3.d/ directory in numerical order. A halt or reboot command will change the runlevel to 0 or 6 execute the /etc/rc0.d scripts or etc/rc6.d scripts respectively. NOTE: Use the shutdown h now command to halt the Linux system when running from Compact Flash to avoid a potentially lengthy file system check on the next boot. The JFFS2 file system is highly tolerant of power cycles while the file system is mounted. The shutdown command is not required when the root file system is JFFS2, but is still recommended. Page 3 of 6

Booting to other media from RedBoot Compact Flash To boot the compact flash card, use the following after loading the kernel into memory: exec c console=ttyam1,115200 root=/dev/hda1 NFS root file system NFS uses the Ethernet connection to mount the root file system for the SBC as an exported directory on a Linux host PC. This bypasses the need to download any files from the host to the SBC, because any file needed on the SBC is just copied to the exported directory on the host system and is instantly available to the embedded PC. Mounting the root file system via NFS allows the developer to use the editors, compilers, etc. from the single board computer. After loading the Linux kernel, the following command executes the kernel and passes the appropriate arguments ( substitute the appropriate values for your server): exec c console=ttyam1,115200 ip=dhcp nfsroot=192.168.0.1/path/to/nfsroot Compact Flash Card The Development 256 MB Compact Flash card is pre-installed with Debian stable. Along with the basic core utilities, some developer tools have been installed, including a native arm gcc toolchain. Debian utilities, such as apt-get and dpkg, work as expected. For more information regarding Debian, please visit the Debian home-page at www.debian.org Cross Toolchains For cross platform development, the use of Dan Kegels crosstools is recommended (http://kegel. com/crosstool/). The pre-compiled tar files for Cygwin (Windows) or Linux is available on the developers CD as well as on our web-site (www.embeddedarm.com). Page 4 of 6

mounting NFS root file system For detailed information on how to setup an NFS server, please see http://nfs.sourceforge.net/nfs-howto/server.html To mount the root file system via NFS: ============================================================================ Prepare the exported root directory on the NFS server ============================================================================ 1. Download the pre-made Debian tarfile from either our website or from the Arm Linux Developers CD to your Linux host machine. The file is named tslinux6-8-24-2004.tar.bz2 2. Untar NFS root package to a directory on the host machine. tar -xvjf tslinux6-8-24-2004.tar.bz2 The directory is '/home/dev/nfsroot' in this example. 3. Export the directory by adding the following line to the file '/etc/exports' /home/dev/nfsroot/ 192.168.0.0/255.255.255.0(rw,no_root_squash,insecure) Note: The IP mask in the above example will only allow NFS connections from computers having an IP starting with 192.168.0. Substitute the appropriate parameters for your local network. See the link mentioned above for more information 4. Restart NFS so the directory is available for export. Typically, this would be: /etc/init.d/nfs-server restart Note: This may be different on your host machine. 5. Modify the /home/dev/nfsroot/fstab file on your host system for your local network settings. Add: "192.168.0.1:/home/dev/nfsroot/ / nfs exec,dev,suid 1 1" Comment out: "/dev/hda1 / ext2 defaults 1 1" 6. Modify /mike/nfs/etc/sysconfig/ifcfg-eth0 to disable DHCP set BOOTPROTO=none 7. Load the kernel from Redboot with the following command line options: fis load vmlinux exec c console=ttyam1,115200 ip=dhcp nfsroot=192.168.0.1:/home/dev/nfsroot/ Page 5 of 6

Sources of information and document history TS-Linux for ARM developers manual ============================== Read the entire manual for detailed information on drivers, file systems, example code, etc. http://www.embeddedarm.com/downloads/manuals/ts_arm_l.pdf FURTHER SOURCES OF INFORMATION ============================== In the kernel source tree: /Documentation/nfsroot.txt On the web: http://www.linuxdoc.org/howto/nfs-howto/index.html http://www.linuxdoc.org/howto/mini/nfs-root.html http://www.linuxdoc.org/howto/mini/nfs-root-client-mini-howto/index.html http://sources.redhat.com/ecos http://www.kernelnewbies.org http://www.arm.linux.org.uk Technologic Systems support pages: http://embeddedx86.com/linux/arm.htm Email: support@embeddedarm.com DOCUMENT HISTORY ================== 08.25.2004 LAY Created 11.10.2004 MTJ Added JP2 comment, minor touch up. Page 6 of 6