1. 19 5月, 2020 3 次提交
  2. 25 1月, 2020 2 次提交
  3. 18 1月, 2020 2 次提交
  4. 12 8月, 2019 1 次提交
  5. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  6. 04 12月, 2017 1 次提交
    • M
      mtd: nand: Rename nand.h into rawnand.h · 6ae3900a
      Masahiro Yamada 提交于
      This header was renamed to rawnand.h in Linux.
      
      The following is the corresponding commit in Linux.
      
        commit d4092d76a4a4e57b65910899948a83cc8646c5a5
        Author: Boris Brezillon <boris.brezillon@free-electrons.com>
        Date:   Fri Aug 4 17:29:10 2017 +0200
      
            mtd: nand: Rename nand.h into rawnand.h
      
            We are planning to share more code between different NAND based
            devices (SPI NAND, OneNAND and raw NANDs), but before doing that
            we need to move the existing include/linux/mtd/nand.h file into
            include/linux/mtd/rawnand.h so we can later create a nand.h header
            containing all common structure and function prototypes.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      6ae3900a
  7. 16 8月, 2017 2 次提交
  8. 12 7月, 2017 1 次提交
  9. 09 6月, 2017 1 次提交
  10. 04 6月, 2016 2 次提交
  11. 06 2月, 2016 1 次提交
  12. 25 1月, 2016 2 次提交
  13. 24 7月, 2013 1 次提交
  14. 01 3月, 2013 1 次提交
  15. 19 1月, 2011 1 次提交
    • P
      cmd_jffs2: Fix get_part_sector_size_nor() overflow bug · 141053d6
      Peter Tyser 提交于
      When a flash partition was positioned at the very top of a 32-bit memory
      map (eg located at 0xf8000000 with a size of 0x8000000)
      get_part_sector_size_nor() would incorrectly calculate the partition's
      ending address to 0x0 due to overflow.  When the overflow occurred
      get_part_sector_size_nor() would falsely return a sector size of 0.
      A sector size of 0 results in subsequent jffs2 operations failing.
      
      To workaround the overflow subtract 1 from calculated address of
      the partition endpoint.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      141053d6
  16. 05 7月, 2010 1 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5
  17. 26 1月, 2010 1 次提交
  18. 17 7月, 2009 1 次提交
    • S
      Remove legacy NAND and disk on chip code. · be33b046
      Scott Wood 提交于
      Legacy NAND had been scheduled for removal.  Any boards that use this
      were already not building in the previous release due to an #error.
      
      The disk on chip code in common/cmd_doc.c relies on legacy NAND,
      and it has also been removed.  There is newer disk on chip code
      in drivers/mtd/nand; someone with access to hardware and sufficient
      time and motivation can try to get that working, but for now disk
      on chip is not supported.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      be33b046
  19. 13 6月, 2009 1 次提交
    • W
      General help message cleanup · a89c33db
      Wolfgang Denk 提交于
      Many of the help messages were not really helpful; for example, many
      commands that take no arguments would not print a correct synopsis
      line, but "No additional help available." which is not exactly wrong,
      but not helpful either.
      
      Commit ``Make "usage" messages more helpful.'' changed this
      partially. But it also became clear that lots of "Usage" and "Help"
      messages (fields "usage" and "help" in struct cmd_tbl_s respective)
      were actually redundant.
      
      This patch cleans this up - for example:
      
      Before:
      	=> help dtt
      	dtt - Digital Thermometer and Thermostat
      
      	Usage:
      	dtt         - Read temperature from digital thermometer and thermostat.
      
      After:
      	=> help dtt
      	dtt - Read temperature from Digital Thermometer and Thermostat
      
      	Usage:
      	dtt
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      a89c33db
  20. 29 5月, 2009 1 次提交
    • S
      jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together · 76b5883d
      Stefan Roese 提交于
      Currently using JFFS2 with MTDPARTS enabled doesn't work. This is because
      mtdparts_init() is available in both files, cmd_mtdparts.c and
      cmd_jffs2.c. Please note that in the original cmd_jffs2.c file (before
      the jffs2/mtdparts command/file split those 2 different versions
      already existed. So this is nothing new. The main problem is that the
      variables "current_dev" and "current_partnum" are declared in both
      files now. This doesn't work.
      
      This patch now changes the names of those variable to more specific
      names: "current_mtd_dev" and "current_mtd_partnum". This is because
      this patch also changes the declaration from static to global, so
      that they can be used from both files.
      
      Please note that my first tests were not successful. The MTD devices
      selected via mtdparts are now accessed but I'm failing to see the
      directory listed via the "ls" command. Nothing is displayed. Perhaps
      I didn't generate the JFFS2 image correctly (I never used JFFS2 in
      U-Boot before). Not sure. Perhaps somebody else could take a look at
      this as well. I'll continue looking into this on Monday.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Detlev Zundel <dzu@denx.de>
      Cc: Ilya Yanok <yanok@emcraft.com>
      Cc: Renaud barbier <renaud.barbier@ge.com>
      76b5883d
  21. 21 3月, 2009 1 次提交
  22. 28 1月, 2009 3 次提交
    • P
      Command usage cleanup · 2fb2604d
      Peter Tyser 提交于
      Remove command name from all command "usage" fields and update
      common/command.c to display "name - usage" instead of
      just "usage". Also remove newlines from command usage fields.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      2fb2604d
    • P
      Standardize command usage messages with cmd_usage() · 62c3ae7c
      Peter Tyser 提交于
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      62c3ae7c
    • T
      jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE · b5b004ad
      Tomasz Figa 提交于
      This patch fixes a bug (?) introduced after inclusion of the new
      JFFS2 code.
      
      When not using CONFIG_JFFS2_CMDLINE, the code in cmd_jffs2.c doesn't
      fill in part->sector_size (keeping it as 0), but a correct value is
      needed by the code in jffs2_1pass.c. This causes all JFFS2 accesses
      to be in the same place of the memory, what obviously means
      impossibility to use the JFFS2 partition.
      
      This problem is fixed in this patch by including sector size
      calculation in non-CONFIG_JFFS2_CMDLINE mtdparts_init variant.
      
      Signed-off-by: Tomasz Figa <tomasz.figa_at_gmail.com>
      b5b004ad
  23. 10 12月, 2008 1 次提交
  24. 09 12月, 2008 1 次提交
  25. 19 10月, 2008 1 次提交
  26. 07 9月, 2008 1 次提交
  27. 13 8月, 2008 1 次提交
  28. 11 7月, 2008 1 次提交
  29. 09 1月, 2008 1 次提交
  30. 21 11月, 2007 1 次提交
  31. 24 9月, 2007 1 次提交