[U-Boot] m68k: 3 boards are broken

Angelo Dureghello angelo at sysam.it
Sat Mar 28 09:38:04 CET 2015


Dear Masahiro,

On 27/03/2015 08:05, Masahiro Yamada wrote:
> Hi Alison, Angelo
>
>
> I found 3 m68k boards are broken:
> eb_cpu5282_defconfig
> eb_cpu5282_internal_defconfig
> M53017EVB_defconfig
>
>
>    LD      u-boot
> common/built-in.o: In function `reserve_video':
> /home/yamada/workspace/u-boot/common/board_f.c:501: undefined
> reference to `video_setmem'
> make: *** [u-boot] Error 1
>
>

>
> Can you figure it out, please?
>


Fixed the first 2 boards, there is no reserve_video needed
for m68k.
The third (M53017EVB) is a relocation issue.

arch/m68k/cpu/mcf532x/start.o: In function `_start':
/home/angelo/sysam/u-boot/arch/m68k/cpu/mcf532x/start.S:159:(.text+0x462): 
relocation truncated to fit: R_68K_PC16 against symbol `board_init_f' 
defined in .text.board_init_f section in common/built-in.o
Makefile:1094: set di istruzioni per l'obiettivo "u-boot" non riuscito
make: *** [u-boot] Errore 1

For some reason this board have a different text section
in the linker script, and this cause the error. Also
board.c in m68k/lib is no more built-in.


SECTIONS
{
   /* Read-only sections, merged into text segment: */
   .text      :
   {
     arch/m68k/cpu/mcf532x/start.o	(.text*)
     arch/m68k/cpu/mcf532x/built-in.o	(.text*)
     arch/m68k/lib/built-in.o		(.text*)

     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text*)

     *(.text*)
   }
   _etext = .;

Studying on this last issue.
Hope to post the full patch later.

Regards
Angelo



More information about the U-Boot mailing list