| 2b9ec762 | 19-Jul-2016 |
mario.six@gdsys.cc <mario.six@gdsys.cc> |
rsa: Fix return value and masked error
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB.
Unfortunately, if large k
rsa: Fix return value and masked error
When signing images, we repeatedly call fit_add_file_data() with successively increasing size values to include the keys in the DTB.
Unfortunately, if large keys are used (such as 4096 bit RSA keys), this process fails sometimes, and mkimage needs to be called repeatedly to integrate the keys into the DTB.
This is because fit_add_file_data actually returns the wrong error code, and the loop terminates prematurely, instead of trying again with a larger size value.
This patch corrects the return value by fixing the return value of fdt_add_bignum, fixes a case where an error is masked by a unconditional setting of a return value variable, and also removes a error message, which is misleading, since we actually allow the function to fail. A (hopefully helpful) comment is also added to explain the lack of error message.
This is probably related to 1152a05 ("tools: Correct error handling in fit_image_process_hash()") and the corresponding error reported here:
https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html
Signed-off-by: Mario Six <mario.six@gdsys.cc>
show more ...
|
| e2409139 | 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
tiny-printf: Support assert()
At present assert() is not supported with tiny-printf, so when DEBUG is enabled a build error is generated for each assert().
Add an __assert_fail() function to correc
tiny-printf: Support assert()
At present assert() is not supported with tiny-printf, so when DEBUG is enabled a build error is generated for each assert().
Add an __assert_fail() function to correct this. It prints a message and then hangs.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 920c6965 | 19-Jun-2016 |
Simon Glass <sjg@chromium.org> |
sandbox: Find keyboard driver using driver model
The cros-ec keyboard is always a child of the cros-ec node. Rather than searching the device tree, looking at the children. Remove the compat string
sandbox: Find keyboard driver using driver model
The cros-ec keyboard is always a child of the cros-ec node. Rather than searching the device tree, looking at the children. Remove the compat string which is now unused.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 39ea0ee9 | 19-Jun-2016 |
Simon Glass <sjg@chromium.org> |
fdt: x86: Tidy up a few COMPAT string definitions
The 'COMPAT_' part should appear only once so drop the duplicate part. It is ignored anyway, but let's keep things consistent.
Signed-off-by: Simon
fdt: x86: Tidy up a few COMPAT string definitions
The 'COMPAT_' part should appear only once so drop the duplicate part. It is ignored anyway, but let's keep things consistent.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 01a227df | 19-Jun-2016 |
Simon Glass <sjg@chromium.org> |
fdt: Add a note to avoid adding new compatible strings
The list is shrinking and we should avoid adding new things. Instead, a proper driver should be created with driver model.
Signed-off-by: Simo
fdt: Add a note to avoid adding new compatible strings
The list is shrinking and we should avoid adding new things. Instead, a proper driver should be created with driver model.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| da9e0a9b | 19-Jun-2016 |
Simon Glass <sjg@chromium.org> |
fdt: Drop unused exynos compatible strings
A few drivers have moved to driver model, so we can drop these strings.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Jaehoon Chung <jh80.chung@
fdt: Drop unused exynos compatible strings
A few drivers have moved to driver model, so we can drop these strings.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
show more ...
|
| 59d07ee0 | 08-Jul-2016 |
Andre Przywara <andre.przywara@arm.com> |
SPL: tiny-printf: avoid any BSS usage
As printf calls may be executed quite early, we should avoid using any BSS stored variables, since some boards put BSS in DRAM, which may not have been initiali
SPL: tiny-printf: avoid any BSS usage
As printf calls may be executed quite early, we should avoid using any BSS stored variables, since some boards put BSS in DRAM, which may not have been initialised yet. Explicitly mark those "static global" variables as belonging to the .data section, to keep tiny-printf clear of any BSS usage.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
show more ...
|
| be86492b | 31-May-2016 |
Chris Packham <chris.packham@alliedtelesis.co.nz> |
lib: make strmhz available in SPL
When setting up a DDR controller it is useful to be able to display frequencies in a readable form. Make the strmhz() function available in SPL builds provided ther
lib: make strmhz available in SPL
When setting up a DDR controller it is useful to be able to display frequencies in a readable form. Make the strmhz() function available in SPL builds provided there is full vsprintf available.
Reviewed-by: Tony O'Brien <tony.obrien@alliedtelesis.co.nz> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Chris Packham <judge.packham@gmail.com>
show more ...
|