1. 21 3月, 2012 1 次提交
  2. 22 12月, 2011 1 次提交
  3. 20 12月, 2011 1 次提交
    • S
      powerpc/boot: Change the load address for the wrapper to fit the kernel · c55aef0e
      Suzuki Poulose 提交于
      The wrapper code which uncompresses the kernel in case of a 'ppc' boot
      is by default loaded at 0x00400000 and the kernel will be uncompressed
      to fit the location 0-0x00400000. But with dynamic relocations, the size
      of the kernel may exceed 0x00400000(4M). This would cause an overlap
      of the uncompressed kernel and the boot wrapper, causing a failure in
      boot.
      
      The message looks like :
      
         zImage starting: loaded at 0x00400000 (sp: 0x0065ffb0)
         Allocating 0x5ce650 bytes for kernel ...
         Insufficient memory for kernel at address 0! (_start=00400000, uncompressed size=00591a20)
      
      This patch shifts the load address of the boot wrapper code to the next
      higher MB, according to the size of  the uncompressed vmlinux.
      
      With the patch, we get the following message while building the image :
      
       WARN: Uncompressed kernel (size 0x5b0344) overlaps the address of the wrapper(0x400000)
       WARN: Fixing the link_address of wrapper to (0x600000)
      Signed-off-by: NSuzuki K. Poulose <suzuki@in.ibm.com>
      Signed-off-by: NJosh Boyer <jwboyer@gmail.com>
      c55aef0e
  4. 09 12月, 2011 1 次提交
  5. 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
  6. 19 5月, 2011 1 次提交
  7. 20 4月, 2011 2 次提交
  8. 05 5月, 2010 1 次提交
  9. 07 4月, 2010 1 次提交
  10. 31 12月, 2009 1 次提交
  11. 13 12月, 2009 2 次提交
  12. 20 8月, 2009 1 次提交
  13. 16 6月, 2009 1 次提交
  14. 11 3月, 2009 1 次提交
  15. 11 2月, 2009 1 次提交
  16. 31 10月, 2008 1 次提交
  17. 21 10月, 2008 1 次提交
    • P
      powerpc: Revert CHRP boot wrapper to real-base = 12MB on 32-bit · 0dcd4401
      Paul Mackerras 提交于
      Commit 9b09c6d9 ("powerpc: Change the
      default link address for pSeries zImage kernels") changed the
      real-base value in the CHRP note added by addnote to the zImage from
      12MB to 32MB.  It turns out that this causes unnecessary extra reboots
      on old 32-bit CHRP machines.  This therefore adds a -r flag to addnote
      to allow us to specify what real-base value it should put in the CHRP
      note, and adjusts the wrapper script to pass -r c00000 to addnote when
      making a zImage for a CHRP machine.  Also, CHRP machines ignore the
      RPA note, so we don't need to arrange for it to be the same as the
      kernel's.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0dcd4401
  18. 10 10月, 2008 1 次提交
    • P
      powerpc: Sync RPA note in zImage with kernel's RPA note · 91a00302
      Paul Mackerras 提交于
      Commit 9b09c6d9 ("powerpc: Change the
      default link address for pSeries zImage kernels") changed the
      real-base value in the CHRP note added by the addnote program from
      12MB to 32MB to give more space for Open Firmware to load the zImage.
      (The real-base value says where we want OF to position itself in
      memory.)  However, this change was ineffective on most pSeries
      machines, because the RPA note added by addnote has the "ignore me"
      flag set to 1.  This was intended to tell OF to ignore just the RPA
      note, but has the side effect of also making OF ignore the CHRP note
      (at least on most pSeries machines).
      
      To solve this we have to set the "ignore me" flag to 0 in the RPA
      note.  (We can't just omit the RPA note because that is equivalent to
      having an RPA note with default values, and the default values are not
      what we want.)  However, then we have to make sure the values in the
      zImage's RPA note match up with the values that the kernel supplies
      later in prom_init.c with either the ibm,client-architecture-support
      call or the process-elf-header call in prom_send_capabilities().
      
      So this sets the "ignore me" flag in the RPA note in addnote to 0, and
      adjusts the RPA note values in addnote.c and in prom_init.c to be
      consistent with each other and with the values in ibm_architecture_vec.
      
      However, since the wrapper is independent of the kernel, this doesn't
      ensure that the notes will stay consistent.  To ensure that, this adds
      code to addnote.c so that it can extract the kernel's RPA note from
      the kernel binary and put that in the zImage.  To that end, we put the
      kernel's fake ELF header (which contains the kernel's RPA note) into
      its own section, and arrange for wrapper to pull out that section with
      objcopy and pass it to addnote, which then extracts the RPA note from
      it and transfers it to the zImage.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      91a00302
  19. 21 8月, 2008 1 次提交
  20. 04 7月, 2008 2 次提交
  21. 01 7月, 2008 1 次提交
  22. 10 6月, 2008 1 次提交
  23. 03 6月, 2008 1 次提交
  24. 17 4月, 2008 1 次提交
  25. 03 4月, 2008 1 次提交
  26. 01 4月, 2008 1 次提交
    • G
      [POWERPC] PS3: Bootwrapper improvements · 5761eaa3
      Geoff Levand 提交于
      Improve the debugging support of the PS3 bootwraper code:
      
       o Increase the size of the PS3 bootwrapper overlay from 256 to 512 bytes to
         allow for more debugging code in the overlay.
       o Use the dot symbol to set the size of __system_reset_overlay.  The
         assembler will then emit an error if the overlay code is too big.
       o Remove some unused instructions.
       o Update the text describing the PS3 bootwrapper overlay.
       o Add a check for null pointer writes.
       o Change hcall return value from s64.
      Signed-off-by: NGeoff Levand <geoffrey.levand@am.sony.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      5761eaa3
  27. 27 3月, 2008 1 次提交
  28. 20 3月, 2008 1 次提交
  29. 07 3月, 2008 1 次提交
  30. 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
  31. 24 1月, 2008 2 次提交
  32. 24 12月, 2007 1 次提交
  33. 20 12月, 2007 1 次提交
  34. 06 12月, 2007 3 次提交