[PATCH 2/2] librem5: Add addresses for compressed kernel load

2023-10-27 Thread Arnaud Ferraris
The "booti" command to load arm64 Linux kernels supports automatic decompression of zipped kernel images, but relies on some environment variables to point to usable buffer RAM. Add those variables and let them point to some default values, that should cover most use-cases. Signed-off-

[PATCH 1/2] librem5: properly set the `fdtfile` env variable

2023-10-27 Thread Arnaud Ferraris
In order to use the generic "distro boot" using an extlinux.conf file, the `fdtfile` environment variable is mandatory. This commit ensure this variable is properly constructed based on the detected board revision. Signed-off-by: Arnaud Ferraris --- board/purism/librem5/libr

[PATCH 0/2] librem5: allow using distroboot w/ extlinux files

2023-10-27 Thread Arnaud Ferraris
eries ensures those environment variables are defined and have usable values with regard to the board revision. Arnaud Ferraris (2): librem5: properly set the `fdtfile` env variable librem5: Add addresses for compressed kernel load board/purism/librem5/librem5.c

[PATCH] imx8mq_pins: fix configuration for UART4 on ECSPI2 pads

2022-12-15 Thread Arnaud Ferraris
When routing UART4 using the ECSPI2 pads, register IOMUXC_UART4_RXD_SELECT_INPUT (offset 0x050C) should be changed only when dealing with RX, as its name suggests. Signed-off-by: Arnaud Ferraris --- arch/arm/include/asm/arch-imx8m/imx8mq_pins.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] rockchip: Add initial support for the PinePhone Pro

2021-11-30 Thread Arnaud Ferraris
Hi Martijn, Thanks for this patch! It looks good overall, but I have a few minor comments regarding the defconfig, see below. Le 21/10/2021 à 19:18, Martijn Braam a écrit : > This is a new device by PINE64 that's very similar to the Pinebook Pro > that's already supported. > > Specification: > -

[PATCH v2 2/2] pinephone_defconfig: add support for early-boot status LED

2021-09-08 Thread Arnaud Ferraris
This commit enables the green status LED (PD18/GPIO 114) on boot in the SPL, in order to provide visual feedback that the PinePhone is booting. Signed-off-by: Arnaud Ferraris Reviewed-by: Andre Przywara --- Changes in v2: - add a Reviewed-by record configs/pinephone_defconfig | 6 ++ 1

[PATCH v2 1/2] board: sunxi: enable status LED early

2021-09-08 Thread Arnaud Ferraris
patch initializes the status LED (if configured) in the SPL. Signed-off-by: Arnaud Ferraris --- Changes in v2: - limit the amount of #ifdef's in board.c board/sunxi/board.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 1a461

[PATCH v2 0/2] PinePhone: enable LED on boot for improved

2021-09-08 Thread Arnaud Ferraris
ise it can be several seconds before the kernel is loaded and able to show a sign of life). Best regards, Arnaud -- Changes in v2: - limit the amount of #ifdef's in board.c - add a Reviewed-by record Arnaud Ferraris (2): board: sunxi: enable status LED early pinephone_defconf

Re: [PATCH 1/2] board: sunxi: enable status LED early

2021-09-07 Thread Arnaud Ferraris
Hi André, Thanks for your feedback! Le 07/09/2021 à 01:46, Andre Przywara a écrit : > On Mon, 6 Sep 2021 22:57:52 +0200 > Arnaud Ferraris wrote: > > Hi Arnaud, > >> diff --git a/board/sunxi/board.c b/board/sunxi/board.c >> index 1a46100e40..6e0bf5fbf9 100644 &

[PATCH] configs: add PineTab defconfig

2021-09-06 Thread Arnaud Ferraris
The PineTab device-tree is already in u-boot, this commit adds the corresponding defconfig, based on pinephone_defconfig. Signed-off-by: Arnaud Ferraris --- board/sunxi/MAINTAINERS | 5 + configs/pinetab_defconfig | 10 ++ 2 files changed, 15 insertions(+) create mode 100644

[PATCH 2/2] pinephone_defconfig: add support for early-boot status LED

2021-09-06 Thread Arnaud Ferraris
From: Arnaud Ferraris This commit enables the green status LED (PD18/GPIO 114) on boot in the SPL, in order to provide visual feedback that the PinePhone is booting. Signed-off-by: Arnaud Ferraris --- configs/pinephone_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH] PinePhone: enable LED on boot for improved visual feedback

