Installation guide for Arcturus Networks Inc.'s uclinux release

Similar documents
Getting Started U-boot

CPU6901. PCI-104 ARM9 CPU Card. Software Manual (V1.0) 健昇科技股份有限公司 JS AUTOMATION CORP.

400AP Application Note Uploading Firmware Images to 400AP NAND Flash Models

OMAP3530 has 256MB NAND flash in PoP (PoP: Package-On-Package implementation for Memory Stacking) configuration.

U-boot quick start guide

Linux. For BCT RE2G2. User Guide. Document Reference: BCTRE2G2 Linux User Guide. Document Issue: Associated SDK release: 1.

ucdimm ColdFire 5282 Hardware / Firmware Reference Guide

µtasker Boot-loader support

SCM EVK (SCM120

W90N745 BSP Quick Start Guide

MCAM335x Linux User's Guide

The blob bootloader. The blob bootloader. Thomas Petazzoni Free Electrons

Q7M EVK (Q7M120

MBL Users Manual For EV44B0-II Board

LTIB for i.mx28, a step-by-step guide

Lab2 - Bootloader. Conventions. Department of Computer Science and Information Engineering National Taiwan University

Pengwyn Documentation

Upgrade 6081RC Firmware

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Glomation. Embedded Single Board Computer GESBC-3130S User s Manual

D-TACQ 2G Programmer's Guide

Getting Started with FreeRTOS BSP for i.mx 7Dual

Building Linux for the Innovator Development Kit for OMAP Platform

Pronto PicOS 1.4 Installation Reference Guide

3.3 WinCE System Installation

SAMA5D3x-CM Instruction to program images with PEEDI

ARMtwister Users Manual

Porting uclinux to MIPS

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

phycore -XScale/PXA270 Development Kit (KPCM-027) Loading a Linux Image (demo.img)

Familiar Linux for the ipaq H3975 (XScale Processor) CSC 714 Real Time Computing Systems Term Project

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

Idea6410 Ubuntu User Manual V 0.19

Oxalis Getting Started

MV 4412 Android 4.0 Compilation

Project 3: An Introduction to File Systems. COP4610 Florida State University

Cross-compilation with Buildroot

SparkGate7 Quick startup guide

Use U-Boot. U-Boot Main Commands. U-Boot script capability

Notes on uclinux for Spartan 3E 1500 Development Kit. using EDK 9.1 and PetaLinux

Application Note: Demo programs for PremierWave EN and PremierWave XN

Working with the Cisco IOS File System, Configuration Files, and Software Images

GM8126 U-BOOT. User Guide Rev.: 0.2 Issue Date: May 2011

Zephyr Kernel Installation & Setup Manual

U-Boot and Linux Kernel Debug using CCSv5

Developing Environment for Intel Mainstone Board

ITEC451 Network Design & Analysis Laboratory Guide: Appendix

MIZI Linux SDK for S3C2410

Installation Guide for MV6410 (Linux 2.6)

PICO-i.MX6UL Development Platform for Android Things Quick Start Guide


**Note that this must be run from a PC on the same network segment as the NetBotz device, and the NetBotz device MUST be connected to the network.

Introduction to Pintos

How many of you have never built a NetBSD kernel?

Guidelines for sett ing up the Tribbox

UPGRADING THE ARCTIC FIRMWARE

TS-7350 Single Board Computer Documentation

VortiQa Enterprise Quick Start Guide

DNP/2110 Linux Starter Kit: First Steps

Release Notes for QNX Neutrino BSP for Renesas SH7780 EDOSK 1.0.0#

AFD4400 Reference Design Board Quick Start

i.mx31 3-Stack Platform Linux SDK Standard Release Package User s Guide

In this video, I will be covering DM385 IPNC RDK out of box demo-- Here, I'll be showing flashing the uboot using prebuilt binaries available in RDK--

Embedded lightweight unix

MV V310 Android 4.0 Compilation

Adding hardware support to Buildroot

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

UPGRADING ARCTIC CONTROL S FIRMWARE

Filesystem Hierarchy and Permissions

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console

Filesystem Hierarchy Operating systems I800 Edmund Laugasson

First Steps. esom/sk4 esom/3517 Embedded Linux Starter Kit

DSH-G300 Smart Hub. Manual

9.5.1 Compiling and Installing

Matrix 500 Quick Installation Guide

Accessing and Using GRUB Mode

Overview for Axxia 5600 and Axxia 6700

REVISION HISTORY...3 USING DEVELOPMENT KIT ADVANTAGES...4 BLOCK DIAGRAM...5 KEY FEATURES...6

Release Note MPI/XMP-Linux Support Package

ADS U-boot User's Manual. Applied Data Systems Old Columbia Road Columbia MD, USA

Linux Files and the File System

Week 10 Project 3: An Introduction to File Systems. Classes COP4610 / CGS5765 Florida State University

GLOMATION. Embedded Single Board Computer GESBC-9G10 User s Manual

Server Consolidation with Xen Farming

1. Conventions in this tutorial Introduction Check and change configuration settings as needed Start Digi ESP...

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

CST8207: GNU/Linux Operating Systems I Lab Ten Boot Process and GRUB. Boot Process and GRUB

Configuring Ubuntu to Code for the OmniFlash or OmniEP

µtasker Document µtasker Bare-Minimum Boot Loader

WES 237A Project Part 1 Guide

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

GBA Dev In Linux - GCC for GBA for Linux

LxNETES. User's Manual. D Breisach, Germany D Breisach, Germany Fax +49 (7667)

Getting Started with Linux

Software installation is not always a trivial task

PCMCIA Filesystem Compatibility Matrix and Filesystem Information

PNP/5280 µclinux Starter Kit: First Steps

RG-MACC_2.0 Installation Manual

Transcription:

Installation guide for Arcturus Networks Inc.'s uclinux release 1 Mount the ISO image or the CD to /mnt mount -o loop uclinux-dist-2008-feb-05-r0-release.iso /mnt 2 Install tool chains Go to the /mnt directory and run make. This will install all tool chains and uclinux dist source in /opt/. The following tool chains are installed. m68k uclinux in /opt/m68k uclinux, arm elf in /opt/uclinux and m68k elf in /opt/uclinux m68k elf. If m68k uclinux is not installed you can install it as mentioned in [1] or [2] below. [1] Install m68k uclinux tool chain from source Assume you have mounted your CD or ISO image in /mnt. You can find the source at /mnt/toolchains/src/freescale-coldfire-4.2-47-m68kuclinux.src.tar.bz2. Create a directory for building the tool chain, for example, mkdir ~/toolchain/. Then go to ~/toolchain/ and run tar xjf /mnt/toolchains/src/freescale-coldfire-4.2-47- m68k-uclinux.src.tar.bz2. You will have a freescale-coldfire-4.2-47-m68k-uclinux directory created. Then run freescale-coldfire-4.2-47-m68k-uclinux/build.sh. You'd better save the output from the build to a file so later you can look at any error it may occur. The building may fail due to missing packages on the host machine. The final binary tool chain is located at build/cf-uclinux-freescale/pkg/freescalecoldfire-4.2-47-m68k-uclinux-i686-pc-linux-gnu.tar.bz2. Follow [2] to install this tool chain. [2] Install prebuilt m68k uclinux tool chain You can find the prebuilt tool chain at /mnt/toolchains/freescale-coldfire-4.2-47- m68k-uclinux-i686-pc-linux-gnu.tar.bz2 or build/cf-uclinux-freescale/pkg/freescale-coldfire-4.2-47- m68k-uclinux-i686-pc-linux-gnu.tar.bz2 from [1]. You need to be a root user to install the tool chain. Here are the few steps you need to do. mkdir -p /opt/m68k-uclinux cd /opt/m68k-uclinux tar xjf /mnt/toolchains/freescale-coldfire-4.2-47-m68k-uclinux-i686-pc-linux-gnu.tar.bz2 3 Build an image for uc532x Add tool chain in the PATH export PATH=/opt/m68k-uclinux/bin:$PATH From top level of uclinux-dist-ani0806(make a copy from /opt), run "make Arcturus/uC532x_default". This will build an image when it finishes. You can find the final images in uclinux-dist-ani0806/images. You may get errors during the compilation so saving the output to a file is helpful. make Arcturus/uC532x_default &> dump.file And then search in the file(dump.file) for any errors. Here is an example of the error:

gcc -I/usr/include -I. -Dprintk=printf -DKERN_NOTICE= -DKERN_WARNING= -c -o build/compr_zlib.o compr_zlib.c compr_zlib.c:38:18: error: zlib.h: No such file or directory You need to install zlib header files in /usr/include to resolve this error. Another example: make[4]: flthdr: Command not found make[4]: [sh] Error 127 (ignored) You need to make a symbolic link for flthdr cd /opt/ m68k-uclinux/bin ; ln -sf m68k-uclinux-flthdr flthdr 4 Boot an image on uc53281 EVM module Connect to the module using "minicom /dev/ttys0" or whatever port you are using(ex. ttyusb0) and set the speed to 115200,8N1(no flow control, 8 bits, no parity bit, 1 stop bit). You should see "B$", otherwise press Esc while it boots(autoboot is enabled). There are two ways to upload an image: using rx or tftp. using rx Run "rx" in bootloader. Then press crtl + a + s and select xmodem. Choose the file (image.cramfs) to upload. You need to do this fast before it timeouts otherwise you will have to start it over again. using tftp Setup TFTP connection between the module and the host. By default the IP address for the bootloader TFTP server is 192.168.0.1. But you can change it using "setenv" command. B$ setenv IPADDR0 192.168.1.199 Suppose you want to program the image in partition 3. Let's take a look at the partition table. Command "part" will show the partition table. It should look like this: B$ part Partition BOOT on dev S29GL128N start: 0x00000000 end: 0x0001ffff RO Partition ENV on dev S29GL128N start: 0x00020000 end: 0x0003ffff RO Partition 0 on dev S29GL128N start: 0x00040000 end: 0x001bffff RW Partition * 1 on dev S29GL128N start: 0x001c0000 end: 0x005bffff RW Partition 2 on dev S29GL128N start: 0x005c0000 end: 0x005fffff RW Partition 3 on dev S29GL128N start: 0x00600000 end: 0x00ffffff RW If yours is different, you need setup a partition that is large enough so that it can hold image.cramfs and also should be on sector boundary. Partition is defined as environment variables with prefix _ followed by a number starting from 0. B$ printenv FACTORY=Arcturus Networks Inc. REVISION=M53281-EVM Rev 1.0 16MB Flash SERIAL=X474706DA-01D6F CONSOLE=ttyS0 HWADDR0=00:06:3B:00:AD:6F FW_VERSION=010908005

_0=40000:180000:RW _1=1c0000:400000:RW _2=5c0000:40000:RW _3=600000:a00000:RW CONSOLE_SPEED=115200 Suggest to set partitions this way: B$ setenv _0 40000 B$ setenv _1 1c0000 B$ setenv _2 5c0000 B$ setenv _3 600000 Where the second parameter given to setenv command is the starting address of that partition. The size of each partition will be calculated by part command for you. When running printenv before running part you will see the environment variables for _0, _1, _2 and _3: _0=40000 _1=1c0000 _2=5c0000 _3=600000 Then run part. It will recreate partitions and rewrite the environment variables automatically. Then run "tftp" B$ tftp uctftp Console 1.0 is running... From host run "tftp 192.168.1.199" or tftp 192.168.0.1 if you did not change the default IP address. Run it in binary mode and send the file image.cramfs to the module as below: $ tftp 192.168.1.199 tftp> bin tftp> put image.cramfs When uploading finishes, you will see "done" from the minicom output. You can break it by pressing "Esc" key. Now you will see "B$" again. Then do the following: (NOTE: you will lose the image in partition 3) B$ program 3: This will program the image into Flash at partition 3. Now change environment variable so the image just programmed can boot. B$ setenv KERNEL 3:linux.bin B$ setenv KERNEL_ARGS root=/dev/mtdblock3 This will change the old value 0:kernel.bin for KERNEL to new value 3:linux.bin which means to load the file linux.bin in partition 3. BTW, "0:kernel.bin" means file kernel.bin in partition 0. It is the time to boot the image. Just type "go" from "B$". B$ go To use uc52381 EVM default images change KERNEL back to "0:kernel.bin" and change

KERNEL_ARGS to "root=/dev/mtdblock1" B$ setenv KERNEL 0:kernel.bin B$ setenv KERNEL_ARGS root=/dev/mtdblock1 5 Build an image for uc53281 EVM If you have not added tool chain in the PATH do as follows: export PATH=/opt/m68k-uclinux/bin:$PATH From top level of uclinux-dist-ani0806, run "make Arcturus/uC53281-EVM_default". This will build an image when it finishes. You can find the final images in uclinux-dist- ANI0806/images. The successfully build should have following images: part0 000000.bin partition 0 cramfs image part1 000000.bin partition 1 cramfs image part2 000000.bin partition 2 cramfs image pmd50 000000.bin part0 000000.bin with a special header (ucheader) pmd51 000000.bin part1 000000.bin with ucheader pmd52 000000.bin part2 000000.bin with ucheader Where ucheader is a 256 bytes data which has a md5 check sum and is used by our WEB server's upload mechanism to validate the image before burning it into Flash. See user/boottools/ucbootstrap-tools/ucheader.h for details. You can use any methods in step 4 above to program part0 000000.bin, part1 000000.bin and part2 000000.bin. But you have to use WEB interface to program pmd50 000000.bin, pmd51 000000.bin and pmd52 000000.bin. Here is an example: A. On uc53281 EVM, at bootloader prompt "B$", type "tftp" and then hit "Enter" B$ tftp uctftp Console 1.0 is running... B. On your host run "tftp 192.168.0.1" then hit "Enter" (upload part0 000000.bin, part1 000000.bin and part2 000000.bin ) $ tftp 192.168.0.1 tftp> bin tftp> put part0-000000.bin (when no error occurs that means you successfully upload the image part0 000000.bin) C. On uc53281 EVM you will notice:... done D. On uc53281 EVM hit "Esc" to break the tftp mode. "B$" sign is back. Then run "program 0:" B$ program 0: erase... done write... done B$

E. repeat A D for part1 000000.bin and part2 000000.bin. Note that for part1 000000.bin you need to run "program 1:" on uc53281 EVM and for part2 000000.bin you need to run "program 2:". F. When all 3 images are programmed then type "go" from the bootloader prompt "B$". You may notice that it automatically updates the bootloader then reboot. Now you will have a working system.