Re: [PATCH] kvx: exclude dtb from malloc zone

2020-08-03 Thread Clément Leger
Hi Sascha, - On 11 Jul, 2020, at 12:19, Clément Leger cle...@kalray.eu wrote: > Hi Sascha > > - On 11 Jul, 2020, at 06:41, Sascha Hauer s.ha...@pengutronix.de wrote: > >> Hi Clement, >> >> On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger w

Re: [PATCH] kvx: exclude dtb from malloc zone

2020-07-11 Thread Clément Leger
Hi Sascha - On 11 Jul, 2020, at 06:41, Sascha Hauer s.ha...@pengutronix.de wrote: > Hi Clement, > > On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger wrote: >> When dtb is provided by the FSBL (first stage bootloader), it might >> end up in the malloc zone initialized by barebox.

Re: [PATCH 4/4] kvx: add support for elf loading using bootm

2020-06-29 Thread Clément Leger
Hi Ahmad - On 29 Jun, 2020, at 10:15, Ahmad Fatoum a.fat...@pengutronix.de wrote: > Hello, > > On 6/24/20 9:15 AM, Clément Leger wrote: >>> You already flushed out the dcache contents to the point of unification. >>> What do you gain by invalidating it? >>

Re: [PATCH 4/4] kvx: add support for elf loading using bootm

2020-06-24 Thread Clément Leger
Hi Ahmad, - On 24 Jun, 2020, at 08:17, Ahmad Fatoum a.fat...@pengutronix.de wrote: > On 6/23/20 9:35 PM, Clement Leger wrote: >> From: Clement Leger >> >> In order to boot elfs files, add bootm command support for kvx. This support >> can boot elf files using bootm elf support. initrd and

Re: [PATCH v6 0/8] elf: add better bootm support

2020-06-12 Thread Clément Leger
- On 12 Jun, 2020, at 09:41, Oleksij Rempel o.rem...@pengutronix.de wrote: > Nice work. Thank you! > Following variants was tested: > - net boot > - boot from local ram copy > - boot from spi flash > > Tested-by: Oleksij Rempel Finally ;) Thanks again for testing it on mips ! > > On

Re: [PATCH v5 0/7] elf: add better bootm support

2020-06-12 Thread Clément Leger
Hi Oleksij, - On 12 Jun, 2020, at 07:22, Oleksij Rempel o.rem...@pengutronix.de wrote: > Hi Clement, > > suddenly I was not able to apply you changes on current barebox/master > branch. There seems to be some missing changes? Sorry, I forgot the '^' on the base sha1 during my git

Re: [PATCH v4 0/7] elf: add better bootm support

2020-06-06 Thread Clément Leger
release_sdram_region(data->os_res); if (data->initrd_res) release_sdram_region(data->initrd_res); So if the dryrun argument was given, the complete err_out path is taken and lead to releasing all regions. But I can do it if needed. Thanks again for testing a

Re: [PATCH] kvx: do not include empty

2020-05-15 Thread Clément Leger
- On 15 May, 2020, at 17:22, Masahiro Yamada masahi...@kernel.org wrote: > is per-board config file, which is only allowed for old > boards. > > For new boards, the top Makefile creates an empty include/config.h > > kvx does not have config.h, so #include is useless. > > Also, remove

Re: [PATCH v4 0/7] elf: add better bootm support

