To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3266
3265  |  3267
Subject: 
brickos-0.2.6.10 .text is not within region ram
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 6 May 2003 08:47:02 GMT
Viewed: 
2938 times
  
I changed in /boot/config.h
the
//#define CONF_DSENSOR_MUX                //!< sensor multiplexor
TO
#define CONF_DSENSOR_MUX                //!< sensor multiplexor

Enviroment:
Latest Version: Cygwin  1.3.22-1
WIN2000
brickos-0.2.6.10 + gcc-2.95.2 + binutils-2.10.1 +
Hitachi pre-built tools 2000r1_i686-cygwin32-x-h8300-hms.zip

Now i have replaced all entries called sys_time to  get_system_up_time
in brickos-0.2.6.10/kernel/dsensor.c:

Now i  compile kernel once again with but now i get an error in

make[1]: Leaving directory `/brickos-0.2.6.10/boot'
make[1]: Entering directory `/brickos-0.2.6.10/demo'
/usr/local/bin/h8300-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall
-I/brickos-0.2.6.10/include -I/brickos-0.2.6.10
/include/lnp -I. -I/brickos-0.2.6.10/boot  -c rover.c -o rover.o
/usr/local/bin/h8300-hms-ld -T ../boot/brickOS.lds -relax
-L/brickos-0.2.6.10/lib rover.o  -lc -lmint -lfloat -lc++ -o r
over.dc1 --oformat coff-h8300 -Ttext 0xb000
/usr/local/bin/h8300-hms-ld: address 0xb0fe of rover.dc1 section .text is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fe of rover.dc1 section .tors is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fe of rover.dc1 section .data is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fe of rover.dc1 section .bss is not
within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fa of rover.dc1 section .text is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fa of rover.dc1 section .tors is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fa of rover.dc1 section .data is
not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb0fa of rover.dc1 section .bss is not
within region ram
make[1]: *** [rover.dc1] Error 1
make[1]: Leaving directory `/brickos-0.2.6.10/demo'
make: *** [all] Error 2
/brickos-0.2.6.10

I tried the same with kernel brickos-0.2.6.08.newConf
Here sys_time is NOT changed to get_system_up_time
but if i define
#define CONF_DSENSOR_MUX                //!< sensor multiplexor

i got he same error.


make[1]: Entering directory `/brickos-0.2.6.08.newConf/demo'
/usr/local/bin/h8300-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall
-I/brickos-0.2.6.08.newConf/include -I/brickos-
0.2.6.08.newConf/include/lnp -I. -I/brickos-0.2.6.08.newConf/boot  -c
helloworld.c -o helloworld.o
/usr/local/bin/h8300-hms-ld -T ../boot/brickOS.lds -relax
-L/brickos-0.2.6.08.newConf/lib helloworld.o  -lc -lmint -lflo
at -lc++ -o helloworld.ds1 -Ttext 0xb000
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .text
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .tors
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .data
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .bss
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .text
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .tors
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .data
is not within region ram
/usr/local/bin/h8300-hms-ld: address 0xb034 of helloworld.ds1 section .bss
is not within region ram
make[1]: *** [helloworld.ds1] Error 1
make[1]: Leaving directory `/brickos-0.2.6.08.newConf/demo'
make: *** [all] Error 2
/brickos-0.2.6.08.newConf

As a fact no programs in /demo can be compiled !

Bernhard



Message has 1 Reply:
  Re: brickos-0.2.6.10 .text is not within region ram
 
Hi Bernhard, Apparently the kernel is getting too big! By defining CONF_DSENSOR_MUX, enough extra code was generated to make the kernel exceed 12K. If you go to Makefile.user in the main BrickOS directory, change the following lines: # Base (...) (21 years ago, 6-May-03, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR