From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Dureghello Date: Sat, 28 Mar 2015 09:38:04 +0100 Subject: [U-Boot] m68k: 3 boards are broken In-Reply-To: References: Message-ID: <5516686C.1010209@sysam.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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