2020-05-10 Thread Clément Leger
ted to net boot or not (although I don't know what are the underlying differences). Thanks, Clément > > On Sat, May 09, 2020 at 09:24:55PM +0200, Clément Leger wrote: >> Hi Oleksij, >> >> - On 9 May, 2020, at 18:51, Oleksij Rempel o.rem...@pengutronix.de wrote: >

Re: [PATCH v4 0/7] elf: add better bootm support

2020-05-09 Thread Clément Leger
Hi Oleksij, - On 9 May, 2020, at 18:51, Oleksij Rempel o.rem...@pengutronix.de wrote: > On Sat, May 09, 2020 at 04:51:42PM +0200, Oleksij Rempel wrote: >> Hi Clement, >> >> suddenly it is still exploding. I'll try to investigate the reason. > > common/elf.c: > load_elf_image_phdr() >

Re: [PATCH v3 0/7] elf: add better bootm support

2020-04-29 Thread Clément Leger
Hi Oleksij, - On 29 Apr, 2020, at 10:34, Oleksij Rempel o.rem...@pengutronix.de wrote: > Hi Clement, > > i tested you patches on my MIPS board. I get following ooops: > === > barebox@DPTechnics DPT-Module:/ iomem >

Re: [PATCH v2 4/6] common: elf: add elf_open and elf_close

2020-04-28 Thread Clément Leger
Hi Sascha, - On 28 Apr, 2020, at 08:39, Sascha Hauer s.ha...@pengutronix.de wrote: > On Thu, Apr 23, 2020 at 10:17:09AM +0200, Clement Leger wrote: >> When loading an elf file from a mtd device, this allows to parse the >> header and load only the needed data according to the elf size.

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

2020-04-23 Thread Clément Leger
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 > > Just FYI. On MIPS barebox I use out-of-tree kexec-based ELF loader. > > This efforts started in 2012 (sic!): >

Re: [PATCH v2 6/6] mips: lib: bootm: use new data->elf member

2020-04-23 Thread Clément Leger
Hi, - On 23 Apr, 2020, at 10:17, Clément Leger cle...@kalray.eu wrote: > Now that the elf file is loaded by the bootm core, use this field > directly instead of manually loading the elf file. > > Signed-off-by: Clement Leger > --- > arch/mips/lib/bootm.c | 13 ++--

Re: [PATCH 5/6] common: bootm: add support for elf file loading

2020-04-23 Thread Clément Leger
- On 22 Apr, 2020, at 13:21, Clément Leger cle...@kalray.eu wrote: > This will allows elf loader to directly have an elf file available. Thus > filetype_elf bootm handlers will be able to use this elf file directly. > > Signed-off-by: Clement Leger > --- > co

Re: [PATCH v2 0/6] Add support for Kalray VLIW family (kvx)

2020-04-15 Thread Clément Leger
] https://github.com/kalray/build-scripts/releases - On 15 Apr, 2020, at 09:03, Clément Leger cle...@kalrayinc.com wrote: > Hi Sascha, > > Since we did a massive renaming to change from k1->kvx, the tools have not > yet been pushed on github (we only push releases yet). We will u

Re: [PATCH v2 0/6] Add support for Kalray VLIW family (kvx)

2020-04-15 Thread Clément Leger
Hi Sascha, Since we did a massive renaming to change from k1->kvx, the tools have not yet been pushed on github (we only push releases yet). We will update it soon and I will keep you updated. Sorry for the doc, I forgot to addressed Ahmad comment. I will do it. Thanks, Clément - On 15

Re: [PATCH 1/2] of: base: parse all available memory nodes

2020-03-23 Thread Clément Leger
Hi Sascha, - On 23 Mar, 2020, at 11:12, Sascha Hauer s.ha...@pengutronix.de wrote: > On Mon, Mar 16, 2020 at 12:00:07PM +0100, Clement Leger wrote: >> Currently, barebox only parse one memory node which is either the >> "/memory" node or the first node with device_type == "memory". >>

Re: [PATCH 0/2] Allow parsing more than one memory node

2020-03-17 Thread Clément Leger
Hi Sam, - On 17 Mar, 2020, at 08:35, Sam Ravnborg s...@ravnborg.org wrote: > Hi Clement. > > On Mon, Mar 16, 2020 at 12:00:06PM +0100, Clement Leger wrote: >> Currently, barebox can only parse one memory node. This means that >> all other memory nodes (with device_type == "memory") will be

Re: [PATCH 5/5] watchdog: k1c: Add k1c watchdog support

2020-01-20 Thread Clément Leger
Hi Ahmad, - On 20 Jan, 2020, at 16:10, Ahmad Fatoum a.fat...@pengutronix.de wrote: > On 1/15/20 11:26 AM, Clement Leger wrote: >> Add a watchdog for k1c architecture based on core watchdog. >> >> Signed-off-by: Clement Leger >> --- >> arch/k1c/configs/generic_defconfig | 3 + >>

Re: [PATCH 1/5] k1c: Initial Kalray Coolidge (k1c) architecture support

2020-01-16 Thread Clément Leger
- On 16 Jan, 2020, at 14:11, Sascha Hauer s.ha...@pengutronix.de wrote: > On Thu, Jan 16, 2020 at 01:24:41PM +0100, Clément Leger wrote: >> >> - On 16 Jan, 2020, at 11:55, Sascha Hauer s.ha...@pengutronix.de wrote: >> >> > On Thu, Jan 16, 2020 at 11:49:3

Re: [PATCH 1/5] k1c: Initial Kalray Coolidge (k1c) architecture support

