[U-Boot-Users] U-boot starting from RAM or Flash

Hi people,
I still trying to start U-Boot from flash on M5282Lite, now I am setting the PC to 0xFFE00400 as said at M5282EVBUM.pdf (M5282EVB flash base is the same to M5282LITE).
From M5282EVBUM.pdf:
"If using BDM via a wiggler cable, download first, then start ROM Monitor by pointing the program counter (PC) to 0xFFE00400 and run."
But it don't work to M5282LITE, I receive SIGGRANT see below. I found a guy whom got the same problem, but none response to your question: http://mailman.uclinux.org/pipermail/uclinux-dev/2006-March/037661.html
I already read a lot of documentation and search about the process to start U-Boot over BDM. Bernhard Kuhn do it, but he used a external pre-loader, I don't want it.
Please, someone here already started U-Boot from Flash using GDB/BDM ?
Cheers,
Alan
===================GDB Output=====================
Detected V2 core GDB target bdm connected to /dev/bdmcf0 Coldfire debug module version is 0 (5206(e)/5272/5282) (gdb) symbol u-boot Reading symbols from u-boot...done. (gdb) load u-boot Loading section .text, size 0xcd0a lma 0xffe00000 Loading section .rodata, size 0x37b1 lma 0xffe0cd0a Loading section .reloc, size 0xc3c lma 0xffe10500 Loading section .data, size 0xae8 lma 0xffe1113c Loading section .got.plt, size 0xc lma 0xffe11c24 Loading section .u_boot_cmd, size 0x378 lma 0xffe11c30 Start address 0xffe00000, load size 73571 Transfer rate: 98094 bits/sec, 500 bytes/write. (gdb) set $pc=0xffe00400 (gdb) b cpu_init_f Breakpoint 1 at 0xffe04638: file cpu_init.c, line 178. (gdb) c Continuing. [New process 42000] bdm_wait: Unknown csr:0 Program received signal SIGGRANT, Monitor mode granted. [Switching to process 42000] 0xffffffe9 in ?? () (gdb)

In message 37367b3a0612141020v1a595604vf9e012b39a5136ff@mail.gmail.com you wrote:
I still trying to start U-Boot from flash on M5282Lite, now I am
...
(gdb) load u-boot Loading section .text, size 0xcd0a lma 0xffe00000 Loading section .rodata, size 0x37b1 lma 0xffe0cd0a Loading section .reloc, size 0xc3c lma 0xffe10500 Loading section .data, size 0xae8 lma 0xffe1113c Loading section .got.plt, size 0xc lma 0xffe11c24 Loading section .u_boot_cmd, size 0x378 lma 0xffe11c30
If this is flash, and you already stored the U-Boot image there, then what is this "load" command doing here?
Best regards,
Wolfgang Denk

Hi Denk,
2006/12/14, Wolfgang Denk wd@denx.de:
In message 37367b3a0612141020v1a595604vf9e012b39a5136ff@mail.gmail.com you wrote:
I still trying to start U-Boot from flash on M5282Lite, now I am
...
(gdb) load u-boot Loading section .text, size 0xcd0a lma 0xffe00000 Loading section .rodata, size 0x37b1 lma 0xffe0cd0a Loading section .reloc, size 0xc3c lma 0xffe10500 Loading section .data, size 0xae8 lma 0xffe1113c Loading section .got.plt, size 0xc lma 0xffe11c24 Loading section .u_boot_cmd, size 0x378 lma 0xffe11c30
If this is flash, and you already stored the U-Boot image there, then what is this "load" command doing here?
hum, this is problem, I can't stored it on flash. I want to use U-Boot itself to store it on flash.
I tried also start U-Boot from dBug:
dBUG> go 10000
U-Boot 1.1.6 (Dec 8 2006 - 17:23:16)
CPU: Freescale Coldfire MCF5282 (PIN: 20 REV: 01) Reset: External MOTOROLA M5282Lite Evaluation Board DRAM: 16 MB Unimplemented F-Line Instruction PC: 00FE906C SR: 2714 [t.Sm.111...XnZvc] An: 00FF9000 00FE906C 00021B00 00FFAB00 00000000 00020000 2000FF88 00FA6F78 Dn: 00FB6F90 FFFFFFFF 00FF9000 00FB6F90 00000000 00000000 00000000 2000FFC0 00FE906C: FFFF DC.W 0xFFFF dBUG>
Now I will try other approach: I will initialize the SDRAM using commands on gdbinit, and compile U-Boot (with define CONFIG_MONITOR_IS_IN_RAM) to 0x00000400 and start it directly from RAM.
Do you have other suggestion?
Best regards,
Wolfgang Denk
Greetings,
Alan
participants (2)
-
Alan Carvalho de Assis
-
Wolfgang Denk