06 Jun, 2014
1 commit
-
make the use of legacy image format configurable through
the config define CONFIG_IMAGE_FORMAT_LEGACY.When relying on signed FIT images with required signature check
the legacy image format should be disabled. Therefore introduce
this new define and enable legacy image format if CONFIG_FIT_SIGNATURE
is not set. If CONFIG_FIT_SIGNATURE is set disable per default
the legacy image format.Signed-off-by: Heiko Schocher
Cc: Simon Glass
Cc: Lars Steubesand
Cc: Mike Pearce
Cc: Wolfgang Denk
Cc: Tom Rini
Cc: Michal Simek
Acked-by: Simon Glass
20 May, 2014
4 commits
-
Added support to load a bitstream image in chunks by reading it in
chunks from SD/MMC.
Command format:
loadfs [dev] [address] [image size] [blocksize]
[]
Example: fpga loadfs 0 1000000 3dbafc 4000 mmc 0 fpga.binSigned-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek -
Added support to load partial bitstreams.
The partial bitstreams can be loaded using the below commands
Commands:
fpga loadp
fpga loadbp
The full bit streams can be loaded using the
old commands(fpga load and fpga loadb).Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek -
Clean up partial, full and compressed bitstream handling.
U-Boot supports full bitstream loading and partial
based on detection which is not 100% correct.
Extending fpga_load/fpga_loadbitstream() with one more
argument which stores bitstream type.Signed-off-by: Michal Simek
-
Guard the LOADMK functionality with config to provide
an option to enable or disable it.
Enable it for all platforms in mainline which enable CONFIG_CMD_FPGA.Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
06 Nov, 2013
1 commit
-
Here is the set of command which has been performed
to proof this feature.gzip < fpga.bin > fpga.bin.gz
mkimage -A arm -O u-boot -T firmware -C gzip \
-a 20000000 -n "zc702_fpga_bin" -d fpga.bin.gz fpga.bin.gz.ubtftp 100000 fpga.bin.gz.ub
fpga loadmk 0 100000This flow should speedup loading bitstream data
from external memory and save image footprint in non volatile
memory.Signed-off-by: Michal Simek
Acked-by: Jagannadha Sutradharudu Teki
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
30 May, 2013
1 commit
-
Conflicts:
common/cmd_fpga.c
drivers/usb/host/ohci-at91.c
15 May, 2013
1 commit
-
This is the main entry point to the FIT image verification code. We will
be using it to handle image verification with signatures, so rename the
function.Signed-off-by: Simon Glass
Reviewed-by: Marek Vasut
06 May, 2013
3 commits
-
There is no reason to include net.h header in fpga code.
Signed-off-by: Michal Simek
Reviewed-by: Tom Rini -
In bitstream decoding you can directly check device
which you want to load and in fpga.c are fpga_validate
and fpga_dev_info functions which should be used for it.Signed-off-by: Michal Simek
Reviewed-by: Tom Rini -
No functional changes.
Signed-off-by: Michal Simek
Reviewed-by: Tom Rini
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
05 Jan, 2012
1 commit
-
Replace also __FUNCTION__ with standard __func__
Signed-off-by: Stefano Babic
01 Aug, 2011
1 commit
-
Fix compiler warning:
cmd_fpga.c:318: warning: passing argument 3 of 'fit_image_get_data'
from incompatible pointer typeAdding the needed 'const' here entails a whole bunch of additonal
changes all over the FPGA code.Signed-off-by: Wolfgang Denk
Cc: Andre Schwarz
Cc: Murray Jensen
Acked-by: Andre Schwarz
20 Oct, 2010
1 commit
-
The usage and help for the fpga command is wrong and incomplete,
and the parameters are not checked before to be passed to the
underlying subfunction.Signed-off-by: Stefano Babic
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
14 Jul, 2008
1 commit
-
Signed-off-by: Wolfgang Denk
12 Mar, 2008
1 commit
-
Signed-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
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
09 Jan, 2008
2 commits
-
This patch removes the unnecessary bit swapping when
booting .bit files with the 'fpga loadb' command.Signed-off-by: Matthias Fuchs
-
This patch removes the FPGA subsystem configuration through
the CONFIG_FPGA bitmask configuration option.See README for the new options:
CONFIG_FPGA,
CONFIG_FPGA_,
CONFIG_FPGA_Signed-off-by: Matthias Fuchs
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
26 Sep, 2007
1 commit
-
CFG_FPGA_XILINX is a bit value used to test against the value in
CONFIG_FPGA. Testing for a value will always return TRUE. I don't
think that is the intention in this code.Signed-off-by: Grant Likely
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
07 Oct, 2006
1 commit
-
Patch by Stefan Roese, 07 Oct 2006
15 Aug, 2006
1 commit
-
Patch by Heiko Schocher, 15 Aug 2006
13 Oct, 2005
1 commit
10 Aug, 2005
1 commit
-
Minor coding style cleanup.
08 Aug, 2005
1 commit
-
make 'fpga loadb' always print the file header info
Patch by Andrew Dyer, 11 Jan 2005
23 Jan, 2005
1 commit
10 Jan, 2005
2 commits
-
Add support for SenTec-COBRA5272-board (Coldfire).
-
mpc824x: set PCI latency timer to a sane value
(is 0 after reset).* Patch by Kurt Stremerch, 03 Sep 2004:
Add bitstream configuration option for fpga command (Xilinx only).