[U-Boot] [PATCH 0/6] m68k: Fixes for the m68k

Marek Vasut marex at denx.de
Thu Oct 4 01:28:41 CEST 2012


The m68k wasn't tested for a long time it seems, thus bugs crawled in.
This series carries at least some basic fixes, yet bugs still prevail:

Configuring for M5282EVB board...
make: *** [u-boot] Error 1
m68k-linux-gnu-size: './u-boot': No such file
common/libcommon.o:(.data.rel.env_ptr+0x0): undefined reference to `environment'
make: *** [u-boot] Error 1
Configuring for astro_mcf5373l board...
make: *** [u-boot] Error 1
m68k-linux-gnu-size: './u-boot': No such file
cpu_init.c: In function 'cpu_init_f':
cpu_init.c:227:10: warning: unused variable 'wdog' [-Wunused-variable]
mcf5373l.c: In function 'initdram':
mcf5373l.c:99:5: warning: pointer targets in passing argument 1 of 'get_ram_size' differ in signedness [-Wpointer-sign]
In file included from mcf5373l.c:25:0:
/tmp/u-boot/include/common.h:422:6: note: expected 'long int *' but argument is of type 'long unsigned int *'
fpga.c:185:2: warning: initialization from incompatible pointer type [enabled by default]
fpga.c:185:2: warning: (near initialization for 'altera_fns.write') [enabled by default]
fpga.c: In function 'astro5373l_altera_load':
fpga.c:213:20: warning: assignment from incompatible pointer type [enabled by default]
m68k-linux-gnu-ld.bfd: cannot find lib/zlib.o
make: *** [u-boot] Error 1
Configuring for M52277EVB_stmicro - Board: M52277EVB, Options: CF_SBF,SYS_STMICRO_BOOT,SYS_TEXT_BASE=0x43E00000
   text    data     bss     dec     hex filename
 105755    8186    4080  118021   1cd05 ./u-boot
cpu_init.c: In function 'cpu_init_f':
cpu_init.c:47:9: warning: unused variable 'pll' [-Wunused-variable]
cpu_init.c:46:10: warning: unused variable 'fbcs' [-Wunused-variable]
cpu_init.c:44:10: warning: unused variable 'scm1' [-Wunused-variable]
Configuring for M5235EVB - Board: M5235EVB, Options: SYS_TEXT_BASE=0xFFE00000
   text    data     bss     dec     hex filename
 127862    9326   21096  158284   26a4c ./u-boot
cpu_init.c: In function 'cpu_init_f':
cpu_init.c:64:2: warning: passing argument 1 of 'out_be32' from incompatible pointer type [enabled by default]
In file included from cpu_init.c:31:0:
/tmp/u-boot/include/asm/io.h:223:20: note: expected 'volatile unsigned int *' but argument is of type 'u16 *'
cpu_init.c:65:2: warning: passing argument 1 of 'out_be32' from incompatible pointer type [enabled by default]
In file included from cpu_init.c:31:0:
/tmp/u-boot/include/asm/io.h:223:20: note: expected 'volatile unsigned int *' but argument is of type 'u16 *'
Configuring for M5235EVB_Flash32 - Board: M5235EVB, Options: NORFLASH_PS32BIT,SYS_TEXT_BASE=0xFFC00000
   text    data     bss     dec     hex filename
 127862    9326   21096  158284   26a4c ./u-boot
cpu_init.c: In function 'cpu_init_f':
cpu_init.c:64:2: warning: passing argument 1 of 'out_be32' from incompatible pointer type [enabled by default]
In file included from cpu_init.c:31:0:
/tmp/u-boot/include/asm/io.h:223:20: note: expected 'volatile unsigned int *' but argument is of type 'u16 *'
cpu_init.c:65:2: warning: passing argument 1 of 'out_be32' from incompatible pointer type [enabled by default]
In file included from cpu_init.c:31:0:
/tmp/u-boot/include/asm/io.h:223:20: note: expected 'volatile unsigned int *' but argument is of type 'u16 *'
Configuring for idmr board...
   text    data     bss     dec     hex filename
 105682    8298   21756  135736   21238 ./u-boot
cpu_init.c: In function 'init_fbcs':
cpu_init.c:60:2: warning: #warning "Chip Select 0 are not initialized/used" [-Wcpp]
cpu_init.c:52:10: warning: unused variable 'fbcs' [-Wunused-variable]
Configuring for eb_cpu5282 - Board: eb_cpu5282, Options: SYS_TEXT_BASE=0xFFE00000
   text    data     bss     dec     hex filename
 102264    9082   37412  148758   24516 ./u-boot
bus_vcxk.c: In function 'vcxk_init':
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u_char *' [-Wformat]
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u_short *' [-Wformat]
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'u_long *' [-Wformat]
cfm_flash.c: In function 'cfm_flash_init':
cfm_flash.c:62:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]
cfm_flash.c:62:2: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat]
eb_cpu5282.c: In function 'drv_video_init':
eb_cpu5282.c:184:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]
Configuring for eb_cpu5282_internal - Board: eb_cpu5282, Options: SYS_TEXT_BASE=0xF0000000
   text    data     bss     dec     hex filename
 102373    9086   37412  148871   24587 ./u-boot
bus_vcxk.c: In function 'vcxk_init':
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u_char *' [-Wformat]
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u_short *' [-Wformat]
bus_vcxk.c:156:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'u_long *' [-Wformat]
eb_cpu5282.c: In function 'drv_video_init':
eb_cpu5282.c:184:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]
cfm_flash.c: In function 'cfm_flash_init':
cfm_flash.c:62:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]
cfm_flash.c:62:2: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat]
Configuring for M5253DEMO board...
   text    data     bss     dec     hex filename
 142930    9132  222316  374378   5b66a ./u-boot
flash.c: In function 'flash_erase':
flash.c:196:21: warning: variable 'last' set but not used [-Wunused-but-set-variable]
flash.c: In function 'write_buff':
flash.c:338:10: warning: variable 'port_width' set but not used [-Wunused-but-set-variable]

--------------------- SUMMARY ----------------------------
Boards compiled: 9
Boards with errors: 2 ( M5282EVB astro_mcf5373l )
Boards with warnings but no errors: 7 ( M52277EVB_stmicro M5235EVB M5235EVB_Flash32 idmr eb_cpu5282 eb_cpu5282_internal M5253DEMO )
----------------------------------------------------------

Marek Vasut (5):
  m68k: Fix wrong assembler instruction in start.S
  m68k: Fix unused variable warning
  m68k: Fix unused variable warning in speed.c
  m68k: Fix unused variable in board.c
  m68k: net: Fix unused variable in mcfmii.c

Philippe De Muyter (1):
  m68k: Fix relocation errors in start.S

 arch/m68k/cpu/mcf5227x/start.S    |    2 +-
 arch/m68k/cpu/mcf523x/start.S     |    2 +-
 arch/m68k/cpu/mcf52x2/start.S     |    2 +-
 arch/m68k/cpu/mcf532x/start.S     |    2 +-
 arch/m68k/cpu/mcf5445x/cpu_init.c |    3 ++-
 arch/m68k/cpu/mcf5445x/speed.c    |    9 +++++++--
 arch/m68k/cpu/mcf547x_8x/start.S  |    4 ++--
 arch/m68k/lib/board.c             |    3 ++-
 drivers/net/mcfmii.c              |    4 +---
 9 files changed, 18 insertions(+), 13 deletions(-)

Cc: "Jin Zhengxiong-R64188" <R64188 at freescale.com>
Cc: Jason Jin <jason.jin at freescale.com>
-- 
1.7.10.4



More information about the U-Boot mailing list