URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
27 |
unneback |
#
|
2 |
|
|
# A configuration for building a GDB stub ROM for the Motorola MBX board,
|
3 |
|
|
# with MPC 860 or 821 CPU.
|
4 |
|
|
#
|
5 |
|
|
# To build the ROMs:
|
6 |
|
|
# 1. Create a build directory and cd into it.
|
7 |
|
|
# 2. Run: permtest.tcl --srcdir= /hal/powerpc/mbx/current/misc/stubrom.perm
|
8 |
|
|
# Where is the path to your source repository.
|
9 |
|
|
# (If necessary, make sure the system clock speed is set correctly in
|
10 |
|
|
# pkgconf/hal_powerpc_mbx.h: 40MHz (MPC821) versus 50MHz (MPC860) by default)
|
11 |
|
|
# If you do not have permtest, use the config tool or an editor to make
|
12 |
|
|
# the changes listed below to the relevant configuration files.
|
13 |
|
|
# If you intend to install the image into the 32-bit flash device instead of
|
14 |
|
|
# the 8-bit socketed ROM, set the option CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH
|
15 |
|
|
# in hal_powerpc_mbx.h
|
16 |
|
|
# 3. Run: make
|
17 |
|
|
# 4. Run: make -C hal/common/current/src/stubrom
|
18 |
|
|
#
|
19 |
|
|
# The file hal/common/current/src/stubrom/stubrom will be an excutable of the ROM.
|
20 |
|
|
# Use objcopy to convert this to the appropriate format for your PROM burner:
|
21 |
|
|
# powerpc-eabi-objcopy -O binary hal/common/current/src/stubrom/stubrom stubrom.img
|
22 |
|
|
# Enjoy!
|
23 |
|
|
#
|
24 |
|
|
|
25 |
|
|
pkgconf --target=powerpc --platform=mbx --startup=rom --disable-kernel --disable-uitron --disable-libc --disable-libm --disable-io --disable-io_serial --disable-wallclock --disable-watchdog
|
26 |
|
|
|
27 |
|
|
header hal.h {
|
28 |
|
|
enable CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
29 |
|
|
disable CYGFUN_HAL_COMMON_KERNEL_SUPPORT
|
30 |
|
|
disable CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
|
31 |
|
|
disable CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
|
32 |
|
|
disable CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
|
33 |
|
|
enable CYG_HAL_ROM_MONITOR
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
# enable CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT excluded for now
|
37 |
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.