1. 08 Aug, 2010 1 commit
    • Feng Wang's avatar
      fdt: Fix bug in size calculation in fdt_resize() with initrd use · 3840ebfa
      Feng Wang authored
      
      
      Original bug description from Feng (fdt_resize() bug caused "WARNING:
      could not set linux, initrd-start FDT_ERR_NOSPACE."):
      
      What I got is an error: "WARNING: could not set linux,initrd-start
      FDT_ERR_NOSPACE." after loading Device Tree blob. This in turn caused
      linux to miss init part.
      
      After some digging, I found out the reason for this error, it is caused
      by fdt_resize().
      
      FDT blob got resized after filling in all board specific information of
      PowerPC. (in boot_body_linux()). It reduced blob size with only extra
      space for two fdt_reserve_entry, one for fdt itself, and one for initrd.
      Then it's aligned to a 0x1000 page boundary. However, later in
      fdt_initrd(), it could add two more properties, initrd-start AND
      initrd-end, each one needs at least two fdt_reserve_entry sizes done by
      _fdt_add_property() (name and value). Thus, the two fdt_reserve_entry
      extra space is not sufficient.
      
      So for some specific fdt size which is just under the page boundary
      after resizing, this will cause an error of FDT_ERR_NOSPACE in
      fdt_initrd() when setting those two properties, and failed to pass
      initrd information to linux.
      
      My fix is in fdt_resize(), leave at least 4 fdt_reserve_entry for
      initrd. So instead of 2*sizeof(struct fdt_reserve_entry) for
      actual_totalsize, use 5*sizeof(struc fdt_reserve_entry).
      
      Stefan: I got this same error on katmai, when trying to boot with
      initrd (run flash_self). This patch fixes this issue.
      Signed-off-by: default avatarFeng Wang <fwang02@harris.com>
      Tested-by: default avatarStefan Roese <sr@denx.de>
      Cc: Jerry Van Baren <gvb.uboot@gmail.com>
      Acked-by: default avatarGerald Van Baren <vanbaren@cideas.com>
      3840ebfa
  2. 26 Jul, 2010 1 commit
  3. 20 Jul, 2010 2 commits
  4. 16 Jul, 2010 1 commit
  5. 30 May, 2010 1 commit
  6. 07 Apr, 2010 1 commit
  7. 21 Mar, 2010 1 commit
  8. 27 Oct, 2009 1 commit
  9. 24 Oct, 2009 1 commit
  10. 23 Oct, 2009 1 commit
  11. 09 Aug, 2009 1 commit
  12. 12 Jun, 2009 1 commit
  13. 07 Feb, 2009 1 commit
  14. 17 Jan, 2009 1 commit
    • Peter Korsgaard's avatar
      fdt_resize(): fix actualsize calculations with unaligned blobs · c088a108
      Peter Korsgaard authored
      
      
      The code in fdt_resize() to extend the fdt size to end on a page boundary
      is wrong for fdt's not located at an address aligned on a page boundary.
      What's even worse, the code would make actualsize shrink rather than grow
      if (blob & 0xfff) was bigger than the amount of padding added by ALIGN(),
      causing fdt_add_mem_rsv to fail.
      
      Fix it by aligning end address (blob + size) to a page boundary instead.
      For aligned fdt's this is equivalent to what we had before.
      Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      c088a108
  15. 31 Oct, 2008 1 commit
  16. 24 Oct, 2008 2 commits
  17. 13 Sep, 2008 1 commit
  18. 26 Aug, 2008 2 commits
  19. 21 Aug, 2008 1 commit
  20. 16 Jul, 2008 1 commit
  21. 14 Jul, 2008 1 commit
  22. 02 Jul, 2008 1 commit
  23. 20 Jun, 2008 1 commit
  24. 11 Jun, 2008 2 commits
  25. 26 Mar, 2008 1 commit
  26. 25 Mar, 2008 1 commit
  27. 13 Feb, 2008 1 commit
  28. 11 Feb, 2008 1 commit
  29. 05 Feb, 2008 1 commit
  30. 09 Jan, 2008 1 commit
    • Timur Tabi's avatar
      85xx: add ability to upload QE firmware · b8ec2385
      Timur Tabi authored
      
      
      Define the layout of a binary blob that contains a QE firmware and instructions
      on how to upload it.  Add function qe_upload_firmware() to parse the blob and
      perform the actual upload.  Add command-line command "qe fw" to take a firmware
      blob in memory and upload it.  Update ft_cpu_setup() on 85xx to create the
      'firmware' device tree node if U-Boot has uploaded a firmware.  Fully define
      'struct rsp' in immap_qe.h to include the actual RISC Special Registers.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      b8ec2385
  31. 08 Jan, 2008 1 commit
  32. 08 Dec, 2007 4 commits
  33. 21 Nov, 2007 1 commit
    • Kumar Gala's avatar
      Add additional fdt fixup helper functions · 9eb77cea
      Kumar Gala authored
      
      
      Added the following fdt fixup helpers:
       * do_fixup_by_prop{_u32} - Find matching nodes by property name/value
       * do_fixup_by_compat{_u32} - Find matching nodes by compat
      
      The _u32 variants work the same only the property they are setting
      is know to be a 32-bit integer instead of a byte buffer.
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      9eb77cea