1. 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
  2. 11 2月, 2009 1 次提交
  3. 05 2月, 2009 1 次提交
  4. 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
  5. 06 1月, 2009 1 次提交
  6. 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
  7. 11 12月, 2008 1 次提交
  8. 21 10月, 2008 1 次提交
  9. 17 10月, 2008 1 次提交
  10. 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
  11. 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
  12. 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
  13. 22 7月, 2008 1 次提交
  14. 09 7月, 2008 1 次提交
  15. 04 7月, 2008 1 次提交
  16. 02 7月, 2008 1 次提交
  17. 01 7月, 2008 1 次提交
  18. 16 6月, 2008 1 次提交
  19. 11 6月, 2008 1 次提交
  20. 10 6月, 2008 1 次提交
  21. 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
  22. 03 6月, 2008 1 次提交
  23. 20 5月, 2008 1 次提交
  24. 25 4月, 2008 1 次提交
  25. 15 4月, 2008 1 次提交
  26. 03 4月, 2008 2 次提交
  27. 27 3月, 2008 1 次提交
  28. 26 3月, 2008 1 次提交
  29. 20 3月, 2008 1 次提交
  30. 13 3月, 2008 1 次提交
  31. 20 2月, 2008 1 次提交
  32. 14 2月, 2008 1 次提交
  33. 07 2月, 2008 1 次提交
    • G
      [POWERPC] bootwrapper: Build multiple cuImages · 25431333
      Grant Likely 提交于
      Currently, the kernel uses CONFIG_DEVICE_TREE to wrap a kernel image
      with a fdt blob which means for any given configuration only one dts
      file can be selected and so support for only one board can be built
      
      This moves the selection of the default .dts file out of the kernel
      config and into the bootwrapper makefile.  The makefile chooses which
      images to build based on the kernel config and the dts source file
      name is taken directly from the image name.  For example "cuImage.ebony"
      will use "ebony.dts" as the device tree source file.
      
      In addition, this patch allows a specific image to be requested from the
      command line by adding "cuImage.%" and "treeImage.%" targets to the list
      of valid built targets in arch/powerpc/Makefile.  This allows the default
      dts selection to be overridden.
      
      Another advantage to this change is it allows a single defconfig to be
      supplied for all boards using the same chip family and only differing in
      the device tree.
      
      Important note: This patch adds two new zImage targets; zImage.dtb.% and
      zImage.dtb.initrd.% for zImages with embedded dtb files.  Currently
      there are 5 platforms which require this: ps3, ep405, mpc885ads, ep88xc,
      adder875-redboot and ep8248e.  This patch *changes the zImage filenames*
      for those platforms.  ie. 'zImage.ps3' is now 'zImage.dtb.ps3'.
      
      This new zImage.dtb targets were added so that the .dts file could be
      part of the dependancies list for building them.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      25431333
  34. 29 1月, 2008 1 次提交
  35. 28 1月, 2008 1 次提交
  36. 25 1月, 2008 1 次提交
  37. 24 1月, 2008 2 次提交