ColdFire: Cleanup lds files for multiple defined symbols
Subsystems (3)
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Lds files cleened to remove multiple defined section and modified to be compliant with --gc-sections added for ColdFire platform in a previous patch.
--- board/BuS/EB+MCF-EV123/u-boot.lds | 73 ++++++------------------------- board/cobra5272/u-boot.lds | 69 ++++++------------------------ board/esd/tasreg/u-boot.lds | 69 +++++------------------------- board/freescale/m5235evb/u-boot.16 | 71 ++++++------------------------- board/freescale/m5235evb/u-boot.32 | 79 ++++++---------------------------- board/freescale/m5249evb/u-boot.lds | 68 +++++------------------------ board/freescale/m5253evbe/u-boot.lds | 67 +++++----------------------- board/freescale/m5271evb/u-boot.lds | 66 +++++----------------------- board/freescale/m5272c3/u-boot.lds | 67 +++++----------------------- board/freescale/m5275evb/u-boot.lds | 68 ++++++----------------------- board/freescale/m5282evb/u-boot.lds | 70 ++++++------------------------ board/idmr/u-boot.lds | 69 +++++------------------------- 12 files changed, 150 insertions(+), 686 deletions(-)
board/BuS/EB+MCF-EV123/u-boot.lds +15 -58
@@ -22,52 +22,14 @@ */ OUTPUT_ARCH(m68k) -/* Do we need any of these for elf? - __DYNAMIC = 0; */ + SECTIONS { - /* Read-only sections, merged into text segment: */ - . = + SIZEOF_HEADERS; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .rel.text : { *(.rel.text) } - .rela.text : { *(.rela.text) } - .rel.data : { *(.rel.data) } - .rela.data : { *(.rela.data) } - .rel.rodata : { *(.rel.rodata) } - .rela.rodata : { *(.rela.rodata) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } - .plt : { *(.plt) } .text : { - /* WARNING - the following is hand-optimized to fit within */ - /* the sector layout of our flash chips! XXX FIXME XXX */ - - arch/m68k/cpu/mcf52x2/start.o (.text) - common/dlmalloc.o (.text) - lib/string.o (.text) - lib/vsprintf.o (.text) - lib/crc32.o (.text) - lib/zlib.o (.text) + arch/m68k/cpu/mcf52x2/start.o (.text*) -/* . = env_offset; */ - common/env_embedded.o(.text) - - *(.text) - *(.fixup) - *(.got1) + *(.text*) } _etext = .; PROVIDE (etext = .);
@@ -75,43 +37,39 @@ SECTIONS { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } - .fini : { *(.fini) } =0 - .ctors : { *(.ctors) } - .dtors : { *(.dtors) } /* Read-write section, merged into data segment: */ . = (. + 0x00FF) & 0xFFFFFF00; _erotext = .; PROVIDE (erotext = .); - .reloc : + + .reloc : { __got_start = .; - *(.got) + KEEP(*(.got)) __got_end = .; _GOT2_TABLE_ = .; - *(.got2) + KEEP(*(.got2)) _FIXUP_TABLE_ = .; - *(.fixup) + KEEP(*(.fixup)) } __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : { - *(.data) - *(.data1) - *(.sdata) - *(.sdata2) - *(.dynamic) - CONSTRUCTORS + *(.data*) + *(.sdata*) } _edata = .; PROVIDE (edata = .); + . = .; __u_boot_cmd_start = .; .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; + . = .; __start___ex_table = .; __ex_table : { *(__ex_table) } __stop___ex_table = .;
@@ -124,12 +82,11 @@ SECTIONS __init_end = .; __bss_start = .; - .bss (NOLOAD) : + .bss (NOLOAD) : { _sbss = .; - *(.sbss) *(.scommon) - *(.dynbss) - *(.bss) + *(.bss*) + *(.sbss*) *(COMMON) . = ALIGN(4); _ebss = .;
board/cobra5272/u-boot.lds +13 -56
121 lines not on this page · raw message
board/esd/tasreg/u-boot.lds +11 -58
116 lines not on this page · raw message
board/freescale/m5235evb/u-boot.16 +13 -58
119 lines not on this page · raw message
board/freescale/m5235evb/u-boot.32 +13 -66
127 lines not on this page · raw message
board/freescale/m5249evb/u-boot.lds +12 -56
117 lines not on this page · raw message
board/freescale/m5253evbe/u-boot.lds +12 -55
115 lines not on this page · raw message
board/freescale/m5271evb/u-boot.lds +11 -55
115 lines not on this page · raw message
board/freescale/m5272c3/u-boot.lds +12 -55
115 lines not on this page · raw message
board/freescale/m5275evb/u-boot.lds +14 -54
111 lines not on this page · raw message
board/freescale/m5282evb/u-boot.lds +13 -57
111 lines not on this page · raw message
board/idmr/u-boot.lds +11 -58
115 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 2/6 ColdFire: Add $(obj) before cpu lib to correct build
Missing $(obj) prevented the build of ColdFire boards in a directory than sources
--- arch/m68k/cpu/mcf5227x/Makefile | 2 +- arch/m68k/cpu/mcf523x/Makefile | 2 +- arch/m68k/cpu/mcf532x/Makefile | 2 +- arch/m68k/cpu/mcf5445x/Makefile | 2 +- arch/m68k/cpu/mcf547x_8x/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
arch/m68k/cpu/mcf5227x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf523x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf532x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf5445x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o pci.o
arch/m68k/cpu/mcf547x_8x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = COBJS = cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o
Signature · 1 line
1.7.1
PATCH 3/6 ColdFire: Move boards with simple _config rules to boards.cfg
In reply to Stany MARCEL--- MAKEALL | 6 --- Makefile | 96 -------------------------------------------- boards.cfg | 21 +++++++++- include/configs/M5329EVB.h | 8 ++-- 4 files changed, 24 insertions(+), 107 deletions(-)
MAKEALL +0 -6
@@ -438,18 +438,12 @@ LIST_microblaze="$(boards_by_arch microblaze)" ######################################################################### LIST_coldfire="$(boards_by_arch m68k) - astro_mcf5373l \ - cobra5272 \ EB+MCF-EV123 \ EB+MCF-EV123_internal \ M52277EVB \ M5235EVB \ - M5329AFEE \ - M5373EVB \ M54451EVB \ M54455EVB \ - M5475AFE \ - M5485AFE \ " #########################################################################
Makefile +0 -96
120 lines not on this page · raw message
boards.cfg +20 -1
@@ -259,6 +259,7 @@ tcm-bf518 blackfin blackfin tcm-bf537 blackfin blackfin eNET x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x38040000 eNET_SRAM x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x19000000 +cobra5272 m68k mcf52x2 cobra5272 - idmr m68k mcf52x2 TASREG m68k mcf52x2 tasreg esd M5208EVBE m68k mcf52x2 m5208evbe freescale
@@ -269,8 +270,26 @@ M5271EVB m68k mcf52x2 m5271evb freesca M5272C3 m68k mcf52x2 m5272c3 freescale M5275EVB m68k mcf52x2 m5275evb freescale M5282EVB m68k mcf52x2 m5282evb freescale +astro_mcf5373l m68k mcf532x mcf5373l astro M53017EVB m68k mcf532x m53017evb freescale -EP2500 m68k mcf52x2 ep2500 Mercury +M5329AFEE m68k mcf532x m5329evb freescale - M5329EVB:NANDFLASH_SIZE=0 +M5329BFEE m68k mcf532x m5329evb freescale - M5329EVB:NANDFLASH_SIZE=16 +M5373EVB m68k mcf532x m5373evb freescale - M5373EVB:NANDFLASH_SIZE=16 +M5475AFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64 +M5475BFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16 +M5475CFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL +M5475DFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL +M5475EFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL +M5475FFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64 +M5475GFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=4,SYS_DRAMSZ=64 +M5485AFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64 +M5485BFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16 +M5485CFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL +M5485DFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL +M5485EFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL +M5485FFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64 +M5485GFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=4,SYS_DRAMSZ=64 +M5485HFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO microblaze-generic microblaze microblaze microblaze-generic xilinx dbau1000 mips mips32 dbau1x00 - au1x00 dbau1x00:DBAU1000 dbau1100 mips mips32 dbau1x00 - au1x00 dbau1x00:DBAU1100
include/configs/M5329EVB.h +4 -4
@@ -60,7 +60,7 @@#define CONFIG_CMD_PING #define CONFIG_CMD_REGINFO -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE # define CONFIG_CMD_NAND #endif
@@ -210,7 +210,7 @@# define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ #endif -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE # define CONFIG_SYS_MAX_NAND_DEVICE 1# define CONFIG_SYS_NAND_BASE CONFIG_SYS_CS2_BASE# define CONFIG_SYS_NAND_SIZE 1
@@ -266,9 +266,9 @@#define CONFIG_SYS_CS1_MASK 0x001f0001#define CONFIG_SYS_CS1_CTRL 0x002A3780 -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE #define CONFIG_SYS_CS2_BASE 0x20000000 -#define CONFIG_SYS_CS2_MASK ((NANDFLASH_SIZE << 20) | 1) +#define CONFIG_SYS_CS2_MASK ((CONFIG_NANDFLASH_SIZE << 20) | 1)#define CONFIG_SYS_CS2_CTRL 0x00001f60#endif
Signature · 1 line
1.7.1
PATCH 3/6 ColdFire: Move boards with simple _config rules to boards.cfg
Quoted 9 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Stany MARCEL
Sent: Wednesday, September 14, 2011 8:44 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Stany MARCEL; Jin Zhengxiong-R64188
Subject: [U-Boot] [PATCH 3/6] ColdFire: Move boards with simple_configrules to boards.cfg
Quoted 7 lines
Signed-off-by Stany MARCEL <[email protected]>--- MAKEALL | 6 --- Makefile | 96 -------------------------------------------- boards.cfg | 21 +++++++++- include/configs/M5329EVB.h | 8 ++-- 4 files changed, 24 insertions(+), 107 deletions(-)
[Jin Zhengxiong-R64188]
I suggest to put the M5329EVB update in another separate patch. Thanks.
Best Regards,
Jason
PATCH 3/6 ColdFire: Move boards with simple _config rules to boards.cfg
Quoted 16 lines
Quoted 9 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Stany MARCEL
Sent: Wednesday, September 14, 2011 8:44 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Stany MARCEL; Jin Zhengxiong-R64188
Subject: [U-Boot] [PATCH 3/6] ColdFire: Move boards with simple_configrules to boards.cfgQuoted 7 lines
Signed-off-by Stany MARCEL <[email protected]>---
?MAKEALL ? ? ? ? ? ? ? ? ? ?| ? ?6 --- ?Makefile ? ? ? ? ? ? ? ? ? | ? 96 -------------------------------------------- ?boards.cfg ? ? ? ? ? ? ? ? | ? 21 +++++++++- ?include/configs/M5329EVB.h | ? ?8 ++--?4 files changed, 24 insertions(+), 107 deletions(-)
Quoted 5 lines
[Jin Zhengxiong-R64188]
I suggest to put the M5329EVB update in another separate patch. Thanks.Best Regards,
Jason
Hi Jason,
The modification the M5329EVB configuration header is linked to the build modification, so I don't think it's a good idea to separate them.
But if it is really necessary I can split the commit in two parts on Monday.
Regards
PATCH 4/6 ColdFire: Merge differentiated linking files into a sigle one by board
In reply to Stany MARCELThe spa, stm, int, 32 and 16 linking files are identical so there is no need to differentiate them. A single lds file is now used, and _config rule are simplified.
--- Makefile | 9 -- board/freescale/m52277evb/u-boot.lds | 102 +++++++++++++++++++++++++ board/freescale/m52277evb/u-boot.spa | 102 ------------------------- board/freescale/m52277evb/u-boot.stm | 136 ---------------------------------- board/freescale/m5235evb/u-boot.16 | 99 ------------------------ board/freescale/m5235evb/u-boot.32 | 99 ------------------------ board/freescale/m5235evb/u-boot.lds | 99 ++++++++++++++++++++++++ board/freescale/m54451evb/u-boot.lds | 97 ++++++++++++++++++++++++ board/freescale/m54451evb/u-boot.spa | 97 ------------------------ board/freescale/m54451evb/u-boot.stm | 97 ------------------------ board/freescale/m54455evb/u-boot.atm | 97 ------------------------ board/freescale/m54455evb/u-boot.int | 97 ------------------------ board/freescale/m54455evb/u-boot.lds | 97 ++++++++++++++++++++++++ board/freescale/m54455evb/u-boot.stm | 136 ---------------------------------- 14 files changed, 395 insertions(+), 969 deletions(-) create mode 100644 board/freescale/m52277evb/u-boot.lds delete mode 100644 board/freescale/m52277evb/u-boot.spa delete mode 100644 board/freescale/m52277evb/u-boot.stm delete mode 100644 board/freescale/m5235evb/u-boot.16 delete mode 100644 board/freescale/m5235evb/u-boot.32 create mode 100644 board/freescale/m5235evb/u-boot.lds create mode 100644 board/freescale/m54451evb/u-boot.lds delete mode 100644 board/freescale/m54451evb/u-boot.spa delete mode 100644 board/freescale/m54451evb/u-boot.stm delete mode 100644 board/freescale/m54455evb/u-boot.atm delete mode 100644 board/freescale/m54455evb/u-boot.int create mode 100644 board/freescale/m54455evb/u-boot.lds delete mode 100644 board/freescale/m54455evb/u-boot.stm
Makefile +0 -9
@@ -618,13 +618,11 @@ M52277EVB_stmicro_config : unconfig if [ "$${FLASH}" = "SPANSION" ] ; then \ echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ - cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ - cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ fi @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
@@ -639,10 +637,8 @@ M5235EVB_Flash32_config: unconfig if [ "$${FLASH}" != "16" ] ; then \ echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ - cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ else \ echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ - cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ fi @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
@@ -666,13 +662,11 @@ M54451EVB_stmicro_config : unconfig esac; \ if [ "$${FLASH}" = "NOR" ] ; then \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ - cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ - cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ fi; \ echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
@@ -698,18 +692,15 @@ M54455EVB_stm33_config : unconfig if [ "$${FLASH}" = "INTEL" ] ; then \ echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "ATMEL" ] ; then \ echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ $(XECHO) "... with $${FREQ}Hz input clock"
board/freescale/m52277evb/u-boot.lds new file +102 -0
102 lines not on this page · raw message
board/freescale/m52277evb/u-boot.spa deleted +0 -102
102 lines not on this page · raw message
board/freescale/m52277evb/u-boot.stm deleted +0 -136
136 lines not on this page · raw message
board/freescale/m5235evb/u-boot.16 deleted +0 -99
99 lines not on this page · raw message
board/freescale/m5235evb/u-boot.32 deleted +0 -99
99 lines not on this page · raw message
board/freescale/m5235evb/u-boot.lds new file +99 -0
99 lines not on this page · raw message
board/freescale/m54451evb/u-boot.lds new file +97 -0
97 lines not on this page · raw message
board/freescale/m54451evb/u-boot.spa deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54451evb/u-boot.stm deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.atm deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.int deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.lds new file +97 -0
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.stm deleted +0 -136
136 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 5/6 ColdFire: Clean Makefile _config rules
In reply to Stany MARCELRemove unused mkdir, and add missing ones.
--- Makefile | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
Makefile +8 -2
@@ -610,6 +610,8 @@ ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') M52277EVB_config \ M52277EVB_spansion_config \ M52277EVB_stmicro_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m52277evb @case "$@" in \ M52277EVB_config) FLASH=SPANSION;; \ M52277EVB_spansion_config) FLASH=SPANSION;; \
@@ -629,6 +631,8 @@ M52277EVB_stmicro_config : unconfig M5235EVB_config \ M5235EVB_Flash16_config \ M5235EVB_Flash32_config: unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m5235evb @case "$@" in \ M5235EVB_config) FLASH=16;; \ M5235EVB_Flash16_config) FLASH=16;; \
@@ -643,19 +647,19 @@ M5235EVB_Flash32_config: unconfig @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale EB+MCF-EV123_config : unconfig - @mkdir -p $(obj)include @mkdir -p $(obj)board/BuS/EB+MCF-EV123 @echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS EB+MCF-EV123_internal_config : unconfig - @mkdir -p $(obj)include @mkdir -p $(obj)board/BuS/EB+MCF-EV123 @echo "CONFIG_SYS_TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS M54451EVB_config \ M54451EVB_stmicro_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m54451evb @case "$@" in \ M54451EVB_config) FLASH=NOR;; \ M54451EVB_stmicro_config) FLASH=STMICRO;; \
@@ -679,6 +683,8 @@ M54455EVB_a66_config \ M54455EVB_i33_config \ M54455EVB_i66_config \ M54455EVB_stm33_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m54455evb @case "$@" in \ M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
Signature · 1 line
1.7.1
PATCH 6/6 ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined
In reply to Stany MARCELA temp variable was used but not declared, with CONFIG_SYS_DRAMSZ1 defined. This variable is now declared in the functione when needed.
--- board/freescale/m548xevb/m548xevb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
board/freescale/m548xevb/m548xevb.c +3 -0
@@ -43,6 +43,9 @@ phys_size_t initdram(int board_type)volatile siu_t *siu = (siu_t *) (MMAP_SIU );volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM );u32 dramsize, i; +#ifdef CONFIG_SYS_DRAMSZ1 +u32 temp; +#endif siu->drv =CONFIG_SYS_SDRAM_DRVSTRENGTH ;
Signature · 1 line
1.7.1
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
In reply to Stany MARCELQuoted 26 lines
-----Original Message-----
From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Wednesday, September 14, 2011 8:44 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/6] ColdFire: Cleanup lds files for multiple defined symbolsLds files cleened to remove multiple defined section and modified to be compliant with --gc-sections added for ColdFire platform in a previous patch.
Signed-off-by Stany MARCEL <[email protected]>--- board/BuS/EB+MCF-EV123/u-boot.lds | 73 ++++++------------------------- board/cobra5272/u-boot.lds | 69 ++++++------------------------ board/esd/tasreg/u-boot.lds | 69 +++++------------------------- board/freescale/m5235evb/u-boot.16 | 71 ++++++------------------------- board/freescale/m5235evb/u-boot.32 | 79 ++++++---------------------------- board/freescale/m5249evb/u-boot.lds | 68 +++++------------------------ board/freescale/m5253evbe/u-boot.lds | 67 +++++----------------------- board/freescale/m5271evb/u-boot.lds | 66 +++++----------------------- board/freescale/m5272c3/u-boot.lds | 67 +++++----------------------- board/freescale/m5275evb/u-boot.lds | 68 ++++++----------------------- board/freescale/m5282evb/u-boot.lds | 70 ++++++------------------------ board/idmr/u-boot.lds | 69 +++++------------------------- 12 files changed, 150 insertions(+), 686 deletions(-)
[snip]
board/cobra5272/u-boot.lds line 3
Quoted 9 lines
board/cobra5272/u-boot.lds index renamed from board/cobra5272/u-boot.lds +0
-0da14807..6c2dfe8 100644
board/cobra5272/u-boot.lds +1
-1@@ -1,5 +1,5 @@ /* - * (C) Copyright 2000 + * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
[Jin Zhengxiong-R64188] Please double check the year for the Copyright, Thanks.
Best Regards,
Jason
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Quoted 40 lines
Quoted 26 lines
-----Original Message-----
From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Wednesday, September 14, 2011 8:44 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/6] ColdFire: Cleanup lds files for multiple defined symbolsLds files cleened to remove multiple defined section and modified to be compliant with --gc-sections added for ColdFire platform in a previous patch.
Signed-off-by Stany MARCEL <[email protected]>---
?board/BuS/EB+MCF-EV123/u-boot.lds ? ?| ? 73 ++++++------------------------- ?board/cobra5272/u-boot.lds ? ? ? ? ? | ? 69 ++++++------------------------ ?board/esd/tasreg/u-boot.lds ? ? ? ? ?| ? 69 +++++------------------------- ?board/freescale/m5235evb/u-boot.16 ? | ? 71 ++++++------------------------- ?board/freescale/m5235evb/u-boot.32 ? | ? 79 ++++++---------------------------- ?board/freescale/m5249evb/u-boot.lds ?| ? 68 +++++------------------------ ?board/freescale/m5253evbe/u-boot.lds | ? 67 +++++----------------------- ?board/freescale/m5271evb/u-boot.lds ?| ? 66 +++++----------------------- ?board/freescale/m5272c3/u-boot.lds ? | ? 67 +++++----------------------- ?board/freescale/m5275evb/u-boot.lds ?| ? 68 ++++++----------------------- ?board/freescale/m5282evb/u-boot.lds ?| ? 70 ++++++------------------------ ?board/idmr/u-boot.lds ? ? ? ? ? ? ? ?| ? 69 +++++-------------------------?12 files changed, 150 insertions(+), 686 deletions(-)
[snip]
Quoted 9 lines
board/cobra5272/u-boot.lds index renamed from board/cobra5272/u-boot.lds +0
-0da14807..6c2dfe8 100644
board/cobra5272/u-boot.lds +0
-0@@ -1,5 +1,5 @@?/*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2003
? * Wolfgang Denk, DENX Software Engineering, wd at denx.de.[Jin Zhengxiong-R64188] Please double check the year for the Copyright, Thanks.
Quoted 3 lines
Best Regards,
Jason
I merged with another files with this copyright years.
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
Regards,
Stany
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Quoted 43 lines
Quoted 39 lines
Quoted 25 lines
From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Wednesday, September 14, 2011 8:44 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/6] ColdFire: Cleanup lds files for multiple defined symbolsLds files cleened to remove multiple defined section and modified to be compliant with --gc-sections added for ColdFire platform in a previous patch.
Signed-off-by Stany MARCEL <[email protected]>---
?board/BuS/EB+MCF-EV123/u-boot.lds ? ?| ? 73 ++++++------------------------- ?board/cobra5272/u-boot.lds ? ? ? ? ? | ? 69 ++++++------------------------ ?board/esd/tasreg/u-boot.lds ? ? ? ? ?| ? 69 +++++------------------------- ?board/freescale/m5235evb/u-boot.16 ? | ? 71 ++++++------------------------- ?board/freescale/m5235evb/u-boot.32 ? | ? 79 ++++++---------------------------- ?board/freescale/m5249evb/u-boot.lds ?| ? 68 +++++------------------------ ?board/freescale/m5253evbe/u-boot.lds | ? 67 +++++----------------------- ?board/freescale/m5271evb/u-boot.lds ?| ? 66 +++++----------------------- ?board/freescale/m5272c3/u-boot.lds ? | ? 67 +++++----------------------- ?board/freescale/m5275evb/u-boot.lds ?| ? 68 ++++++----------------------- ?board/freescale/m5282evb/u-boot.lds ?| ? 70 ++++++------------------------ ?board/idmr/u-boot.lds ? ? ? ? ? ? ? ?| ? 69 +++++-------------------------?12 files changed, 150 insertions(+), 686 deletions(-)
[snip]
Quoted 9 lines
board/cobra5272/u-boot.lds index renamed from board/cobra5272/u-boot.lds +0
-0da14807..6c2dfe8 100644
board/cobra5272/u-boot.lds +0
-0@@ -1,5 +1,5 @@?/*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2003
? * Wolfgang Denk, DENX Software Engineering, wd at denx.de.[Jin Zhengxiong-R64188] Please double check the year for the Copyright, Thanks.
Quoted 3 lines
Best Regards,
Jason
Quoted 9 lines
I merged with another files with this copyright years.
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
Regards,
Stany
Hello,
As I've got no response I write a new message.
Regards,
Signature · 1 line
Stany
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Quoted 28 lines
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
board/cobra5272/u-boot.lds +0
-0index
da14807..6c2dfe8 100644board/cobra5272/u-boot.lds +0
-0@@ -1,5 +1,5 @@?/*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2003
? * Wolfgang Denk, DENX Software Engineering, wd at denx.de.[Jin Zhengxiong-R64188] Please double check the year for the Copyright,
Thanks.
Quoted 5 lines
Quoted 4 lines
Best Regards,
JasonQuoted 9 lines
I merged with another files with this copyright years.
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
Regards,
Stany
Quoted 8 lines
Hello,
As I've got no response I write a new message.
Regards,
--
Stany
[Jin Zhengxiong-R64188] Then why you update it to 2000-2003?
Jason
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Quoted 34 lines
Quoted 34 lines
Quoted 14 lines
Quoted 14 lines
board/cobra5272/u-boot.lds line 3
Quoted 13 lines
board/cobra5272/u-boot.lds +0
-0index
da14807..6c2dfe8 100644board/cobra5272/u-boot.lds +1
-1@@ -1,5 +1,5 @@ /* - * (C) Copyright 2000 + * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd at denx.de.[Jin Zhengxiong-R64188] Please double check the year for the Copyright,
Thanks.
Quoted 5 lines
Quoted 4 lines
Best Regards,
JasonQuoted 9 lines
I merged with another files with this copyright years.
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
Regards,
Stany
Hello,
As I've got no response I write a new message.
Quoted 8 lines
Quoted 4 lines
Regards,
--
Stany[Jin Zhengxiong-R64188] Then why you update it to 2000-2003?
Jason
It's a result to a merge operation, but my previous question without answer is :
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
And so do I revert to the previous dates or not in my patch.
Regards,
PATCH 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Dear "Stany MARCEL",
Quoted 2 lines · In message <[email protected]>…
Each time a file is edited do I have to actualizes end dates ? Or leave them as they are ?
If the file has a copyright entry for yourself, you would udate this to include the current calendar year. Never touch copyright entries of other persons or entities.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There has been an alarming increase in the number of things you know nothing about.
PATCH v2 1/6 ColdFire: Cleanup lds files for multiple defined symbols
Lds files cleened to remove multiple defined section and modified to be compliant with --gc-sections added for ColdFire platform in a previous patch.
---
Changes for v2:
- rebase to master
- remove eroneously modified copyright line
board/BuS/EB+MCF-EV123/u-boot.lds | 73 ++++++------------------------- board/cobra5272/u-boot.lds | 67 +++++----------------------- board/esd/tasreg/u-boot.lds | 69 +++++------------------------- board/freescale/m5235evb/u-boot.16 | 71 ++++++------------------------- board/freescale/m5235evb/u-boot.32 | 79 ++++++---------------------------- board/freescale/m5249evb/u-boot.lds | 68 +++++------------------------ board/freescale/m5253evbe/u-boot.lds | 67 +++++----------------------- board/freescale/m5271evb/u-boot.lds | 66 +++++----------------------- board/freescale/m5272c3/u-boot.lds | 67 +++++----------------------- board/freescale/m5275evb/u-boot.lds | 68 ++++++----------------------- board/freescale/m5282evb/u-boot.lds | 70 ++++++------------------------ board/idmr/u-boot.lds | 69 +++++------------------------- 12 files changed, 149 insertions(+), 685 deletions(-)
board/BuS/EB+MCF-EV123/u-boot.lds +15 -58
@@ -22,52 +22,14 @@ */ OUTPUT_ARCH(m68k) -/* Do we need any of these for elf? - __DYNAMIC = 0; */ + SECTIONS { - /* Read-only sections, merged into text segment: */ - . = + SIZEOF_HEADERS; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .rel.text : { *(.rel.text) } - .rela.text : { *(.rela.text) } - .rel.data : { *(.rel.data) } - .rela.data : { *(.rela.data) } - .rel.rodata : { *(.rel.rodata) } - .rela.rodata : { *(.rela.rodata) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } - .plt : { *(.plt) } .text : { - /* WARNING - the following is hand-optimized to fit within */ - /* the sector layout of our flash chips! XXX FIXME XXX */ - - arch/m68k/cpu/mcf52x2/start.o (.text) - common/dlmalloc.o (.text) - lib/string.o (.text) - lib/vsprintf.o (.text) - lib/crc32.o (.text) - lib/zlib.o (.text) + arch/m68k/cpu/mcf52x2/start.o (.text*) -/* . = env_offset; */ - common/env_embedded.o(.text) - - *(.text) - *(.fixup) - *(.got1) + *(.text*) } _etext = .; PROVIDE (etext = .);
@@ -75,43 +37,39 @@ SECTIONS { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } - .fini : { *(.fini) } =0 - .ctors : { *(.ctors) } - .dtors : { *(.dtors) } /* Read-write section, merged into data segment: */ . = (. + 0x00FF) & 0xFFFFFF00; _erotext = .; PROVIDE (erotext = .); - .reloc : + + .reloc : { __got_start = .; - *(.got) + KEEP(*(.got)) __got_end = .; _GOT2_TABLE_ = .; - *(.got2) + KEEP(*(.got2)) _FIXUP_TABLE_ = .; - *(.fixup) + KEEP(*(.fixup)) } __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : { - *(.data) - *(.data1) - *(.sdata) - *(.sdata2) - *(.dynamic) - CONSTRUCTORS + *(.data*) + *(.sdata*) } _edata = .; PROVIDE (edata = .); + . = .; __u_boot_cmd_start = .; .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; + . = .; __start___ex_table = .; __ex_table : { *(__ex_table) } __stop___ex_table = .;
@@ -124,12 +82,11 @@ SECTIONS __init_end = .; __bss_start = .; - .bss (NOLOAD) : + .bss (NOLOAD) : { _sbss = .; - *(.sbss) *(.scommon) - *(.dynbss) - *(.bss) + *(.bss*) + *(.sbss*) *(COMMON) . = ALIGN(4); _ebss = .;
board/cobra5272/u-boot.lds +12 -55
115 lines not on this page · raw message
board/esd/tasreg/u-boot.lds +11 -58
116 lines not on this page · raw message
board/freescale/m5235evb/u-boot.16 +13 -58
119 lines not on this page · raw message
board/freescale/m5235evb/u-boot.32 +13 -66
127 lines not on this page · raw message
board/freescale/m5249evb/u-boot.lds +12 -56
117 lines not on this page · raw message
board/freescale/m5253evbe/u-boot.lds +12 -55
115 lines not on this page · raw message
board/freescale/m5271evb/u-boot.lds +11 -55
115 lines not on this page · raw message
board/freescale/m5272c3/u-boot.lds +12 -55
115 lines not on this page · raw message
board/freescale/m5275evb/u-boot.lds +14 -54
111 lines not on this page · raw message
board/freescale/m5282evb/u-boot.lds +13 -57
111 lines not on this page · raw message
board/idmr/u-boot.lds +11 -58
115 lines not on this page · raw message
--
1.7.1
PATCH v2 1/6 ColdFire: Cleanup lds files for multiple defined symbols
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111015/9e65d487/attachment.pgp
PATCH v2 2/6 ColdFire: Add $(obj) before cpu lib to correct build
In reply to Wolfgang DenkMissing $(obj) prevented the build of ColdFire boards in a directory than sources
---
Changes for v2:
- rebase to master
arch/m68k/cpu/mcf5227x/Makefile | 2 +- arch/m68k/cpu/mcf523x/Makefile | 2 +- arch/m68k/cpu/mcf532x/Makefile | 2 +- arch/m68k/cpu/mcf5445x/Makefile | 2 +- arch/m68k/cpu/mcf547x_8x/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
arch/m68k/cpu/mcf5227x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf523x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf532x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = COBJS = cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf5445x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = start.o COBJS = cpu.o speed.o cpu_init.o interrupts.o pci.o
arch/m68k/cpu/mcf547x_8x/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk # CFLAGS += -DET_DEBUG -LIB = lib$(CPU).o +LIB = $(obj)lib$(CPU).o START = COBJS = cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o
--
1.7.1
PATCH v2 3/6 ColdFire: Move boards with simple _config rules to boards.cfg
In reply to Wolfgang Denk---
Changes for v2:
- rebase to master
MAKEALL | 6 --- Makefile | 96 -------------------------------------------- boards.cfg | 21 +++++++++- include/configs/M5329EVB.h | 8 ++-- 4 files changed, 24 insertions(+), 107 deletions(-)
MAKEALL +0 -6
@@ -440,18 +440,12 @@ LIST_microblaze="$(boards_by_arch microblaze)" ######################################################################### LIST_m68k="$(boards_by_arch m68k) - astro_mcf5373l \ - cobra5272 \ EB+MCF-EV123 \ EB+MCF-EV123_internal \ M52277EVB \ M5235EVB \ - M5329AFEE \ - M5373EVB \ M54451EVB \ M54455EVB \ - M5475AFE \ - M5485AFE \ " LIST_coldfire=${LIST_m68k}
Makefile +0 -96
120 lines not on this page · raw message
boards.cfg +20 -1
@@ -264,6 +264,7 @@ tcm-bf518 blackfin blackfin tcm-bf537 blackfin blackfin eNET x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x38040000 eNET_SRAM x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x19000000 +cobra5272 m68k mcf52x2 cobra5272 - idmr m68k mcf52x2 TASREG m68k mcf52x2 tasreg esd M5208EVBE m68k mcf52x2 m5208evbe freescale
@@ -274,8 +275,26 @@ M5271EVB m68k mcf52x2 m5271evb freesca M5272C3 m68k mcf52x2 m5272c3 freescale M5275EVB m68k mcf52x2 m5275evb freescale M5282EVB m68k mcf52x2 m5282evb freescale +astro_mcf5373l m68k mcf532x mcf5373l astro M53017EVB m68k mcf532x m53017evb freescale -EP2500 m68k mcf52x2 ep2500 Mercury +M5329AFEE m68k mcf532x m5329evb freescale - M5329EVB:NANDFLASH_SIZE=0 +M5329BFEE m68k mcf532x m5329evb freescale - M5329EVB:NANDFLASH_SIZE=16 +M5373EVB m68k mcf532x m5373evb freescale - M5373EVB:NANDFLASH_SIZE=16 +M5475AFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64 +M5475BFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16 +M5475CFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL +M5475DFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL +M5475EFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL +M5475FFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64 +M5475GFE m68k mcf547x_8x m547xevb freescale - M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=4,SYS_DRAMSZ=64 +M5485AFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64 +M5485BFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16 +M5485CFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL +M5485DFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL +M5485EFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL +M5485FFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64 +M5485GFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=4,SYS_DRAMSZ=64 +M5485HFE m68k mcf547x_8x m548xevb freescale - M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO microblaze-generic microblaze microblaze microblaze-generic xilinx dbau1000 mips mips32 dbau1x00 - au1x00 dbau1x00:DBAU1000 dbau1100 mips mips32 dbau1x00 - au1x00 dbau1x00:DBAU1100
include/configs/M5329EVB.h +4 -4
@@ -60,7 +60,7 @@#define CONFIG_CMD_PING #define CONFIG_CMD_REGINFO -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE # define CONFIG_CMD_NAND #endif
@@ -209,7 +209,7 @@# define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ #endif -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE # define CONFIG_SYS_MAX_NAND_DEVICE 1# define CONFIG_SYS_NAND_BASE CONFIG_SYS_CS2_BASE# define CONFIG_SYS_NAND_SIZE 1
@@ -265,9 +265,9 @@#define CONFIG_SYS_CS1_MASK 0x001f0001#define CONFIG_SYS_CS1_CTRL 0x002A3780 -#ifdef NANDFLASH_SIZE +#ifdef CONFIG_NANDFLASH_SIZE #define CONFIG_SYS_CS2_BASE 0x20000000 -#define CONFIG_SYS_CS2_MASK ((NANDFLASH_SIZE << 20) | 1) +#define CONFIG_SYS_CS2_MASK ((CONFIG_NANDFLASH_SIZE << 20) | 1)#define CONFIG_SYS_CS2_CTRL 0x00001f60#endif
--
1.7.1
PATCH v2 4/6 ColdFire: Merge differentiated linking files into a sigle one by board
In reply to Wolfgang DenkThe spa, stm, int, 32 and 16 linking files are identical so there is no need to differentiate them. A single lds file is now used, and _config rule are simplified.
---
Changes for v2:
- rebase to master
Makefile | 9 -- board/freescale/m52277evb/u-boot.lds | 102 +++++++++++++++++++++++++ board/freescale/m52277evb/u-boot.spa | 102 ------------------------- board/freescale/m52277evb/u-boot.stm | 136 ---------------------------------- board/freescale/m5235evb/u-boot.16 | 99 ------------------------ board/freescale/m5235evb/u-boot.32 | 99 ------------------------ board/freescale/m5235evb/u-boot.lds | 99 ++++++++++++++++++++++++ board/freescale/m54451evb/u-boot.lds | 97 ++++++++++++++++++++++++ board/freescale/m54451evb/u-boot.spa | 97 ------------------------ board/freescale/m54451evb/u-boot.stm | 97 ------------------------ board/freescale/m54455evb/u-boot.atm | 97 ------------------------ board/freescale/m54455evb/u-boot.int | 97 ------------------------ board/freescale/m54455evb/u-boot.lds | 97 ++++++++++++++++++++++++ board/freescale/m54455evb/u-boot.stm | 136 ---------------------------------- 14 files changed, 395 insertions(+), 969 deletions(-) create mode 100644 board/freescale/m52277evb/u-boot.lds delete mode 100644 board/freescale/m52277evb/u-boot.spa delete mode 100644 board/freescale/m52277evb/u-boot.stm delete mode 100644 board/freescale/m5235evb/u-boot.16 delete mode 100644 board/freescale/m5235evb/u-boot.32 create mode 100644 board/freescale/m5235evb/u-boot.lds create mode 100644 board/freescale/m54451evb/u-boot.lds delete mode 100644 board/freescale/m54451evb/u-boot.spa delete mode 100644 board/freescale/m54451evb/u-boot.stm delete mode 100644 board/freescale/m54455evb/u-boot.atm delete mode 100644 board/freescale/m54455evb/u-boot.int create mode 100644 board/freescale/m54455evb/u-boot.lds delete mode 100644 board/freescale/m54455evb/u-boot.stm
Makefile +0 -9
@@ -622,13 +622,11 @@ M52277EVB_stmicro_config : unconfig if [ "$${FLASH}" = "SPANSION" ] ; then \ echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ - cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ - cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ fi @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
@@ -643,10 +641,8 @@ M5235EVB_Flash32_config: unconfig if [ "$${FLASH}" != "16" ] ; then \ echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ - cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ else \ echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ - cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ fi @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
@@ -670,13 +666,11 @@ M54451EVB_stmicro_config : unconfig esac; \ if [ "$${FLASH}" = "NOR" ] ; then \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ - cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ - cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ fi; \ echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
@@ -702,18 +696,15 @@ M54455EVB_stm33_config : unconfig if [ "$${FLASH}" = "INTEL" ] ; then \ echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "ATMEL" ] ; then \ echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ if [ "$${FLASH}" = "STMICRO" ] ; then \ echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ echo "CONFIG_SYS_TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ - cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ fi; \ echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ $(XECHO) "... with $${FREQ}Hz input clock"
board/freescale/m52277evb/u-boot.lds new file +102 -0
102 lines not on this page · raw message
board/freescale/m52277evb/u-boot.spa deleted +0 -102
102 lines not on this page · raw message
board/freescale/m52277evb/u-boot.stm deleted +0 -136
136 lines not on this page · raw message
board/freescale/m5235evb/u-boot.16 deleted +0 -99
99 lines not on this page · raw message
board/freescale/m5235evb/u-boot.32 deleted +0 -99
99 lines not on this page · raw message
board/freescale/m5235evb/u-boot.lds new file +99 -0
99 lines not on this page · raw message
board/freescale/m54451evb/u-boot.lds new file +97 -0
97 lines not on this page · raw message
board/freescale/m54451evb/u-boot.spa deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54451evb/u-boot.stm deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.atm deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.int deleted +0 -97
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.lds new file +97 -0
97 lines not on this page · raw message
board/freescale/m54455evb/u-boot.stm deleted +0 -136
136 lines not on this page · raw message
--
1.7.1
PATCH v2 5/6 ColdFire: Clean Makefile _config rules
In reply to Wolfgang DenkRemove unused mkdir, and add missing ones.
---
Changes for v2:
- rebase to master
Makefile | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
Makefile +8 -2
@@ -614,6 +614,8 @@ ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') M52277EVB_config \ M52277EVB_spansion_config \ M52277EVB_stmicro_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m52277evb @case "$@" in \ M52277EVB_config) FLASH=SPANSION;; \ M52277EVB_spansion_config) FLASH=SPANSION;; \
@@ -633,6 +635,8 @@ M52277EVB_stmicro_config : unconfig M5235EVB_config \ M5235EVB_Flash16_config \ M5235EVB_Flash32_config: unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m5235evb @case "$@" in \ M5235EVB_config) FLASH=16;; \ M5235EVB_Flash16_config) FLASH=16;; \
@@ -647,19 +651,19 @@ M5235EVB_Flash32_config: unconfig @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale EB+MCF-EV123_config : unconfig - @mkdir -p $(obj)include @mkdir -p $(obj)board/BuS/EB+MCF-EV123 @echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS EB+MCF-EV123_internal_config : unconfig - @mkdir -p $(obj)include @mkdir -p $(obj)board/BuS/EB+MCF-EV123 @echo "CONFIG_SYS_TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS M54451EVB_config \ M54451EVB_stmicro_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m54451evb @case "$@" in \ M54451EVB_config) FLASH=NOR;; \ M54451EVB_stmicro_config) FLASH=STMICRO;; \
@@ -683,6 +687,8 @@ M54455EVB_a66_config \ M54455EVB_i33_config \ M54455EVB_i66_config \ M54455EVB_stm33_config : unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/freescale/m54455evb @case "$@" in \ M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
--
1.7.1
PATCH v2 6/6 ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined
In reply to Wolfgang DenkA temp variable was used but not declared, with CONFIG_SYS_DRAMSZ1 defined. This variable is now declared in the functione when needed.
---
Changes for v2:
- rebase to master
board/freescale/m548xevb/m548xevb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
board/freescale/m548xevb/m548xevb.c +3 -0
@@ -43,6 +43,9 @@ phys_size_t initdram(int board_type)volatile siu_t *siu = (siu_t *) (MMAP_SIU );volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM );u32 dramsize, i; +#ifdef CONFIG_SYS_DRAMSZ1 +u32 temp; +#endif siu->drv =CONFIG_SYS_SDRAM_DRVSTRENGTH ;
--
1.7.1