Re: [PATCH v2 02/10] MIPS: add arch/mips/lib/pbl.lds.S

2018-11-26 Thread Sascha Hauer
On Tue, Nov 27, 2018 at 08:37:06AM +0100, Oleksij Rempel wrote: > we need it for multiimage support. > > Signed-off-by: Oleksij Rempel > --- > arch/mips/lib/pbl.lds.S | 54 + > 1 file changed, 54 insertions(+) > create mode 100644 arch/mips/lib/pbl.lds.S

[PATCH v2 00/10] MIPS: migrate to multiimage support

2018-11-26 Thread Oleksij Rempel
20181127 v2: - rebase against latest next - fix trailing spaces in arch/mips/dts/Makefile 20181126 v1: This patch series is a huge move to a multiimage support. As long as we do not have lots of boards, it is better to do it now. The most painful patch is "MIPS: port all mach* to multi

[PATCH v2 09/10] MIPS: remove HAS_NO_BOARD_HL_CODE support

2018-11-26 Thread Oleksij Rempel
With multiimage support it makes no more sense, every board should have Makefile and some lowlevel code. Signed-off-by: Oleksij Rempel --- arch/mips/Kconfig| 3 --- arch/mips/Makefile | 2 -- arch/mips/mach-ath79/Kconfig | 2 -- 3 files changed, 7 deletions(-) diff --git

[PATCH v2 04/10] MIPS: start: preserve DTB pointer for later use

2018-11-26 Thread Oleksij Rempel
We will get DTB pointer in a0 register. Since a0 is used as argument by other functions, we need to preserve it and then pass as argument to the main_entry(). Signed-off-by: Oleksij Rempel --- arch/mips/boot/start.S | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 01/10] images: piggy: use "a" instead of #alloc flag

2018-11-26 Thread Oleksij Rempel
"#alloc" is not working with MIPS compiler. The "a" variant seems to be more generic and works with ARM and MIPS. Signed-off-by: Oleksij Rempel --- images/piggy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/piggy.S b/images/piggy.S index 84396ae4ec..c2274ebac7

[PATCH v2 03/10] pbl: enable MIPS for PBL_RELOCATABLE

2018-11-26 Thread Oleksij Rempel
it is needed for multiimage support Signed-off-by: Oleksij Rempel --- pbl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbl/Kconfig b/pbl/Kconfig index 117b79dcbd..f2250dd73b 100644 --- a/pbl/Kconfig +++ b/pbl/Kconfig @@ -35,7 +35,7 @@ config

[PATCH v2 07/10] MIPS: put main_entry to __bare_init section

2018-11-26 Thread Oleksij Rempel
To make disassambly easier to read. With this patch main_entry will be at the start of the text section and not in the middle. Signed-off-by: Oleksij Rempel --- arch/mips/boot/main_entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/boot/main_entry.c

[PATCH v2 10/10] MIPS: remove useless board files

2018-11-26 Thread Oleksij Rempel
From: Oleksij Rempel In most cases we was executing only barebox_set_hostname(). Since we can extract host name from devicetree, we can drop all of this board files. Signed-off-by: Oleksij Rempel --- arch/mips/boards/black-swift/Makefile| 1 - arch/mips/boards/black-swift/board.c |

[PATCH v2 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/Kconfig | 7 ++ arch/mips/Makefile| 28 +- arch/mips/boards/8devices-lima/Makefile | 1 + .../board/board_pbl_start.h => lowlevel.S}| 27 ++ arch/mips/boards/Makefile

[PATCH v2 05/10] MIPS: multiimage: add ENTRY_FUNCTION macros

2018-11-26 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/include/asm/asm.h | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 12e17581b8..b9c0cc 100644 --- a/arch/mips/include/asm/asm.h +++

[PATCH v2 06/10] MIPS: mutliimage: pass devicetree from PBL to the main_entry

2018-11-26 Thread Oleksij Rempel
We need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/boot/Makefile | 2 +- arch/mips/boot/dtb.c| 16 arch/mips/boot/main_entry-pbl.c | 15 ++- arch/mips/boot/main_entry.c | 10 -- 4 files changed, 31

