- May 12, 2011
-
-
Nobuhiro Iwamatsu authored
calc_hdrcsum two times are checked. checksumi of exthdr is not checked. Signed-off-by:
Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> CC: Prafulla Wadaskar <prafulla@marvell.com>
-
François Revol authored
- don't include config.h when building with host cc, - HOSTCFLAGS was defined with the wrong name, so wasn't used, - make sure make finds sources outside of tools/. Signed-off-by:
Franois Revol <revol@free.fr>
-
- Apr 29, 2011
-
-
Luca Ceresoli authored
Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it>
-
- Apr 20, 2011
-
-
Jon Povey authored
This fixes two bugs with comparison of redundant environment flags on read. flag0 and flag1 in fw_env_open() were declared signed instead of unsigned char breaking BOOLEAN mode "== 0xFF" tests and in INCREMENTAL mode the wrong environment would be chosen where the flag values are 127 and 128 (either way round). With both flags over 128, both signs flipped and the logic worked by happy accident. Also there was a logic bug in the INCREMENTAL test (after signedness was fixed) in the case flag0=0, flag1=255, env 1 would be incorrectly chosen. Fix both of these. Signed-off-by:
Jon Povey <jon.povey@racelogic.co.uk>
-
- Apr 12, 2011
-
-
Remy Bohmer authored
* The sector size for SPI-dataflash (like AT45 flashes) are not always a power-of-2. So, the sector calculations are rewritten such that it works for either power-of-2 as any size sectors. * Make the flash sector size optional in case it is the same value as the environment size. Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Loïc Minier authored
"make tools-all" should allow building tools such as mkimage and the new imximage without any config, but imximage.c currently fails to build with: imximage.h:27:20: error: config.h: No such file or directory config.h is not needed in imximage.h nor in imximage.c, and imximage.h is only included from imximage.c, so drop this include to fix the build. Signed-off-by:
Loc Minier <loic.minier@linaro.org>
-
- Feb 01, 2011
-
-
Liu Hui-R64343 authored
This patch add the MX53 boot image support. This patch has been tested on Freescale MX53EVK board and MX51EVK board. Signed-off-by:
Jason Liu <r64343@freescale.com>
-
- Jan 18, 2011
-
-
Loïc Minier authored
Signed-off-by:
Loc Minier <loic.minier@linaro.org>
-
- Nov 27, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Nov 14, 2010
-
-
François Revol authored
Reorder including config.mk before the HOSTCC check, so HOSTCC is actually defined when checking for it. Signed-off-by:
Franois Revol <revol@free.fr> Cleaned up commit message Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Daniel Hobi authored
This patch makes tools/env/Makefile more similar to tools/imls: - define HOSTSRCS and HOSTCPPFLAGS, so that .depend generation works. - include U-Boot headers using -idirafter to prevent picking up u-boot/include/errno.h. - use HOSTCFLAGS_NOPED (fw_env.c does not conform to -pedantic). In order to cross-compile tools/env, override the HOSTCC variable as in this example: make tools env HOSTCC=bfin-uclinux-gcc Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch> Tested-by:
Detlev Zundel <dzu@denx.de> Tested-by:
Steve Sakoman <steve.sakoman@linaro.org>
-
- Oct 27, 2010
-
-
Wolfgang Denk authored
When copying the "sed" script to generate the asm-offsets.h file from the Linux Kbuild script into the make-asm-offsets file I missed the fact that the former runs in a "make" context and thus uses double "$$" to escape a single "$", while the latter is a shell script, where this must not be done. Unfortunately the problem did not show up during the initial tests on Power Architecture systems, but on ARM the generated asm-offsets.h was not correct. Signed-off-by:
Wolfgang Denk <wd@denx.de> Tested-by:
Heiko Schocher <hs@denx.de> Tested-by:
Ben Gardiner <bengardiner@nanometrics.ca>
-
- Oct 26, 2010
-
-
Wolfgang Denk authored
A recurrent issue is that certain C level constructs like sizeof() or offsetof() cannot be used in assembler files, which is inconvenient when such constructs are used in the definition of macro names etc. To avoid duplication of such definitions (and thus another cause of problems), we adapt the Linux way to automatically generate the respective definitions from the respective C header files. In Linux, this is implemented in include/linux/kbuild.h, Kbuild, and arch/*/kernel/asm-offsets.c; we adapt the code from the Linux v2.6.36 kernel tree. We also copy the concept of the include/generated/ directory which can be used to hold other automatically generated files as well. We start with an architecture-independent lib/asm-offsets.c which generates include/generated/generic-asm-offsets.h (included by include/asm-offsets.h, which is what will be referred to in the actual source code). Later this may be extended by architecture-specific arch/*/lib/asm-offsets.c files that will generate a include/generated/asm-offsets.h. Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Oct 18, 2010
-
-
Wolfgang Denk authored
When generating include/autoconfig.mk, hex numbers would be quoted. This caused some false positives during automatic testing of the builds, and is known to cause some real issues for some Blackfin configurations. Don't use apostophes for decimal and hex numbers (nor for octal numbers). Signed-off-by:
Wolfgang Denk <wd@denx.de> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Wolfgang Denk authored
The change is currently needed to be able to remove the board configuration scripting from the top level Makefile and replace it by a simple, table driven script. Moving this configuration setting into the "CONFIG_*" name space is also desirable because it is needed if we ever should move forward to a Kconfig driven configuration system. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Oct 12, 2010
-
-
Daniel Hobi authored
Commit d984fed0 (makefiles: fixes for building build tools) changed the variable name FIT_CFLAGS to HOSTCFLAGS_NOPED but forgot to update to corresponding comment. Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch> Cc: Scott Wood <scottwood@freescale.com> Cc: Wolfgang Denk <wd@denx.de>
-
- Sep 21, 2010
-
-
Timur Tabi authored
Add the Freescale logo and update the Makefile to build it when building a Freescale board. Signed-off-by:
Timur Tabi <timur@freescale.com>
-
Mike Frysinger authored
If working out of a custom git tree that lacks annotated tags, the 'git describe' operation spews "fatal: cannot describe" errors all over the place. So add some fallback code in case the best naming was unable to locate something useful. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 19, 2010
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Convert the tools/env/Makefile to use the same host tool syntax as the other tool subdirs. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 18, 2010
-
-
Daniel Hobi authored
Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch>
-
Daniel Hobi authored
In commit bd7b26f8 (Tools: set multiple variable with fw_setenv utility), the option parsing was changed to getopt_long(3), but option "-n" of fw_printenv was not included. This leads to an error message "invalid option -- 'n'" on stderr, although the output on stdout is correct. Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch>
-
- Aug 10, 2010
-
-
Matthias Weisser authored
This patch adds support for the jadecpu board using the MB86R01 'Jade' SoC from Fujitsu. Signed-off-by:
Matthias Weisser <weisserm@arcor.de>
-
- Aug 08, 2010
-
-
Detlev Zundel authored
The invalidation of the old environment instance did not work for flashes supporting hardware locking. Now we unlock/lock around this update also. Signed-off-by:
Detlev Zundel <dzu@denx.de>
-
- Jul 25, 2010
-
-
Mike Frysinger authored
Avoid extra carriage returns in the output by disabling output processing. Otherwise, whenever the remote sends a \r\n, we end up with \r\r\n. Reported-by:
Vivi Li <vivi.li@analog.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jul 24, 2010
-
-
Wolfgang Denk authored
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 by return cmd_usage(cmdtp); This fixes a few places with incorrect return code handling, too. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jun 29, 2010
-
-
Stefano Babic authored
Add a sort of batch mode to fw_setenv, allowing to set multiple variables in one shot, without updating the flash after each set as now. It is added the possibility to pass a config file with a list of pairs <variable, value> to be set, separated by a TAB character. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 30, 2010
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 24, 2010
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 13, 2010
-
-
Peter Tyser authored
Move the libfdt directory into the common lib/ directory to clean up the top-level directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Apr 09, 2010
-
-
Peter Tyser authored
Version 4.2.4 of gcc produces the following warnings without this change: mkimage.c: In function ‘main’: mkimage.c:204: warning: dereferencing type-punned pointer will break strict-aliasing rules mkimage.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Mar 27, 2010
-
-
Wolfgang Denk authored
The restructuring of the mkimage command in commit 89a4d6b1 ("tools: mkimage: split code into core, default and FIT image specific") introduced a bug that caused mkimage to segfault when run without "-n name" option. Initialize the imagename entry to prevent that. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Mar 11, 2010
-
-
Mike Frysinger authored
Some people boot images with the entry point in the middle of the blob (like Linux with the head code in discardable .init.text), and there is no no real requirement that the entry point be right after the mkimage header when doing XIP, so let people specify whatever they want. If they do need an entry right after the header, then they still can do that with normal -e behavior. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Feb 23, 2010
-
-
Kim Phillips authored
Fix build warning: Configuring for MPC837XEMDS board... imximage.c: In function `imximage_parse_cfg_file': imximage.c:146: warning: passing argument 2 of `getline' from incompatible pointer type /usr/include/bits/stdio.h:116: note: expected `size_t *' but argument is of type `uint32_t *' Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
Stefano Babic authored
Running mkimage to generate an imximage produces a SEGFAULT on 64 bit machines due to pointer arithmetic limited to 32 bit. Signed-off-by:
Stefano Babic <sbabic@denx.de> Acked-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Feb 12, 2010
-
-
Daniel Gorsulowski authored
This patch adds support for esd gmbh OTC570 board. The OTC570 is based on an Atmel AT91SAM9263 SoC. Signed-off-by:
Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
-
- Jan 31, 2010
-
-
Daniel Gorsulowski authored
This patch adds support for esd gmbh OTC570 board. The OTC570 is based on an Atmel AT91SAM9263 SoC. Signed-off-by:
Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
-