This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Problem running redboot from eb40a
- From: wkhto at engmail dot uwaterloo dot ca
- To: Timothy Woods <twoods at actelesys dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 20 Mar 2003 15:22:29 -0500
- Subject: RE: [ECOS] Problem running redboot from eb40a
- References: <72A7001345055A42BEF3DFAB220CB69A07E69D@ACTHQWS.actelesys.com>
Thanks for your help. I changed the mlt files and my board boots up!!!
One more question, I don't understand why we need to add set $cpsr=0xd3 in GDB
to make it works
Wilson
Quoting Timothy Woods <twoods at actelesys dot com>:
> Wilson,
>
> I had the same problem on my EB40A. I just got it working yesterday. Angel
> is actually loaded into the upper end of SRAM on the board, so the download
> overwrites this location. What I had to do was change the mlt files in the
> include/pkgconf directory. The mlt_arm_at91_eb40a_ram.h and .ldi file
> specifically.
> I made the following changes to the .h file:
> CYGMEM_REGION_sram_SIZE from 0x20000 to 0x2000
> CYGMEM_REGION_ram from 0x20000 to 0x2000
> CYGMEM_REGION_ram_SIZE from 0x1e000 to 0x3e000
>
> And to the .ldi file:
> sram LENGTH from 0x20000 to 0x2000
> ram ORIGIN from 0x20000 to 0x2000
> ram LENGTH from 0x1e000 to 0x3e000
>
> Change the SECTION_rom_vectors (ram, 0x20000, ...
> to be SECTION_rom_vectors (ram, 0x2000, ...
>
> You should then be able to build RedBoot.
> Once you have the redboot.elf file, just run "arm-elf-gdb redboot.elf"
> At the gdb prompt (assuming ttyS0 is the serial port you're using):
> (gdb) target rdi /dev/ttyS0
> (gdb) set $cpsr=0xd3
> (gdb) load
> (gdb) cont
> Then hit ^Z and bring up minicom or whatever terminal program you have, set
> up the port speed, etc correctly, and you should have a RedBoot> prompt.
>
> There may be a better way to do this. I haven't been tinkering with eCos
> for very long. This at least got me started.
>
> Getting a ROM version was another struggle. Let me know if you want help
> with that. There are some tricks due to the way the flash driver is set up.
> Just be very careful not to write over the lower section of the flash unless
> that's something you really want to do.
>
> Good luck!
> -Tim
>
>
> -----Original Message-----
> From: wkhto at engmail dot uwaterloo dot ca [mailto:wkhto at engmail dot uwaterloo dot ca]
> Sent: Thursday, March 20, 2003 11:53 AM
> To: ecos-discuss at sources dot redhat dot com
> Subject: [ECOS] Problem running redboot from eb40a
>
> Hi
>
> I got a problem when I try to run redboot from eb40a. I used ecos 2.0 b1
> with
> Shannon Hollands two tar.gz files to compile the eb40a redboot(RAM). The
> compilation is good. When I try to load the elf file by using GDB, GDB stops
> during the load process.
>
> Here is the output:
>
> --------------------------------------------------
> arm-elf-gdb redboot.elf
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
> (gdb) tar rdi s=/dev/ttyS0
> Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) for
> AT91EB40A
> (1.00)
> Angel Debug Monitor rebuilt on Feb 03 2002 at 16:09:59
> Serial Rate: 9600
> Connected to ARM RDI target.
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x20000
> Loading section .text, size 0xb47c lma 0x20040
> --------------------------------------------------
>
> Any suggestions for this problem
>
> Thanks for your help
>
> Wilson
>
>
> ----------------------------------------
> This mail sent through www.mywaterloo.ca
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
----------------------------------------
This mail sent through www.mywaterloo.ca
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss