Skip to content
Snippets Groups Projects
  1. Oct 22, 2012
    • Simon Glass's avatar
      config: Enable CBFS, ext4 for coreboot · af9f881a
      Simon Glass authored
      
      Enable Coreboot and EXT4 Filesystems on the coreboot board.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      af9f881a
    • Gabe Black's avatar
      fs: Add a Coreboot Filesystem (CBFS) driver and commands · 84cd9327
      Gabe Black authored
      
      This change adds CBFS support and some commands to use it to u-boot. These
      commands are:
      
      cbfsinit - Initialize CBFS support and pull all metadata into RAM. The end of
      the ROM is an optional parameter which defaults to the standard 0xffffffff and
      can be used to support multiple CBFSes in a system. The last one set up with
      cbfsinit is the one that will be used.
      
      cbfsinfo - Print information from the CBFS header.
      
      cbfsls - Print out the size, type, and name of all the files in the current
      CBFS. Recognized types are translated into symbolic names.
      
      cbfsload - Load a file from CBFS into memory. Like the similar command for fat
      filesystems, you can optionally provide a maximum size.
      
      Support for CBFS is compiled in when the CONFIG_CMD_CBFS option is specified.
      
      The CBFS driver can also be used programmatically from within u-boot.
      
      If u-boot needs something out of CBFS very early before the heap is
      configured, it won't be able to use the normal CBFS support which caches some
      information in memory it allocates from the heap. The
      cbfs_file_find_uncached function searches a CBFS instance without touching
      the heap.
      
      Signed-off-by: default avatarGabe Black <gabeblack@google.com>
      Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      84cd9327
    • Taylor Hutt's avatar
      disk: Address cast and format errors · 9936be31
      Taylor Hutt authored
      
      This change addresses a few printf-formatting errors, and a typecast
      error.
      
      Signed-off-by: default avatarTaylor Hutt <thutt@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      9936be31
    • Gabe Black's avatar
      disk: Make the disk partition code work with no specific partition types · 0c9c8fb5
      Gabe Black authored
      
      Currently, if the disk partition code is compiled with all of the parition
      types compiled out, it hits an #error which stops the build. This change
      adjusts that file so that those functions will fall through to their defaults
      in those cases instead of breaking the build. These functions are needed
      because other code calls them, and that code is needed because other config
      options are overly broad and bring in support we don't need along with
      support we do.
      
      Also reduce repetition of the 6-term #ifdef throughout the file.
      
      Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      0c9c8fb5
    • Gabe Black's avatar
      ide: Add printf format string for CONFIG_SYS_64BIT_LBA option · 24a3fdd6
      Gabe Black authored
      
      The size of an LBA type changes depending on this option. We need to
      use a different printf() string in each case, so create a define for
      this.
      
      Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      24a3fdd6
    • Marek Vasut's avatar
      kerneldoc: tmpl: Implement template for LG-arrays · 47444a27
      Marek Vasut authored
      
      Implement kerneldoc template for linker-generated arrays. This is
      the first template in U-Boot that is used to generate kerneldoc
      style documentation. This template is very basic.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      47444a27
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Convert the U-Boot commands to LG-arrays · 6c7c946c
      Marek Vasut authored
      
      This patch converts the old method of creating a list of command
      onto the new LG-arrays code. The old u_boot_cmd section is converted
      to new u_boot_list_cmd subsection and LG-array macros used as needed.
      
      Minor adjustments had to be made to the common code to work with the
      LG-array macros, mostly the fixup_cmdtable() calls are now passed the
      ll_entry_start and ll_entry_count instead of linker-generated symbols.
      
      The command.c had to be adjusted as well so it would use the newly
      introduced LG-array API instead of directly using linker-generated
      symbols.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      6c7c946c
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
    • Marek Vasut's avatar
      common: Implement support for linker-generated arrays · 42ebaae3
      Marek Vasut authored
      
      This patch adds support for linker-generated array. These arrays
      are a generalization of the U-Boot command declaration approach.
      
      Basically, the idea is to generate an array, where elements of the
      array are statically initialized at compile time and each element
      is declared separatelly at different place. Such array is assembled
      together into continuous piece of memory by linker and a pointer to
      it's first entry can then be retrieved via accessor.
      
      The actual implementation relies on placing any variable that is to
      represent an element of LG-array into particular subsection of the
      .u_boot_list linker section . The subsection is determined by user
      options. Once compiled, it is possible to dump all symbols placed
      in .u_boot_list section and the subsections in which they should be
      and generate appropriate bounds for each requested subsection of the
      .u_boot_list section. Each such subsection thus contains __start and
      __end entries at the begining and end respecitively.
      
      This allows for simple run-time traversing of the array, since the
      symbols are properly defined.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      42ebaae3
    • Marek Vasut's avatar
      common: Add symbol handling for generic lists into Makefile · 97b24d3d
      Marek Vasut authored
      
      This patch adds essential components for generation of the contents of
      the linker section that is used by the linker-generated array. All of
      the contents is held in a separate file, u-boot.lst, which is generated
      at runtime just before U-Boot is linked.
      
      The purpose of this code is to especially generate the appropriate
      boundary symbols around each subsection in the section carrying the
      linker-generated arrays. Obviously, the interim linker code for actual
      placement of the variables into the section is generated too. The
      generated file, u-boot.lst, is included into u-boot.lds via the linker
      INCLUDE directive in u-boot.lds .
      
      Adjustments are made in the Makefile and spl/Makefile so that the
      u-boot.lds and u-boot-spl.lds depend on their respective .lst files.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      Tested-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      97b24d3d
    • Shengzhou Liu's avatar
      powerpc/usb: fix bug of CPU hang when missing USB PHY clock · 047cea36
      Shengzhou Liu authored
      
      when missing USB PHY clock, u-boot will hang during USB
      initialization when issuing "usb start". We should check
      USBGP[PHY_CLK_VALID] bit to avoid CPU hanging in this case.
      
      Due to controller issue of PHY_CLK_VALID in ULPI mode, we set
      USB_EN before checking PHY_CLK_VALID, otherwise PHY_CLK_VALID
      doesn't work.
      
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      047cea36
    • Vincent Palatin's avatar
      usb: fallback safely when a configuration descriptor is too large · 8b8d779d
      Vincent Palatin authored
      
      When a USB configuration descriptor was larger than our USB buffer
      (512 bytes), we were skipping the full descriptor reading but then we
      were still parsing and using it, triggering memory corruptions.
      Now in that case, it just skips this device enumeration and displays the
      appropriate message to the user, so he can fix the buffer if he wants.
      
      This bug was triggered by some UVC webcams which have very large
      configuration descriptors (e.g. a couple of kB) describing all their
      supported video encodings.
      
      Signed-off-by: default avatarVincent Palatin <vpalatin@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      8b8d779d
    • Gabe Black's avatar
      usb: Support the CONFIG_SYS_64BIT_LBA option · e81e79ed
      Gabe Black authored
      
      usb_storage wouldn't compile when the CONFIG_SYS_64BIT_LBA option is
      turned on because the used fixed size data types in their exported
      functions when they should have used lbaint_t for the block count
      parameter. That meant that when the sizes happened to be the same, when
      using a 28 bit LBA, the driver would build, but when it wasn't, a 48 bit
      LBA, things broke.
      
      This change adjusts the signatures to use the right type and makes small
      adjustments in the affected functions.
      
      Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarMarek Vasut <marex@denx.de>
      e81e79ed
  2. Oct 20, 2012
  3. Oct 19, 2012
Loading