From: Matvejchikov Ilya Date: Thu, 21 Dec 2006 00:10:03 +0300 Subject: [U-Boot-Users] Problem with U-boot 1.1.6 on M5271EVB board Message-ID: <8496f91a0612201310n3512e917q5f2ffdc6053ff50f@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi! > It seems that the problem is in the cpu/mcf52x2/start.s file at this > lines : > /* > * fix got table in RAM > */ > move.l %a0, %a1 > add.l #(__got_start - CFG_MONITOR_BASE),%a1 > move.l %a1,%a5 /* * fix got pointer register a5 */ > move.l %a0, %a2 > > add.l #(__got_end - CFG_MONITOR_BASE),%a2 > 7: > move.l (%a1),%d1 > sub.l #_start,%d1 > add.l %a0,%d1 > move.l %d1,(%a1)+ > cmp.l %a2, %a1 > bne 7b > > If I put these lines on comment the system run in ram until the > initialisation of the flash and I have this message: > I believe that this code is right. So check values of __got_start, __got_end, CFG_MONITOR_BASE and TEXT_BASE. And make sure that you give -msep-data option to GCC to support GOT (through a5 register). Best regards, Matvejchikov Ilya, Russia, Moscow.