Skip to content
Snippets Groups Projects
  1. Jul 28, 2011
  2. Jul 27, 2011
  3. Jul 26, 2011
    • Andreas Pretzsch's avatar
      add command fitupd to run an update from a FIT image · 7130a579
      Andreas Pretzsch authored
      
      Command calls update_tftp() analogous to automatic update described
      in doc/README.update.
      
      Usage:
      fitupd [addr]
              - run update from FIT image at addr
                or from tftp 'updatefile'
      
      Signed-off-by: default avatarAndreas Pretzsch <apr@cn-eng.de>
      7130a579
    • Andreas Pretzsch's avatar
      automatic update from FIT image: add optional address parameter · 8d6b7320
      Andreas Pretzsch authored
      
      Current update_tftp() flow:
        1.) fetch "updatefile" from defined TFTP server
        2.) check if FIT format
        3.) flash contained images
      
      Add an address parameter to update_tftp(). If this address is non-zero,
      skip the TFTP transfer and use the image at this address.
      Also extend update_tftp() to return success/fail.
      
      Signed-off-by: default avatarAndreas Pretzsch <apr@cn-eng.de>
      8d6b7320
    • James Kosin's avatar
      post: fix indendation/brace confusion · 975afc34
      James Kosin authored
      
      The post.c code is missing braces around the pass case, and as a
      result, the diagnostic function will post both fail and pass for
      a failed test.  The reason for this bug is probably the incorrect
      indentation used, so when reading the code it seems like there
      are proper braces.
      
      Indent the code to the correct depth and put proper braces around
      the "else" branch of the "if" statement.
      
      Signed-off-by: default avatarJames Kosin <jkosin@intcomgrp.com>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      975afc34
    • Mike Frysinger's avatar
      fix unconfigured out-of-tree building of tools · 14ce91b1
      Mike Frysinger authored
      
      Now that the tools target requires the generated version header file, we
      need to make sure that the directory it writes to exists.  In a configured
      tree, this is taken care of for us.  But in an unconfigured one, the dir
      does not yet exist causing a build error like so:
      
      /bin/sh: line 5: ..../u-boot_build/include/version_autogenerated.h.tmp: No such file or directory
      
      So create the dir for this file before we attempt to generate it.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      14ce91b1
    • Mike Frysinger's avatar
      panic: add noreturn attribute · d2e8b911
      Mike Frysinger authored
      
      Since panic() never returns, we should add an appropriate attribute to
      let gcc improve optimization around it.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      d2e8b911
    • Mike Frysinger's avatar
      simplify clobber behavior with out-of-tree builds · afd077bd
      Mike Frysinger authored
      
      The targets/prerequisites are the same here; the rules only differ in
      the recipes.  So move the if logic protection to the recipe part so we
      can keep the rest the same.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      afd077bd
    • Mike Frysinger's avatar
      post: new nor flash test · f6f7395e
      Mike Frysinger authored
      
      This adds a simple flash test to automatically verify erasing,
      writing, and reading of sectors.  The code is based on existing
      Blackfin tests but generalized for everyone to use.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      f6f7395e
    • Mike Frysinger's avatar
      post: use ARRAY_SIZE · d2397817
      Mike Frysinger authored
      
      We've got a handy dandy macro already for calculating the number of
      elements in an array, so use it.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      d2397817
    • Mike Frysinger's avatar
      post: add gpio hotkey support · 9146d138
      Mike Frysinger authored
      
      Now that we have the generic GPIO layer, we can easily provide a common
      implementation for the post_hotkeys_pressed() function based on it.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      9146d138
    • Mike Frysinger's avatar
      serial: implement common uart post test · 7b826c2f
      Mike Frysinger authored
      
      The current arch/driver specific UART posts basically boil down to setting
      the UART to loop back mode, then reading and writing data.  If we ignore
      the loop back part, the rest can be built upon the existing common serial
      API.  So let's do just that.
      
      First add a call back for serial drivers to implement loop back control.
      Then write a post test that walks all of the serial drivers, puts them
      into loop back mode, and verifies that reading/writing at all the diff
      baud rates is OK.
      
      If a serial driver doesn't support loop back mode (either it can't or
      it hasn't done so yet), then skip it.  This should allow for people to
      easily migrate to the new post test with existing serial drivers.
      
      I haven't touched the few already existing uart post tests as I don't
      the hardware or knowledge of converting them over.  So I've marked the
      new test as weak which will allow the existing tests to override the
      default until they are converted.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      7b826c2f
    • Mike Frysinger's avatar
      serial: drop useless ctlr field · 1c9a5606
      Mike Frysinger authored
      
      The multi serial support has a "ctlr" field which almost no one uses,
      but everyone is forced to set to useless strings.  So punt it.
      
      Funny enough, the only code that actually reads this field (the mpc8xx
      driver) has a typo where it meant to look for the SCC driver.  Fix it
      while converting the check to use the name field.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Heiko Schocher <hs@denx.de>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Tom Rix <Tom.Rix@windriver.com>
      CC: Minkyu Kang <mk7.kang@samsung.com>
      CC: Craig Nauman <cnauman@diagraph.com>
      CC: Marek Vasut <marek.vasut@gmail.com>
      CC: Prafulla Wadaskar <prafulla@marvell.com>
      CC: Mahavir Jain <mjain@marvell.com>
      1c9a5606
    • Mike Frysinger's avatar
      serial: drop serial_register return value · c52b4f79
      Mike Frysinger authored
      
      The serial_register function never fails (always return 0), so change it
      to a void function to avoid wasting overhead on it.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      c52b4f79
    • Mike Frysinger's avatar
      serial: push default_serial_console to drivers · 6c768ca7
      Mike Frysinger authored
      
      Rather than sticking arch/board/driver specific logic in the common
      serial code, push it all out to the respective drivers.  The serial
      drivers declare these funcs weak so that boards can still override
      things with their own definition.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Heiko Schocher <hs@denx.de>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Tom Rix <Tom.Rix@windriver.com>
      CC: Minkyu Kang <mk7.kang@samsung.com>
      CC: Craig Nauman <cnauman@diagraph.com>
      CC: Prafulla Wadaskar <prafulla@marvell.com>
      CC: Mahavir Jain <mjain@marvell.com>
      Tested-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
      6c768ca7
    • Mike Frysinger's avatar
      disable security warning flags when possible · 6262e4e7
      Mike Frysinger authored
      
      Some toolchains enable security warning flags by default, but these don't
      really make sense in the u-boot world.  Such as forcing changes like:
      	-printf(foo);
      	+printf("%s", foo);
      
      So disable the flags when the compiler supports them.  Linux has already
      merged a similar change in their build system.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      6262e4e7
    • Mike Frysinger's avatar
      cmd_usage: constify · e84ffddb
      Mike Frysinger authored
      
      The usage helper doesn't modify the command, so constify its input arg.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      e84ffddb
Loading