1. 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
  2. 19 5月, 2011 1 次提交
  3. 20 4月, 2011 1 次提交
  4. 21 1月, 2011 1 次提交
  5. 24 12月, 2010 1 次提交
  6. 15 6月, 2010 1 次提交
  7. 05 5月, 2010 1 次提交
  8. 07 4月, 2010 1 次提交
  9. 14 1月, 2010 1 次提交
    • B
      zlib: Fix build of powerpc boot wrapper · 6846ee5c
      Benjamin Herrenschmidt 提交于
      Commit ac4c2a3b broke the build
      of all powerpc boot wrappers.
      
      It attempts to add an include of autoconf.h but used the wrong
      path for it. It also adds -D__KERNEL__ to our boot wrapper, both
      things that we pretty much didn't do on purpose so far.
      
      We want our boot wrapper to remain independent enough of the kernel
      for various reasons, one of them being that you can "wrap" an existing
      kernel at distro install time which allows to ship one kernel image
      and a set of boot wrappers for different platforms, the wrappers
      don't have to be built out of the same kernel build tree.
      
      It's also incorrect to do what the patch does in our boot environment
      since we may not have a proper alignment exception handler which means
      we may not be able to fixup the few cases where an unaligned access will
      need SW emulation (depends on the core variant, could be when crossing
      page or segment boundaries for example).
      
      This patch fixes it by putting the old code back in and using the
      new "fancy" variant only when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
      is set, which happens not to be set on powerpc since we don't include
      autoconf.h. It also reverts the changes to our boot wrapper Makefile.
      
      This means that x86 should, afaik, keep the optimisations since its
      boot wrapper does include autoconf.h and define __KERNEL__ (though I
      doubt they make that much different outside of slow embedded processors).
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6846ee5c
  10. 12 1月, 2010 1 次提交
  11. 13 12月, 2009 3 次提交
  12. 31 8月, 2009 2 次提交
  13. 15 5月, 2009 1 次提交
  14. 03 5月, 2009 1 次提交
    • D
      Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc · 9fffb55f
      David Gibson 提交于
      The powerpc kernel always requires an Open Firmware like device tree
      to supply device information.  On systems without OF, this comes from
      a flattened device tree blob.  This blob is usually generated by dtc,
      a tool which compiles a text description of the device tree into the
      flattened format used by the kernel.  Sometimes, the bootwrapper makes
      small changes to the pre-compiled device tree blob (e.g. filling in
      the size of RAM).  To do this it uses the libfdt library.
      
      Because these are only used on powerpc, the code for both these tools
      is included under arch/powerpc/boot (these were imported and are
      periodically updated from the upstream dtc tree).
      
      However, the microblaze architecture, currently being prepared for
      merging to mainline also uses dtc to produce device tree blobs.  A few
      other archs have also mentioned some interest in using dtc.
      Therefore, this patch moves dtc and libfdt from arch/powerpc into
      scripts, where it can be used by any architecture.
      
      The vast bulk of this patch is a literal move, the rest is adjusting
      the various Makefiles to use dtc and libfdt correctly from their new
      locations.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9fffb55f
  15. 11 2月, 2009 1 次提交
  16. 05 2月, 2009 1 次提交
  17. 08 1月, 2009 1 次提交
    • G
      powerpc: Copy bootable images in the default install script · 29f1aff2
      Grant Likely 提交于
      This patch makes the default install script (arch/powerpc/boot/install.sh)
      copy the bootable image files into the install directory.  Before this
      patch only the vmlinux image file was copied.
      
      This patch makes the default 'make install' command useful for embedded
      development when $(INSTALL_PATH) is set in the environment.
      
      As a side effect, this patch changes the calling convention of the
      install.sh script.  Instead of a single 5th parameter, the script is now
      passed a list of all the target images stored in the $(image-y) Makefile
      variable.  This should be backwards compatible with existing install scripts
      since it just adds additional arguments and does not change existing ones.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      29f1aff2
  18. 06 1月, 2009 1 次提交
  19. 23 12月, 2008 1 次提交
    • B
      powerpc/cell: add QPACE as a separate Cell platform · def434c2
      Benjamin Krill 提交于
      Since the QPACE (Chromodynamics Parallel Computing on the
      Cell Broadband Engine) platform doesn't use a iommu, doesn't
      have PCI devices and a MPIC much lesser setup and
      configurations are needed. So far all devices are detected
      as OF device. A notifier function is used to set the dma_ops
      for the of_platform bus. Further this patch splits the
      PPC_CELL_NATIVE into PPC_CELL_COMMON which are parts that are
      shared with the QPACE platform and the rest.
      Signed-off-by: NBenjamin Krill <ben@codiert.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      def434c2
  20. 11 12月, 2008 1 次提交
  21. 21 10月, 2008 1 次提交
  22. 17 10月, 2008 1 次提交
  23. 18 9月, 2008 1 次提交
    • J
      powerpc: Holly board needs dtbImage target · 32dde0f9
      Josh Boyer 提交于
      One of the changes in the bootwrapper makefile introduced the dtbImage
      targets for boards that need a simple zImage with a DTB embedded in
      them (595be948, "[POWERPC]
      bootwrapper: Build multiple cuImages").  When this was done, it broke
      booting on the Holly board as the zImage.holly wrapper did not get the
      DTB embedded properly.
      
      This changes the target for the Holly board to a dtbImage so that the
      wrapper includes the vmlinux, wrapper bits, and DTB.
      Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      32dde0f9
  24. 16 9月, 2008 1 次提交
    • P
      powerpc: Make the 64-bit kernel as a position-independent executable · 549e8152
      Paul Mackerras 提交于
      This implements CONFIG_RELOCATABLE for 64-bit by making the kernel as
      a position-independent executable (PIE) when it is set.  This involves
      processing the dynamic relocations in the image in the early stages of
      booting, even if the kernel is being run at the address it is linked at,
      since the linker does not necessarily fill in words in the image for
      which there are dynamic relocations.  (In fact the linker does fill in
      such words for 64-bit executables, though not for 32-bit executables,
      so in principle we could avoid calling relocate() entirely when we're
      running a 64-bit kernel at the linked address.)
      
      The dynamic relocations are processed by a new function relocate(addr),
      where the addr parameter is the virtual address where the image will be
      run.  In fact we call it twice; once before calling prom_init, and again
      when starting the main kernel.  This means that reloc_offset() returns
      0 in prom_init (since it has been relocated to the address it is running
      at), which necessitated a few adjustments.
      
      This also changes __va and __pa to use an equivalent definition that is
      simpler.  With the relocatable kernel, PAGE_OFFSET and MEMORY_START are
      constants (for 64-bit) whereas PHYSICAL_START is a variable (and
      KERNELBASE ideally should be too, but isn't yet).
      
      With this, relocatable kernels still copy themselves down to physical
      address 0 and run there.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      549e8152
  25. 08 9月, 2008 1 次提交
    • H
      powerpc: Fix rare boot build breakage · 4ff23fa9
      Hugh Dickins 提交于
      A make -j20 powerpc kernel build broke a couple of months ago saying:
      In file included from arch/powerpc/boot/gunzip_util.h:13,
                       from arch/powerpc/boot/prpmc2800.c:21:
      arch/powerpc/boot/zlib.h:85: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
      arch/powerpc/boot/zlib.h:630: warning: type defaults to ‘int’ in declaration of ‘Byte’
      arch/powerpc/boot/zlib.h:630: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
      
      It happened again yesterday: too rare for me to confirm the fix, but
      it looks like the list of dependants on gunzip_util.h was incomplete.
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      4ff23fa9
  26. 22 7月, 2008 1 次提交
  27. 09 7月, 2008 1 次提交
  28. 04 7月, 2008 1 次提交
  29. 02 7月, 2008 1 次提交
  30. 01 7月, 2008 1 次提交
  31. 16 6月, 2008 1 次提交
  32. 11 6月, 2008 1 次提交
  33. 10 6月, 2008 1 次提交
  34. 09 6月, 2008 2 次提交
    • R
      powerpc: Boot code for the C2K · c6ec08e0
      Remi Machet 提交于
      Support for the C2K cPCI Single Board Computer from GEFanuc
      (PowerPC MPC7448 with a Marvell MV64460 chipset).
      All features of the board are not supported yet, but the board
      boots, flash works, all Ethernet ports are working and PCI
      devices are all found (USB and SATA on PCI1 do not work yet).
      
      Part 2 of 5: support for the board in arch/powerpc/boot.
      Signed-off-by: NRemi Machet <rmachet@slac.stanford.edu>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c6ec08e0
    • A
      [POWERPC] boot/Makefile CONFIG_ variable fixes · efa58fbf
      Adrian Bunk 提交于
      This corrects the names of two CONFIG_ variables.
      
      Note that the CONFIG_MPC86XADS fix uncovers another bug
      (with mpc866_ads_defconfig) that will require fixing:
      
      <--  snip  -->
      
      ...
      arch/powerpc/boot/dtc -O dtb -o arch/powerpc/boot/mpc866ads.dtb -b 0  /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/dts/mpc866ads.dts
      DTC: dts->dtb  on file "/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/dts/mpc866ads.dts"
        WRAP    arch/powerpc/boot/cuImage.mpc866ads
      powerpc64-linux-ld: arch/powerpc/boot/cuboot-mpc866ads.o: No such file: No such file or directory
      make[2]: *** [arch/powerpc/boot/cuImage.mpc866ads] Error 1
      
      <--  snip  -->
      Reported-by: NRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      efa58fbf
  35. 03 6月, 2008 1 次提交
  36. 20 5月, 2008 1 次提交