2020-01-16 Thread Clément Leger
- On 16 Jan, 2020, at 11:55, Sascha Hauer s.ha...@pengutronix.de wrote: > On Thu, Jan 16, 2020 at 11:49:31AM +0100, Clément Leger wrote: >> Hi Sasha >> >> - On 16 Jan, 2020, at 10:26, Sascha Hauer s.ha...@pengutronix.de wrote: >> >> > On Wed, Jan 1

Re: [PATCH 1/5] k1c: Initial Kalray Coolidge (k1c) architecture support

2020-01-16 Thread Clément Leger
Hi Sasha - On 16 Jan, 2020, at 10:26, Sascha Hauer s.ha...@pengutronix.de wrote: > On Wed, Jan 15, 2020 at 11:26:46AM +0100, Clement Leger wrote: >> +config MALLOC_BASE >> +hex >> +default 0x1 >> + >> +config MALLOC_SIZE >> +hex >> +default 0x80 >> +prompt

Re: [PATCH 0/5] Add support for Kalray k1c core

2020-01-16 Thread Clément Leger
Hi Roland, - On 16 Jan, 2020, at 10:49, Roland Hieber r...@pengutronix.de wrote: > On Wed, Jan 15, 2020 at 11:26:45AM +0100, Clement Leger wrote: >> Kalray k1c core is embedded in Kalray Coolidge SoC. This core has the >> following features: >> - 32/64 bits >> - 6-issue VLIW architecture

Re: [PATCH 0/5] Add support for Kalray k1c core

2020-01-16 Thread Clément Leger
- On 16 Jan, 2020, at 10:22, Sascha Hauer s.ha...@pengutronix.de wrote: > On Thu, Jan 16, 2020 at 09:53:41AM +0100, Clément Leger wrote: >> Hi Sasha >> >> - On 16 Jan, 2020, at 09:25, Sascha Hauer s.ha...@pengutronix.de wrote: >> >> > Hi Clement, &

Re: [PATCH 0/5] Add support for Kalray k1c core

2020-01-16 Thread Clément Leger
Hi Sasha - On 16 Jan, 2020, at 09:25, Sascha Hauer s.ha...@pengutronix.de wrote: > Hi Clement, > > On Wed, Jan 15, 2020 at 11:26:45AM +0100, Clement Leger wrote: >> Kalray k1c core is embedded in Kalray Coolidge SoC. This core has the >> following features: >> - 32/64 bits >> - 6-issue

Re: [PATCH v3] elf: add 64 bits elf loading support

2019-09-02 Thread Clément Leger
Hi Oleksij, Thanks for testing, since I only tested on arm, it explain this problem :) I will try to search for all elf->entry usage and fix that according to architectures. Thanks, Clément - On 2 Sep, 2019, at 08:07, Oleksij Rempel o.rem...@pengutronix.de wrote: > Hi Clement, > > thank

Re: [PATCH] elf: add 64 bits elf support

2019-03-27 Thread Clément Leger
Hi Sascha, I will try to compile it in 32bits also (only tried 64bits). I'm guessing it will spit out some warning about type sizes when casting so I will resend a V3. Thanks, Clément - Mail original - De: "Sascha Hauer" À: "Clément Leger" Cc: "Barebox List&q

Re: [PATCH] elf: add 64 bits elf support

2019-03-20 Thread Clément Leger
>class == ELFCLASS32) + return sizeof(Elf32_Phdr); + else + return sizeof(Elf64_Phdr); +} + #endif /* _LINUX_ELF_H */ -- 2.15.0.276.g89ea799 > Hi Sascha, > >> Hi Clément, >> >> On Mon, Mar 18, 2019 at 08:16:47PM +0100, Clément Leger

Re: [PATCH] elf: add 64 bits elf support

2019-03-20 Thread Clément Leger
Hi Sascha, > Hi Clément, > > On Mon, Mar 18, 2019 at 08:16:47PM +0100, Clément Leger wrote: >> This patch add elf64 loading support to the elf loader. Since >> elf32 and elf64 uses completely different types, to avoid copying all >> the code and simply replace elf32 wi

[PATCH] elf: add 64 bits elf support

2019-03-18 Thread Clément Leger
This patch add elf64 loading support to the elf loader. Since elf32 and elf64 uses completely different types, to avoid copying all the code and simply replace elf32 with elf64, use a macro which will return the appropriate field for each type of header. This macro generates getter for elf

[PATCH] Display barebox instead of kernel in build message

