Skip to content

1. Get started

Howard Chen edited this page Sep 8, 2016 · 20 revisions

Say Hello

  • Get a Ubuntu or Debian host
  • Install package
$>sudo apt-get install \
git \
make \
cmake \
ddd \
minicom \
lrzsz \
librbd-dev \
libxen-dev \
libseccomp-dev \
libusbredirparser-dev \
libfdt-dev \
python-pip
# you may also needs following packages, e.g. on ubuntu 14.
$>sudo apt-get install libspice-server-dev libsdl1.2debian
  • Install emulation suit HERE and set the PATH as follow:
$>source /opt/socware/prefix-gcc/bin/gcc-env.sh
$>which qemu-system-arm
/opt/socware/prefix-gcc/bin/qemu-system-arm
$>which arm-none-eabi-gcc
/opt/socware/prefix-gcc/bin/arm-none-eabi-gcc
  • Clone the project
$>git clone https://github.com/ibanezchen/hyperCOS-evaluate.git hyperCOS
$>cd hyperCOS
  • select a configuration
$>source bin/cfg-lib.sh
$>cfg # press tab
cfg_clang  cfg_gcc    cfg_v5t    cfg_v5tT   cfg_v7aT   cfg_v7mTF
$>cfg_v7aT # cortexA thumb2

* Say hello

$>make && make hello
Hello      0   0 100     0      1
Hello      0   0 50     1      2
Hello    198   1 50     1    201
Hello    399   1 100     1    401
Hello    398   2 50     1    401

Debug on emulation suite

$>cd hyperCOS/src-hello
$>make && make sim-dbg F=main.elf
# open another terminal 
$>cd hyperCOS/src-hello
$>make ddd F=main.elf
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.