1. 28 9月, 2016 3 次提交
    • O
      powerpc/boot: Use the pre-boot decompression API · 1b7898ee
      Oliver O'Halloran 提交于
      Currently the powerpc boot wrapper has its own wrapper around zlib to
      handle decompressing gzipped kernels. The kernel decompressor library
      functions now provide a generic interface that can be used in the
      pre-boot environment. This allows boot wrappers to easily support
      different compression algorithms. This patch converts the wrapper to use
      this new API, but does not add support for using new algorithms.
      Signed-off-by: NOliver O'Halloran <oohall@gmail.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      1b7898ee
    • O
      powerpc/boot: Use CONFIG_KERNEL_GZIP · 22750d98
      Oliver O'Halloran 提交于
      Most architectures allow the compression algorithm used to produced the
      vmlinuz image to be selected as a kernel config option. In preperation
      for supporting algorithms other than gzip in the powerpc boot wrapper
      the makefile needs to be modified to use these config options.
      Signed-off-by: NOliver O'Halloran <oohall@gmail.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      22750d98
    • O
      powerpc/boot: Add sed script · 1a13de6d
      Oliver O'Halloran 提交于
      The powerpc boot wrapper is potentially compiled with a separate
      toolchain and/or toolchain flags than the rest of the kernel. The usual
      case is a 64-bit big endian kernel builds a 32-bit big endian wrapper.
      
      The main problem with this is that the wrapper does not have access to
      the kernel headers (without a lot of gross hacks). To get around this
      the required headers are copied into the build directory via several sed
      scripts which rewrite problematic includes. This patch moves these
      fixups out of the makefile into a separate .sed script file to clean up
      makefile slightly.
      Signed-off-by: NOliver O'Halloran <oohall@gmail.com>
      [mpe: Reword first paragraph of change log a little]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      1a13de6d
  2. 13 9月, 2016 1 次提交
  3. 19 7月, 2016 1 次提交
    • A
      Kbuild: arch: look for generated headers in obtree · 58ab5e0c
      Arnd Bergmann 提交于
      There are very few files that need add an -I$(obj) gcc for the preprocessor
      or the assembler. For C files, we add always these for both the objtree and
      srctree, but for the other ones we require the Makefile to add them, and
      Kbuild then adds it for both trees.
      
      As a preparation for changing the meaning of the -I$(obj) directive to
      only refer to the srctree, this changes the two instances in arch/x86 to use
      an explictit $(objtree) prefix where needed, otherwise we won't find the
      headers any more, as reported by the kbuild 0day builder.
      
      arch/x86/realmode/rm/realmode.lds.S:75:20: fatal error: pasyms.h: No such file or directory
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      58ab5e0c
  4. 09 7月, 2016 1 次提交
    • A
      powerpc/86xx: Add support for Emerson/Artesyn MVME7100 · 97493e2e
      Alessio Igor Bogani 提交于
      Add support for the Artesyn MVME7100 Single Board Computer.
      
      The MVME7100 is a 6U form factor VME64 computer with:
      
          - A two e600 cores Freescale MPC8641D CPU
          - 2 GB of DDR2 onboard memory
          - Four Gigabit Ethernets
          - Five 16550 compatible UARTs
          - One USB 2.0 port
          - Two PCI/PCI eXpress Mezzanine Card (PMC/XMC) Slots
          - A DS1375 Real Time Clock (RTC)
          - 512 KB of Non-Volatile Memory (NVRAM)
          - Two 64 KB EEPROMs
          - 128 MB NOR and 4/8 GB NAND Flash
      
      This patch is based on linux-4.7-rc1 and has been only boot tested.
      
      Limitations:
          This patch covers only models 171 and 173
          No plans to support CPLD timers
      
      Know issues:
          All four PHYs work in polling mode
      
      Configuration is missing for:
          PCI IDSEL and PCI Interrupt definition
      
      Support is missing for:
          Cache and memory controllers (which are very similar to the 85xx ones
              but right now I don't know if we can re-use their support)
          Watchdog, USB, NVRAM, NOR, NAND, EEPROMs, VME, PMC/XMC and RTC
      Signed-off-by: NAlessio Igor Bogani <alessio.bogani@elettra.eu>
      Signed-off-by: NScott Wood <oss@buserror.net>
      97493e2e
  5. 05 7月, 2016 1 次提交
    • O
      powerpc/boot: Add OPAL console to epapr wrappers · 656ad58e
      Oliver O'Halloran 提交于
      This patch adds an OPAL console backend to the powerpc boot wrapper so
      that decompression failures inside the wrapper can be reported to the
      user. This is important since it typically indicates data corruption in
      the firmware and other nasty things.
      
      Currently this only works when building a little endian kernel. When
      compiling a 64 bit BE kernel the wrapper is always build 32 bit to be
      compatible with some 32 bit firmwares. BE support will be added at a
      later date. Another limitation of this is that only the "raw" type of
      OPAL console is supported, however machines that provide a hvsi console
      also provide a raw console so this is not an issue in practice.
      Actually-written-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NOliver O'Halloran <oohall@gmail.com>
      [mpe: Move #ifdef __powerpc64__ to avoid warnings on 32-bit]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      656ad58e
  6. 17 5月, 2016 1 次提交
  7. 14 12月, 2015 1 次提交
  8. 17 10月, 2015 1 次提交
  9. 16 9月, 2015 1 次提交
  10. 07 4月, 2015 1 次提交
  11. 16 3月, 2015 1 次提交
  12. 25 9月, 2014 1 次提交
    • T
      powerpc/boot: Don't install zImage.* from make install · c913e5f9
      Tony Breeds 提交于
      in commit 29f1aff2 (powerpc: Copy bootable images in the default
      install script) we changed to copying all the built boot targets based
      on the assumption that it's backwards compatible.  It turns out that
      debian devived installkernel scripts will barf if not given exactly 4
      args.
      
      This change reverts make install to just install the vmlinux (we can
      change the dfault in a seperate patch) and introduces a new make
      zInstall which works with a more flexible installkernel script.
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      c913e5f9
  13. 12 6月, 2014 1 次提交
  14. 01 5月, 2014 1 次提交
  15. 28 4月, 2014 2 次提交
  16. 07 3月, 2014 1 次提交
    • P
      powerpc: Delete old PrPMC 280/2800 support · 3c8464a9
      Paul Gortmaker 提交于
      This processor/memory module was mostly used on ATCA blades and
      before that, on cPCI blades.  It wasn't really user friendly, with
      custom non u-boot bootloaders (powerboot/motload) and no real way
      to recover corrupted boot flash (which was a common problem).
      
      As such, it had its day back before the big ppc --> powerpc move
      to device trees, and that was largely through commercial BSPs that
      started to dry up around 2007.
      
      Systems using one were largely in a "deploy and sustain" mode,
      so interest in upgrading to new kernels in the field was nil.
      Also, requiring 50A, 48V power supplies and a 2'x2'x2' ATCA
      chassis largely rules out any hobbyist/enthusiast interest.
      
      The point of all this, is that we might as well delete the in
      kernel files relating to this platform.  No point in continuing
      to build it via walking the defconfigs or via linux-next testing.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3c8464a9
  17. 11 1月, 2014 1 次提交
    • P
      powerpc: fix 8xx and 6xx final link failures · 78f3d050
      Paul Gortmaker 提交于
      As of commit b81f18e5 ("powerpc/boot:
      Only build board support files when required.") the two defconfigs
      ep88xc_defconfig and storcenter_defconfig would fail final link as
      follows:
      
        WRAP    arch/powerpc/boot/dtbImage.ep88xc
      arch/powerpc/boot/wrapper.a(mpc8xx.o): In function `mpc885_get_clock':
      arch/powerpc/boot/mpc8xx.c:30: undefined reference to `fsl_get_immr'
      make[1]: *** [arch/powerpc/boot/dtbImage.ep88xc] Error 1
      
       ...and...
      
        WRAP    arch/powerpc/boot/cuImage.storcenter
      arch/powerpc/boot/cuboot-pq2.o: In function `pq2_platform_fixups':
      cuboot-pq2.c:(.text+0x324): undefined reference to `fsl_get_immr'
      make[1]: *** [arch/powerpc/boot/cuImage.storcenter] Error 1
      
      We need the fsl-soc board files built for these two platforms.
      
      Cc: Tony Breeds <tony@bakeyournoodle.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Fixes: b81f18e5 ("powerpc/boot: Only build board support files when required.")
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      78f3d050
  18. 10 1月, 2014 1 次提交
    • S
      powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100 · be201981
      Stephen Chivers 提交于
      Add support for the Motorola/Emerson MVME5100 Single Board Computer.
      
      The MVME5100 is a 6U form factor VME64 computer with:
      
      	- A single MPC7410 or MPC750 CPU
      	- A HAWK Processor Host Bridge (CPU to PCI) and
      	  MultiProcessor Interrupt Controller (MPIC)
      	- Up to 500Mb of onboard memory
      	- A M48T37 Real Time Clock (RTC) and Non-Volatile Memory chip
      	- Two 16550 compatible UARTS
      	- Two Intel E100 Fast Ethernets
      	- Two PCI Mezzanine Card (PMC) Slots
      	- PPCBug Firmware
      
      The HAWK PHB/MPIC is compatible with the MPC10x devices.
      
      There is no onboard disk support. This is usually provided by installing a PMC
      in first PMC slot.
      
      This patch revives the board support, it was present in early 2.6
      series kernels. The board support in those days was by Matt Porter of
      MontaVista Software.
      
      CSC Australia has around 31 of these boards in service. The kernel in use
      for the boards is based on 2.6.31. The boards are operated without disks
      from a file server.
      
      This patch is based on linux-3.13-rc2 and has been boot tested.
      
      Only boards with 512 Mb of memory are known to work.
      Signed-off-by: NStephen Chivers <schivers@csc.com>
      Tested-by: NAlessio Igor Bogani <alessio.bogani@elettra.eu>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      be201981
  19. 11 10月, 2013 1 次提交
  20. 25 9月, 2013 1 次提交
  21. 07 9月, 2012 1 次提交
    • M
      powerpc: Fix build dependencies for c files requiring libfdt.h · 0090e02b
      Matthew McClintock 提交于
      Several files in obj-plat depend on libfdt header file. Sometimes
      when building one can see the following issue. This patch adds
      libfdt as dependency to those object files
      
      | In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
      | arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment
      | In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
      | arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
      |   BOOTCC  arch/powerpc/boot/inffast.o
      | make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1
      | make[1]: *** Waiting for unfinished jobs....
      |   BOOTCC  arch/powerpc/boot/inflate.o
      | make: *** [uImage] Error 2
      | ERROR: oe_runmake failed
      | ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/build/tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/log.do_compile.2167 for further information)
      NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed
      Signed-off-by: NMatthew McClintock <msm@freescale.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0090e02b
  22. 10 7月, 2012 1 次提交
  23. 03 7月, 2012 1 次提交
  24. 21 3月, 2012 1 次提交
  25. 17 3月, 2012 1 次提交
  26. 15 1月, 2012 1 次提交
    • S
      Kbuild: Use dtc's -d (dependency) option · 7c431851
      Stephen Warren 提交于
      This hooks dtc into Kbuild's dependency system.
      
      Thus, for example, "make dtbs" will rebuild tegra-harmony.dtb if only
      tegra20.dtsi has changed yet tegra-harmony.dts has not. The previous
      lack of this feature recently caused me to have very confusing "git
      bisect" results.
      
      For ARM, it's obvious what to add to $(targets). I'm not familiar enough
      with other architectures to know what to add there. Powerpc appears to
      already add various .dtb files into $(targets), but the other archs may
      need something added to $(targets) to work.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      [mmarek: Dropped arch/c6x part to avoid merging commits from the middle
      of the merge window]
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      7c431851
  27. 09 12月, 2011 1 次提交
  28. 08 12月, 2011 1 次提交
    • B
      powerpc: Add support for OpenBlockS 600 · 11eab297
      Benjamin Herrenschmidt 提交于
      So I've had one of these for a while and it looks like the vendor never
      bothered submitting the support upstream.
      
      This adds it using ppc40x_simple and provides a device-tree.
      
      There are some changes to the boot wrapper because the way u-boot works
      on this thing, it seems to expect a multipart image with the kernel,
      initrd and dtb in it.
      
      The USB support is missing as it needs the yet unmerged driver for
      the DWC OTG part and the GPIOs may need further definition in the dts.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      11eab297
  29. 20 9月, 2011 2 次提交
  30. 19 5月, 2011 1 次提交
  31. 20 4月, 2011 1 次提交
  32. 21 1月, 2011 1 次提交
  33. 24 12月, 2010 1 次提交
  34. 15 6月, 2010 1 次提交
  35. 05 5月, 2010 1 次提交
  36. 07 4月, 2010 1 次提交