1. 22 9月, 2014 7 次提交
    • A
      MIPS: ralink: Move device-trees to arch/mips/boot/dts/ · 011eeece
      Andrew Bresticker 提交于
      Move the Ralink device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  A built-in device-tree is optional, so select
      BUILTIN_DTB when it is requested.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7561/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      011eeece
    • A
      MIPS: Netlogic: Move device-trees to arch/mips/boot/dts/ · 36094619
      Andrew Bresticker 提交于
      Move the Netlogic XLP device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  A built-in device-tree is optional, so select
      BUILTIN_DTB when it is requested.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7560/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      36094619
    • A
      MIPS: sead3: Move device-trees to arch/mips/boot/dts/ · f262b5f2
      Andrew Bresticker 提交于
      Move the SEAD-3 device-tree to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  Since SEAD-3 requires the device-tree to be
      built into the kernel, select BUILTIN_DTB when building for SEAD-3.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7555/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      f262b5f2
    • A
      MIPS: Lantiq: Move device-trees to arch/mips/boot/dts/ · 3229a6d8
      Andrew Bresticker 提交于
      Move the Lantiq device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  There is currently only a single Lantiq
      device-tree (EASY50712), and it's required to be built into the kernel,
      so select BUILTIN_DTB for it.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7559/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3229a6d8
    • A
      MIPS: Octeon: Move device-trees to arch/mips/boot/dts/ · e326479f
      Andrew Bresticker 提交于
      Move the Octeon device-trees to arch/mips/boot/dts/ and update the
      Makefiles accordingly.  Since Octeon requires the device-tree to be
      built into the kernel, select BUILTIN_DTB as well.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7556/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e326479f
    • A
      MIPS: Add support for building device-tree binaries · c8d333df
      Andrew Bresticker 提交于
      Add a 'dtbs' Makefile target that just builds the device-tree binaries
      enabled by the configuration.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7557/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c8d333df
    • A
      MIPS: Create common infrastructure for building built-in device-trees · 7fafb068
      Andrew Bresticker 提交于
      In preparation for moving the device-trees to a common location,
      introduce the config option BUILTIN_DTB, which can be selected by
      platforms that use a device-tree built into the kernel image, and
      create a Makefile to build the device-trees in arch/mips/boot/dts/.
      Signed-off-by: NAndrew Bresticker <abrestic@chromium.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Jayachandran C <jchandra@broadcom.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/7564/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      7fafb068
  2. 26 8月, 2014 1 次提交
    • A
      MIPS: ZBOOT: add missing <linux/string.h> include · 29593fd5
      Aurelien Jarno 提交于
      Commit dc4d7b37 (MIPS: ZBOOT: gather string functions into string.c)
      moved the string related functions into a separate file, which might
      cause the following build error, depending on the configuration:
      
      | CC      arch/mips/boot/compressed/decompress.o
      | In file included from linux/arch/mips/boot/compressed/../../../../lib/decompress_unxz.c:234:0,
      |                  from linux/arch/mips/boot/compressed/decompress.c:67:
      | linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c: In function 'fill_temp':
      | linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:162:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
      | cc1: some warnings being treated as errors
      | linux/scripts/Makefile.build:308: recipe for target 'arch/mips/boot/compressed/decompress.o' failed
      | make[6]: *** [arch/mips/boot/compressed/decompress.o] Error 1
      | linux/arch/mips/Makefile:308: recipe for target 'vmlinuz' failed
      
      It does not fail with the standard configuration, as when
      CONFIG_DYNAMIC_DEBUG is not enabled <linux/string.h> gets included in
      include/linux/dynamic_debug.h. There might be other ways for it to
      get indirectly included.
      
      We can't add the include directly in xz_dec_stream.c as some
      architectures might want to use a different version for the boot/
      directory (see for example arch/x86/boot/string.h).
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      Cc: stable@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/7420/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      29593fd5
  3. 02 8月, 2014 1 次提交
  4. 25 1月, 2014 2 次提交
  5. 23 1月, 2014 1 次提交
  6. 06 11月, 2013 1 次提交
  7. 30 10月, 2013 3 次提交
  8. 19 9月, 2013 1 次提交
  9. 04 9月, 2013 1 次提交
    • J
      MIPS: Add uImage build target · 4defe455
      James Hogan 提交于
      Add a uImage build target for MIPS, which builds uImage.gz (a U-Boot
      image of vmlinux.bin.gz), and then symlinks it to uImage. This allows
      for the use of other compression algorithms in future, and is how a few
      other architectures do it.
      
      It's enabled conditionally on load-y >= 0xffffffff80000000 which
      hopefully allows 64bit kernels to also work as long as the load and
      entry address can be represented by the 32bit addresses in the U-Boot
      image format.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5795/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      4defe455
  10. 03 9月, 2013 2 次提交
    • J
      MIPS: Refactor load/entry address calculations · 3185557d
      James Hogan 提交于
      The vmlinux load address and entry address is calculated in multiple
      places:
       - arch/mips/Makefile defines load-y from CONFIG_PHYSICAL_START (or
         defined by the platform) and passes it to
         arch/mips/boot/compressed/Makefile.
       - arch/mips/boot/compressed/Makefile calculates kernel entry using nm.
       - arch/mips/lasat/image/Makefile calculates both load and entry address
         using nm.
      
      Lets combine these in the main Makefile and then pass them as Make
      parameters to each of the three boot image Makefiles (in boot/,
      boot/compressed, lasat/image/). The boot/ Makefile doesn't currently use
      them, but will soon need to for U-Boot image targets.
      
      The existing load-y definition is used in preference to calculating the
      load address using nm.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5794/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3185557d
    • J
      MIPS: add <dt-bindings/> symlink · 3b29aa5b
      James Hogan 提交于
      Add symlink to include/dt-bindings from arch/mips/boot/dts/include/ to
      match the ones in ARM and Meta architectures so that preprocessed device
      tree files can include various useful constant definitions.
      
      See commit c58299aa (kbuild: create an "include chroot" for DT bindings)
      merged in v3.10-rc1 for details.
      
      MIPS structures it's dts files a little differently to other
      architectures, having a separate dts directory for each SoC/platform,
      but most of the definitions in the dt-bindings/ directory are common so
      for now lets just have a single "include chroot" for all MIPS platforms.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NSteven. J. Hill <steven.hill@imgtec.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: linux-mips@linux-mips.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-kbuild@vger.kernel.org
      Acked-by: NStephen Warren <swarren@nvidia.com>
      Patchwork: http://patchwork.linux-mips.org/patch/5745/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3b29aa5b
  11. 01 7月, 2013 1 次提交
    • M
      MIPS: Boot: Compressed: Remove -fstack-protector from CFLAGS · 23df3415
      Markos Chandras 提交于
      When building with -fstack-protector, gcc emits the __stack_chk_guard and
      __stack_chk_fail symbols to check for stack stability. These symbols are
      defined in vmlinux but the generated vmlinux.bin that is used to create
      the compressed vmlinuz image has no symbol table so the linker can't find
      these symbols during the final linking phase.  As a result of which, we
      need either to redefine these symbols just for the compressed image or drop
      the -fstack-protector option when building the compressed image. This patch
      implements the latter of two options.
      
      Fixes the following linking problem:
      
      dbg.c:(.text+0x7c): undefined reference to `__stack_chk_guard'
      dbg.c:(.text+0x80): undefined reference to `__stack_chk_guard'
      dbg.c:(.text+0xd4): undefined reference to `__stack_chk_guard'
      dbg.c:(.text+0xec): undefined reference to `__stack_chk_fail'
      
      [ralf@linux-mips.org: I'm applying this before the patch that actually adds
      stack protector support for MIPS.  This means, it will not be possible
      to trigger above error message with any commit from the tree but rather
      they are what one would hit without this commit.]
      Signed-off-by: NMarkos Chandras <markos.chandras@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Markos Chandras <markos.chandras@imgtec.com>
      Patchwork: https://patchwork.linux-mips.org/patch/5575/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      23df3415
  12. 13 6月, 2013 2 次提交
  13. 01 2月, 2013 1 次提交
  14. 11 10月, 2012 1 次提交
  15. 23 7月, 2012 1 次提交
  16. 08 12月, 2011 1 次提交
  17. 19 5月, 2011 1 次提交
  18. 11 5月, 2011 1 次提交
    • R
      MIPS: Fix calc_vmlinuz_load_addr build warnings. · 893d20fb
      Ralf Baechle 提交于
        HOSTCC  arch/mips/boot/compressed/calc_vmlinuz_load_addr
      arch/mips/boot/compressed/calc_vmlinuz_load_addr.c: In function 'main':
      arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:35:2: warning: format '%llx' expects type 'long long unsigned int *', but argument 3 has type 'uint64_t *'
      arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:54:2: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'uint64_t'
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      893d20fb
  19. 18 10月, 2010 1 次提交
  20. 05 10月, 2010 1 次提交
  21. 05 8月, 2010 8 次提交
  22. 27 2月, 2010 1 次提交