Re: [PATCH master 1/3] RISC-V: cpu: request stack memory region

2021-04-01 Thread Antony Pavlov
the stack space. > Do as ARM does and add a RISC-V specific initcall to reserve > the main thread's stack space. > > Reported-by: Antony Pavlov > Signed-off-by: Ahmad Fatoum > --- > Fix for master as otherwise stack could be overwritten at runtime > --- > arch/r

Re: RFC: barebox-x86 as a coreboot payload

2021-04-01 Thread Antony Pavlov
On Thu, 1 Apr 2021 15:52:14 +0200 Ahmad Fatoum wrote: > Hi, > > On 05.04.14 21:27, alex.aring at gmail.com (Alexander Aring) wrote: > > On Sat, Apr 05, 2014 at 11:02:45PM +0400, Alexander Shiyan wrote: > >> Sat, 5 Apr 2014 23:00:29 +0400 ?? Antony Pavlov >>

[PATCH 2/2] Documentation: dlink-dir-320: update device links

2021-03-30 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- Documentation/boards/mips/dlink-dir-320.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/boards/mips/dlink-dir-320.rst b/Documentation/boards/mips/dlink-dir-320.rst index b60995489e..90de68a9c4 100644 --- a/Documentation

[PATCH 1/2] Documentation: dlink-dir-320: update image file name

2021-03-30 Thread Antony Pavlov
The commit 102676feb218ab59 ("MIPS: port all mach* to multiimage") changed D-Link DIR-320 image name so update it in documentation. Signed-off-by: Antony Pavlov --- Documentation/boards/mips/dlink-dir-320.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc

[PATCH 0/2] Documentation: MIPS: update dlink-dir-320 board stuff

2021-03-30 Thread Antony Pavlov
Antony Pavlov (2): Documentation: dlink-dir-320: update image file name Documentation: dlink-dir-320: update device links Documentation/boards/mips/dlink-dir-320.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.30.1

[PATCH 2/3] RISC-V: erizo.dtsi: set timebase-frequency = <24000000>

2021-03-29 Thread Antony Pavlov
This patch makes it possible to use drivers/clocksource/timer-riscv.c with erizo. Without timebase-frequency initialized we have this warning at startup: RISC-V system with no 'timebase-frequency' in DTS Signed-off-by: Antony Pavlov --- arch/riscv/dts/erizo.dtsi | 2 ++ 1 file changed, 2

[PATCH 3/3] RISC-V: drop old timer handling code

2021-03-29 Thread Antony Pavlov
Use drivers/clocksource/timer-riscv.c driver introduced in '2ee369dcf7a5 ("clocksource: add driver for RISC-V and CLINT timers")' instead. Signed-off-by: Antony Pavlov --- arch/riscv/lib/Makefile | 2 +- arch/riscv/lib/riscv_timer.c | 63 ---

[PATCH 1/3] clocksource: timer-riscv: adapt riscv_timer_get_count_rdcycle() for RV32

2021-03-29 Thread Antony Pavlov
: 'Sample code for reading the 64-bit cycle counter in RV32' [1]: again: rdcycleh x3 rdcycle x2 rdcycleh x4 bne x3, x4, again [1] The RISC-V Instruction Set Manual. Volume I: User-Level ISA, Document Version 2.2 Signed-off-by: Antony Pavlov

[PATCH 0/3] RISC-V cycle timer fixes

2021-03-29 Thread Antony Pavlov
Antony Pavlov (3): clocksource: timer-riscv: adapt riscv_timer_get_count_rdcycle() for RV32 RISC-V: erizo.dtsi: set timebase-frequency = <2400> RISC-V: drop old timer handling code arch/riscv/dts/erizo.dtsi | 2 + arch/riscv/lib/Makefile | 2 +- arch/ris

Re: [PATCH v3 15/21] RISC-V: erizo: migrate to PBL

2021-03-23 Thread Antony Pavlov
0x7fdfffe3 (size 0x3c64) board data 0x7fe0 - 0x7fe5749f (size 0x000574a0) barebox 0x7fe574a0 - 0x7feabb9f (size 0x00054700) barebox data 0x7feabba0 - 0x7feae90f (size 0x2d70) bss 0x7ffe8000 - 0x7ffe (size 0x8000) stack barebox@V2P-CA9:/ -- Best regards,   Ant

Re: [PATCH v3 14/21] RISC-V: implement PBL and relocation support

2021-03-21 Thread Antony Pavlov
+ endmem = riscv_mem_ramoops(membase, endmem); > + > + return ALIGN_DOWN(endmem - size, SZ_1M); > +} > + > +#define ENTRY_FUNCTION(name, arg0, arg1, arg2) \ > + void name (ulong r0, ulong r1, ulong r2); \ > + static void __##name(ulong, ulong, ulong); \ ^^ Please fix whitespace here. -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] fixup! RISC-V: erizo: migrate to PBL

