1. 20 Mar, 2009 7 commits
    • Trent Piepho's avatar
      Fix all linker script to handle all rodata sections · f62fb999
      Trent Piepho authored
      
      
      A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
      which needs to be added the the linker script.  Instead of just adding this
      one section, we use a wildcard ".rodata*" to get all rodata linker section
      gcc has now and might add in the future.
      
      However, '*(.rodata*)' by itself will result in sub-optimal section
      ordering.  The sections will be sorted by object file, which causes extra
      padding between the unaligned rodata.str.1.1 of one object file and the
      aligned rodata of the next object file.  This is easy to fix by using the
      SORT_BY_ALIGNMENT command.
      
      This patch has not be tested one most of the boards modified.  Some boards
      have a linker script that looks something like this:
      
      *(.text)
      . = ALIGN(16);
      *(.rodata)
      *(.rodata.str1.4)
      *(.eh_frame)
      
      I change this to:
      
      *(.text)
      . = ALIGN(16);
      *(.eh_frame)
      *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
      
      This means the start of rodata will no longer be 16 bytes aligned.
      However, the boundary between text and rodata/eh_frame is still aligned to
      16 bytes, which is what I think the real purpose of the ALIGN call is.
      Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
      f62fb999
    • Mike Frysinger's avatar
      boards: get mac address from env and move load_sernum_ethaddr() to board init · 9c150102
      Mike Frysinger authored
      
      
      The environment is the canonical storage location of the mac address, so
      we're killing off the global data location and moving everything to
      querying the env directly.
      
      Rather than have common ppc code call a board-specific function like
      load_sernum_ethaddr(), have each board call it in its own board-specific
      misc_init_r() function.
      
      The boards that get converted here are:
      	- kup4k/kup4x
      	- pcs440ep
      	- tqm8xx
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      CC: Stefan Roese <sr@denx.de>
      9c150102
    • Mike Frysinger's avatar
      cmc_pu2: get mac address from environment · 92b50ffe
      Mike Frysinger authored
      
      
      The environment is the canonical storage location of the mac address, so
      we're killing off the global data location and moving everything to
      querying the env directly.
      
      Also rename load_sernum_ethaddr() to misc_init_r() so we don't need to
      handle this board specially in common ARM code.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      92b50ffe
    • Mike Frysinger's avatar
      boards: move board_get_enetaddr() into board-specific init · d8d21e69
      Mike Frysinger authored
      
      
      The environment is the canonical storage location of the mac address, so
      we're killing off the global data location and moving everything to
      querying the env directly.
      
      Rather than have the common ppc code have board-specific hooks, move the
      board_get_enetaddr() function into the board-specific init functions.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      d8d21e69
    • Mike Frysinger's avatar
      nx823: get mac address from environment · 0107cf66
      Mike Frysinger authored
      
      
      The environment is the canonical storage location of the mac address, so
      we're killing off the global data location and moving everything to
      querying the env directly.
      
      For the nx823, the serial number is moved out of load_sernum_ethaddr() and
      into misc_init_r() as is the env setup.  This lets us kill off the former
      function in the process.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      0107cf66
    • Mike Frysinger's avatar
      boards: get mac address from environment · b6b4625d
      Mike Frysinger authored
      
      
      The boards that get converted here to use the environment for the mac
      address rather than global data:
      	debris
      	mgcoge
      	mgsuvd
      	muas3001
      	netstal
      	pn62
      	sixnet
      	vcma9
      	xilinx (the ones that use xilinx_enet)
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      CC: Sangmoon Kim <dogoil@etinsys.com>
      CC: Heiko Schocher <hs@denx.de>
      CC: David Mueller <d.mueller@elsoft.ch>
      CC: Niklaus Giger <niklaus.giger@netstal.com>
      CC: Wolfgang Grandegger <wg@denx.de>
      CC: Dave Ellis <DGE@sixnetio.com>
      CC: Ricardo Ribalda <ricardo.ribalda@uam.es>
      b6b4625d
    • Mike Frysinger's avatar
      AmigaOneG3SE/enet: get mac address from environment · 06a0c438
      Mike Frysinger authored
      
      
      Always use the MAC address that is stored in the environment first before
      falling back to the ROM.  This also cuts out any comparison steps: if the
      mac in the env is sane, the ROM is never consulted.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Thomas Frieden <ThomasF@hyperion-entertainment.com>
      CC: Ben Warren <biggerbadderben@gmail.com>
      06a0c438
  2. 18 Mar, 2009 2 commits
  3. 17 Mar, 2009 4 commits
  4. 15 Mar, 2009 1 commit
  5. 13 Mar, 2009 2 commits
  6. 12 Mar, 2009 2 commits
  7. 09 Mar, 2009 1 commit
  8. 06 Mar, 2009 4 commits
  9. 24 Feb, 2009 1 commit
  10. 23 Feb, 2009 2 commits
  11. 22 Feb, 2009 8 commits
  12. 19 Feb, 2009 3 commits
    • Heiko Schocher's avatar
      82xx, mgcoge: updates for 2009.03 · 9e80bb21
      Heiko Schocher authored
      
      
      - activate CS4 for accessing the FPGA
      - activate Rx buf len > 1 on SMC
      - pram activated
      - MTDPARTS_DEFAULT defined
      - update the size of the flashes in the DTS
        before booting Linux
      - MONITOR_LEN updated to 384k
      - added CONFIG_HOSTNAME
      - added CONFIG_ENV_BUFFER_PRINT
      - Environment size reduced to 16k
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      9e80bb21
    • Heiko Schocher's avatar
      8xx, mgsuvd: updates for 2009.03 · df909554
      Heiko Schocher authored
      
      
      - activate Rx buf len > 1 on SMC
      - pram activated
      - MTDPARTS_DEFAULT defined
      - update the size of the flash in the DTS
        before booting Linux
      - MONITOR_LEN updated to 384k
      - added CONFIG_HOSTNAME
      - added CONFIG_ENV_BUFFER_PRINT
      - Environment size reduced to 16k
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      df909554
    • Wolfgang Denk's avatar
      TQM8xxL: make some room in low memory for future needs · 32482be6
      Wolfgang Denk authored
      
      
      THe TQM8xxL use a ahnd-optimized linker script to efficiently use the
      small boot sectors in the flash. This patch makes some room in the
      first sector to prepare for a size increase of lib_generic/vsprintf.o
      by a future patch.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      32482be6
  13. 18 Feb, 2009 3 commits