2018-10-31 Thread Clément Leger
Build script are coming from the kernel and as such, refers to the sources as "kernel". For the sake of correctness, display "barebox" instead. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70d501ba5..db474af50 100644 --- a/Makefile +++

[PATCH] phy: call adjust_link in attach if using fixed-link

2018-10-15 Thread Clément Leger
Normally, phy_update_status is in charge of reporting a change in link status when phy is updated. When using fixed-link, speed and duplex are initialized directly after registering the phy and there is no driver. Hence when phy_update_status is called, the check for new values fails and returns

[PATCH] ratp: select CMDLINE_EDITING

2018-09-24 Thread Clément Leger
ratp seems to send special characters which are not handle correctly without CDMLINE_EDITING. Without this config, commands run via ratp will have an erratic behavior and/or incorrect output. --- common/ratp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/ratp/Kconfig

[PATCH] Bootm: remove uimage_close done later in bootm_boot

2017-12-14 Thread Clément Leger
>From 24e24f9998342b23cd8de4145c8098f93c60cdc7 Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Thu, 14 Dec 2017 13:29:50 +0100 Subject: [PATCH] Bootm: fix double uimage_close When uimage crc fails, the error handling path call uimage_close in bootm_open_os_uimage and

Re: [PATCH] Net: add mdio_i2c driver.

2017-11-17 Thread Clément Leger
Ok, I will do that, thanks for the review ! Clément - Mail original - De: "Sascha Hauer" <s.ha...@pengutronix.de> À: "Clément Leger" <cle...@kalray.eu> Cc: "Barebox List" <barebox@lists.infradead.org> Envoyé: Vendredi 17 Novembre 2017 10:3

Re: [PATCH] Net: add mdio_i2c driver.

2017-11-17 Thread Clément Leger
- Mail original - > De: "Sascha Hauer" <s.ha...@pengutronix.de> > À: "Clément Leger" <cle...@kalray.eu> > Cc: "Barebox List" <barebox@lists.infradead.org> > Envoyé: Vendredi 17 Novembre 2017 10:06:58 > Objet: Re: [PATCH]

Re: [PATCH] Net: add mdio_i2c driver.

2017-11-17 Thread Clément Leger
Clément - Mail original - De: "Sascha Hauer" <s.ha...@pengutronix.de> À: "Clément Leger" <cle...@kalray.eu> Cc: "Barebox List" <barebox@lists.infradead.org> Envoyé: Vendredi 17 Novembre 2017 09:33:40 Objet: Re: [PATCH] Net: add mdio

[PATCH] Net: add mdio_i2c driver.

2017-11-14 Thread Clément Leger
From 1238b5c70d29762074bc71ac25623b958af9010a Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Wed, 8 Nov 2017 09:13:10 +0100 Subject: [PATCH] Net: add mdio_i2c driver (i2c to mdio bridge). Some phys (Marvells) can be connected using and i2c bus instead of a mdio bus.

[PATCH] Marvell: implement marvell_of_reg_init

2017-10-10 Thread Clément Leger
>From ed1cbcd05d5efeb4012d77a9a4ab9c1da0449bdc Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Tue, 10 Oct 2017 14:29:49 +0200 Subject: [PATCH] Marvell: implement marvell_of_reg_init Implement marvell_of_reg_init in order to use marvell,reg-init property from

[PATCH] Phy: Check NULL bus case and undetected phy via of

2017-09-05 Thread Clément Leger
>From 5e87dc2c24051c2cd2985e513c5a825d51d9bb00 Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Tue, 5 Sep 2017 10:37:23 +0200 Subject: [PATCH] Phy: Check NULL bus case and undetected phy via of phy_device_connect can be called with NULL miibus for automatic match with

Re: [PATCH 1/1] TFTP: Add support for custom server and port

2017-08-22 Thread Clément Leger
De: "Oleksij Rempel" <li...@rempel-privat.de> > À: "Clément Leger" <cle...@kalray.eu>, barebox@lists.infradead.org > Envoyé: Mardi 22 Août 2017 06:49:28 > Objet: Re: [PATCH 1/1] TFTP: Add support for custom server and port > Am 21.

[PATCH 1/1] TFTP: Add support for custom server and port

2017-08-21 Thread Clément Leger
>From de97046a780acf75263f932b34b32eb33a9d6eea Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Mon, 21 Aug 2017 18:08:01 +0200 Subject: [PATCH] TFTP: Add support for custom server and port This patch add argument to the tftp command which allow to specify a custom