public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] AT91RM9200 relocation
@ 2008-09-01 18:55 Nícolas Carneiro Lebedenco
  2008-09-03  8:16 ` Andrejs Cainikovs
  0 siblings, 1 reply; 4+ messages in thread
From: Nícolas Carneiro Lebedenco @ 2008-09-01 18:55 UTC (permalink / raw)
  To: u-boot

Hi,

I'm porting u-boot to a custom board based on the at91rm9200-dk (only 
exception is that only parallel nor flash is available on my board)

Soon I realized that I could load u-boot 1.1.4 from flash but not u-boot 
1.3.4. It really bugged me until I noticed some differences in 
cpu/arm920t/start.S and came across this patch
"Fix regression introduced by a typo in 'Tidied other..." introduced by 
Guennadi Liakhovetski in the main branch on 2008-04-18 as follows:

diff --git a/cpu/arm920t/start.S b/cpu/arm920t/start.S
 index ae86002..acc00ad 100644 (file)
 
--- a/cpu/arm920t/start.S
+++ b/cpu/arm920t/start.S
@@ -178,7 +178,7 @@ copyex:
        bl      cpu_init_crit
 #endif
 
-#ifdef CONFIG_AT91RM9200
+#ifndef        CONFIG_AT91RM9200
 
 #ifndef CONFIG_SKIP_RELOCATE_UBOOT
 relocate:                              /* relocate U-Boot to RAM           */
--

The point is I can only get u-boot to load from nor flash if I remove the 
#ifndef condition. So what was the reason behind this patch after all. Is the 
relocation supposed to take place somewhere else? Maybe someone has already 
pointed that out and got it fixed in the main branch?

Regards,

N?colas

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

end of thread, other threads:[~2008-09-03 22:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 18:55 [U-Boot] AT91RM9200 relocation Nícolas Carneiro Lebedenco
2008-09-03  8:16 ` Andrejs Cainikovs
2008-09-03 21:47   ` Andrejs Cainikovs
2008-09-03 22:12     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox