Problem with U-boot 1.1.6 on M5271EVB board
Hi!
Quoted 19 lines
It seems that the problem is in the
cpu/mcf52x2/start.sfile 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
Quoted 3 lines
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.