Giter Club home page Giter Club logo

trokko's Introduction

trokko

Embedded operating system based on KOZOS & uITRON

Target board

  • H8/3069F

Requirement

For serial communication

  • cu or screen

For file-transmission on XMODEM protocol

  • lrzsz

Setup build-tools

Directory tree is following:

trokko
├── build # for building tools
├── etc   # utils
├── src   # source code of OS & bootstrap
└── tools # tools
$ git clone https://github.com/akimacho/hiyoko.git
$ cd trokko
$ mkdir build tools

export PATH

export PATH=to/your/tools/bin:$PATH

in build directory

$ curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.19.1.tar.bz2
$ tar jxvf binutils-2.19.1.tar.bz2
$ curl -O http://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.gz
$ tar xvzf gcc-3.4.6.tar.gz

Install binutils

in build/binutils-2.19.1 directory

$ ./configure \ 
        --target=h8300-elf \ 
        --disable-nls \ 
        --disable-werror \
        --prefix=to/your/tools
$ make
$ make install

Install gcc

in build/gcc-3.4.6

$ ./configure \
        --target=h8300-elf \
        --disable-nls \ 
        --disable-threads \ 
        --disable-shared \ 
        --disable-werror \ 
        --enable-languages=c \ 
        --prefix=to/your/tools

in build/gcc-3.4.6/gcc/config/h8300 directory

$ curl -O https://raw.githubusercontent.com/akimacho/trokko/master/etc/gcc_for_64bit.patch
$ patch < gcc_for_64bit.patch
Hunk #1 succeeded at 52 (offset -31 lines).
Hunk #2 succeeded at 368 with fuzz 2 (offset -142 lines).
Hunk #3 succeeded at 397 with fuzz 1 (offset -149 lines). 

in build/gcc-3.4.6

$ make
$ make install

Install kz_h8write

in build

$ git clone http://scm.osdn.jp/gitroot/kz-h8write/kz_h8write.git
$ cd kz_h8write/src
$ make
$ cp kz_h8write to/your/tools

Thas's all!

Author

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.