| 0ccff500 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
image: Use crc header file instead of C prototypes
We have an existing header which the crc32 definitions, so use it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 41ef372c | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
common: Use new numeric setenv functions
Use setenv_ulong(), setenv_hex() and setenv_addr() in common/
Signed-off-by: Simon Glass <sjg@chromium.org> |
| bfc59966 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Update set_working_fdt_addr() to use setenv_addr()
We might as well use this common function instead of repeating the same code.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 8c86bbe0 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Reduce casting in mtest
Use a ulong for the command arguments, and only cast to an address when needed. This fixes warnings in sandbox where pointers are typically 64 bits long.
Signed-off-by: Simo
Reduce casting in mtest
Use a ulong for the command arguments, and only cast to an address when needed. This fixes warnings in sandbox where pointers are typically 64 bits long.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c44d4386 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Bring mtest putc() into common code
If we get a Ctrl-C abort, we always print a newline. Move this repeated code out of the functions and into a single place in the caller.
Signed-off-by: Simon Gla
Bring mtest putc() into common code
If we get a Ctrl-C abort, we always print a newline. Move this repeated code out of the functions and into a single place in the caller.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7ecbd4d7 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Fix mtest indenting
Some of the inner loops are not indented correctly. Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 51209b1f | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Use common mtest iteration counting
The iteration code is the same for each version of the memory test, so pull it out into the common function.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| c9638f50 | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Split out the memory tests into separate functions
Half of the code is currently hidden behind an #ifdef. Move the two memory tests into their own functions and use the compiler to eliminate the unu
Split out the memory tests into separate functions
Half of the code is currently hidden behind an #ifdef. Move the two memory tests into their own functions and use the compiler to eliminate the unused code.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0628ab8e | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
sandbox: Change memory commands to use map_physmem
Sandbox wants to support commands which use memory. The map_sysmen() call provides this feature, so use this in the memory commands.
Signed-off-by
sandbox: Change memory commands to use map_physmem
Sandbox wants to support commands which use memory. The map_sysmen() call provides this feature, so use this in the memory commands.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 6b3ff98d | 24-Feb-2013 |
Simon Glass <sjg@chromium.org> |
Tidy up error checking and fix bug in hash command
There are two problems:
1. The argument count needs to be checked before argv is used 2. When verify is not enabled, we need to define a constant
Tidy up error checking and fix bug in hash command
There are two problems:
1. The argument count needs to be checked before argv is used 2. When verify is not enabled, we need to define a constant zero value
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 85dafbb8 | 20-Feb-2013 |
Fabio Estevam <fabio.estevam@freescale.com> |
common: cmd_sata: Fix usage text for 'sata init'
Currently sata usage text prints a double 'sata' for the init command.
MX53LOCO U-Boot > sata sata - SATA sub system
Usage: sata sata init - init S
common: cmd_sata: Fix usage text for 'sata init'
Currently sata usage text prints a double 'sata' for the init command.
MX53LOCO U-Boot > sata sata - SATA sub system
Usage: sata sata init - init SATA sub system sata info - show available SATA devices sata device [dev] - show or set current device sata part [dev] - print partition table sata read addr blk# cnt sata write addr blk# cnt
Remove the extra 'sata' from the 'sata init' line.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
show more ...
|
| a1eac57a | 21-Feb-2013 |
Phil Sutter <phil.sutter@viprinet.com> |
common/env_nand.c: calculate crc only when readenv was OK
Calculating the checksum of incompletely read data is useless.
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> [scottwood@freescale.c
common/env_nand.c: calculate crc only when readenv was OK
Calculating the checksum of incompletely read data is useless.
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> [scottwood@freescale.com: minor formatting fix] Signed-off-by: Scott Wood <scottwood@freescale.com>
show more ...
|
| b76a147b | 21-Feb-2013 |
Phil Sutter <phil.sutter@viprinet.com> |
env_nand.c: clarify log messages when env reading fails
The single message is misleading, since there is no equivalent success note when reading the other copy succeeds. Instead, warn if one of the
env_nand.c: clarify log messages when env reading fails
The single message is misleading, since there is no equivalent success note when reading the other copy succeeds. Instead, warn if one of the redundant copies could not be loaded and emphasise on the error when reading both fails.
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
show more ...
|
| ced199dc | 07-Feb-2013 |
Harvey Chapman <hchapman@3gfp.com> |
nand: fix nand read.option parsing
"nand read.part addr off size" would be treated as "nand read.raw addr off 1" It now fails as intended stating "Unknown nand command suffix '.part'"
Signed-off-by
nand: fix nand read.option parsing
"nand read.part addr off size" would be treated as "nand read.raw addr off 1" It now fails as intended stating "Unknown nand command suffix '.part'"
Signed-off-by: Harvey Chapman <hchapman@3gfp.com>
show more ...
|
| 8fdf1e0f | 16-Dec-2012 |
Vipin Kumar <vipin.kumar@st.com> |
imls: Add support to list images in NAND device
This patch adds support to list images in NAND flash through imls
Signed-off-by: Vipin Kumar <vipin.kumar@st.com> |
| 3e34cf7b | 27-Jan-2013 |
Piotr Wilczek <p.wilczek@samsung.com> |
gpt: fix partion size limit
Currently, in gpt command, partion size is converted from string to unsigned long type using 'ustrtol' function. That type limits the partition size to 4GB.
This patch c
gpt: fix partion size limit
Currently, in gpt command, partion size is converted from string to unsigned long type using 'ustrtol' function. That type limits the partition size to 4GB.
This patch changes the conversion function to 'ustrtoll' to return unsigned long long type.
Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
show more ...
|
| 4f47aceb | 07-Feb-2013 |
Holger Hans Peter Freyther <holger@freyther.de> |
led: The gpio_led.c code expects that LED state is from the enum
u-boot is not consistent if state should be 0|1 or of the enum, the GPIO driver expects this to be one of the enum values. Update the
led: The gpio_led.c code expects that LED state is from the enum
u-boot is not consistent if state should be 0|1 or of the enum, the GPIO driver expects this to be one of the enum values. Update the caller.
Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
show more ...
|
| 1b3e0b19 | 04-Feb-2013 |
Reinhard Arlt <reinhard.arlt@esd.eu> |
cmd_elf: Fix broken bootvx command
Fix broken bootvx command.
Signed-off-by: Reinhard Arlt <reinhard.arlt@esd.eu> |
| 70d7cb92 | 03-Feb-2013 |
Robert P. J. Day <rpjday@crashcourse.ca> |
cmd_load.c: Add #endif comments to reduce confusion
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> |
| 85de63e2 | 03-Feb-2013 |
Robert P. J. Day <rpjday@crashcourse.ca> |
cmd_mem.c: Fix some typoes, no functional changes
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> |
| 7b395232 | 21-Jan-2013 |
Gabor Juhos <juhosg@openwrt.org> |
malloc: make malloc_bin_reloc static
On architectures where manual relocation is needed, the 'malloc_bin_reloc' function must be called after 'mem_malloc_init'.
Make the 'malloc_bin_reloc' function
malloc: make malloc_bin_reloc static
On architectures where manual relocation is needed, the 'malloc_bin_reloc' function must be called after 'mem_malloc_init'.
Make the 'malloc_bin_reloc' function static and call it directly from 'mem_malloc_init' instead of calling that from board_init_{r,f} functions of the affected architectures.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Wolfgang Denk <wd@denx.de> Cc: Andreas Bießmann <andreas.devel@gmail.com> Cc: Jason Jin <Jason.jin@freescale.com> Cc: Macpaul Lin <macpaul@andestech.com> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
show more ...
|
| 62a81431 | 05-Feb-2013 |
Ilya Yanok <ilya.yanok@cogentembedded.com> |
spl: support for booting via usbeth
In case of usbeth booting just call net_load_image("usb_ether"). This patch also adds CONFIG_SPL_USBETH_SUPPORT and CONFIG_SPL_MUSB_NEW_SUPPORT config options to
spl: support for booting via usbeth
In case of usbeth booting just call net_load_image("usb_ether"). This patch also adds CONFIG_SPL_USBETH_SUPPORT and CONFIG_SPL_MUSB_NEW_SUPPORT config options to enable linking of SPL against USB gagdet support and new MUSB driver resp.
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
show more ...
|
| 8aa5ec6e | 16-Jan-2013 |
Kim Phillips <kim.phillips@freescale.com> |
common/fdt_support.c: sparse fixes
trivial:
fdt_support.c:89:64: warning: Using plain integer as NULL pointer fdt_support.c:325:65: warning: Using plain integer as NULL pointer fdt_support.c:352:65
common/fdt_support.c: sparse fixes
trivial:
fdt_support.c:89:64: warning: Using plain integer as NULL pointer fdt_support.c:325:65: warning: Using plain integer as NULL pointer fdt_support.c:352:65: warning: Using plain integer as NULL pointer
For the following bad constant expression, We hardcode the max. number of memory banks to four for the foreseeable future, and add an error with instructions on what to do once it's exceeded:
fdt_support.c:397:22: error: bad constant expression
For the rest below, sparse found a couple of wrong endian conversions in of_bus_default_translate() and fdt_get_base_address(), but otherwise the rest is mostly annotation fixes:
fdt_support.c:64:24: warning: cast to restricted __be32 fdt_support.c:192:21: warning: incorrect type in assignment (different base types) fdt_support.c:192:21: expected unsigned int [unsigned] [usertype] tmp fdt_support.c:192:21: got restricted __be32 [usertype] <noident> fdt_support.c:201:21: warning: incorrect type in assignment (different base types) fdt_support.c:201:21: expected unsigned int [unsigned] [addressable] [usertype] tmp fdt_support.c:201:21: got restricted __be32 [usertype] <noident> fdt_support.c:304:13: warning: incorrect type in assignment (different base types) fdt_support.c:304:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:304:13: got restricted __be32 [usertype] <noident> fdt_support.c:333:13: warning: incorrect type in assignment (different base types) fdt_support.c:333:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:333:13: got restricted __be32 [usertype] <noident> fdt_support.c:359:13: warning: incorrect type in assignment (different base types) fdt_support.c:359:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:359:13: got restricted __be32 [usertype] <noident> fdt_support.c:373:21: warning: cast to restricted __be32 fdt_support.c:963:48: warning: incorrect type in argument 1 (different base types) fdt_support.c:963:48: expected restricted __be32 const [usertype] *p fdt_support.c:963:48: got unsigned int [usertype] *<noident> fdt_support.c:971:48: warning: incorrect type in argument 1 (different base types) fdt_support.c:971:48: expected restricted __be32 const [usertype] *p fdt_support.c:971:48: got unsigned int [usertype] *<noident> fdt_support.c:984:29: warning: incorrect type in argument 1 (different base types) fdt_support.c:984:29: expected restricted __be32 const [usertype] *cell fdt_support.c:984:29: got unsigned int [usertype] *addr fdt_support.c:996:32: warning: incorrect type in argument 1 (different base types) fdt_support.c:996:32: expected restricted __be32 const [usertype] *cell fdt_support.c:996:32: got unsigned int [usertype] *addr fdt_support.c:1041:41: warning: incorrect type in argument 1 (different base types) fdt_support.c:1041:41: expected restricted __be32 const [usertype] *cell fdt_support.c:1041:41: got unsigned int [usertype] *addr fdt_support.c:1053:41: warning: incorrect type in argument 2 (different base types) fdt_support.c:1053:41: expected restricted __be32 const [usertype] *range fdt_support.c:1053:41: got unsigned int const [usertype] *[assigned] ranges fdt_support.c:1064:53: warning: incorrect type in argument 2 (different base types) fdt_support.c:1064:53: expected restricted __be32 const [usertype] *addr fdt_support.c:1064:53: got unsigned int [usertype] *addr fdt_support.c:1110:50: warning: incorrect type in argument 2 (different base types) fdt_support.c:1110:50: expected restricted __be32 const [usertype] *addr fdt_support.c:1110:50: got unsigned int *<noident> fdt_support.c:1121:49: warning: incorrect type in argument 1 (different base types) fdt_support.c:1121:49: expected restricted __be32 const [usertype] *cell fdt_support.c:1121:49: got unsigned int *<noident> fdt_support.c:1147:60: warning: incorrect type in argument 2 (different base types) fdt_support.c:1147:60: expected restricted __be32 const [usertype] *addr fdt_support.c:1147:60: got unsigned int *<noident> fdt_support.c:1081:5: warning: symbol '__of_translate_address' was not declared. Should it be static? fdt_support.c:1154:5: error: symbol 'fdt_translate_address' redeclared with different type (originally declared at include/fdt_support.h:95) - incompatible argument 3 (different base types) fdt_support.c: In function 'fdt_node_offset_by_compat_reg': fdt_support.c:1173:17: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
See also linux kernel commit 0131d897 "of/address: use proper endianess in get_flags".
Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Cc: Jerry Van Baren <gvb.uboot@gmail.com>
show more ...
|
| 12e06fe0 | 16-Jan-2013 |
Kim Phillips <kim.phillips@freescale.com> |
treewide: include libfdt_env.h before fdt.h
and, if including libfdt.h which includes libfdt_env.h in the correct order, don't include fdt.h before libfdt.h.
this is needed to get the fdt type defi
treewide: include libfdt_env.h before fdt.h
and, if including libfdt.h which includes libfdt_env.h in the correct order, don't include fdt.h before libfdt.h.
this is needed to get the fdt type definitions set from the project environment before fdt.h uses them.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Cc: Jerry Van Baren <gvb.uboot@gmail.com>
show more ...
|
| 2d795c96 | 04-Feb-2013 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze |