08 Jul, 2014
3 commits
-
'-elf' appears twice in the toolchain priority_list.
The second one is rudundant.Signed-off-by: Masahiro Yamada
Cc: Simon Glass
Acked-by: Simon Glass -
Toolchains.__init__ is expected to display a warning message
when the [toolchain] section is missing from ~/.buildman file.
But it never works.
In that case, instead, buildmain fails with an error message
which is difficult to understand:Traceback (most recent call last):
File "tools/buildman/buildman", line 126, in
control.DoBuildman(options, args)
File "/home/foo/u-boot/tools/buildman/control.py", line 78, in DoBuildman
toolchains = toolchain.Toolchains()
File "/home/foo/u-boot/tools/buildman/toolchain.py", line 106, in __init__
config_fname)
NameError: global name 'config_fname' is not definedSigned-off-by: Masahiro Yamada
Cc: Simon Glass
Acked-by: Simon Glass -
When patman applies the patches it checks out a new branch, uses 'git am'
to apply the patches one by one, and then tries to go back to the old
branch. If you try this when the branch is 'undefined', this doesn't work
as patman cannot restore the correct branch after applying the patches.
It seems that 'undefined' is created by git and is persistent after it is
created, so that you can end up on quite an old branch.Add a check for the 'undefined' branch to avoid this.
Reported-by: Masahiro Yamada
Signed-off-by: Simon Glass
23 Jun, 2014
1 commit
-
move fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c
as this function is also used, if CONFIG_OF_CONTROL is not
used. Poped up on the ids8313 board using signed FIT images,
and activating CONFIG_SYS_GENERIC_BOARD. Without this patch
it shows on boot:No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d
With this patch, it boots again with CONFIG_SYS_GENERIC_BOARD
enabled.Signed-off-by: Heiko Schocher
Acked-by: Simon Glass
Cc: Tom Rini
19 Jun, 2014
6 commits
-
commit 18b06652cd "tools: include u-boot version of sha256.h"
unconditionally forced the sha256.h from u-boot to be used
for tools instead of the host version. This is fragile though
as it will also include the host version. Therefore move it
to include/u-boot to join u-boot/md5.h etc which were renamed
for the same reason.cc: Simon Glass
Signed-off-by: Jeroen Hofstee -
At present this tool only checks the configuration signing. Have it also
look at each of the images in the configuration and confirm that they
verify.Signed-off-by: Simon Glass
Acked-by: Heiko Schocher (v1) -
We want to use some of the functionality in this file, so make it
build on the host.Signed-off-by: Simon Glass
-
It is more common to have 0 mean OK, and -ve mean error. Change this
function to work the same way to avoid confusion.Signed-off-by: Simon Glass
-
These tools crash if no arguments are provided. Add checks to avoid this.
Signed-off-by: Simon Glass
Acked-by: Heiko Schocher -
The original code did not cover every case and there was a missing negative
sign in one case. Expand the coverage and fix the bug.Signed-off-by: Simon Glass
12 Jun, 2014
6 commits
-
GCC on Cygwin generates executables with .exe extension,
for example:
scripts/basic/fixdep.exe
scripts/docproc.exeTo ignore them, *.exe pattern should be moved
from tools/.gitignore to ./.gitignoreSigned-off-by: Masahiro Yamada
-
"SFX = .exe" was originally added for Cygwin environment.
It is true that GCC on Cygwin spits executables with .exe extention.
For example,
gcc -o foo foo.c
will generate "foo.exe", not "foo".
But GNU make is also nicely adjusted for Cygwin.
For example,
foo: foo.c
gcc -o $@ $<will compare the timestamp between "foo.exe" and "foo.c".
You do not have to tweak Makefiles like this:
foo$(SFX): foo.c
gcc -o $@ $<And "make clean" works as well without adjustment for Cygwin because
the command "rm foo" on Cygwin will delete both "foo" and "foo.exe".In conclusion, makefiles do not need special care for Cygwin.
Signed-off-by: Masahiro Yamada
-
There are many source files shared between U-boot image and tools.
Instead of adding a lot of dummy wrapper files that just include
the corresponding file in lib/ or common/ directory,
Makefile should automatically generate them.The original inspiration for this came from
scripts/Makefile.asm-generic of Linux Kernel.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
Tested-by: Simon Glass -
When adding hashes or signatures, the target FDT may be full. Detect this
and automatically try again after making 1KB of space.Signed-off-by: Simon Glass
-
Make the error handling common, and make sure the file is always closed
on error. Rename the parameter to be more description and add comments.Signed-off-by: Simon Glass
-
When building tools the u-boot specific sha256.h is required, but the
host version of sha256.h is used when present. This leads to build errors
on FreeBSD which does have a system sha256.h include. Like libfdt_env.h
explicitly include u-boot's sha256.h.cc: Simon Glass
Signed-off-by: Jeroen Hofstee
Acked-by: Simon Glass
06 Jun, 2014
4 commits
-
The tools mkimage, dumpimage, fit_info, fit_check_sign
always have the common libraries to be linked,
so HOSTLOADLIBES_* can be consolidated a little bit.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass -
It is trivial to crash fit_check_sign by invoking with an
absolute path in a deeply nested directory. This is exposed
by vboot_test.sh.Signed-off-by: Michael van der Westhuizen
Acked-by: Simon Glass -
Both pblimage and mxsimage use the same crc algorithm, so refactor.
Signed-off-by: Charles Manning
-
The crc32 used by pblimgae is NOT the same as zlib crc32.
The pbl_crc32 is useful for other purposes in mkimage so split it out.
While we are about it, clean up redundant and confusing code.
Signed-off-by: Charles Manning
27 May, 2014
2 commits
-
For sama5d3xek we need to modify the SPL image for correct detection by ROM
code.Signed-off-by: Andreas Bießmann
Tested-by: Bo Shen -
The new atmelimage converts a machine code BLOB to bootable ROM image. Atmel
ROM has no sophisticated image format, it only checks the first 7 ARM vectors.
The vectors can contain valid B or LDR opcodes, the 6'th vector contains the
image size to load.Additionally the PMECC header can be written by the atmelimage target. The
parameters must be given via the -n switch as a coma separated list. For
example:mkimage -T atmelimage \
-n usePmecc=1,sectorPerPage=4,sectorSize=512,spareSize=64,eccBits=4,eccOffset=36 \
-d spl/u-boot-spl.bin boot.binA provided image can be checked for correct header setup. It prints out the
PMECC header parameters if it has one and the 6'th interrupt vector content.---88---
A SPL binary modified with the atmelimage mkimage target was succesfully
booted on a sama5d34ek via MMC and NAND.Signed-off-by: Andreas Bießmann
Cc: Bo Shen
Cc: Heiko Schocher
Tested-by: Bo Shen
25 May, 2014
1 commit
-
Add support for booting from an MMC card.
Signed-off-by: Stefan Roese
Signed-off-by: Henrik Nordström
Signed-off-by: Ian Campbell
Reviewed-by: Marek Vasut
Cc: Tom Cubie
Reviewed-by: Tom Rini
17 May, 2014
1 commit
-
There is an unfortunate bug in the signoff suppression logic. The first
pass is performed with 'git log', and all signoffs are added to the
supression set, such that the second time (when processing the real
patches) we always suppress the signoffs.Correct this by only suppressing signoffs in the second pass.
Signed-off-by: Simon Glass
Tested-by: Michal Simek
Tested-by: Andreas Bießmann
13 May, 2014
2 commits
-
Add missing aes.c placeholder which includes lib/aes.c . Without this
one, tools/env/ will fail to build.Signed-off-by: Marek Vasut
Cc: Alexey Brodkin
Cc: Masahiro Yamada
Tested-by: Alexey Brodkin
Tested-by: Heiko Schocher
10 May, 2014
3 commits
-
Keep track of all Signed-off-by tags in a commit and silently suppress any
duplicates.Signed-off-by: Simon Glass
-
This sort of failure is rare, but the code to deal with it is wrong.
Fix it.Signed-off-by: Simon Glass
09 May, 2014
1 commit
-
Conflicts:
drivers/net/Makefile(trivial merge)
05 May, 2014
1 commit
-
Signed-off-by: Thomas Diener
Signed-off-by: Anatolij Gustschin
19 Apr, 2014
1 commit
-
Add an option to specify the output directory to override the
default path '../'. This is useful for building in a ramdisk.Signed-off-by: Daniel Schwierzeck
Acked-by: Simon Glass
18 Apr, 2014
4 commits
-
We should avoid the description in Makefile like this
ifdef CONFIG_FIT_SIGNATURE
hostprogs-y += fit_info$(SFX) fit_check_sign$(SFX)
endifOtherwise, fit_info and fit_check_sign would never be cleaned
by "make clean".Signed-off-by: Masahiro Yamada
Cc: Heiko Schocher -
This patch add support for gpimage format as a preparatory
patch for porting u-boot for keystone2 devices and is
based on omapimage format. It re-uses gph header to store the
size and loadaddr as done in omapimage.cSigned-off-by: Vitaly Andrianov
Signed-off-by: Murali Karicheri
Acked-by: Tom Rini -
We currently limit ourself to 16 characters for the device name to read
the environment from. This is insufficient for /dev/mmcblk0boot1 to
work for example. Switch to '%ms' which gives us a dynamically
allocated buffer instead. We're short lived enough to not bother
free()ing the buffer.Signed-off-by: Tom Rini
23 Mar, 2014
1 commit
-
Add a new Patch-cc: tag which performs the service now provided by
the Cc: tag. The Cc: tag is interpreted by git send-email but
ignored by patman.So now:
Cc: patman does nothing. (git send-email can cc patches)
Patch-cc: patman Cc's patch and removes this tag from the patchSigned-off-by: Simon Glass
22 Mar, 2014
3 commits
-
Implement support for encrypting/decrypting the environment block
into the tools/env/fw_* tools. The cipher used is AES 128 CBC and
the implementation depends solely on components internal to U-Boot.To allow building against the internal AES library, the library did
need minor adjustments to not include U-Boot's headers which are not
wanted to be included and define missing types.Signed-off-by: Marek Vasut
-
add host tool "fit_check_sign" which verifies, if a fit image is
signed correct.Signed-off-by: Heiko Schocher
Cc: Simon Glass -
add fit_info command to the host tools. This command prints
the name, offset and the len from a property from a node in
a fit file. This info can be used to extract a properties
data with linux tools, for example "dd".Signed-off-by: Heiko Schocher
Acked-by: Simon Glass