Configuration and u-boot load for MIDAM SHARK MPC5200 based board.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 9 Dec 2009 07:59:10 +0000 (08:59 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 9 Dec 2009 07:59:10 +0000 (08:59 +0100)
The board design is based on Freescale 5200 Lite and RTEMS
IceCube supports this configuration.

RTEMS IceCube BSP related pages.

  http://www.rtems.org/wiki/index.php/Gen5200

MIDAM SHARK board related information at RTIME
server of Czech Technical University.

  http://rtime.felk.cvut.cz/hw/index.php/MIDAM_MPC5200_DB1

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-mkimg [new file with mode: 0755]
rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-sys.cfg [new file with mode: 0755]
rtems-build/powerpc-rtems/rtems-icecube/rtems-u-boot-midam [new file with mode: 0644]

diff --git a/rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-mkimg b/rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-mkimg
new file mode 100755 (executable)
index 0000000..213b18e
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+OBJCOPY_FOR_TARGET=powerpc-rtems4.9-objcopy
+OBJCOPY="$OBJCOPY_FOR_TARGET"
+
+EXE_NAME=$1
+
+START_ADDR=0x00010000
+
+${OBJCOPY} -R -S -O binary "$EXE_NAME" "$EXE_NAME.bin" || exit 1
+cat "$EXE_NAME.bin" | gzip -9 >"$EXE_NAME.gz"
+mkimage \
+  -A ppc -O rtems -T kernel -a $START_ADDR -e $START_ADDR -n "RTEMS" \
+  -d "$EXE_NAME.gz" "$EXE_NAME.img"
diff --git a/rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-sys.cfg b/rtems-build/powerpc-rtems/rtems-icecube/rtems-mpc5200-sys.cfg
new file mode 100755 (executable)
index 0000000..cc87260
--- /dev/null
@@ -0,0 +1,120 @@
+../../../rtems/configure --target=powerpc-rtems4.9 --prefix=/opt/rtems4.9 \
+  --enable-rtems-inlines --disable-multiprocessing --enable-cxx \
+  --enable-rdbg --enable-maintainer-mode --disable-tests \
+  --enable-networking --enable-posix --enable-itron --disable-ada \
+  --disable-expada --disable-multilib --disable-docs --verbose \
+  --enable-rtemsbsp="icecube"
+
+# `configure' configures rtems 4.6.99.1 to adapt to many kinds of systems.
+# 
+# Usage: ../rtems/configure [OPTION]... [VAR=VALUE]...
+# 
+# To assign environment variables (e.g., CC, CFLAGS...), specify them as
+# VAR=VALUE.  See below for descriptions of some of the useful variables.
+# 
+# Defaults for the options are specified in brackets.
+# 
+# Configuration:
+#   -h, --help              display this help and exit
+#       --help=short        display options specific to this package
+#       --help=recursive    display the short help of all the included packages
+#   -V, --version           display version information and exit
+#   -q, --quiet, --silent   do not print `checking...' messages
+#       --cache-file=FILE   cache test results in FILE [disabled]
+#   -C, --config-cache      alias for `--cache-file=config.cache'
+#   -n, --no-create         do not create output files
+#       --srcdir=DIR        find the sources in DIR [configure dir or `..']
+# 
+# Installation directories:
+#   --prefix=PREFIX         install architecture-independent files in PREFIX
+#                        [/opt/rtems-4.7]
+#   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+#                        [PREFIX]
+# 
+# By default, `make install' will install all the files in
+# `/opt/rtems-4.7/bin', `/opt/rtems-4.7/lib' etc.  You can specify
+# an installation prefix other than `/opt/rtems-4.7' using `--prefix',
+# for instance `--prefix=$HOME'.
+# 
+# For better control, use the options below.
+# 
+# Fine tuning of the installation directories:
+#   --bindir=DIR           user executables [EPREFIX/bin]
+#   --sbindir=DIR          system admin executables [EPREFIX/sbin]
+#   --libexecdir=DIR       program executables [EPREFIX/libexec]
+#   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+#   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+#   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+#   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+#   --libdir=DIR           object code libraries [EPREFIX/lib]
+#   --includedir=DIR       C header files [PREFIX/include]
+#   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+#   --infodir=DIR          info documentation [PREFIX/info]
+#   --mandir=DIR           man documentation [PREFIX/man]
+# 
+# Program names:
+#   --program-prefix=PREFIX            prepend PREFIX to installed program names
+#   --program-suffix=SUFFIX            append SUFFIX to installed program names
+#   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
+# 
+# System types:
+#   --build=BUILD     configure for building on BUILD [guessed]
+#   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
+#   --target=TARGET   configure for building compilers for TARGET [HOST]
+# 
+# Optional Features:
+#   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+#   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+#   --enable-maintainer-mode  enable make rules and dependencies not useful
+#                        (and sometimes confusing) to the casual installer
+#   --enable-multiprocessing
+#                           enable multiprocessing interface
+#   --enable-posix          enable posix interface
+#   --enable-itron          enable itron interface
+#   --enable-networking     enable TCP/IP stack
+#   --enable-rdbg           enable remote debugger
+#   --enable-rtems-inlines  enable RTEMS inline functions (default:enabled,
+#                           disable to use macros)
+#   --enable-cxx            enable C++ support and build the rtems++ library
+#   --enable-tests          enable tests (default:samples)
+#   --enable-rtems-debug    enable RTEMS_DEBUG
+#   --enable-rtemsbsp="bsp1 bsp2 .."
+#                           BSPs to include in build
+#   --enable-multilib       build many library versions (default=no)
+#   --enable-docs           enable building documentation (default:disabled)
+#   CC_FOR_BUILD
+#               c-compiler to be used for build subdirs (default: auto-detected)
+#   CFLAGS_FOR_BUILD
+#               c-flags to be used for build subdirs (default: provided by
+#               autoconf)
+#   CXX_FOR_BUILD
+#               c++-compiler to be used for build subdirs (default:
+#               auto-detected)
+#   CXXFLAGS_FOR_BUILD
+#               c++-flags to be used for build subdirs (default: provided by
+#               autoconf)
+#   CC_FOR_HOST c-compiler to be used for host subdirs (default: auto-detected)
+#   CFLAGS_FOR_HOST
+#               c-flags to be used for host subdirs (default: provided by
+#               autoconf)
+#   CXX_FOR_HOST
+#               c++-compiler to be used for host subdirs (default:
+#               auto-detected)
+#   CXXFLAGS_FOR_HOST
+#               c++-flags to be used for host subdirs (default: provided by
+#               autoconf)
+#   CC_FOR_TARGET
+#               c-compiler to be used for target subdirs (default:
+#               auto-detected)
+#   CFLAGS_FOR_TARGET
+#               c-flags to be used for target subdirs (default: provided by
+#               autoconf)
+#   CXX_FOR_TARGET
+#               c++-compiler to be used for target subdirs (default:
+#               auto-detected)
+#   CXXFLAGS_FOR_TARGET
+#               c++-flags to be used for target subdirs (default: provided by
+#               autoconf)
+# 
+# Report bugs to <rtems-bugs@rtems.com>.
+# 
\ No newline at end of file
diff --git a/rtems-build/powerpc-rtems/rtems-icecube/rtems-u-boot-midam b/rtems-build/powerpc-rtems/rtems-icecube/rtems-u-boot-midam
new file mode 100644 (file)
index 0000000..3da22bc
--- /dev/null
@@ -0,0 +1,5 @@
+mw f0000b00 ${psc_cfg}
+dhcp
+#set serverip 192.168.202.251
+tftp 1000000 appfoo.img
+bootm