public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] eCos: Increase the size of ROM available on AEB-1
@ 2001-02-26 11:49 Sunny Chan
  2001-02-26 12:27 ` Jonathan Larmour
  2001-02-27  3:01 ` Wolfram Kattanek
  0 siblings, 2 replies; 7+ messages in thread
From: Sunny Chan @ 2001-02-26 11:49 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I am trying to use eCos to build a fairly large application to be placed in 
ROM - however the default memory map for AEB-1 is rather small (32k) - now 
I am trying to increase the available ROM available for building the image 
- which file should I change? I have looked at 
platform/hal/arm/aeb/version/cdl/hal_arm_aeb.cdl, which points me to some 
header file - however it say it is calculated - where does it calculate 
from? Can anyone shed some light on it?

Thanks!


+---------------------------+---------------------------------+
|Sunny Chan                also Sunny Computer Laboratory     |
|Computing (MEng) Year 4    |  "Power of Computing is yours"  |
|Imperial College, London   | http://www.sunnycomputer.co.uk |
+-------------------------------------------------------------+
email: sunny_chan@usa.net ICQ UIN: 2110678 mobile: 07887 704088

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-02-26 11:49 [ECOS] eCos: Increase the size of ROM available on AEB-1 Sunny Chan
@ 2001-02-26 12:27 ` Jonathan Larmour
  2001-02-27  3:01 ` Wolfram Kattanek
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Larmour @ 2001-02-26 12:27 UTC (permalink / raw)
  To: Sunny Chan; +Cc: ecos-discuss

Sunny Chan wrote:
> 
> Hello,
> 
> I am trying to use eCos to build a fairly large application to be placed in
> ROM - however the default memory map for AEB-1 is rather small (32k) - now
> I am trying to increase the available ROM available for building the image
> - which file should I change? I have looked at

You should use the Memory Layout Tool within the Windows Configuration Tool
to configure the ROM size. If you are not using Windows, then edit
hal/arm/aeb/VERSION/include/pkgconf/mlt_arm_aeb_rom.ldi *and* the
associated .h file in your repository. Or do it in your build tree - they
can be found under the install/include/pkgconf/ directory.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-02-26 11:49 [ECOS] eCos: Increase the size of ROM available on AEB-1 Sunny Chan
  2001-02-26 12:27 ` Jonathan Larmour
@ 2001-02-27  3:01 ` Wolfram Kattanek
  2001-03-02  9:54   ` Sunny Chan
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfram Kattanek @ 2001-02-27  3:01 UTC (permalink / raw)
  To: Sunny Chan; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1963 bytes --]

> Hello,
> 
> I am trying to use eCos to build a fairly large application to be placed in 
> ROM - however the default memory map for AEB-1 is rather small (32k) - now 
> I am trying to increase the available ROM available for building the image 
> - which file should I change? I have looked at 
> platform/hal/arm/aeb/version/cdl/hal_arm_aeb.cdl, which points me to some 
> header file - however it say it is calculated - where does it calculate 
> from? Can anyone shed some light on it?

The cheapest and fastest solution would be using another 32k of the AEB flash
ROM which gives you a total of 64k flash (don´t know if that's enough for
"a fairly large application"). I have a AEB revision C where the memory area
between 0x4010000 and 0x4017fff is available (be sure to check this with the AEB
monitor command "rommodules"; otherwise some "side effects" could happen like
overwriting the AEB monitor or Angel). When using the standard memory map from
eCos only the area between 0x4018000 and 0x401ffff (=32k) is available. In order
to use the additional flash area you have to do the following:

In the files
   packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.ldi
   packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.h
you have to change ROM adresses from 0x4018000 to 0x4010000 and ROM length from
0x8000 to 0x10000.

In the file
   packages/hal/arm/aeb/current/include/plf_stub.h
you have to change the reset entry from 0x4018000 to 0x4010000.

After downloading your application image into RAM (monitor command "download
c000") you have to use the command "flashwrite 4010000 c000 10000".

Wolfram
--
Wolfram 'L.A.' Kattanek     Institut fuer Mikroelektronik- und
Email:       LA@imms.de     Mechatronik-Systeme (IMMS) gGmbH     
Tel: +49 3677 / 6783-55     Langewiesener Str. 22
Fax: +49 3677 / 6783-38     98693 Ilmenau / Germany

-------------------------------------------------
This mail sent through IMP: imp.imms.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-02-27  3:01 ` Wolfram Kattanek
@ 2001-03-02  9:54   ` Sunny Chan
  2001-03-03  3:07     ` Wolfram Kattanek
  0 siblings, 1 reply; 7+ messages in thread