[PATCH v2 02/10] MIPS: add arch/mips/lib/pbl.lds.S

2018-11-26 Thread Oleksij Rempel
we need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/lib/pbl.lds.S | 54 + 1 file changed, 54 insertions(+) create mode 100644 arch/mips/lib/pbl.lds.S diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S new file mode

[PATCH] mtd: nand: denali: quiet down driver

2018-11-26 Thread Steffen Trumtrar
Instead of always printing the timing registers, make it a debug information only. Signed-off-by: Steffen Trumtrar --- drivers/mtd/nand/nand_denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_denali.c b/drivers/mtd/nand/nand_denali.c index

Re: [PATCH v1 10/10] MIPS: multiimage: remove useless board files

2018-11-26 Thread Oleksij Rempel
Hi, On 26.11.18 13:22, Antony Pavlov wrote: On Mon, 26 Nov 2018 10:18:07 +0100 Oleksij Rempel wrote: Hi! This patch has no relation with multi-image support. It uses the features introdused in your patch 'of: base: use root_node compatible as suggestion for a hostname' (76759ec94eb3a3)

Re: [PATCH v1 01/10] images: piggy: use "a" instead of #alloc flag

2018-11-26 Thread Oleksij Rempel
Hi! On 26.11.18 13:25, Antony Pavlov wrote: On Mon, 26 Nov 2018 10:17:58 +0100 Oleksij Rempel wrote: Hi! I can't apply this patch to the master branch 'FIT: support hash-1/signature-1 nodes in signature check' (6bacf7bd8df) Here is git-am error log: Applying: images: piggy: use "a"