2021-03-21 Thread Antony Pavlov
--- images/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/images/.gitignore b/images/.gitignore index 377c14ceb3..eafdb44b5b 100644 --- a/images/.gitignore +++ b/images/.gitignore @@ -31,3 +31,4 @@ barebox.sum *.image *.mvebu1img *.stm32 +*.nmon -- 2.30.1

Re: [PATCH v2 14/20] RISC-V: erizo: migrate to PBL

2021-03-20 Thread Antony Pavlov
cv/boards/erizo/lowlevel.c > index f9c640c1123f..d9edb530b746 100644 > --- a/arch/riscv/boards/erizo/lowlevel.c > +++ b/arch/riscv/boards/erizo/lowlevel.c > @@ -1,35 +1,18 @@ > // SPDX-License-Identifier: GPL-2.0-only > -/* > - * Copyright (C) 2016 Antony Pavlov >

Re: [PATCH v2 14/20] RISC-V: erizo: migrate to PBL

2021-03-19 Thread Antony Pavlov
On Fri, 19 Mar 2021 19:28:10 +0100 Ahmad Fatoum wrote: Hi! > Hello Antony, > > On 19.03.21 16:37, Antony Pavlov wrote: > > The first bad commit is 90cde3b9ff46 ("startup: Execute init scripts in > > alphabetical order"). > > I have reproduced it with

Re: [PATCH v2 14/20] RISC-V: erizo: migrate to PBL

2021-03-19 Thread Antony Pavlov
On Tue, 16 Mar 2021 19:38:48 +0100 Ahmad Fatoum wrote: Hi! > Hello Antony, > > On 16.03.21 15:12, Antony Pavlov wrote: > > On Tue, 16 Mar 2021 09:04:59 +0100 > > Ahmad Fatoum wrote: > > > >> We now have everything in place to migrate erizo to PBL. >

[PATCH] Documentation: mips: fixup qemu-system-mipsel cmdline

2021-03-19 Thread Antony Pavlov
Fix spelling mistake introduced in the commit 2ab6d2a76994 ("MIPS: qemu-malta_defconfig: enable VGA output"). Signed-off-by: Antony Pavlov --- Documentation/boards/mips/qemu-malta.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/boards/mips/qemu-ma

Re: [PATCH v2 14/20] RISC-V: erizo: migrate to PBL

2021-03-16 Thread Antony Pavlov
e case > before the rework as well. Tested with qemu as described in the docs. > > Cc: Antony Pavlov > Signed-off-by: Ahmad Fatoum > --- > I assume some memory corruption is happening due to the minimal malloc > area size? There is no problem with 1M malloc area size. I succ

Re: MIPS RELOCATABLE: [PATCH 14/20] RISC-V: erizo: migrate to PBL

2021-03-15 Thread Antony Pavlov
On Mon, 15 Mar 2021 13:40:10 +0100 Ahmad Fatoum wrote: Hi! > Hello, > > On 15.03.21 13:08, Antony Pavlov wrote: > > On Mon, 15 Mar 2021 12:45:15 +0100 > > Oleksij Rempel wrote: > > > >> On Mon, Mar 15, 2021 at 11:43:53AM +0300, Antony Pavlov wrote: >

Re: MIPS RELOCATABLE: [PATCH 14/20] RISC-V: erizo: migrate to PBL

2021-03-15 Thread Antony Pavlov
On Mon, 15 Mar 2021 12:45:15 +0100 Oleksij Rempel wrote: > On Mon, Mar 15, 2021 at 11:43:53AM +0300, Antony Pavlov wrote: > > On Sun, 14 Mar 2021 13:27:58 +0100 > > Ahmad Fatoum wrote: > > > > Hi! > > > > > diff --git a/common/Kconfig b/common/Kcon

Re: MIPS RELOCATABLE: [PATCH 14/20] RISC-V: erizo: migrate to PBL

2021-03-15 Thread Antony Pavlov
depends on PPC || ARM > + depends on PPC || ARM || RISCV > bool "generate relocatable barebox binary" > help > A non relocatable barebox binary will run at it's compiled in Hmmm. AFAIR MIPS barebox is relocatable. Why CON

Re: [PATCH 2/2] fixup! RISC-V: add 64-bit support

2021-03-15 Thread Antony Pavlov
riscv-ldflags-y += -melf64lriscv > endif > > -- > 2.30.0 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov _

[PATCH] bootm: add RISC-V image type

