OpenCores
no use no use 1/1 no use no use
Try to build EAN1 application note in Eclipse
by mpanxiao on Oct 28, 2012
mpanxiao
Posts: 4
Joined: Jul 29, 2012
Last seen: Aug 12, 2014
Hi, everyone!


I am a fresh on the Openrisc applications. I have studied the application note from Embecosm (EAN 1, Building a Loosely Timed SoC Model with OSCI TLM 2.0: A Case Study Using an Open Source ISS and Linux 2.6 Kernel. Issue 2, May 2010). I'd like to expand the application with someother functions. However, I am not good at Makefile. I am used to Eclipse.

I tried to build the first application in the EAN1 (Logger) with the following configurations:
1. Defined symbols(-D): SC_INCLUDE_DYNAMIC_PROCESSES
2. include paths:
~/tools/systemc-2.2.0/include
~/tools/TLM-2009-07-15/include/tlm
~/tools/OpenRisc/or1ksim-0.4.0/include
3. library search path:
~/tools/systemc-2.2.0/lib-linux
~/tools/OpenRisc/or1ksim-0.4.0/lib
4. Libraries(-L):
sim
systemc


I import the following files in the directory /sysc-models/logger/ into the project
loggerMainSC.cpp
LoggerSC.cpp
LoggerSC.h
Or1ksimSC.cpp
Or1ksimSC.h


The C++ project can be build successfully in the Eclipse, however when I try to run it does not work. Always showing blew:
>> SystemC 2.2.0 --- Aug 19 2012 20:37:00
>> Copyright (c) 1996-2006 by all Contributors
>> ALL RIGHTS RESERVED
>> Seeding random generator with value 0x70937cfc
>> Segmentation fault (core dumped)


The "Logger" program works when built in the EAN1. And I use the same .cfg and the "logger-test" files for the "Logger" in the EAN1 and in the Eclipse. Moreover, I use or1ksim.0.4.0, the pass parameter are the same with EAN1.

Please tell me if anyone has some clue to this?

With many thanks
Xiao
RE: Try to build EAN1 application note in Eclipse
by jeremybennett on Oct 29, 2012
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi Xiao

EAN1 is now very out of date. It describes how to build a very old version of the tool chain.

You should follow the instructions on the OpenRISC Wiki:

HTH

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: Try to build EAN1 application note in Eclipse
by rdaddio on Oct 30, 2012
rdaddio
Posts: 18
Joined: Dec 24, 2005
Last seen: Jul 15, 2021
I just did some recent toolchain builds following the below on debian sid/wheezy and things worked great. Make sure you get all the updates for your distro.


http://opencores.org/or1k/OpenRISC_GNU_tool_chain

RE: Try to build EAN1 application note in Eclipse
by mpanxiao on Nov 6, 2012
mpanxiao
Posts: 4
Joined: Jul 29, 2012
Last seen: Aug 12, 2014
Thanks a lot !
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.