[U-Boot] [PATCH 00/13] ppc: Fix relocation

Peter Tyser ptyser at xes-inc.com
Mon Sep 21 18:20:24 CEST 2009


This series attempts to fix relocation to RAM for ppc boards.

I split the patches up pretty liberally, let me know if you'd like
them organized differently.

I tried to be thorough during the changes (especially #1), let me
know if I missed anything, there's lots of linker scripts for ppc
boards:)

Peter Tyser (13):
  ppc: Enable full relocation to RAM
  ppc: Check for compilers that don't support relocation
  ppc: Remove board.c relocation fixups
  ppc: Remove pci config table pointer relocation fixups
  ppc: Remove extable relocation fixups
  ppc: Remove board-specific command table relocation fixups
  tsec: Remove PHY command relocation fixups
  fpga: Remove relocation fixups
  mpl: Remove memory test relocation fixups
  lwmon, lwmon5: Remove sysmon POST relocation fixups
  p3mx: Remove serial relocation fixups
  Conditionally perform common relocation fixups
  ppc: Remove reloc_off field from global_data structure

 board/LEOX/elpt860/u-boot.lds              |    1 -
 board/LEOX/elpt860/u-boot.lds.debug        |    1 -
 board/MAI/AmigaOneG3SE/u-boot.lds          |    1 -
 board/Marvell/db64360/u-boot.lds           |    1 -
 board/Marvell/db64460/u-boot.lds           |    1 -
 board/RPXClassic/u-boot.lds                |    1 -
 board/RPXClassic/u-boot.lds.debug          |    1 -
 board/RPXlite/u-boot.lds                   |    1 -
 board/RPXlite/u-boot.lds.debug             |    1 -
 board/RPXlite_dw/u-boot.lds                |    1 -
 board/RPXlite_dw/u-boot.lds.debug          |    1 -
 board/RRvision/u-boot.lds                  |    1 -
 board/adder/u-boot.lds                     |    1 -
 board/amcc/acadia/u-boot-nand.lds          |    1 -
 board/amcc/acadia/u-boot.lds               |    1 -
 board/amcc/bamboo/u-boot-nand.lds          |    1 -
 board/amcc/bamboo/u-boot.lds               |    1 -
 board/amcc/bubinga/u-boot.lds              |    1 -
 board/amcc/canyonlands/u-boot-nand.lds     |    1 -
 board/amcc/canyonlands/u-boot.lds          |    1 -
 board/amcc/ebony/u-boot.lds                |    1 -
 board/amcc/katmai/u-boot.lds               |    1 -
 board/amcc/kilauea/u-boot-nand.lds         |    1 -
 board/amcc/kilauea/u-boot.lds              |    1 -
 board/amcc/luan/u-boot.lds                 |    1 -
 board/amcc/makalu/u-boot.lds               |    1 -
 board/amcc/ocotea/u-boot.lds               |    1 -
 board/amcc/redwood/u-boot.lds              |    1 -
 board/amcc/sequoia/u-boot-nand.lds         |    1 -
 board/amcc/sequoia/u-boot-ram.lds          |    1 -
 board/amcc/sequoia/u-boot.lds              |    1 -
 board/amcc/taihu/u-boot.lds                |    1 -
 board/amcc/taishan/u-boot.lds              |    1 -
 board/amcc/walnut/u-boot.lds               |    1 -
 board/amcc/yosemite/u-boot.lds             |    1 -
 board/amcc/yucca/u-boot.lds                |    1 -
 board/amirix/ap1000/u-boot.lds             |    1 -
 board/c2mon/u-boot.lds                     |    1 -
 board/c2mon/u-boot.lds.debug               |    1 -
 board/cm5200/u-boot.lds                    |    1 -
 board/cogent/u-boot.lds                    |    1 -
 board/cogent/u-boot.lds.debug              |    1 -
 board/cray/L1/u-boot.lds                   |    1 -
 board/cray/L1/u-boot.lds.debug             |    1 -
 board/csb272/u-boot.lds                    |    1 -
 board/csb472/u-boot.lds                    |    1 -
 board/dave/PPChameleonEVB/u-boot.lds       |    1 -
 board/digsy_mtc/cmd_mtc.c                  |   30 -----
 board/digsy_mtc/digsy_mtc.c                |    2 -
 board/eltec/bab7xx/u-boot.lds              |    1 -
 board/eltec/elppc/u-boot.lds               |    1 -
 board/eltec/mhpc/u-boot.lds                |    1 -
 board/eltec/mhpc/u-boot.lds.debug          |    1 -
 board/emk/top860/u-boot.lds                |    1 -
 board/emk/top860/u-boot.lds.debug          |    1 -
 board/ep88x/u-boot.lds                     |    1 -
 board/eric/u-boot.lds                      |    1 -
 board/esd/adciop/u-boot.lds                |    1 -
 board/esd/apc405/u-boot.lds                |    1 -
 board/esd/ar405/u-boot.lds                 |    1 -
 board/esd/ash405/u-boot.lds                |    1 -
 board/esd/canbt/u-boot.lds                 |    1 -
 board/esd/cms700/u-boot.lds                |    1 -
 board/esd/cpci2dp/u-boot.lds               |    1 -
 board/esd/cpci405/u-boot.lds               |    1 -
 board/esd/cpci750/u-boot.lds               |    1 -
 board/esd/cpciiser4/u-boot.lds             |    1 -
 board/esd/dasa_sim/u-boot.lds              |    1 -
 board/esd/dp405/u-boot.lds                 |    1 -
 board/esd/du405/u-boot.lds                 |    1 -
 board/esd/du440/u-boot.lds                 |    1 -
 board/esd/hh405/u-boot.lds                 |    1 -
 board/esd/hub405/u-boot.lds                |    1 -
 board/esd/ocrtc/u-boot.lds                 |    1 -
 board/esd/pci405/u-boot.lds                |    1 -
 board/esd/plu405/u-boot.lds                |    1 -
 board/esd/pmc405/u-boot.lds                |    1 -
 board/esd/pmc405de/u-boot.lds              |    1 -
 board/esd/pmc440/fpga.c                    |    6 +-
 board/esd/pmc440/u-boot-nand.lds           |    1 -
 board/esd/pmc440/u-boot.lds                |    1 -
 board/esd/voh405/u-boot.lds                |    1 -
 board/esd/vom405/u-boot.lds                |    1 -
 board/esd/wuh405/u-boot.lds                |    1 -
 board/esteem192e/u-boot.lds                |    1 -
 board/etx094/u-boot.lds                    |    1 -
 board/etx094/u-boot.lds.debug              |    1 -
 board/evb64260/u-boot.lds                  |    1 -
 board/exbitgen/u-boot.lds                  |    1 -
 board/fads/u-boot.lds                      |    1 -
 board/fads/u-boot.lds.debug                |    1 -
 board/flagadm/u-boot.lds                   |    1 -
 board/flagadm/u-boot.lds.debug             |    1 -
 board/freescale/mpc7448hpc2/u-boot.lds     |    1 -
 board/freescale/mpc8548cds/mpc8548cds.c    |    7 -
 board/freescale/mpc8610hpcd/u-boot.lds     |    1 -
 board/freescale/mpc8641hpcn/u-boot.lds     |    1 -
 board/g2000/u-boot.lds                     |    1 -
 board/gdsys/dlvision/u-boot.lds            |    1 -
 board/gdsys/gdppc440etx/u-boot.lds         |    1 -
 board/gdsys/intip/u-boot.lds               |    1 -
 board/gdsys/neo/u-boot.lds                 |    1 -
 board/gen860t/fpga.c                       |    5 +-
 board/gen860t/u-boot-flashenv.lds          |    1 -
 board/gen860t/u-boot.lds                   |    1 -
 board/genietv/u-boot.lds                   |    1 -
 board/genietv/u-boot.lds.debug             |    1 -
 board/gth/u-boot.lds                       |    1 -
 board/hermes/u-boot.lds                    |    1 -
 board/hermes/u-boot.lds.debug              |    1 -
 board/hymod/u-boot.lds                     |    1 -
 board/hymod/u-boot.lds.debug               |    1 -
 board/icu862/u-boot.lds                    |    1 -
 board/icu862/u-boot.lds.debug              |    1 -
 board/inka4x0/inka4x0.c                    |   10 --
 board/inka4x0/inkadiag.c                   |   28 ----
 board/ip860/u-boot.lds                     |    1 -
 board/ip860/u-boot.lds.debug               |    1 -
 board/ivm/u-boot.lds                       |    1 -
 board/ivm/u-boot.lds.debug                 |    1 -
 board/jse/u-boot.lds                       |    1 -
 board/keymile/km8xx/u-boot.lds             |    1 -
 board/korat/u-boot-F7FC.lds                |    1 -
 board/korat/u-boot.lds                     |    1 -
 board/kup/kup4k/u-boot.lds                 |    1 -
 board/kup/kup4k/u-boot.lds.debug           |    1 -
 board/kup/kup4x/u-boot.lds                 |    1 -
 board/kup/kup4x/u-boot.lds.debug           |    1 -
 board/lantec/u-boot.lds                    |    1 -
 board/lantec/u-boot.lds.debug              |    1 -
 board/lwmon/u-boot.lds                     |    1 -
 board/lwmon/u-boot.lds.debug               |    1 -
 board/lwmon5/u-boot.lds                    |    1 -
 board/matrix_vision/mvbc_p/fpga.c          |    7 +-
 board/matrix_vision/mvblm7/fpga.c          |    6 +-
 board/mbx8xx/u-boot.lds                    |    1 -
 board/mbx8xx/u-boot.lds.debug              |    1 -
 board/ml2/u-boot.lds                       |    1 -
 board/ml2/u-boot.lds.debug                 |    1 -
 board/mousse/u-boot.lds                    |    1 -
 board/mousse/u-boot.lds.rom                |    1 -
 board/mpl/common/memtst.c                  |   26 ----
 board/mpl/common/pci.c                     |   18 ---
 board/mpl/mip405/mip405.c                  |    3 +-
 board/mpl/mip405/u-boot.lds                |    1 -
 board/mpl/pati/pati.c                      |    2 -
 board/mpl/pip405/u-boot.lds                |    1 -
 board/mpl/pip405/u-boot.lds.debug          |    1 -
 board/mpl/vcma9/vcma9.c                    |    3 -
 board/munices/u-boot.lds                   |    1 -
 board/nc650/u-boot.lds                     |    1 -
 board/nc650/u-boot.lds.debug               |    1 -
 board/netphone/u-boot.lds                  |    1 -
 board/netphone/u-boot.lds.debug            |    1 -
 board/netstal/hcu4/u-boot.lds              |    1 -
 board/netstal/hcu5/u-boot.lds              |    1 -
 board/netstal/mcu25/u-boot.lds             |    1 -
 board/netta/u-boot.lds                     |    1 -
 board/netta/u-boot.lds.debug               |    1 -
 board/netta2/u-boot.lds                    |    1 -
 board/netta2/u-boot.lds.debug              |    1 -
 board/netvia/u-boot.lds                    |    1 -
 board/netvia/u-boot.lds.debug              |    1 -
 board/nx823/u-boot.lds                     |    1 -
 board/nx823/u-boot.lds.debug               |    1 -
 board/pcippc2/u-boot.lds                   |    1 -
 board/pcs440ep/u-boot.lds                  |    1 -
 board/ppmc7xx/u-boot.lds                   |    1 -
 board/prodrive/alpr/fpga.c                 |    4 +-
 board/prodrive/alpr/u-boot.lds             |    1 -
 board/prodrive/p3mx/p3mx.c                 |   10 --
 board/prodrive/p3mx/u-boot.lds             |    1 -
 board/prodrive/p3p440/u-boot.lds           |    1 -
 board/quad100hd/u-boot.lds                 |    1 -
 board/quantum/u-boot.lds                   |    1 -
 board/quantum/u-boot.lds.debug             |    1 -
 board/r360mpi/u-boot.lds                   |    1 -
 board/rbc823/u-boot.lds                    |    1 -
 board/rmu/u-boot.lds                       |    1 -
 board/rmu/u-boot.lds.debug                 |    1 -
 board/rsdproto/u-boot.lds                  |    1 -
 board/sandburst/karef/u-boot.lds           |    1 -
 board/sandburst/karef/u-boot.lds.debug     |    1 -
 board/sandburst/metrobox/u-boot.lds        |    1 -
 board/sandburst/metrobox/u-boot.lds.debug  |    1 -
 board/sbc405/u-boot.lds                    |    1 -
 board/sbc8548/sbc8548.c                    |    6 -
 board/sbc8641d/u-boot.lds                  |    1 -
 board/sc3/u-boot.lds                       |    1 -
 board/siemens/CCM/u-boot.lds               |    1 -
 board/siemens/CCM/u-boot.lds.debug         |    1 -
 board/siemens/IAD210/u-boot.lds            |    1 -
 board/siemens/pcu_e/u-boot.lds             |    1 -
 board/siemens/pcu_e/u-boot.lds.debug       |    1 -
 board/sixnet/u-boot.lds                    |    1 -
 board/snmc/qs850/u-boot.lds                |    1 -
 board/snmc/qs860t/u-boot.lds               |    1 -
 board/spc1920/u-boot.lds                   |    1 -
 board/spd8xx/u-boot.lds                    |    1 -
 board/spd8xx/u-boot.lds.debug              |    1 -
 board/stx/stxxtc/u-boot.lds                |    1 -
 board/stx/stxxtc/u-boot.lds.debug          |    1 -
 board/svm_sc8xx/u-boot.lds                 |    1 -
 board/svm_sc8xx/u-boot.lds.debug           |    1 -
 board/tqc/tqm8xx/u-boot.lds                |    1 -
 board/tqc/tqm8xx/u-boot.lds.debug          |    1 -
 board/uc100/u-boot.lds                     |    1 -
 board/uc100/u-boot.lds.debug               |    1 -
 board/v37/u-boot.lds                       |    1 -
 board/w7o/u-boot.lds                       |    1 -
 board/w7o/u-boot.lds.debug                 |    1 -
 board/westel/amx860/u-boot.lds             |    1 -
 board/westel/amx860/u-boot.lds.debug       |    1 -
 board/xes/xpedite1000/u-boot.lds           |    1 -
 board/xes/xpedite1000/u-boot.lds.debug     |    1 -
 board/xes/xpedite5170/config.mk            |    2 -
 board/xes/xpedite5200/config.mk            |    2 -
 board/xes/xpedite5370/config.mk            |    2 -
 board/xilinx/ml300/u-boot.lds              |    1 -
 board/xilinx/ml300/u-boot.lds.debug        |    1 -
 board/xilinx/ppc405-generic/u-boot-ram.lds |    1 -
 board/xilinx/ppc405-generic/u-boot-rom.lds |    1 -
 board/xilinx/ppc440-generic/u-boot-ram.lds |    1 -
 board/xilinx/ppc440-generic/u-boot-rom.lds |    1 -
 board/zeus/u-boot.lds                      |    1 -
 common/cmd_bootm.c                         |    4 +-
 common/cmd_date.c                          |    4 +
 common/dlmalloc.c                          |    2 +
 common/env_common.c                        |    4 +
 common/hush.c                              |    4 +
 common/image.c                             |    6 +-
 common/serial.c                            |    2 +
 common/stdio.c                             |    5 +-
 cpu/mpc512x/u-boot.lds                     |    1 -
 cpu/mpc5xx/u-boot.lds                      |    1 -
 cpu/mpc5xxx/u-boot-customlayout.lds        |    1 -
 cpu/mpc5xxx/u-boot.lds                     |    1 -
 cpu/mpc8220/u-boot.lds                     |    1 -
 cpu/mpc824x/u-boot.lds                     |    1 -
 cpu/mpc8260/u-boot.lds                     |    1 -
 cpu/mpc83xx/u-boot.lds                     |    1 -
 cpu/mpc85xx/u-boot.lds                     |    1 -
 disk/part.c                                |    5 +-
 drivers/fpga/ACEX1K.c                      |   96 --------------
 drivers/fpga/altera.c                      |   39 ------
 drivers/fpga/cyclon2.c                     |   91 --------------
 drivers/fpga/fpga.c                        |   53 +-------
 drivers/fpga/spartan2.c                    |  187 ----------------------------
 drivers/fpga/spartan3.c                    |  185 ---------------------------
 drivers/fpga/stratixII.c                   |   24 ----
 drivers/fpga/virtex2.c                     |  118 -----------------
 drivers/fpga/xilinx.c                      |   42 ------
 drivers/mtd/nand/nand.c                    |    2 +
 drivers/net/tsec.c                         |   49 -------
 fs/ubifs/ubifs.c                           |    4 +
 include/ACEX1K.h                           |    4 -
 include/altera.h                           |    1 -
 include/asm-ppc/config.h                   |    3 +
 include/asm-ppc/global_data.h              |    2 +-
 include/configs/XPEDITE5170.h              |    1 -
 include/configs/XPEDITE5200.h              |    1 -
 include/configs/XPEDITE5370.h              |    1 -
 include/configs/inka4x0.h                  |    1 -
 include/configs/p3mx.h                     |    1 -
 include/fpga.h                             |    2 +-
 include/post.h                             |    2 +
 include/spartan2.h                         |    3 -
 include/spartan3.h                         |    3 -
 include/stratixII.h                        |    1 -
 include/virtex2.h                          |    3 -
 include/xilinx.h                           |    1 -
 lib_ppc/Makefile                           |    6 +
 lib_ppc/board.c                            |   50 --------
 lib_ppc/config.mk                          |    1 +
 lib_ppc/extable.c                          |   26 +---
 post/board/lwmon/sysmon.c                  |   17 +---
 post/board/lwmon5/sysmon.c                 |   17 +---
 post/post.c                                |    2 +
 278 files changed, 79 insertions(+), 1389 deletions(-)



More information about the U-Boot mailing list