2021-09-06 Thread Arnaud Ferraris
Hi, As the PinePhone doesn't provide any visual feedback when booting, these patches take advantage of the built-in RGB LED to indicate the device is indeed powered on. I've been carrying those downstream in Mobian for some time now, allowing users to see their phone is booting (otherwise it can

[PATCH 1/2] board: sunxi: enable status LED early

2021-09-06 Thread Arnaud Ferraris
patch initializes the status LED (if configured) in the SPL. Signed-off-by: Arnaud Ferraris --- board/sunxi/board.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 1a46100e40..6e0bf5fbf9 100644 --- a/board/sunxi/board.c +++ b/board/sunxi

Re: [PATCH] sunxi-common: support loading compressed kernel images on ARMv8

2021-06-03 Thread Arnaud Ferraris
Hi Andre, Le 17/04/2021 à 20:23, Andre Przywara a écrit : > On Sat, 17 Apr 2021 12:47:23 -0500 > Samuel Holland wrote: > > Hi Samuel, > >> On 3/31/21 10:39 AM, Andre Przywara wrote: >>> On 20/02/2021 12:14, Nicolas Boulenguez wrote: >>> >>&

Re: [PATCH] configs: add PineTab defconfig

2021-03-13 Thread Arnaud Ferraris
Hi, Le 08/03/2021 à 01:12, Andre Przywara a écrit : > On Sun, 7 Mar 2021 13:53:56 +0100 > Nicolas Boulenguez wrote: > > Hi, > >> From: Arnaud Ferraris >> >> The PineTab device-tree is already in u-boot, this commit adds the >> corresponding >

Re: [PATCH 2/4] pinephone_defconfig: reduce boot delay

2021-03-13 Thread Arnaud Ferraris
Hi Maxime, Le 25/02/2021 à 21:58, Maxime Ripard a écrit : > On Thu, Feb 25, 2021 at 05:02:40PM +, André Przywara wrote: >> On 20/02/2021 12:14, Nicolas Boulenguez wrote: >>> From: Arnaud Ferraris >>> >>> On a cellular phone, the vast majority of users c

Re: [PATCH] board: sunxi: enable status LED in SPL

2020-05-06 Thread Arnaud Ferraris
Hi Jagan, Le 01/05/2020 à 18:43, Jagan Teki a écrit : > On Wed, Apr 22, 2020 at 4:07 PM Arnaud Ferraris > wrote: >> >> For some systems, such as the PinePhone, there is no way for the end >> user to make sure the system is indeed booting before the boot script is >>

[PATCH v2 2/2] drivers: usb: musb: ti: Use dev_err instead of pr_err

2020-05-06 Thread Arnaud Ferraris
In order to maintain consistency, every call to pr_err() is replaced with dev_err(). Signed-off-by: Arnaud Ferraris --- Changes in v2: - added in v2 drivers/usb/musb-new/ti-musb.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/musb-new/ti

[PATCH v2 1/2] drivers: usb: musb: Fail if the ctrl mod register is missing

2020-05-06 Thread Arnaud Ferraris
From: Sjoerd Simons If the trcl mode register address cannot be found error out rather then trying to continue (which cannot work) Signed-off-by: Sjoerd Simons Signed-off-by: Adrian Ratiu Signed-off-by: Arnaud Ferraris --- Changes in v2: - squashed commits as they both affect the same code

Re: [PATCH 2/2] drivers: usb: musb: Fix comparison between pointer and integer warn

2020-04-22 Thread Arnaud Ferraris
Le 22/04/2020 à 12:53, Marek Vasut a écrit : > On 4/22/20 12:50 PM, Arnaud Ferraris wrote: >> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c >> index 4e88652433..0c124a2c5e 100644 >> --- a/drivers/usb/musb-new/ti-musb.c >> +++ b/dri

[PATCH] configs: add support for stm32mp157c-dk2 board

2020-04-22 Thread Arnaud Ferraris
This config is based on stm32mp15_basic_defconfig and adds the necessary options to be able to boot a STM32MP157C-DK2 dev board. Signed-off-by: Arnaud Ferraris --- configs/stm32mp157c-dk2_defconfig | 131 ++ 1 file changed, 131 insertions(+) create mode 100644

[PATCH 1/2] drivers: usb: musb: Fail if the ctrl mod register is missing

2020-04-22 Thread Arnaud Ferraris
From: Sjoerd Simons If the trcl mode register address cannot be found error out rather then trying to continue (which cannot work) Signed-off-by: Sjoerd Simons Signed-off-by: Arnaud Ferraris --- drivers/usb/musb-new/ti-musb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers

[PATCH 2/2] drivers: usb: musb: Fix comparison between pointer and integer warn

2020-04-22 Thread Arnaud Ferraris
From: Adrian Ratiu drivers/usb/musb-new/ti-musb.c: In function 'ti_musb_ofdata_to_platdata': drivers/usb/musb-new/ti-musb.c:93:30: warning: comparison between pointer and integer if (platdata->ctrl_mod_base == FDT_ADDR_T_NONE) {} Signed-off-by: Adrian Ratiu Signed-o

[PATCH 1/2] bootcount: add bootcount flash driver

2020-04-22 Thread Arnaud Ferraris
later on when adding redundancy support - a `data` field, which can be used to store and pass user data between u-boot and the OS (e.g boot partition selection) Signed-off-by: Arnaud Ferraris --- drivers/bootcount/Kconfig | 14 ++ drivers/bootcount/Makefile | 1

[PATCH 2/2] bootcount_flash: add redundancy support

2020-04-22 Thread Arnaud Ferraris
is saved. In case the primary bootcount is corrupted, the backup sector will be used to restore it to its previous state. Signed-off-by: Arnaud Ferraris --- drivers/bootcount/Kconfig | 7 + drivers/bootcount/bootcount_flash.c | 47 + 2 files changed, 54

[PATCH] fs: ext4: skip journal state if fs has metadata_csum

2020-04-22 Thread Arnaud Ferraris
nsures the superblock won't be corrupted if the filesystem has metadata_csum feature enabled. Signed-off-by: Arnaud Ferraris --- fs/ext4/ext4_journal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c index 3559daf11d..f8524e5a99 10064

[PATCH] board: sunxi: enable status LED in SPL

2020-04-22 Thread Arnaud Ferraris
patch initializes the status LED (if configured) in the SPL. Signed-off-by: Arnaud Ferraris --- board/sunxi/board.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 6afea6ef42..e0424a56ba 100644 --- a/board/sunxi/board.c +++ b/board/sunxi