[PATCH] imd: fix missing error message

2018-11-27 Thread Thorsten K. Scherer
imd -t just returns 'imd: error 61', if there is not tag for reference: common/imd.c:357 if (!imd) { ... Signed-off-by: Thorsten K. Scherer --- common/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/misc.c b/common/misc.c index 665f72be7..66aba534f 100644 ---

[PATCH v2] multiple/raspberry-pi: fix clkdevs for raspberry pi

2018-11-27 Thread Rouven Czerwinski
Commit 7e497d48acbd1184e3f6bd23bd16dfae84dd1129 introduced a name change which breaks support for the fixed clkdev for uart and sdhci for RPI. Use clkdev_add_physbase instead to be independant from the device tree names. Signed-off-by: Rouven Czerwinski ---

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

2018-11-27 Thread Antony Pavlov
On Tue, 27 Nov 2018 09:04:17 +0100 Sascha Hauer wrote: > > + \ > > + la a0, dtb_start; \ > > + la a1, dtb_end;\ > > + la v0, pbl_main_entry; \ > > +

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

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

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

2018-11-27 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..5ead754b13 100644 --- a/arch/mips/include/asm/asm.h +++

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

2018-11-27 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 v3 00/10] MIPS: migrate to multiimage support

2018-11-27 Thread Oleksij Rempel
20181127 v3: - remove ENTRY(pbl_start) - rework ENTRY_FUNCTION, ENTRY_FUNCTION_END - move HAVE_PBL_MULTI_IMAGES to the CONFIG_MIPS - remove arch/mips/boot/start-pbl.S 20181127 v2: - rebase against latest next - fix trailing spaces in arch/mips/dts/Makefile 20181126 v1: This patch series

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

2018-11-27 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 v3 10/10] MIPS: remove useless board files

2018-11-27 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 v3 04/10] MIPS: start: preserve DTB pointer for later use

2018-11-27 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 v3 02/10] MIPS: add arch/mips/lib/pbl.lds.S

2018-11-27 Thread Oleksij Rempel
we need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/lib/pbl.lds.S | 53 + 1 file changed, 53 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 v3 09/10] MIPS: remove HAS_NO_BOARD_HL_CODE support

2018-11-27 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 v3 07/10] MIPS: put main_entry to __bare_init section

2018-11-27 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 v3 01/10] images: piggy: use "a" instead of #alloc flag

2018-11-27 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

Re: [PATCH] arch: *: cpuinfo: harmonize command description

2018-11-27 Thread Ulrich Ölmann
Hi Antony & Robert, On Thu, Nov 22 2018 at 14:39 +0100, Antony Pavlov wrote: > On Thu, 22 Nov 2018 09:12:00 +0100 > Ulrich Ölmann wrote: > > Hello Robert! > > AFAIR you are a native English speaker. > > Would you please comment this change > >> -BAREBOX_CMD_DESC("show CPU information") >>

Re: [PATCH 2/2] rpi-common: fix sdhci clkdev for raspberry pi

2018-11-27 Thread Rouven Czerwinski
Rouven Czerwinski writes: > The clkdev here This commit message is insufficient, will fix in a V2. That said I can also merge both commits into one. - Rouven > > Signed-off-by: Rouven Czerwinski > --- > arch/arm/boards/raspberry-pi/rpi-common.c | 4 ++-- > 1 file changed, 2

[PATCH 1/2] mach-bcm283x/core: fix clkdev uarts for raspberry pi

2018-11-27 Thread Rouven Czerwinski
Commit 7e497d48acbd1184e3f6bd23bd16dfae84dd1129 introduced a name change which breaks support for the fixed clkdev uart for RPI3. Use clkdev_add_physbase instead to be independant from the device tree names. Signed-off-by: Rouven Czerwinski --- arch/arm/mach-bcm283x/core.c | 4 ++-- 1 file

[PATCH 2/2] rpi-common: fix sdhci clkdev for raspberry pi

2018-11-27 Thread Rouven Czerwinski
The clkdev here Signed-off-by: Rouven Czerwinski --- arch/arm/boards/raspberry-pi/rpi-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c index 3baed65255..b7ce0ad425 100644 ---

[PATCH 1/3] hush: Add pr_fmt define

2018-11-27 Thread Sascha Hauer
To give the hush debug output more context. Signed-off-by: Sascha Hauer --- common/hush.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/hush.c b/common/hush.c index 792b61ac9a..386b3d7aef 100644 --- a/common/hush.c +++ b/common/hush.c @@ -106,6 +106,9 @@ * General Public

[PATCH 3/3] getopt: Add pr_fmt

2018-11-27 Thread Sascha Hauer
To give the debug output more context. Signed-off-by: Sascha Hauer --- lib/getopt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/getopt.c b/lib/getopt.c index 847830c22b..55852ba133 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -13,6 +13,7 @@ * GNU General Public License for more

[PATCH 2/3] hush: Add extra define for hush debugging

2018-11-27 Thread Sascha Hauer
I've seen people increasing the compile loglevel to get more debugging output from barebox. This is generally a good idea, but the tons of hush debugging printed makes barebox quite unusable. This patch puts hush debugging behind an extra HUSH_DEBUG define so increasing the compile loglevel no

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

2018-11-27 Thread Sascha Hauer
On Tue, Nov 27, 2018 at 08:37:12AM +0100, Oleksij Rempel wrote: > Signed-off-by: Oleksij Rempel > --- > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index 524375a81a..3934b803a5 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -58,6 +58,9 @@ config MACH_MIPS_MALTA >

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

2018-11-27 Thread Sascha Hauer
On Tue, Nov 27, 2018 at 08:37:09AM +0100, Oleksij Rempel wrote: > 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