This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1st build of redboot


Hello all,

I'm just getting started with Redboot and ecos.  I trying to build an
existing version of redboot before starting on porting it to the custom
hardware that we're using for our product.  I downloaded the
ecos-installer.sh script and ran that and after trying to configure for an
intel xscale pxa processor, I pulled the latest code from cvs and copied it
on top of the tree that the installer created.  I then was able to configure
for the uE250 board.  I got some warnings and then a failure during the
compile as follows:

$ ecosconfig new uE250 redboot
U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
$ ecosconfig import
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_HAL', version `v2_0' is
already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_INFRA', version `v2_0'
is already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_REDBOOT', version
`v2_0' is already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_ISOINFRA', version
`v2_0' is already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_LIBC_STRING', version
`v2_0' is already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_CRC', version `v2_0' is
already loaded.
../ecos-2.0/packages/hal/arm/xscale/uE250/current/misc/redboot_ROM.ecm:
warning
    Cannot load version `current' of package `CYGPKG_NS_DNS', version `v2_0'
is already loaded.
$ ecosconfig tree
$ make
...
arm-elf-gcc -c  -I/opt/ecos/build/install/include -I/opt/ecos/ecos-2.0/packa
ges/hal/arm/arch/current -I/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/
src -I/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/tests -I. -I/opt/ecos
/ecos-2.0/packages/hal/arm/arch/current/src/ -finline-limit=7000 -Wall -Wpoi
nter-arith -Wstrict-prototypes -Winline -Wundef  -g -O2 -ffunction-sections 
-fdata-sections  -fno-exceptions   -mapcs-frame -fno-builtin -Wp,-MD,src/red
boot_linux_exec.tmp -o src/hal_arm_arch_redboot_linux_exec.o
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c:
In function `do_exec':
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c:32
9: `NO_MEMORY' undeclared (first use in this function)
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c:32
9: (Each undeclared identifier is reported only once
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c:32
9: for each function it appears in.)
/opt/ecos/ecos-2.0/packages/hal/arm/arch/current/src/redboot_linux_exec.c:35
6: warning: passing arg 5 of `init_opts' from incompatible pointer type
make[1]: *** [src/redboot_linux_exec.o.d] Error 1
make[1]: Leaving directory `/opt/ecos/build/hal/arm/arch/current'
make: *** [build] Error 2
$

I'm getting an undeclared on 'NO_MEMORY' in redboot_linux_exec.c after doing
a clean install, if I've missed some part of the setup and configuration,
could some one please point me in the right direction?

As a sanity check I tried creating an mpc50 version of redboot and that
compiled correctly, I don't know if it's RAM or ROM based as there is no new
.ecm file in the xscale/mpc50 dir tree.  I also tried compiling an version
of the uE250 tree without importing a different .ecm file and with the RAM
.ecm file with the same results.

I guess at this point I'll start trying to figure out what I am going to
need from the mpc50 configuration, but any help with my uE250 confusion
would be greatly appreciated.

Greg Wilson-Lindberg

Secrecy, being an instrument of conspiracy, ought never to be the system of
a regular government. -Jeremy Bentham, jurist and philosopher (1748-1832)



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]