[ECOS] building redboot for nanoengine binary size problem

Gad Hayisraeli gad@syete.co.il
Wed Jan 23 05:08:00 GMT 2002


i built ecosconfig from ecos cvs sources (20/1/2002)
i built the redboot using ecosconfig, with this script:
(script was made by redhat instructions)
=============================
#!/bin/sh
# redboot build script
# by @gadh, 21/01/2002

#Full path to the toplevel RedBoot source release.
REDBOOTDIR=/home/apps/ecos/cvs/ecos-20-01-2002

#Full path to the RedBoot package source. Typically, this should be
$REDBOOTDIR/packages.
ECOS_REPOSITORY=$REDBOOTDIR/packages

#Full path to where RedBoot will be built, e.g. redboot.RAM.
#BUILDDIR=$REDBOOTDIR/output
BUILDDIR=$ECOS_REPOSITORY

#e.g.atlas_mips32_4kc. do "ecosconfig -list | grep <target>" to search your
target name
TARGET=nano

#The directory for the architecture, e.g. mips.
ARCH_DIR=arm

#The directory for the platform, e.g. atlas.
PLATFORM_DIR=sa11x0/nano


#add ecosconfig,ecos.db to path
export PATH=$PATH:$REDBOOTDIR/..:$ECOS_REPOSITORY

#build a RedBoot image suitable for loading into POST:
#mkdir $BUILDDIR
cd $BUILDDIR
ecosconfig new $TARGET redboot
ecosconfig import
${ECOS_REPOSITORY}/hal/${ARCH_DIR}/${PLATFORM_DIR}/current/misc/redboot_POST
.ecm
#ecosconfig import
/home/apps/ecos/cvs/configtool-2.03/nanoengine-post-no_net.ecc
ecosconfig tree
make


echo done.
echo the output file for target $TARGET is in $BUILDDIR/install/bin

=============================

here's the output:

# ll /home/apps/ecos/cvs/ecos-20-01-2002/packages/install/bin
total 1020
-rwxrwxr-x    1 root     root     1342546124 Jan 23 15:04 redboot.bin
-rwxrwxr-x    1 root     root       541394 Jan 23 15:04 redboot.elf
-rwxrwxr-x    1 root     root       226826 Jan 23 15:04 redboot.img
-rwxrwxr-x    1 root     root       294922 Jan 23 15:04 redboot.srec

why di i get such a huge redboot.bin, instead of 90-120k file, as i saw on
the redhat site ?



More information about the Ecos-discuss mailing list