Re: [PATCH] Add initial support for Netgear ReadyNAS 104

2016-01-21 Thread Sascha Hauer
On Wed, Jan 20, 2016 at 08:47:22AM +0100, Uwe Kleine-König wrote: > Currently only second stage booting from the vendor U-Boot is tested. I > don't want to flash barebox into NAND yet because UART-booting for > recovery doesn't work for me. > > Working so far are: > > - UART > - networking > -

Re: [PATCH] ARM: cm-fx6: set proper hostname

2016-01-21 Thread Sascha Hauer
On Thu, Jan 21, 2016 at 12:22:39PM +0100, Philipp Zabel wrote: > Set the hostname to "utilite" or "cm-fx6". > > Signed-off-by: Philipp Zabel > --- > arch/arm/boards/cm-fx6/board.c | 8 > 1 file changed, 8 insertions(+) Applied, thanks Sascha -- Pengutronix e.K.

Re: [PATCH] bootm: Add option to force booting signed images

2016-01-21 Thread Sascha Hauer
Hi Yegor, On Tue, Jan 19, 2016 at 09:03:17AM +0100, Yegor Yefremov wrote: > Hi Sascha, > > On Tue, Jan 19, 2016 at 8:55 AM, Sascha Hauer wrote: > > With CONFIG_BOOTM_FORCE_SIGNED_IMAGES the bootm code will refuse to boot > > unsigned images. Since currently FIT is the only image type which > > s

[PATCH 03/14] bootm: introduce bootm_get_os_size

2016-01-21 Thread Sascha Hauer
ARM do_bootm_linux is not only called with uImages but also with raw images, so we can't use uimage_get_size() here. Introduce bootm_get_os_size() which handles the different image types. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 2 +- common/bootm.c | 19 +++

[PATCH 13/14] bootm: add initial FIT support

2016-01-21 Thread Sascha Hauer
From: Jan Luebbe This implementation is inspired by U-Boot's FIT support. Instead of using libfdt (which does not exist in barebox), configuration signatures are verified by using a simplified DT parser based on barebox's own code. Currently, only signed configurations with hashed images are sup

[PATCH 06/14] bootm: Push dryrun to handlers

2016-01-21 Thread Sascha Hauer
We can make the dryrun option more useful by calling into the handlers. With this we can detect more cases that can go wrong during boot. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 3 +++ arch/arm/mach-omap/omap_generic.c | 5 + arch/blackfin/lib/blackfin_linux.c |

[PATCH 04/14] bootm: use names instead of numbers for image parts

2016-01-21 Thread Sascha Hauer
The uImage format uses numbers for to identify the different parts of a image, but the FIT image format uses names. To better integrate the FIT image format into bootm always use names and convert them to numbers when necessary. Signed-off-by: Sascha Hauer --- common/bootm.c | 43 +++

[PATCH 05/14] ARM: bootm: Use kernel handler to start barebox image

2016-01-21 Thread Sascha Hauer
barebox can be called with the kernel calling convention, so we can reuse the handler instead of creating a barebox specific handler. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/arch/arm/l

[PATCH 11/14] crypto: add RSA support

2016-01-21 Thread Sascha Hauer
Taken from U-Boot and adopted to barebox with little changes. Signed-off-by: Sascha Hauer Signed-off-by: Marc Kleine-Budde --- crypto/Kconfig | 3 + crypto/Makefile | 1 + crypto/rsa.c| 422 include/asm-ge

[PATCH 10/14] crypto: add digest_alloc_by_algo()

2016-01-21 Thread Sascha Hauer
In barebox the function digest_alloc() allocates a digest based on a string. When a subsystem already uses an integer value to identify a digest it makes no sense to create a string and pass it to digest_alloc(), where it is parsed again. This patch adds the possibility to get a digest by an enum.

[PATCH 08/14] bootm: move oftree code together

2016-01-21 Thread Sascha Hauer
The device tree code is distributed in several places in the bootm code. Move it all together in bootm_load_devicetree(). Signed-off-by: Sascha Hauer --- common/bootm.c | 193 + 1 file changed, 86 insertions(+), 107 deletions(-) diff --git

[PATCH 09/14] bootm: Initialize bootm_data defaults in single place

2016-01-21 Thread Sascha Hauer
Both the bootm and the boot code initialize the struct bootm_data with defaults from the bootm global variables. Create a common function for doing this. Signed-off-by: Sascha Hauer --- commands/boot.c | 14 ++ commands/bootm.c | 31 +-- common/bootm.c

[PATCH 12/14] bootm: make verifying/hashing configurable

2016-01-21 Thread Sascha Hauer
So long struct bootm_data.verify is a bool which enables CRC checking (hashing). Extend this to a enum and add support for signature checking in the same option. This also adds the corresponding globalvar and a -s option to bootm. Signed-off-by: Sascha Hauer --- commands/bootm.c | 12 +--

[PATCH v4] FIT support