From: Sunny Chan @ 2001-03-02  9:54 UTC (permalink / raw)
  To: Wolfram Kattanek, Sunny Chan; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]

Hello Wolfram,

At 11:00 27/02/2001, Wolfram Kattanek wrote:

>The cheapest and fastest solution would be using another 32k of the AEB flash
>ROM which gives you a total of 64k flash (don´t know if that's enough for
>"a fairly large application"). I have a AEB revision C where the memory area
>between 0x4010000 and 0x4017fff is available (be sure to check this with 
>the AEB
>monitor command "rommodules"; otherwise some "side effects" could happen like
>overwriting the AEB monitor or Angel). When using the standard memory map from
>eCos only the area between 0x4018000 and 0x401ffff (=32k) is available. In 
>order
>to use the additional flash area you have to do the following:

I just wondering: how come there is only extra 32k available? I thought AEB 
rev C has 256K flash (0x4000000 - 0x403ffff), and the first 16K is not 
available (for Angle and Bootstrap loader)? Is there something wrong with 
the way eCos setup the memory map?

I need as much RAM/ROM as possible because I am trying to build a MP3 
player with (possibly) a Bluetooth stack. We are trying to decode it on the 
board, then play the decoded data through the PC's sound card. As a result 
I need to put almost all the code onto the flash and use the RAM as scratch 
pad/storage.

Right now I am trying to see whether I can "ROM" a "hello world" apps - to 
see how to ROM an application.

