How to porting ECOS in to Aki-H8 Board  !!!
Written by :  Ataya P
Date : 15 September 2007

Introduction
    Dear everyone. A long time never see you. I came back with new article about porting ECOS (Redboot) into Aki-H8 Ethernet board that I just bought  from Akihabara last week.I tried to push ECOS in to this for 3 days and now it was success. The next phase, I hope to porting Linux kernel into it too.Please waiting for that.(*_*)/"   

Before cooking
     Ok.First of all. We need some ingredients  for making this project work. Here is a list
 - Hardware
    PC : my  PC is desknote VIA cpu 500 MHz RAM 256MByte
              Window 2000 --little bit slow.
    Board :  Aki-H8/3069 Ethernet board (with/ without base board)
               RS-232C cable for connect PC and board.
- Software
    Cygwin : with gcc and other necessary program installed.
     binutils-2.13.2 : Binary utilities for cross-compile
     h8300-elf-tools.cygwin.tar.tar : This is ready  compiled cross compiler (h8300-elf) you can download this packet from http://strawberry-linux.com or  if you want to compile all package by yourself.Just download gcc from GNU website.
     ECOS and ECOS-H8 package : Just download from http://strawberry-linux.com 
         

Making time
   
First of all, We need to extract  h8300-elf-tools.cygwin.tar.tar  package and move it to home directory of your Cygwin.Then just set the PATH global variable to point at your cross compiler directory by using this command...
   
     export PATH=$HOME/h8_elf/bin:$PATH

      O.K at this phase. I try to compile ecos but the result was h8-elf-ld linker command can't fine necessary library.So,I have to build Binary utilities again.
       By extract  
binutils-2.13.2 package and then patching it .After that just make a cross compiler with ...
   
         ./configure --target=h8300-elf --prefix=$HOME/h8_elf
         make ; make install

       Just wait for a while. Then we ready to compile ECOS for H8.
First, download latest ECOS and place it in build directory.Next replace files with ECOS-H8 package.This will give you more option to compile ECOS with H8 board.
          After that just call  ECOS configuration tool from tool directory. With this GUI just seleft package of Aki-H8/3068 Ethernet board and Redboot package option.
           Then save a project and start to build a library. If  everything is right . You will got  redboot.bin in you project install directory.
now convert it to motorola hex file format with ...

             h8300-elf-objcopy -I binary redboot.bin -O symbolsrec redboot.mot

            Now we ready to rumble. Just burning this file in to the board  with  h8write program that coming when you buy it.
(set your jumper and connect via RS-232 cable  first)

             h8write -3069 -f20 redboot.mot
         
          OK. now connect the board with PC . Set jumper to running flash rom.Open you ternimal and set it to ....

Port :COM1
Baud Rate:38400
Data :8 bit
Parity :none
Stop :1 bit
Flow control :hardware

          Just reset the board and then you will see greeting message from Reboot. Now please  enjoy your H8 ECOS  !!!


      
Easy right ?



   
Aki-H8 Ethernet board
Pic 1 :  Aki-H8 Ethernet board
ECOS compile
Pic 2 :  ECOS configuration tool
write flash step
Pic 3 : Write reboot.mot in to flash memory
First greeting for Redboot
Pic 4 :   Redboot greeting message
File and Source code :
>>REDBOOT.ZIP<< : already compiled ECOS Redboot  file for Aki-H8/3069 Ethernet board
*** due to software license . the others file you should download from the original website  by yourself.
Useful links :

H8-ECOS project
http://strawberry-linux.com/  for ECOS build tools
http://ecos.sourceware.org/ for ECOS source and document

Others
This page is  Made with Nvu
All pictures are Graphics by GIMP
>> Back to home page <<

© All stuffs that appear in this website are reserved for Lemongrass-studio (Ataya P)Since 2004 AD .