2016-01-21 Thread Sascha Hauer
This is the fourth version of the FIT image support. Changes to last series include: Changes since v3: - Add option to force booting signed images - Add reference to U-Boot in RSA support commit message and file - Add reference to U-Boot in FIT image support - Write some more Kconfig doc Changes

[PATCH 14/14] bootm: Add option to force booting signed images

2016-01-21 Thread Sascha Hauer
With CONFIG_BOOTM_FORCE_SIGNED_IMAGES the bootm code will refuse to boot unsigned images. Since currently FIT is the only image type which supports signing, this means with this option we enforce using FIT images. All additionally passed in device trees and initrds will be ignored, so that only the

[PATCH 07/14] bootm: move initrd code together

2016-01-21 Thread Sascha Hauer
The initrd code is distributed in several places in the bootm code. Move it all together in bootm_load_initrd(). Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 8 ++- common/bootm.c | 151 +-- include/boot.h | 3 + 3 files c

[PATCH 01/14] ARM: zImage: add missing free() in appended device tree code

2016-01-21 Thread Sascha Hauer
oftree must be freed when the tree is successfully unflattened. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 7bb9b43..2439c36 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c

[PATCH 02/14] bootm: Do not call uimage_close twice

2016-01-21 Thread Sascha Hauer
uimage_close() is called on bootm cleanup, so do not close it in the failure path in bootm_open_os_uimage(). Signed-off-by: Sascha Hauer --- common/bootm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/bootm.c b/common/bootm.c index 08125e7..affab24 100644 --- a/common/bootm.c +++ b/

Re: [PATCH 2/2] arm: am33xx: Master Osc clock speed handling

2016-01-21 Thread Sascha Hauer
On Tue, Jan 19, 2016 at 09:30:54AM +0100, Teresa Remmet wrote: > From: Daniel Schultz > > Setup the plls with Master Osc. clock speed from the SYSBOOT > Configuration Pin. > > Signed-off-by: Daniel Schultz > --- > arch/arm/boards/afi-gf/lowlevel.c | 2 +- > arch/arm/boards/beagle

Re: [PATCH 1/2] arm: am33xx: Move function to read from Master OSC

2016-01-21 Thread Sascha Hauer
Hi Teresa, On Tue, Jan 19, 2016 at 09:30:53AM +0100, Teresa Remmet wrote: > From: Daniel Schultz > > Move the function to read the Master OSC speed from > the SYSBOOT Configuration Pin for reuse. > > Signed-off-by: Daniel Schultz > Signed-off-by: Teresa Remmet > --- > arch/arm/mach-omap/am33

Re: [PATCH v2] kwboot: do a filetype check before sending the image

2016-01-21 Thread Trent Piepho
On Thu, 2016-01-21 at 11:13 +0100, Uwe Kleine-König wrote: > > And having compared the version tag to 1, couldn't you then cast img > > into a struct main_hdr_v1 *? That would avoid all the hard coded magic > > offsets in the rest of the code. Unless img isn't aligned? > > ... or the build mach

[PATCH v2 3/3] crypto: caam: add RNG support

2016-01-21 Thread Steffen Trumtrar
Add suport for the i.MX6 CAAM RNG module. The device is registered as a char-device under /dev/hwrng to mimic the linux userspace interface. Signed-off-by: Steffen Trumtrar Signed-off-by: Marc Kleine-Budde --- drivers/crypto/caam/Kconfig | 7 + drivers/crypto/caam/Makefile | 1 + drivers

[PATCH v2 1/3] include: linux: add circular buffers

2016-01-21 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- include/linux/circ_buf.h | 36 1 file changed, 36 insertions(+) create mode 100644 include/linux/circ_buf.h diff --git a/include/linux/circ_buf.h b/include/linux/circ_buf.h new file mode 100644 index ..90f2471d

[PATCH v2 0/3] i.MX6: CAAM engine support

2016-01-21 Thread Steffen Trumtrar
Hi! This series adds basic support for the i.MX6 Cryptographic Acceleration and Assurance Module (CAAM). - see notes in 2/3 for what changed in the caam driver. - 3/3 was not included in v1 of the series. Regards, Steffen Steffen Trumtrar (3): include: linux: add circular buffers crypto: ad

[PATCH] ARM: cm-fx6: set proper hostname

2016-01-21 Thread Philipp Zabel
Set the hostname to "utilite" or "cm-fx6". Signed-off-by: Philipp Zabel --- arch/arm/boards/cm-fx6/board.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boards/cm-fx6/board.c b/arch/arm/boards/cm-fx6/board.c index edef18f..f438062 100644 --- a/arch/arm/boards/cm-fx6/board.

Re: [PATCH v2] kwboot: do a filetype check before sending the image

2016-01-21 Thread Uwe Kleine-König
Hello Trent, On 01/20/2016 08:27 PM, Trent Piepho wrote: > On Wed, 2016-01-20 at 09:15 +0100, Uwe Kleine-König wrote: >> The images that can be sent to a Marvell CPU have a fixed format. Do >> some sanity checks before actually sending an image for easier diagnosis >> of broken files. >> >> Signed