Skip to content
Snippets Groups Projects
  1. Mar 04, 2014
  2. Feb 26, 2014
    • Tom Rini's avatar
      arm: Switch to -mno-unaligned-access when supported by the compiler · 1551df35
      Tom Rini authored
      
      When we tell the compiler to optimize for ARMv7 (and ARMv6 for that
      matter) it assumes a default of SCTRL.A being cleared and unaligned
      accesses being allowed and fast at the hardware level.  We set this bit
      and must pass along -mno-unaligned-access so that the compiler will
      still breakdown accesses and not trigger a data abort.
      
      To better help understand the requirements of the project with respect
      to unaligned memory access, the
      Documentation/unaligned-memory-access.txt file has been added as
      doc/README.unaligned-memory-access.txt and is taken from the v3.14-rc1
      tag of the kernel.
      
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Mans Rullgard <mans@mansr.com>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      1551df35
    • Albert ARIBAUD's avatar
      arm: remove unneeded symbol offsets and _TEXT_BASE · b60eff31
      Albert ARIBAUD authored
      
      Remove the last uses of symbol offsets in ARM U-Boot.
      Remove some needless uses of _TEXT_BASE.
      Remove all _TEXT_BASE definitions.
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      b60eff31
  3. Feb 24, 2014
  4. Feb 21, 2014
  5. Feb 20, 2014
  6. Feb 19, 2014
    • Masahiro Yamada's avatar
      cosmetic: FIT: fix a strange comment · f150c837
      Masahiro Yamada authored
      
      There is a strange comment in fit_image_load().
      This function can be used for loading Kernel Image, FDT
      as well as ramdisk.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      f150c837
    • Masahiro Yamada's avatar
      Move #ifdef(CONFIG_DISPLAY_CPUINFO) from caller to callee · 365475e6
      Masahiro Yamada authored
      
      - When CONFIG_DISPLAY_CPUINFO is not enabled,
         print_cpuinfo() should be defined as an empty function
         in a header, include/common.h
      
       - Remove #ifdef CONFIG_DISPLAY_CPUINFO .. #endif
         from caller, common/board_f.c and arch/arm/lib/board.c
      
       - Remove redundant prototypes in arch/arm/lib/board.c,
         arch/arm/include/asm/arch-am33x/sys_proto.h and
         board/nokia/rx51/rx51.h, keeping the one in include/common.h
      
       - Add #ifdef CONFIG_DISPLAY_CPUINFO to the func definition
         where it is missing
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      365475e6
    • Masahiro Yamada's avatar
      dts: re-write dts/Makefile more simply with Kbuild · 6ab6b2af
      Masahiro Yamada authored
      
      Useful rules in scripts/Makefile.lib allows us to easily
      generate a device tree blob and wrap it in assembly code.
      
      We do not need to parse a linker script to get output format and arch.
      
      This commit deletes ./u-boot.dtb since it is a copy of dts/dt.dtb.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      6ab6b2af
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored
      
      Now we are ready to switch over to real Kbuild.
      
      This commit disables temporary scripts:
        scripts/{Makefile.build.tmp, Makefile.host.tmp}
      and enables real Kbuild scripts:
        scripts/{Makefile.build,Makefile.host,Makefile.lib}.
      
      This switch is triggered by the line in scripts/Kbuild.include
        -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
        +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
      
      We need to adjust some build scripts for U-Boot.
      But smaller amount of modification is preferable.
      
      Additionally, we need to fix compiler flags which are
      locally added or removed.
      
      In Kbuild, it is not allowed to change CFLAGS locally.
      Instead, ccflags-y, asflags-y, cppflags-y,
      CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
      are prepared for that purpose.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      6825a95b
    • Masahiro Yamada's avatar
      kbuild: change out-of-tree build · 9e414032
      Masahiro Yamada authored
      
      This commit changes the working directory
      where the build process occurs.
      
      Before this commit, build process occurred under the source
      tree for both in-tree and out-of-tree build.
      
      That's why we needed to add $(obj) prefix to all generated
      files in makefiles like follows:
        $(obj)u-boot.bin:  $(obj)u-boot
      
      Here, $(obj) is empty for in-tree build, whereas it points
      to the output directory for out-of-tree build.
      
      And our old build system changes the current working directory
      with "make -C <sub-dir>" syntax when descending into the
      sub-directories.
      
      On the other hand, Kbuild uses a different idea
      to handle out-of-tree build and directory descending.
      
      The build process of Kbuild always occurs under the output tree.
      When "O=dir/to/store/output/files" is given, the build system
      changes the current working directory to that directory and
      restarts the make.
      
      Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      9e414032
    • Dan Murphy's avatar
      common: spl: Add spl sata boot support · fff40a7e
      Dan Murphy authored
      
      Add spl_sata to read a fat partition from a bootable SATA
      drive.
      
      Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
      Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
      fff40a7e
    • Wolfgang Denk's avatar
      EXT4: Fix number base handling of "ext4write" command · f7740f77
      Wolfgang Denk authored
      
      Unlike other commands (for example, "fatwrite"), ext4write would
      interpret the "sizebytes" as decimal number.  This is not only
      inconsistend and unexpected to most users, it also breaks usage
      like this:
      
      	tftp ${addr} ${name}
      	ext4write mmc 0:2 ${addr} ${filename} ${filesize}
      
      Change this to use the standard notation of base 16 input format.
      See also commit b770e88a
      
      WARNING: this is a change to the user interface!!
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Uma Shankar <uma.shankar@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      f7740f77
    • Masahiro Yamada's avatar
    • Stephen Warren's avatar
      cmd_test: implement -e test for file existence · e5e897c0
      Stephen Warren authored
      
      This is much like a regular shell's -e operator, except that it takes
      multiple arguments to specify the device type and  device/partition ID
      in addition to the usual filename:
      
      if test -e mmc 0:1 /boot/boot.scr; then echo yes; else echo no; fi
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      e5e897c0
    • Stephen Warren's avatar
      cmd_test: evaluate to false without any arguments · 2453de99
      Stephen Warren authored
      
      This emulates bash:
      $ if test; then echo yes; else echo no; fi
      no
      
      Currently, the code sets expr = -1 in this case, which gets mapped to
      0 (true) at the end of do_test() by the logical -> shell exit code
      conversion.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      2453de99
    • Stephen Warren's avatar
      cmd_test: implement ! on sub-expressions · d9b651ce
      Stephen Warren authored
      
      Currently, ! can only be parsed as the first operator in an expression.
      This prevents the following from working:
      
      $ if test ! ! 1 -eq 1; then echo yes; else echo no; fi
      yes
      $ if test ! 1 -eq 2 -a ! 3 -eq 4; then echo yes; else echo no; fi
      yes
      
      Fix this by parsing ! like any other operator, and and handling it
      similarly to -a and -o.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      d9b651ce
    • Stephen Warren's avatar
      cmd_test: check for binary operators before unary · 4c80f29e
      Stephen Warren authored
      
      This better mirrors the behaviour of bash, for example:
      
      $ if test -z = -z; then echo yes; else echo no; fi
      yes
      
      This is parsed as a string comparison of "-z" and "-z", since the check
      for the binary "=" operator occurs first. Without this change, the
      command would be parsed as a -z test of "-", followed by a syntax error;
      a trailing -z without and operand.
      
      This is a behavioural change, but I believe any commands affected were
      previously invalid or bizarely formed.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      4c80f29e
    • Stephen Warren's avatar
      cmd_test: use table lookup for parsing · 490ba833
      Stephen Warren authored
      
      do_test() currently uses strcmp() twice to determine which operator is
      present; once to determine how many arguments the operator needs, then
      a second time to actually decode the operator and implement it.
      
      Rewrite the code so that a table lookup is used to translate the operator
      string to an integer, and use a more efficient switch statement to decode
      and execute the operator.
      
      This approach also acts as enablement for the following patches.
      
      This patch should introduce no behavioural change.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      490ba833
  7. Feb 07, 2014
  8. Feb 04, 2014
Loading