2021-03-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- include/image.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/image.h b/include/image.h index fa06476845..b593ae30ef 100644 --- a/include/image.h +++ b/include/image.h @@ -129,6 +129,8 @@ enum { #define IH_ARCH IH_ARCH_AVR32 #elif defined

Re: [PATCH 00/20] RISC-V: rework for PBL, VIRT and 64-Bit support

2021-03-15 Thread Antony Pavlov
iscv/lib/runtime-offset.S > create mode 100644 arch/riscv/lib/sections.c > create mode 100644 arch/riscv/lib/setupc.S > create mode 100644 arch/riscv/mach-virt/Makefile > create mode 100644 arch/riscv/mach-virt/include/mach/debug_ll.h > create mode 100644 drivers/clock

Re: [PATCH 9/9] virtio: virtio-pci: restrict MIPS support to MMU configuration

2021-03-03 Thread Antony Pavlov
select VIRTIO > help > This driver provides support for virtio based paravirtual device > -- > 2.30.0 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/lis

Re: nios2 and openrisc in barebox

2021-02-25 Thread Antony Pavlov
; Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: nios2 and openrisc in barebox

2021-02-23 Thread Antony Pavlov
er be updated. > > I think you can drop support for them. I won't work on this myself. > Let's wait for Antony's view on this. Hi! I experimented with openrisc before widespread use of RISC-V. I have never used nios2. IMHO we can drop openrisc and nios2. -- Best regards,   Antony Pavl

Re: [PATCH 0/8] Support large files on larger ext4 partitions on larger still USB disks

2021-02-19 Thread Antony Pavlov
.h | 5 - > include/progress.h| 6 -- > lib/libfile.c | 2 +- > lib/show_progress.c | 17 - > 23 files changed, 159 insertions(+), 174 deletions(-) > > -- > 2.29.2 > > > _______

Re: [PATCH 5/5] ARM: i.MX: add MNT Reform board support

2020-12-27 Thread Antony Pavlov
gt; _______ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH] clk: ls1b200: add clk driver for loongson 1b

2020-10-29 Thread Antony Pavlov
LAYERSCAPE)+= clk-qoric.o > diff --git a/drivers/clk/loongson/Makefile b/drivers/clk/loongson/Makefile > new file mode 100644 > index 000..dd76b25 > --- /dev/null > +++ b/drivers/clk/loongson/Makefile > @@ -0,0 +1,2 @@ > +obj-$(CONFIG_BOARD_LOONGSON_TECH_LS1B) += clk-l

Re: [PATCH] MIPS: asm/debug_ll_ns16550.h: add nop in delay slot

2020-09-08 Thread Antony Pavlov
1b /* try again */ > + nop > > sb a0, UART_THR(t0)/* write the character */ > > -- > 2.7.4 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v2] sandbox: add a minimal defconfig to build only the host tools

2020-08-28 Thread Antony Pavlov
___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[RFC] ARM: run barebox on STM32F429 MCU

2020-08-28 Thread Antony Pavlov
* CPU_V7M * CPU_CACHE_V7M * ARMV7M_SYSTICK [ ] use st,stm32-rcc [ ] support external SDRAM on the board [ ] use gpio driver [ ] internal MCU flash support Signed-off-by: Antony Pavlov --- arch/arm/Kconfig | 2 +- arch/ar

[PATCH] riscv: Makefile: make it possible to use riscv64 compiler

