Special redboot commands, Memory maps – Comtrol eCos User Manual

Page 199

Advertising
background image

Chapter 5. Installation and Testing

to flash.

arm-elf-gdb redboot_RAM.elf

(gdb) tar rdi s=/dev/ttyS0

Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) for

AT91EB40 (2.00)

Angel Debug Monitor rebuilt on Apr 07 2000 at 12:40:31

Serial Rate:

9600

Connected to ARM RDI target.

(gdb) set $cpsr=0xd3

(gdb) load

Loading section .rom_vectors, size 0x40 lma 0x2020000

Loading section .text, size 0x7fd8 lma 0x2020040

Loading section .rodata, size 0x15a0 lma 0x2028018

Loading section .data, size 0x2e4 lma 0x20295b8

Start address 0x2020040 , load size 39068

Transfer rate: 6250 bits/sec, 500 bytes/write.

At this point, set SW1 to "upper mem".

(gdb) cont

Continuing.

At this point, suspend the GDB session (use Ctrl-Z) and start a terminal emulator:

RedBoot> version

RedBoot(tm) bootstrap and debug environment [RAM]

Non-certified release, version UNKNOWN - built 14:09:27, Jul 20 2001

Platform: Atmel AT91/EB40 (ARM7TDMI)

Copyright (C) 2000, 2001, Red Hat, Inc.

RAM: 0x02000000-0x02080000, 0x020116d8-0x0207fd00 available

FLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.

RedBoot> load -m ymodem -b %{FREEMEMLO}

Use minicom to send the file redboot_ROMRAM.srec via YModem.

RedBoot> fi wr -f 0x01010000 -b %{FREEMEMLO} -l 0xe100

Press the "reset" pushbutton and RedBoot should come up on the board.

Special RedBoot Commands

None.

95

Advertising