分享

MCF5282 u-boot

 WUCANADA 2013-03-18

diff --git a/cpu/mcf52x2/start.S b/cpu/mcf52x2/start.S
index 260a09a..c086ca7 100644
--- a/cpu/mcf52x2/start.S
+++ b/cpu/mcf52x2/start.S
@@ -160,7 +160,7 @@ _copy_flash:
 _flashbar_setup:
  /* Initialize FLASHBAR: locate internal Flash and validate it */
  move.l #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
- movec %d0, %RAMBAR0
+ movec %d0, %FLASHBAR
  jmp _after_flashbar_copy.L /* Force jump to absolute address */
 _flashbar_setup_end:
  nop
@@ -168,7 +168,7 @@ _after_flashbar_copy:
 #else
  /* Setup code to initialize FLASHBAR, if start from external Memory */
  move.l #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
- movec %d0, %RAMBAR0
+ movec %d0, %RAMBAR1
 #endif /* (TEXT_BASE == CFG_INT_FLASH_BASE) */
  
arch/m68k/cpu/mcf52x2/config.mk
ifneq (,$(findstring CONFIG_M5282,$(is5282)))
 56 PLATFORM_CPPFLAGS += -m5307


export ARCH=m68k

 export CROSS_COMPILE=m68k-elf-

 make  M5282EVB_config ARCH=m68k CROSS_COMPILE=/usr/local/bin/m68k-elf-

make M5282EVB_config
make all
 #endif


The below shows the results. Later, I changed to the makefile to use -m5307
instead of -mcpu= and the make chokes on the assembly keyword %RAMBAR1. I
changed this to %RAMBAR, and now the make compiles everything but when the link
runs it errors on duplicate subroutines.

I feel that all these problems are related to the m68k toolchain I use
(m68k-uclinux 4.2.4)
vim common/Makefile

XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o

becomes

COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多