19 Feb, 2014
1 commit
-
Add spl_sata to read a fat partition from a bootable SATA
drive.Signed-off-by: Dan Murphy
Reviewed-by: Roger Quadros
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
16 Jul, 2013
1 commit
-
The block device expects to see lbaint_t for the blknr parameter. Change
the SCSI read/write functions to suit.This fixes the following build warnings for coreboot:
cmd_scsi.c: In function ‘scsi_scan’:
cmd_scsi.c:119:30: error: assignment from incompatible pointer type [-Werror]
cmd_scsi.c:120:32: error: assignment from incompatible pointer type [-Werror]Signed-off-by: Simon Glass
02 May, 2013
1 commit
-
log2 of the device block size serves as the shift value used to calculate
the block number to read in file systems when implementing avaiable block
sizes.
It is needed quite often in file systems thus it is pre-calculated and
stored in the block device descriptor.Signed-off-by: Egbert Eich
02 Apr, 2013
1 commit
-
'bool' is defined in random places. This patch consolidates them into a
single header file include/linux/types.h, using stdbool.h introduced in C99.All other #define, typedef and enum are removed. They are all consistent with
true = 1, false = 0.Replace FALSE, False with false. Replace TRUE, True with true.
Skip *.py, *.php, lib/* files.Signed-off-by: York Sun
03 Nov, 2012
4 commits
-
Capacity needs to allow for a 64-bit value.
Signed-off-by: Gabe Black
Signed-off-by: Simon Glass -
Add a new function to find out the number of available SCSI disks. Also
set the 'scsidevs' environment variable after each scan.Signed-off-by: Stefan Reinauer
Signed-off-by: Simon Glass -
Implement write functionality in the scsi layer. A ''scsi write'
command is also added to console for testing.Signed-off-by: Hung-Te Lin
Signed-off-by: Simon Glass -
Many AHCI controllers are identical, the main (and often the
only) difference being the PCI Vendor ID/Device ID combination
reported by the device.This change allows the config file to define a list of PCI vendor
ID/device ID pairs. The driver would scan the list and initialize
the first device it finds.No actual multiple device list is introduced yet, this change
just add the framework.Signed-off-by: Vadim Bendebury
Signed-off-by: Taylor Hutt
Signed-off-by: Simon Glass
26 Sep, 2012
1 commit
-
All the raw block load commands duplicate the same code. Starting with
the ide version as it has progress updates convert ide, usb, and scsi boot
commands to all use a common version.Signed-off-by: Rob Herring
07 Mar, 2012
1 commit
-
Change all files in common/ to use CMD_RET_USAGE instead of calling
cmd_usage() directly. I'm not completely sure about this patch since
the code since impact is small (100 byte or so on ARM) and it might
need splitting into smaller patches. But for now here it is.Signed-off-by: Simon Glass
26 Jul, 2011
3 commits
-
If we don't want to build support for any partition types we can now
add #undef CONFIG_PARTITIONS in a board config file to keep this from
being compiled in. Otherwise boards assume this is compiled in by
defaultSigned-off-by: Matthew McClintock
-
Add support for AHCI controllers that are not PCI based.
Signed-off-by: Rob Herring
Cc: Wolfgang Denk -
Rather than having a bunch of random commands handle autostart behavior,
unify the logic in a single place. This also fixes building of thesedifferent commands when bootm is disabled.
Acked-by: Matthew McClintock
Acked-by: Scott Wood
Signed-off-by: Mike Frysinger
12 Jan, 2011
1 commit
-
This reverts commit 5a442c0addc69d0c4b58e98e5aec1cf07576debb.
This commit changed the behaviour of getenv_yesno() (both the default
behaviour and the documented behaviour for abbreviated arguments)
which resulted in problems in several areas.Signed-off-by: Wolfgang Denk
29 Nov, 2010
2 commits
-
Use the new helper func to clean up duplicate logic handling of the
autostart env var.Signed-off-by: Mike Frysinger
-
The duplication of the do_bootm prototype has gotten out of hand,
and they're pretty much all outdated (wrt constness). Unify them
all in command.h.Signed-off-by: Mike Frysinger
25 Jul, 2010
1 commit
-
Lots of code use this construct:
cmd_usage(cmdtp);
return 1;Change cmd_usage() let it return 1 - then we can replace all these
ocurrances byreturn cmd_usage(cmdtp);
This fixes a few places with incorrect return code handling, too.
Signed-off-by: Wolfgang Denk
05 Jul, 2010
1 commit
-
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: Wolfgang Denk
Acked-by: Mike Frysinger
13 Jun, 2009
1 commit
-
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 ThermostatUsage:
dtt - Read temperature from digital thermometer and thermostat.After:
=> help dtt
dtt - Read temperature from Digital Thermometer and ThermostatUsage:
dttSigned-off-by: Wolfgang Denk
28 Jan, 2009
2 commits
-
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: Peter Tyser
-
Signed-off-by: Peter Tyser
19 Oct, 2008
1 commit
-
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
14 Jul, 2008
1 commit
-
Signed-off-by: Wolfgang Denk
01 Jul, 2008
1 commit
-
Global FIT image operations like format check cannot be performed on
a first sector data, defer them to the point when whole FIT image was
uploaded to a system RAM.Signed-off-by: Marian Balakowicz
Partial ('cmd_nand' case) Acked-by: Grant Erickson
NAND and DOC bits Acked-by: Scott Wood
21 May, 2008
1 commit
-
This commit gets rid of a huge amount of silly white-space issues.
Especially, all sequences of SPACEs followed by TAB characters get
removed (unless they appear in print statements).Also remove all embedded "vim:" and "vi:" statements which hide
indentation problems.Signed-off-by: Wolfgang Denk
12 Mar, 2008
1 commit
-
Updated commands:
docboot - cmd_doc.c
fdcboot - cmd_fdc.c
diskboot - cmd_ide.c
nboot - cmd_nand.c
scsiboot - cmd_scsi.c
usbboot - cmd_usb.cSigned-off-by: Marian Balakowicz
29 Feb, 2008
1 commit
-
This patch introduces the following prefix convention for the
image format handling and bootm related code:genimg_ - dual format shared code
image_ - legacy uImage format specific code
fit_ - new uImage format specific code
boot_ - booting process related codeRelated routines are renamed and a few pieces of code are moved around and
re-grouped.Signed-off-by: Marian Balakowicz
25 Feb, 2008
1 commit
-
This patch adds framework for dual format images. Format detection is added
and the bootm controll flow is updated to include cases for new FIT format
uImages.When the legacy (image_header based) format is detected appropriate
legacy specific handling is invoked. For the new (FIT based) format uImages
dual boot framework has a minial support, that will only print out a
corresponding debug messages. Implementation of the FIT specific handling will
be added in following patches.Signed-off-by: Marian Balakowicz
22 Feb, 2008
1 commit
-
Signed-off-by: Marian Balakowicz
07 Feb, 2008
1 commit
-
- Add inline helper macros for basic header processing
- Move common non inline code common/image.c
- Replace direct header access with the API routines
- Rename IH_CPU_* to IH_ARCH_*Signed-off-by: Marian Balakowicz
21 Nov, 2007
1 commit
-
Modify common/Makefile to conditionally compile the cmd_*.c files based
on the board config.Signed-off-by: Grant Likely
18 Nov, 2007
1 commit
-
Signed-off-by: Stefan Roese
09 Jul, 2007
1 commit
-
Signed-off-by: Jon Loeliger
04 Jul, 2007
1 commit
-
This is a compatibility step that allows both the older form
and the new form to co-exist for a while until the older can
be removed entirely.All transformations are of the form:
Before:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
After:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)Signed-off-by: Jon Loeliger
13 Apr, 2007
1 commit
-
Fix bug introduced by "Fix get_partition_info() parameter error in all
other calls" from 2005-03-04 in cmd_ide.c and cmd_scsi.c, which prevented
to use diskboot or scsiboot form another device than 0.Signed-off-by: Denis Peter
20 Feb, 2007
2 commits
-
Block device read/write is anonymous data; there is no need to use a
typed pointer. void * is fine. Also add a hook for block_read functionsSigned-off-by: Grant Likely
-
Each of the filesystem drivers duplicate the get_dev routine. This change
merges them into a single function in part.cSigned-off-by: Grant Likely
23 Aug, 2006
1 commit
-
Add AHCI support in u-boot, enable the sata disk controllers which
following the AHCI protocol.Signed-off-by:Jason Jin
13 Oct, 2005
1 commit