This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Porting to Atmel AT91 - stub image is *very* big
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Porting to Atmel AT91 - stub image is *very* big
- From: Andreas Bürgel <ab at genologic dot de>
- Date: Thu, 09 Nov 2000 16:45:20 +0100
- Organization: GenoLogic GmbH, Dortmund
Hi eCos-people out there,
thanks to Shaun Jackman and Siegfried Schäfer I wrote lots of platform
initialization stuff for a custom Atmel AT91 board. I compiled the
gdb-stub and got a gdb-module.img- and a gdb-module.bin-file. BUT they
are _very_ big:
-rwxr-xr-x 1 andreas users 16788008 Nov 9 16:41 gdb_module.bin
-rwxr-xr-x 1 andreas users 240613 Nov 9 16:41 gdb_module.img
That's too big, isn't it?
I used following memory layout:
MEMORY
{
onchip_ram : ORIGIN = 0x0, LENGTH = 0x2000
dram : ORIGIN = 0x00400000, LENGTH = 0x200000
rom : ORIGIN = 0x01400000, LENGTH = 0x100000
reserved : ORIGIN = 0x00100000, LENGTH = 0x200000
}
SECTIONS
{
SECTIONS_BEGIN
SECTION_rom_vectors (rom, 0x01400000, LMA_EQ_VMA)
SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
SECTION_bss (dram, 0x00400000, LMA_EQ_VMA)
SECTION_data (dram, ALIGN (0x4), LMA_EQ_VMA)
SECTIONS_END
}
So what's my mistake.
--
--------------------------------------------------
Andreas Bürgel Software Engineer
ab@genologic.de GenoLogic GmbH, Dortmund, Germany