OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc
    from Rev 497 to Rev 498
    Reverse comparison

Rev 497 → Rev 498

/trunk/or_debug_proxy/ChangeLog
1,4 → 1,10
2011-03-07 Julius Baxter, ORSoC AB <julius@orsoc.se>
* Makefile:(STATIC_LDFLAGS): Added -lrt as required by new libftd2xx.
Updated example of downloading static library.
* README: Updated to contain information about latest FTDI libftd2xx
drivers.
 
2011-03-07 Julius Baxter, ORSoC AB <julius@orsoc.se>
* src/or_debug_proxy.c: Ran indent on code to neaten.
Added -k option to enable kernel debugging option which remaps 0xc0
high address to 0x00.
/trunk/or_debug_proxy/Makefile
34,20 → 34,7
# USA.
#
 
#$$CHANGE HISTORY#
#****************************************************************************#
# #
# C H A N G E H I S T O R Y #
# #
#****************************************************************************#
 
# Date Version Description
#------------------------------------------------------------------------
# 090301 0.1.0 Makefile for OpenRISC debug proxy. jb
# 2 Apr 09 0.1.1 Jeremy Bennett. Added static target
# 1 May 09 0.1.3 Added specific make target for VPI jb
# 090828 0.1.4 Added ftdi_sio driver reload rule jb
 
#DBGCPPFLAGS=-DDEBUG_GDB=1
#DBGCPPFLAGS=-DDEBUG_USB_DRVR_FUNCS=1
#DBGCPPFLAGS=-DDEBUG_USB_DRVR_FUNCS=1 -DDEBUG_GDB=1 -DDEBUG_CMDS=1
59,12 → 46,11
 
# Flags for static library
STATIC_LIBDIR = lib
STATIC_LIB = libftd2xx.a.0.4.16
STATIC_LIB = libftd2xx.a
STATIC_LDFLAGS = $(COMMON_LDFLAGS) $(STATIC_LIBDIR)/$(STATIC_LIB) \
-lpthread -ldl
-lrt -lpthread -ldl
# Defines to enable certain endpoint handling functions to be used
USB_FLAGS = -D USB_ENDPOINT_ENABLED=1
VPI_FLAGS = -D VPI_ENDPOINT_ENABLED=1
 
#Determine whether we're on Cygwin
ifndef OSTYPE
95,7 → 81,6
src/FT2232cMpsseJtag.cpp \
src/usb_functions.c \
src/linux_usb_driver_calls.c
OR_DEBUG_PROXY_VPI_SRC = src/vpi_functions.c
CXX = g++
CPPFLAGS = $(COMMON_CPPFLAGS) $(DBGCPPFLAGS)
CXXFLAGS = $(COMMON_CXXFLAGS)
106,7 → 91,6
APP = or_debug_proxy
APP_DYNAMIC = $(APP)$(EXE)
APP_STATIC = $(APP)_static$(EXE)
APP_VPI = $(APP)_vpi$(EXE)
 
# -----------------------------------------------------------------------------
# Build dynamic and static targets from scratch
115,8 → 99,6
 
static: clean $(APP_STATIC)
 
vpi: clean $(APP_VPI)
 
# Dynamic target
$(APP_DYNAMIC): $(OR_DEBUG_PROXY_SRC) $(OR_DEBUG_PROXY_USB_SRC)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(USB_FLAGS) $+ $(DYNAMIC_LDFLAGS) -o $@
126,10 → 108,6
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(USB_FLAGS) $+ $(STATIC_LDFLAGS) -o $@
cp $(APP_STATIC) $(APP)
 
# VPI target only
$(APP_VPI): $(OR_DEBUG_PROXY_SRC) $(OR_DEBUG_PROXY_VPI_SRC)
$(CXX) $(CPPFLAGS) $(VPI_FLAGS) $(CXXFLAGS) $+ -o $@
 
# -----------------------------------------------------------------------------
# Target for checking the static lib is in the place it should be
$(STATIC_LIBDIR)/$(STATIC_LIB):
136,10 → 114,10
@echo
@echo "The static library, $(STATIC_LIB), is missing."
@echo "Please download the driver to build a statically linked version"
@echo "of this app. For Linux, try:"
@echo "\twget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16.tar.gz"
@echo "\ttar xzf libftd2xx0.4.16.tar.gz"
@echo "\tcp libftd2xx0.4.16/static_lib/libftd2xx.a.0.4.16 lib"
@echo "of this app. For 32-bit Linux, try:"; echo
@echo "\twget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx1.0.4.tar.gz"
@echo "\ttar xzf libftd2xx1.0.4.tar.gz"
@echo "\tcp libftd2xx1.0.4/build/i386/libftd2xx.a lib"
@echo
@exit 1
# -----------------------------------------------------------------------------
147,7 → 125,6
clean:
$(RM) $(APP_DYNAMIC)
$(RM) $(APP_STATIC)
$(RM) $(APP_VPI)
find ./ -name "*~" | xargs $(RM)
 
ifneq ($(OSTYPE),cygwin)
/trunk/or_debug_proxy/README
6,7 → 6,7
-- Description --
===============================================================================
A console application implementing a GDB stub and and communication with an
OpenRISC processor system via a USB debug cable.
OpenRISC processor system via the OpenCores USB debug cable.
===============================================================================
-- Versions --
===============================================================================
17,6 → 17,7
0.1.4 090828 jb@orsoc.se
0.1.5 090903 jb@orsoc.se
0.1.6 110307 jb@orsoc.se
0.1.7 110308 jb@orsoc.se
===============================================================================
-- Installation --
===============================================================================
99,9 → 100,7
 
The Linux driver can be obtained from FTDI Chip's website,
http://www.ftdichip.com, and is found under the links to "Drivers" and then
"D2XX". At the time of writing, the latest version was libftd2xx 0.4.16 and
could be downloaded directly off their site from
http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16.tar.gz
"D2XX".
 
Statically linked driver:
 
121,7 → 120,7
 
Dynamically linked driver install directions:
 
Uncompress the driver package (tar xzvf libftd2xx0.4.16.tar.gz) and read the
Uncompress the driver package (tar xzvf libftd2xxX.Y.Z.tar.gz) and read the
file "readme.dat" located inside, but don't complete their way of installing
yet. Their installation method should be modified slightly to allow easier use
of the USB device by users. Read the following before performing the install

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.