czwartek, 27 października 2011

uClinux, embedded system for microcontrollers emulated in Skyeye

Introduction
#########

uClinux is an open source embedded operating system based on 2.6 linux

kernel. uClinux has support for many architectures, and forms the basis

of many products, like network routers, security cameras, DVD or MP3

players, VoIP phone or Gateways, scanners, and card readers.

Today I would like to show how to emulate uClinux in open source

emulator for embedded systems called Skyeye.


Skyeye installation
##############

1. First we need to create a folder arbitrarily named (in this example

it will be project) in a home directory and change our actual location

to it.

  mkdir project

  cd project

2. In second step we need to dwonload the package of Skyeye from it's

official website www.skyeye.org or other source. You can download it

directly to your project directory or if your download directory is

specified somewhere else you will need to move the Skyeye package to

project directory.

  mv ~/Download/skyeye-1.2.6_rcl.tar.bz2

3. Third step, unpacking.

  tar jxvf skyeye-1.2.6_rcl.tar.bz2

4. Fourth step, compilation of Skyeye.

  cd skyeye-1.2.6_rcl

  ./configure

  make

5. Modification .bashrc file to allow running Skyeye from any directory

in base operating system.

  nano .bashrc

  PATH=$PATH:$HOME/project/skyeye-1.2.6_rcl

  export PATH

  source ~/.bashrc


uClinux compilation
################

1. First we need to dwonload the latest uClinux distribution package

from uClinux official website www.uclinux.org. Remember, dwonload it

to project directory or move it from your dwonload directory just like with

Skyeye.

  cd project

  mv ~/Download/uClinux-dist

2. Second step, unpacking.

  tar zxvf uClinux-dist

3. Third step, distribution configuration for used processor. This step

show how to customize uClinux depending of used processor.
 First change

your location to unpacked distribution directory.

  cd uClinux-dist

then use the following command to run configuration menu of uClinux

  make menuconifg

Now you can customize your uClinux depending to your microcontroller

system. After that start compilation typing

  make

It is possible that you will need to install genromfs.

4. After succesfull compilation you should find two files in images

directory

  boot.rom and linux

5. Finally you will need skyeye configuration file which can be

downloaded from www.skyeye.org (probably it will required modification

of this file depending of your system).


running uClinux in skyeye
###################

1. Change location to images directory

  cd ~/project/uClinux-dist/images

2. Run uCLinux

  skyeye -C ~/myskyeye.conf -e linux

Brak komentarzy:

Prześlij komentarz