2020-08-05 Thread Antony Pavlov
not match `elf64-littleriscv' The patch fixes the problem by explicit riscv32 target options selection. Signed-off-by: Antony Pavlov Cc: Masahiro Yamada --- arch/riscv/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile

[PATCH] logo: Makefile: make it possible to use inkscape 1.0

2020-06-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- lib/logo/Makefile | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/logo/Makefile b/lib/logo/Makefile index eb7aee080e..bf700da89b 100644 --- a/lib/logo/Makefile +++ b/lib/logo/Makefile @@ -1,17 +1,17 @@ -OPTS_barebox

[PATCH] MIPS: correctly work with disabled CONFIG_MMU

2020-06-03 Thread Antony Pavlov
CONFIG_MMU=n MIPS configurations. Signed-off-by: Antony Pavlov --- arch/mips/include/asm/io.h | 6 +- arch/mips/lib/reloc.c | 6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index c155199430..4df9853

Re: [RFC] inkscape 1.0 issue

2020-06-02 Thread Antony Pavlov
On Tue, 2 Jun 2020 09:51:28 +0200 Sascha Hauer wrote: > Hi Antony, > > On Tue, Jun 02, 2020 at 01:20:35AM +0300, Antony Pavlov wrote: > > > > diff --git a/lib/logo/Makefile b/lib/logo/Makefile > > index eb7aee080e..8c81447df7 100644 > > --- a/lib/logo/Mak

[RFC] inkscape 1.0 issue

2020-06-01 Thread Antony Pavlov
kscape $(OPTS_$(@F)) --export-type=png $< > /dev/null; \ + mv $(patsubst %.svg,%.png,$<) $@; \ ) %.bblogo: $(srctree)/Documentation/barebox.svg FORCE -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] phy: drop of_phy_simple_xlate() stub

2020-05-12 Thread Antony Pavlov
The function of_phy_simple_xlate() is not used. Signed-off-by: Antony Pavlov --- include/linux/phy/phy.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index e2fe42d90e..679ce6e420 100644 --- a/include/linux/phy/phy.h +++ b/include

[RFC] drivers: fix dev_request_mem_resource() usage

2020-05-05 Thread Antony Pavlov
t we can use dev_request_mem_region() instead of dev_request_mem_resource(), e.g. > data->membase = dev_request_mem_region(dev, 0); > if (IS_ERR(data->membase)) > return PTR_ERR(data->membase); Signed-off-by: Antony Pavlov Cc: Steffen Trumtrar --- drivers/reset/reset-socfpga.c | 4

[PATCH] MIPS: dlink-dir-320: remove useless board file

2020-05-05 Thread Antony Pavlov
The board file calls only barebox_set_hostname(). Since we can extract host name from devicetree, we can drop board file. Signed-off-by: Antony Pavlov --- arch/mips/boards/dlink-dir-320/Makefile | 1 - arch/mips/boards/dlink-dir-320/board.c | 15 --- 2 files changed, 16 deletions

[PATCH] spi: Kconfig: drop unneeded dependency

2020-05-01 Thread Antony Pavlov
The 'config DRIVER_SPI_MXS' section is already under 'if SPI' so 'depends on SPI' is unneeded. Signed-off-by: Antony Pavlov --- drivers/spi/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index c696213f50..a53b961b89 100644 --- a/drivers/spi

Re: [PATCH v2 0/6] elf: add better bootm support

2020-04-28 Thread Antony Pavlov
On Thu, 23 Apr 2020 13:06:17 +0200 (CEST) Clément Leger wrote: > Hi Antony, > > - On 23 Apr, 2020, at 12:20, Antony Pavlov antonynpav...@gmail.com wrote: > > > On Thu, 23 Apr 2020 10:17:05 +0200 > > Clement Leger wrote: > > > > Hi, Clement > >

docker-barebox-mkall

2020-04-28 Thread Antony Pavlov
Hi Sascha, I have just added docker stuff for building barebox (arm, mips, x86 and sandbox) under Debian 10, please see https://github.com/frantony/docker-barebox-mkall -- Best regards,   Antony Pavlov ___ barebox mailing list barebox

Re: [PATCH v2 0/6] elf: add better bootm support

2020-04-23 Thread Antony Pavlov
ude/elf.h | 14 ++ > 6 files changed, 164 insertions(+), 25 deletions(-) > > -- > 2.17.1 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH V2] startup: introduce global.endianness variable

2020-04-06 Thread Antony Pavlov
On Mon, 6 Apr 2020 15:13:25 +0300 Antony Pavlov wrote: Hi Sascha, The global.version (and global.endianness) variable can be easely modified by user. Can we make it immutable? -- Best regards,   Antony Pavlov > The global.endianness variable make it possible > to determine current

Re: [PATCH] uimage: add define for RISC-V architecture

2020-04-06 Thread Antony Pavlov
On Mon, 6 Apr 2020 15:23:13 +0300 Antony Pavlov wrote: Hi Sascha, It looks like barebox IN_ARCH_* constants in image.h and the same constants from U-Boot's image.h are differ. > --- a/include/image.h > +++ b/include/image.h > @@ -75,6 +75,7 @@ > #define IH_ARCH_NDS32

[PATCH] uimage: add define for RISC-V architecture

2020-04-06 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- common/image.c | 1 + include/image.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/common/image.c b/common/image.c index 04cd86bf9a..15bef96826 100644 --- a/common/image.c +++ b/common/image.c @@ -60,6 +60,7 @@ static table_entry_t arch_name

[PATCH V2] startup: introduce global.endianness variable

2020-04-06 Thread Antony Pavlov
The global.endianness variable make it possible to determine current endian mode from command line or from script on bi-endian capable system. Signed-off-by: Antony Pavlov --- common/globalvar.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/common/globalvar.c b/common

[PATCH] startup: introduce global.endianity variable

2020-04-03 Thread Antony Pavlov
The global.endianity variable make it possible to determine current endian mode from command line or from script on bi-endian capable system. Signed-off-by: Antony Pavlov --- common/globalvar.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/common/globalvar.c b/common

Re: [RFC 4/5] net: rtl8169: make it work on big-endian system

2020-02-27 Thread Antony Pavlov
DMA_FROM_DEVICE); > > On 09.01.20 08:28, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov > > --- > > drivers/net/rtl8169.c | 34 +- > > 1 file changed, 17 insertions(+), 17 deletions(-) > > > > diff --git a/drivers

Re: [RFC 4/5] net: rtl8169: make it work on big-endian system

2020-02-08 Thread Antony Pavlov
with PCI support? -- Best regards,   Antony Pavlov > > On 09.01.20 08:28, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov > > --- > > drivers/net/rtl8169.c | 34 +- > > 1 file changed, 17 insertions(+), 17 deletions(-) >

[PATCH] RISC-V: unbreak built-in dtb

2020-02-02 Thread Antony Pavlov
_CLK_TABLE and the BAREBOX_DTB link script sections were not removed from RISC-V linker script making these sections declared twice. As a result incorrect __clk_of_table_start and __dtb_start addresses are passed to the barebox code therefore the RISC-V barebox is completely unusable. Signed-off-by: Antony Pavlov

Re: [PATCH] Documentation/sandbox: Add hint how to end a sandboxed barebox

2020-01-28 Thread Antony Pavlov
uf.st_mode); > break; > } > } > -- > 2.24.0 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v1] MIPS: remove .bss to __rel_start overlay

2020-01-28 Thread Antony Pavlov
_entry.c to keep it close to trap_init? Thereby we have a change to reuse ebase value instead of the 0x8000 magic constant. Also 0x8000 size is too large. See MIPS Run, 2nd Edition by Dominic Sweetman states general exception entry point is BASE+0x180 (used by barebox), and Interrupt Special starts at

Re: [PATCH v1] MIPS: remove .bss to __rel_start overlay

2020-01-28 Thread Antony Pavlov
On Tue, 28 Jan 2020 10:28:32 +0100 Oleksij Rempel wrote: Hi! Have you tested the patch on real hardware? -- Best regards,   Antony Pavlov > .bss __rel_start (OVERLAY) was used to optimize RAM size used by > barebox. Since .bss and __rel_start overlap, we should clear bss only &

Re: [PATCH v1] MIPS: remove .bss to __rel_start overlay

2020-01-28 Thread Antony Pavlov
@@ SECTIONS > > _end = .; > > - .bss __rel_start (OVERLAY) : { > + .bss : { > __bss_start = .; > *(.sbss.*) > *(.bss.*) > -- > 2.25.0 > -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

MIPS: relocation issue

2020-01-27 Thread Antony Pavlov
code + la v0, main_entry jal v0 nop Additional testing on real hardware has to be done. -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] MIPS: actually use CONFIG_MIPS_RELOCATION_TABLE_SIZE

2020-01-15 Thread Antony Pavlov
The commit 28ed10d6a67c9 ("MIPS: relocation: add relocation support") introduce the Kconfig CONFIG_MIPS_RELOCATION_TABLE_SIZE parameter but it is never used. Signed-off-by: Antony Pavlov --- arch/mips/lib/barebox.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [RFC 2/5] WIP: MIPS: implement dma mapping functions

2020-01-14 Thread Antony Pavlov
On Mon, 13 Jan 2020 09:26:36 +0100 Oleksij Rempel wrote: > On 09.01.20 08:28, Antony Pavlov wrote: > > TODO: fix warnings > > > > arch/mips/include/asm/dma-mapping.h: In function ‘dma_free_coherent’: > > arch/mips/include/asm/dma-mapping.h:31:21:

[RFC 4/5] net: rtl8169: make it work on big-endian system

2020-01-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/net/rtl8169.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 80997dc89f..3762cb6354 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169

[RFC 3/5] net: e1000: make it work on MIPS

2020-01-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/net/e1000/e1000.h | 2 ++ drivers/net/e1000/main.c | 8 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index 52ad3d4cdb..d26e6dcc02 100644 --- a/drivers/net/e1000/e1000.h

[RFC 0/5] WIP: MIPS: implement dma mapping functions

2020-01-08 Thread Antony Pavlov
Implementing dma mapping function on MIPS makes it possible to use e1000 and rtl8169 PCI network cards. At the moment e1000 works under qemu. However additional dma mapping functions testing on real hardware is necessary. Antony Pavlov (4): WIP: MIPS: implement dma mapping functions net

[RFC 5/5] MIPS: qemu-malta_defconfig: enable e1000 network driver

2020-01-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/configs/qemu-malta_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig index 2465c0260d..1625d68874 100644 --- a/arch/mips/configs/qemu-malta_defconfig +++ b/arch

[RFC 2/5] WIP: MIPS: implement dma mapping functions

2020-01-08 Thread Antony Pavlov
-off-by: Antony Pavlov Signed-off-by: Peter Mamonov --- arch/mips/include/asm/dma-mapping.h | 2 +- arch/mips/lib/dma-default.c | 22 -- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/dma-mapping.h b/arch/mips/include/asm/dma

[RFC 1/5] WIP: MIPS: configure ebase according CONFIG_MMU

2020-01-08 Thread Antony Pavlov
From: Peter Mamonov Signed-off-by: Peter Mamonov Signed-off-by: Antony Pavlov --- arch/mips/boot/main_entry.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index 2c18bc81c3..41350aad18 100644 --- a/arch/mips/boot

[PATCH] MIPS: dts: rename tplink-mr3020.dts -> ar9331_tl_mr3020.dts

2020-01-08 Thread Antony Pavlov
Linux MIPS uses _.dts board dts-file naming scheme so use it in barebox too. Signed-off-by: Antony Pavlov --- arch/mips/boards/tplink-mr3020/lowlevel.S | 2 +- arch/mips/dts/Makefile| 2 +- arch/mips/dts/{tplink-mr3020.dts => ar9331_tl_mr3

[PATCH] include/linux/amba/bus.h: drop unused declarations

2020-01-07 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- include/linux/amba/bus.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 2ecef35a40..7b3e603322 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -90,12 +90,6

Re: macro about loongson's CPU & SoC

2019-11-26 Thread Antony Pavlov
gt; CONFIG_CPU_GS264 > CONFIG_CPU_GS464 The name CPU_LOONGSON1B is used in the linux kernel. Please keep barebox macro name in sync with linux kernel. -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] i2c: gpio: use of_get_named_gpio() instead of of_get_named_gpio_flags()

2019-11-19 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/i2c/busses/i2c-gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index 5ab43fe935..7ccdb0b222 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses

Re: barebox on VoCore2

2019-11-11 Thread Antony Pavlov
nce > Mauro > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[RFC] WIP: import gpio-poweroff driver from linux kernel

2019-11-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/reset/Kconfig | 7 +++ drivers/reset/Makefile| 1 + drivers/reset/gpio-poweroff.c | 86 +++ 3 files changed, 94 insertions(+) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 048f2081f8

Re: setup for a working framebuffer in qemu

2019-10-15 Thread Antony Pavlov
e 'splash /logo/barebox-logo-240.png' to test picture output. -- Best regards,   Antony Pavlov > - qemu emulated vexpress boots, but no fb0 > - qemu emulated sabrelite can't even get it to boot > > I'm a bit out of ideas. Would really appreciate guidance, this is > mostly for fun while p

Re: [PATCH] MIPS: init cache before flashing it

2019-10-15 Thread Antony Pavlov
On Tue, 15 Oct 2019 18:09:45 +0200 Oleksij Rempel wrote: Hi! Please review this thread http://lists.infradead.org/pipermail/barebox/2019-June/038530.html AFAIR we have to clear BSS before calling r4k_cache_init(). -- Best regards,   Antony Pavlov > Cache information was not initiali

Re: [PATCH] version_string: Add toolchain and build host info

2019-10-08 Thread Antony Pavlov
On Mon, 7 Oct 2019 22:14:41 -0700 Andrey Smirnov wrote: > On Mon, Sep 30, 2019 at 11:03 PM Antony Pavlov > wrote: > > > > On Mon, 30 Sep 2019 17:57:18 -0700 > > Andrey Smirnov wrote: > > > > Hi! > > > > > Linux kernel reports the version of

Re: [PATCH] version_string: Add toolchain and build host info

2019-10-01 Thread Antony Pavlov
" + UTS_VERSION "\n"; + EXPORT_SYMBOL(version_string); const char release_string[] = > > const char release_string[] = > -- > 2.21.0 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 5/5] eeprom: at24: Convert the driver to NVMEM

2019-09-05 Thread Antony Pavlov
->nvmem_config.word_size = 1; > + at24->nvmem_config.size = chip.byte_len; > + > + dev->priv = at24; > + > + at24->nvmem = nvmem_register(>nvmem_config); > + err = PTR_ERR_OR_ZERO(at24->nvmem); > if (err) > goto err

Re: [PATCH v3 09/10] scripts: add nmon-loader

2019-08-12 Thread Antony Pavlov
On Mon, 12 Aug 2019 09:41:21 +0200 Sascha Hauer wrote: > Hi Antony, > > On Sun, Aug 11, 2019 at 12:59:05PM +0300, Antony Pavlov wrote: > > On Tue, 18 Dec 2018 10:19:42 +0300 > > Antony Pavlov wrote: > > > > Hi Sascha! > > > > It looks l

Re: [PATCH v3 09/10] scripts: add nmon-loader

2019-08-11 Thread Antony Pavlov
On Tue, 18 Dec 2018 10:19:42 +0300 Antony Pavlov wrote: Hi Sascha! It looks like this patch is missed in the master branch. Please apply the patch! > Signed-off-by: Antony Pavlov > --- > scripts/nmon-loader | 31 +++ > 1 file changed, 31 insertions(

Re: MII command to read and write specific registers

2019-07-11 Thread Antony Pavlov
the /dev/mdio* devices appear. -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] scripts: add mips-relocs to .gitignore

2019-07-07 Thread Antony Pavlov
mips-relocs generation was introduced in the commit 28ed10d6a67c9f67 ("MIPS: relocation: add relocation support"). Signed-off-by: Antony Pavlov --- scripts/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/.gitignore b/scripts/.gitignore index 11ac77eb37..45c81bf

[PATCH 2/3] sandbox: eliminale no previous prototype for ‘sandbox_add_device’ warning

2019-07-02 Thread Antony Pavlov
The patch fixes the following gcc-8.3.0 warning: arch/sandbox/board/devices.c:13:5: warning: no previous prototype for ‘sandbox_add_device’ [-Wmissing-prototypes] int sandbox_add_device(struct device_d *dev) ^~ Signed-off-by: Antony Pavlov --- arch/sandbox/board

[PATCH 1/3] sandbox: prevent segfault in tap_alloc()

2019-07-02 Thread Antony Pavlov
by tap_alloc() so we can drop this strcpy(). Signed-off-by: Antony Pavlov --- arch/sandbox/mach-sandbox/include/mach/linux.h | 2 +- arch/sandbox/os/tap.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b

[PATCH 3/3] sandbox: drop blank lines at EOF

2019-07-02 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/sandbox/board/board.c | 1 - arch/sandbox/board/console.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/sandbox/board/board.c b/arch/sandbox/board/board.c index dcad3c249b..1f6392d15e 100644 --- a/arch/sandbox/board/board.c +++ b/arch/sandbox

[PATCH 0/3] sandbox fixes

2019-07-02 Thread Antony Pavlov
Antony Pavlov (3): sandbox: prevent segfault in tap_alloc() sandbox: eliminale no previous prototype for ‘sandbox_add_device’ warning sandbox: drop blank lines at EOF arch/sandbox/board/board.c | 1 - arch/sandbox/board/console.c | 1 - arch/sandbox

Re: [RFC] sandbox: prevent segfault in tap_alloc()

2019-06-28 Thread Antony Pavlov
On Wed, 26 Jun 2019 09:12:02 +0200 Sascha Hauer wrote: > Hi Antony, > > On Wed, Jun 19, 2019 at 01:49:16PM +0300, Antony Pavlov wrote: > > Tap network interface initialization in sandbox > > barebox leads to segfault under Debian Buster/Sid. > > > > The problem

Re: [PATCH 4/4] MIPS: dts: tplink-mr3020: add missing stdout-path property

2019-06-21 Thread Antony Pavlov
already in linux-next. The switch driver is on TODO. Thanks for the tip! At the moment I use OpenWrt Linux 4.14.88+ with Debian Jessie nfsroot. > Am 21.06.19 um 07:21 schrieb Antony Pavlov: > > Signed-off-by: Antony Pavlov > > --- > > arch/mips/dts/tplink-mr3020.dts | 2 ++ > &g

[PATCH 1/4] MIPS: Kconfig: move ARCH_TEXT_BASE to top mips Kconfig file

2019-06-20 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/Kconfig | 4 arch/mips/mach-ar231x/Kconfig | 4 arch/mips/mach-ath79/Kconfig| 4 arch/mips/mach-bcm47xx/Kconfig | 4 arch/mips/mach-loongson/Kconfig | 4 arch/mips/mach-malta/Kconfig| 4 arch/mips

[PATCH 4/4] MIPS: dts: tplink-mr3020: add missing stdout-path property

2019-06-20 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/dts/tplink-mr3020.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts index 982cffc250..e30eae1578 100644 --- a/arch/mips/dts/tplink-mr3020.dts +++ b/arch/mips/dts/tplink-mr3020.dts

[PATCH 2/4] Documentation: user manual: update MIPS-specific targets

2019-06-20 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- Documentation/user/barebox.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/user/barebox.rst b/Documentation/user/barebox.rst index d82163a886..c021a4c743 100644 --- a/Documentation/user/barebox.rst +++ b/Documentation

[PATCH 0/4] MIPS: misc patches

2019-06-20 Thread Antony Pavlov
Antony Pavlov (4): MIPS: Kconfig: move ARCH_TEXT_BASE to top mips Kconfig file Documentation: user manual: update MIPS-specific targets serial: ar933x: set linux_console_name MIPS: dts: tplink-mr3020: add missing stdout-path property Documentation/user/barebox.rst | 7 --- arch/mips

[PATCH 3/4] serial: ar933x: set linux_console_name

2019-06-20 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ar933x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 676b9fadf8..dda604652b 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c

[PATCH] MIPS: reloc: make flush_cache_all() usable

2019-06-20 Thread Antony Pavlov
flush_cache_all() uses 'struct cpuinfo_mips current_cpu_data' data fields. These data fields are initialized in r4k_cache_init(). However in the current implementation the r4k_cache_init() function is called __AFTER__ relocate_code(). Signed-off-by: Antony Pavlov --- arch/mips/lib/reloc.c | 12

Re: [PATCH v2] treewide: remove CONFIG_DEBUG_INFO from defconfigs

2019-06-20 Thread Antony Pavlov
On Thu, 20 Jun 2019 16:29:45 +0200 Sascha Hauer wrote: > On Thu, Jun 20, 2019 at 10:54:21AM +0200, Sam Ravnborg wrote: > > Hi Antony > > > > On Thu, Jun 20, 2019 at 11:25:09AM +0300, Antony Pavlov wrote: > > > The commit b917f7864115a35 ("remove CONFIG_DEB

[PATCH v2] treewide: remove CONFIG_DEBUG_INFO from defconfigs

2019-06-20 Thread Antony Pavlov
The commit b917f7864115a35 ("remove CONFIG_DEBUG_INFO") has dropped Kconfig DEBUG_INFO option however we still have very many DEBUG_INFO mentions in defconfig files. Drop them using sed: find -iname '*defconfig' -type f -exec \ sed -i "/CONFIG_DEBUG_INFO=y/d" {} ';' S

[PATCH] treewide: remove CONFIG_DEBUG_INFO from defconfigs

2019-06-20 Thread Antony Pavlov
The commit b917f7864115a35 ("remove CONFIG_DEBUG_INFO") has dropped Kconfig DEBUG_INFO option however we still have very many DEBUG_INFO mentions in defconfig files. Drop them using sed: find -iname '*defconfig' -type f -exec \ sed -i "/CONFIG_DEBUG_INFO=y/d" {} ';' S

[RFC] sandbox: prevent segfault in tap_alloc()

2019-06-19 Thread Antony Pavlov
Tap network interface initialization in sandbox barebox leads to segfault under Debian Buster/Sid. The problem is that strcpy(dev, ifr.ifr_name) inside tap_alloc() tries to alter read-only data passed by tap_probe() and barebox receives SIGSEGV. Signed-off-by: Antony Pavlov --- drivers/net

Re: [PATCH 4/4] i2c: gpio: add sda/scl-gpios property support

2019-06-18 Thread Antony Pavlov
a_pin) || !gpio_is_valid(pdata->sda_pin)) Same here. + if (!gpio_is_valid(pdata->sda_pin) || !gpio_is_valid(pdata->scl_pin)) > + return -ENODEV; > > of_property_read_u32(np, "i2c-gpio,delay-us", >udelay); > -- Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[RFC 0/2] MIPS: fix code relocation routine

2019-06-18 Thread Antony Pavlov
' data fields. These data fields are initialized in r4k_cache_init(). However in the current implementation the r4k_cache_init() function is called __AFTER__ relocate_code(). This cache problem can't be discovered via qemu. Antony Pavlov (2): MIPS: lib/Makefile: fix whitespaces MIPS

[RFC 2/2] MIPS: relocate_code: fix barebox image memcpy() size

2019-06-18 Thread Antony Pavlov
'ram_size' overflow occurs during memcpy(). Signed-off-by: Antony Pavlov --- arch/mips/lib/reloc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c index 9756d61666..14ba6167dd 100644 --- a/arch/mips/lib/reloc.c +++ b

[RFC 1/2] MIPS: lib/Makefile: fix whitespaces

2019-06-18 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/lib/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile index c600f4b533..bdcaef91a7 100644 --- a/arch/mips/lib/Makefile +++ b/arch/mips/lib/Makefile @@ -4,8 +4,8 @@ obj-y

<    1   2   3   4   5   6   7   8   9   10   >