>In the files
>    packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.ldi
>    packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.h
>you have to change ROM adresses from 0x4018000 to 0x4010000 and ROM length 
>from
>0x8000 to 0x10000.
>
>In the file
>    packages/hal/arm/aeb/current/include/plf_stub.h
>you have to change the reset entry from 0x4018000 to 0x4010000.
>
>After downloading your application image into RAM (monitor command "download
>c000") you have to use the command "flashwrite 4010000 c000 10000".

Once I have flash the application onto the ROM, how would you run it? using 
the "go" command?


+---------------------------+---------------------------------+
|Sunny Chan                also Sunny Computer Laboratory     |
|Computing (MEng) Year 4    |  "Power of Computing is yours"  |
|Imperial College, London   | http://www.sunnycomputer.co.uk  |
+-------------------------------------------------------------+
email: sunny_chan@usa.net ICQ UIN: 2110678 mobile: 07887 704088

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-03-02  9:54   ` Sunny Chan
@ 2001-03-03  3:07     ` Wolfram Kattanek
  2001-03-03  3:41       ` Sunny Chan
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Kattanek @ 2001-03-03  3:07 UTC (permalink / raw)
  To: Sunny Chan; +Cc: Sunny Chan, ecos-discuss

Sunny Chan <sunny_chan@usa.net>:

> I just wondering: how come there is only extra 32k available? I thought AEB 
> rev C has 256K flash (0x4000000 - 0x403ffff), and the first 16K is not 
> available (for Angle and Bootstrap loader)? Is there something wrong with 
> the way eCos setup the memory map?

My understanding is that the AEB (both rev. B and C) has only got 128k flash
(it has 256k SRAM instead of rev. B's 128k SRAM). Typing "rommodules" gives me
the following result:

Boot: rommodules
Header   Base     Limit
04000004 04000000 040034a8 BootStrap       1.00 (14 Aug 1998)
04003a74 04003800 04003bc0 Production Test 1.00 (13 Aug 1998)
0400e7a4 04004000 0400e7ec Angel           1.03 (08 Mar 1998)

If you have installed a GDB stub there should be an additional line like the
following:

0401ba6c 04018000 0401bcd4 eCos            1.2.2 (25 May 1999) GDB stubs

As you might see from the above BootStrap, test and Angel software use the
first 64k of the flash (0x04000000 - 0x4010000). The standard eCos ROM memory
map only uses flash memory beginning from 0x4018000. 

> I need as much RAM/ROM as possible because I am trying to build a MP3 
> player with (possibly) a Bluetooth stack. We are trying to decode it on the 
> board, then play the decoded data through the PC's sound card. As a result 
> I need to put almost all the code onto the flash and use the RAM as scratch 
> pad/storage.

Maybe you should check the work of Andreas Karlsson who did a memory upgrade
of a rev. C AEB board:

http://sources.redhat.com/ml/ecos-discuss/2001-02/msg00446.html

> Right now I am trying to see whether I can "ROM" a "hello world" apps - to 
> see how to ROM an application.
> 
> >In the files
> >    packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.ldi
> >    packages/hal/arm/aeb/current/include/pkgconf/mlt_arm_aebC_rom.h
> >you have to change ROM adresses from 0x4018000 to 0x4010000 and ROM length 
> >from
> >0x8000 to 0x10000.
> >
> >In the file
> >    packages/hal/arm/aeb/current/include/plf_stub.h
> >you have to change the reset entry from 0x4018000 to 0x4010000.
> >
> >After downloading your application image into RAM (monitor command "download
> >c000") you have to use the command "flashwrite 4010000 c000 10000".
> 
> Once I have flash the application onto the ROM, how would you run it? using 
> the "go" command?

Your application should follow the rules for building AEB rom modules (see
"ARM Evaluation Board User Guide" chapter 3.6.7 "Creating new modules"). The
GDB stub follows the same rules. For details on preparing and building your
application see the corresponding files for the stub:

packages/hal/arm/aeb/current/src/gdb_module.c
packages/hal/arm/aeb/current/cdl/hal_arm_aeb.cdl

Once you've prepared your "hello world" in this way you can download and flash
it as described above. Then you have to issue a "plugin" command with the name
of your application (as used in the "title" field in the ModuleHeader struct).
Finally you can start your application by simply typing in the application's
"title" (alternatively the application is started automatically after board
reset if it's the last plugged in module - just like the gdb stub normally
operates).

Wolfram
--
Wolfram 'L.A.' Kattanek     Institut fuer Mikroelektronik- und
Email:       LA@imms.de     Mechatronik-Systeme (IMMS) gGmbH     
Tel: +49 3677 / 6783-55     Langewiesener Str. 22
Fax: +49 3677 / 6783-38     98693 Ilmenau / Germany

-------------------------------------------------
This mail sent through IMP: imp.imms.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-03-03  3:07     ` Wolfram Kattanek
@ 2001-03-03  3:41       ` Sunny Chan
  2001-03-03  3:52         ` Wolfram Kattanek
  0 siblings, 1 reply; 7+ messages in thread
From: Sunny Chan @ 2001-03-03  3:41 UTC (permalink / raw)
  To: Wolfram Kattanek; +Cc: Sunny Chan, ecos-discuss

Hello Wolfram,

At 11:06 03/03/2001, Wolfram Kattanek wrote:

>As you might see from the above BootStrap, test and Angel software use the
>first 64k of the flash (0x04000000 - 0x4010000). The standard eCos ROM memory
>map only uses flash memory beginning from 0x4018000.

Oh right I see - is there a flash driver for eCos? so that instead 
of  putting my application in flash I put it in RAM and then use the Flash 
as the storage for MP3 data.



>Maybe you should check the work of Andreas Karlsson who did a memory upgrade
>of a rev. C AEB board:
>
> http://sources.redhat.com/ml/ecos-discuss/2001-02/msg00446.html

Yeah I am studying the documents now and I am going to get the parts for 
it. Thanks for your suggestions!


+---------------------------+---------------------------------+
|Sunny Chan                also Sunny Computer Laboratory     |
|Computing (MEng) Year 4    |  "Power of Computing is yours"  |
|Imperial College, London   | http://www.sunnycomputer.co.uk  |
+-------------------------------------------------------------+
email: sunny_chan@usa.net ICQ UIN: 2110678 mobile: 07887 704088

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ECOS] eCos: Increase the size of ROM available on AEB-1
  2001-03-03  3:41       ` Sunny Chan
@ 2001-03-03  3:52         ` Wolfram Kattanek
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfram Kattanek @ 2001-03-03  3:52 UTC (permalink / raw)
  To: Sunny Chan; +Cc: Sunny Chan, ecos-discuss

Sunny Chan <sunny_chan@usa.net>:

> Oh right I see - is there a flash driver for eCos? so that instead 
> of  putting my application in flash I put it in RAM and then use the Flash 
> as the storage for MP3 data.

I'm not aware of any such eCos flash driver for the AEB (but I'm interested in
such a thing too).

Wolfram
--
Wolfram 'L.A.' Kattanek     Institut fuer Mikroelektronik- und
Email:       LA@imms.de     Mechatronik-Systeme (IMMS) gGmbH     
Tel: +49 3677 / 6783-55     Langewiesener Str. 22
Fax: +49 3677 / 6783-38     98693 Ilmenau / Germany

-------------------------------------------------
This mail sent through IMP: imp.imms.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-03-03  3:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 11:49 [ECOS] eCos: Increase the size of ROM available on AEB-1 Sunny Chan
2001-02-26 12:27 ` Jonathan Larmour
2001-02-27  3:01 ` Wolfram Kattanek
2001-03-02  9:54   ` Sunny Chan
2001-03-03  3:07     ` Wolfram Kattanek
2001-03-03  3:41       ` Sunny Chan
2001-03-03  3:52         ` Wolfram Kattanek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).