Re: [PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Sascha Hauer
On Mon, Nov 26, 2018 at 02:54:17PM +0100, Oleksij Rempel wrote: > On 26.11.18 14:01, Antony Pavlov wrote: > > On Mon, 26 Nov 2018 10:18:05 +0100 > > Oleksij Rempel wrote: > > > > Hi! > > > > I can't apply this patch. > > Here is 'git am' log: > > > > Applying: MIPS: port all mach* to

Re: [PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Oleksij Rempel
On 26.11.18 14:01, Antony Pavlov wrote: On Mon, 26 Nov 2018 10:18:05 +0100 Oleksij Rempel wrote: Hi! I can't apply this patch. Here is 'git am' log: Applying: MIPS: port all mach* to multiimage .git/rebase-apply/patch:1291: trailing whitespace. pbl-dtb-$(CONFIG_BOARD_8DEVICES_LIMA) +=

Re: [PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Antony Pavlov
On Mon, 26 Nov 2018 10:18:05 +0100 Oleksij Rempel wrote: Hi! I can't apply this patch. Here is 'git am' log: Applying: MIPS: port all mach* to multiimage .git/rebase-apply/patch:1291: trailing whitespace. pbl-dtb-$(CONFIG_BOARD_8DEVICES_LIMA) += qca4531-8devices-lima.dtb.o

Re: [PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Oleksij Rempel
Hi, thx. will fix it. On 26.11.18 13:13, Antony Pavlov wrote: On Mon, 26 Nov 2018 10:18:05 +0100 Oleksij Rempel wrote: Please fix whitespace and '//' errors in this patch. Here is checkpatch output: ERROR: trailing whitespace #1401: FILE: arch/mips/dts/Makefile:6:

Re: [PATCH v1 01/10] images: piggy: use "a" instead of #alloc flag

2018-11-26 Thread Antony Pavlov
On Mon, 26 Nov 2018 10:17:58 +0100 Oleksij Rempel wrote: Hi! I can't apply this patch to the master branch 'FIT: support hash-1/signature-1 nodes in signature check' (6bacf7bd8df) Here is git-am error log: Applying: images: piggy: use "a" instead of #alloc flag error: images/piggy.S: does

Re: [PATCH v1 10/10] MIPS: multiimage: remove useless board files

2018-11-26 Thread Antony Pavlov
On Mon, 26 Nov 2018 10:18:07 +0100 Oleksij Rempel wrote: Hi! This patch has no relation with multi-image support. It uses the features introdused in your patch 'of: base: use root_node compatible as suggestion for a hostname' (76759ec94eb3a3) which is already in mainline. Can we submit

Re: [PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Antony Pavlov
On Mon, 26 Nov 2018 10:18:05 +0100 Oleksij Rempel wrote: Please fix whitespace and '//' errors in this patch. Here is checkpatch output: ERROR: trailing whitespace #1401: FILE: arch/mips/dts/Makefile:6: +pbl-dtb-$(CONFIG_BOARD_8DEVICES_LIMA) += qca4531-8devices-lima.dtb.o $ ERROR: trailing

Re: [PATCH] ubimkvol: add support for `volume_id` parameter

2018-11-26 Thread Sascha Hauer
On Mon, Nov 26, 2018 at 11:06:29AM +0100, Sascha Hauer wrote: > From: Leif Middelschulte > > The volume id can be used to refer to a specific volume. > This adds support to choose a corresponding argument when creating > a UBI volume. > > Signed-off-by: Leif Middelschulte > --- >

Re: [PATCH 1/2] drivers: caam: add RNG software self-test

2018-11-26 Thread Roland Hieber
Hi Sascha, thanks for the feedback so far! Will fix things in v2. On Mon, Nov 26, 2018 at 10:01:40AM +0100, Sascha Hauer wrote: [...] > > diff --git a/drivers/crypto/caam/rng_self_test.c > > b/drivers/crypto/caam/rng_self_test.c > > new file mode 100644 > > index 00..aff8f26cfd > > ---

Re: [PATCH 3/3] ARM: zynqmp: add support for Xilinx ZCU104 board

2018-11-26 Thread Roland Hieber
On Fri, Nov 23, 2018 at 02:55:24PM +0100, Rouven Czerwinski wrote: > Michael Tretter writes: [...] > > +static inline void PUTC_LL(int c) > > +{ > > + void __iomem *base = (void __iomem *)ZYNQMP_DEBUG_LL_UART_BASE; > > + > > + if (readl(base) & ZYNQMP_UART_TXDIS) > > + return; > > +

[PATCH] ubimkvol: add support for `volume_id` parameter

2018-11-26 Thread Sascha Hauer
From: Leif Middelschulte The volume id can be used to refer to a specific volume. This adds support to choose a corresponding argument when creating a UBI volume. Signed-off-by: Leif Middelschulte --- commands/ubi.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

Re: powerfail safe env save

2018-11-26 Thread Sascha Hauer
On Sat, Nov 24, 2018 at 12:14:24PM +0100, Erwin Rol wrote: > Hallo Sascha, > > On Wed, 2018-11-21 at 09:18 +0100, Sascha Hauer wrote: > > Hi Erwin, > > > > On Tue, Nov 20, 2018 at 09:08:01PM +0100, Erwin Rol wrote: > > > Hallo, > > > > > > as long time u-boot user I have several projects where

Re: [PATCH] ARM: socfpga: generate smaller images when multiple boards are selected

2018-11-26 Thread Sascha Hauer
On Fri, Nov 23, 2018 at 05:49:30PM +0900, Masahiro Yamada wrote: > On Fri, Nov 16, 2018 at 11:31 PM Sascha Hauer wrote: > > > > The socfpga xload images are limited to 64KiB. This doesn't fit if > > multiple boards are selected. The reason is that we include huge > > C files and arrays in the

[PATCH v1 08/10] MIPS: port all mach* to multiimage

2018-11-26 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/Kconfig | 7 ++ arch/mips/Makefile| 28 +- arch/mips/boards/8devices-lima/Makefile | 1 + .../board/board_pbl_start.h => lowlevel.S}| 27 ++ arch/mips/boards/Makefile

[PATCH v1 02/10] MIPS: add arch/mips/lib/pbl.lds.S

2018-11-26 Thread Oleksij Rempel
we need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/lib/pbl.lds.S | 54 + 1 file changed, 54 insertions(+) create mode 100644 arch/mips/lib/pbl.lds.S diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S new file mode

[PATCH v1 07/10] MIPS: put main_entry to __bare_init section

2018-11-26 Thread Oleksij Rempel
To make disassambly easier to read. With this patch main_entry will be at the start of the text section and not in the middle. Signed-off-by: Oleksij Rempel --- arch/mips/boot/main_entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/boot/main_entry.c

[PATCH v1 00/10] MIPS: migrate to multiimage support

2018-11-26 Thread Oleksij Rempel
This patch series is a huge move to a multiimage support. As long as we do not have lots of boards, it is better to do it now. The most painful patch is "MIPS: port all mach* to multiimage", since it was too hard to split the work to multiple step, it is all-in-one patch. I hope my children will

[PATCH v1 05/10] MIPS: multiimage: add ENTRY_FUNCTION macros

2018-11-26 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/include/asm/asm.h | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 12e17581b8..b9c0cc 100644 --- a/arch/mips/include/asm/asm.h +++

[PATCH v1 04/10] MIPS: start: preserve DTB pointer for later use

2018-11-26 Thread Oleksij Rempel
We will get DTB pointer in a0 register. Since a0 is used as argument by other functions, we need to preserve it and then pass as argument to the main_entry(). Signed-off-by: Oleksij Rempel --- arch/mips/boot/start.S | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v1 03/10] pbl: enable MIPS for PBL_RELOCATABLE

2018-11-26 Thread Oleksij Rempel
it is needed for multiimage support Signed-off-by: Oleksij Rempel --- pbl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbl/Kconfig b/pbl/Kconfig index 117b79dcbd..f2250dd73b 100644 --- a/pbl/Kconfig +++ b/pbl/Kconfig @@ -35,7 +35,7 @@ config

[PATCH v1 06/10] MIPS: mutliimage: pass devicetree from PBL to the main_entry

2018-11-26 Thread Oleksij Rempel
We need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/boot/Makefile | 2 +- arch/mips/boot/dtb.c| 16 arch/mips/boot/main_entry-pbl.c | 15 ++- arch/mips/boot/main_entry.c | 10 -- 4 files changed, 31

[PATCH v1 01/10] images: piggy: use "a" instead of #alloc flag

2018-11-26 Thread Oleksij Rempel
"#alloc" is not working with MIPS compiler. The "a" variant seems to be more generic and works with ARM and MIPS. Signed-off-by: Oleksij Rempel --- images/piggy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/piggy.S b/images/piggy.S index 84396ae4ec..c2274ebac7

[PATCH v1 09/10] MIPS: remove HAS_NO_BOARD_HL_CODE support

2018-11-26 Thread Oleksij Rempel
With multiimage support it makes no more sense, every board should have Makefile and some lowlevel code. Signed-off-by: Oleksij Rempel --- arch/mips/Kconfig| 3 --- arch/mips/Makefile | 2 -- arch/mips/mach-ath79/Kconfig | 2 -- 3 files changed, 7 deletions(-) diff --git

[PATCH v1 10/10] MIPS: multiimage: remove useless board files

2018-11-26 Thread Oleksij Rempel
From: Oleksij Rempel With multiimage support we should check OF compatible before executing some thing board specific. In most cases we was executing only barebox_set_hostname(). Since we can extract host name from devicetree, we can drop all of this board files. Signed-off-by: Oleksij Rempel

Re: [PATCH 1/2] drivers: caam: add RNG software self-test

2018-11-26 Thread Sascha Hauer
Hi Roland, On Sun, Nov 25, 2018 at 11:59:51PM +0100, Roland Hieber wrote: > diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c > index 9e62bd6fd6..14dfc7e827 100644 > --- a/drivers/crypto/caam/ctrl.c > +++ b/drivers/crypto/caam/ctrl.c > @@ -19,10 +19,13 @@ > #include