Re: [PATCH] usb: dwc2: Add in version 4xx compatibility

2024-04-23 Thread Mattijs Korpershoek
Hi Greg, On ven., avril 19, 2024 at 15:21, Greg Malysa wrote: > Hi Mattijs, > >> Please avoid top-posting when replying, it makes following the >> discussion more difficult: >> https://www.kernel.org/doc/html/latest/process/submitting-patches.html#use-trimmed-interleaved-replies-in-email-discuss

Re: [PATCH v3] usb: cdns3: gadget.c: Set fast access bit

2024-04-24 Thread Mattijs Korpershoek
>gadget, 1); >> @@ -2383,6 +2386,7 @@ static int cdns3_gadget_udc_stop(struct usb_gadget >> *gadget) >> >> /* disable interrupt for device */ >> writel(0, &priv_dev->regs->usb_ien); >> +writel(0, &priv_dev->regs->usb_pwr); >> writel(USB_CONF_DEVDS, &priv_dev->regs->usb_conf); >> >> return ret; >> >> base-commit: bc39e06778168a34bb4e0a34fbee4edbde4414d8 > > Since this is gadget stuff, +CC Mattijs , that should go through their tree. > > Thanks! Thank you Marek for CC'ing me, I missed this patch. Reviewed-by: Mattijs Korpershoek

Re: [PATCH v3] usb: cdns3: gadget.c: Set fast access bit

2024-04-25 Thread Mattijs Korpershoek
Hi, On Wed, 24 Apr 2024 13:09:11 +0530, Ravi Gunasekaran wrote: > When the device port is in a low power state [U3/L2/Not Connected], > accesses to usb device registers may take a long time. This could lead to > potential core hang when the controller registers are accessed after the > port is dis

Re: [PATCH 2/5] usb: dwc3: select DM_USB_GADGET

2024-02-01 Thread Mattijs Korpershoek
Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- > drivers/usb/dwc3/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig > index c0c8c16fd9c2..8a70bc682322 100644 > --- a/drivers/usb/dwc3/Kconfig > +++ b/dr

Re: [PATCH 3/5] usb: gadget: CDC ACM: call usb_gadget_initialize

2024-02-01 Thread Mattijs Korpershoek
; Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- > drivers/usb/gadget/f_acm.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c > index de42e0189e8d..ba216128ab27 100644 > ---

Re: [PATCH 4/5] usb: gadget: UMS: support multiple sector sizes

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > UFS storage often uses a 4096-byte sector size, add support for dynamic > sector sizes based loosely on the Linux implementation. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs

Re: [PATCH 5/5] iommu: qcom-smmu: fix debugging

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > The priv struct was wrong in dump_boot_mappings(). Causing errors when > compiling with -DDEBUG. Fix this. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- &

Re: [PATCH] lib: sparse: Fix error checking for write_sparse_chunk_raw

2024-02-02 Thread Mattijs Korpershoek
> > Fixes: 62649165cb0 ("lib: sparse: Make CHUNK_TYPE_RAW buffer aligned") > Reported-by: Dan Carpenter > Link: > https://lore.kernel.org/u-boot/1b323ec3-59b0-490b-a2f0-fd961dafcf49@moroto.mountain/ > Signed-off-by: Sean Anderson Reviewed-by: Mattijs Korpershoek > ---

Re: [PATCH 1/5] usb: dwc3-generic: implement Qualcomm wrapper

2024-02-02 Thread Mattijs Korpershoek
Hi Caleb, On Thu, Feb 01, 2024 at 14:24, Caleb Connolly wrote: > On 01/02/2024 09:34, Mattijs Korpershoek wrote: >> Hi Caleb, >> >> Thank you for the patch. >> >> On mer., janv. 31, 2024 at 14:57, Caleb Connolly >> wrote: >> >>> The Q

Re: [PATCH] lib: sparse: Fix error checking for write_sparse_chunk_raw

2024-02-06 Thread Mattijs Korpershoek
Hi, On Thu, 01 Feb 2024 13:18:51 -0500, Sean Anderson wrote: > The return value of write_sparse_chunk_raw is unsigned, so the existing > check has no effect. Use IS_ERR_VALUE to detect error instead, which is > what write_sparse_chunk_raw does itself. > > Thanks, Applied to https://source.denx.

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-02-08 Thread Mattijs Korpershoek
Hi Sjoerd, Thank you for the patch. On ven., janv. 12, 2024 at 09:52, Sjoerd Simons wrote: > Enable USB host as well as USB gadget and DFU support for a53; For the > r5 due to the smaller available size create a config fragment for DFU > supports which disables support for persistent storage to

Re: [PATCH v1 1/7] common: avb_verify: don't call mmc_switch_part for SD

2024-02-08 Thread Mattijs Korpershoek
-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek > --- > > common/avb_verify.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/common/avb_verify.c b/common/avb_verify.c > index 48ba8db51e5..59f2c25e0de 100644 > --- a/common/avb_ver

Re: [PATCH v1 2/7] avb: move SPDX license itdentifiers to the first line

2024-02-08 Thread Mattijs Korpershoek
nd line. > > [1] https://www.kernel.org/doc/Documentation/process/license-rules.rst > > Signed-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek Nitpick in the title: itdentifiers -> identifiers. If no other remarks in the series, will fix when applying. > --- &

Re: [PATCH v1 3/7] common: avb_verify: rework error/debug prints

2024-02-08 Thread Mattijs Korpershoek
-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek > --- > > common/avb_verify.c | 31 ++- > 1 file changed, 18 insertions(+), 13 deletions(-) > > diff --git a/common/avb_verify.c b/common/avb_verify.c > index 938a5383b5d..ed58239cf8a 100644

Re: [PATCH v1 4/7] cmd: avb: rework prints

2024-02-08 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On mar., févr. 06, 2024 at 23:31, Igor Opaniuk wrote: > From: Igor Opaniuk > > Introduce AVB_OPS_CHECK macro for checking AvbOps before using > it to avoid code duplication. > Simplify and add more context for prints where it's needed. > > Signed-off-by: Igor

Re: [PATCH v1 5/7] common: avb_verify: add str_avb_io_error/str_avb_slot_error

2024-02-08 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On mar., févr. 06, 2024 at 23:31, Igor Opaniuk wrote: > From: Igor Opaniuk > > Introduce str_avb_io_error() and str_avb_slot_error() functions, > that provide a pointer to AVB runtime error message. > > Signed-off-by: Igor Opaniuk Re

Re: [PATCH v1 7/7] doc: android: avb: add slot_suffix param details

2024-02-08 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On mar., févr. 06, 2024 at 23:31, Igor Opaniuk wrote: > From: Igor Opaniuk > > Add info about slot_suffix param for avb verify. > > Signed-off-by: Igor Opaniuk > --- > > doc/android/avb2.rst | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) >

[PATCH] configs: khadas-vim3*_android: fix AVB oom error

2024-02-09 Thread Mattijs Korpershoek
36e9f8 ("Convert CONFIG_SYS_MALLOC_LEN to Kconfig") Add it back to fix AVB verification on VIM3/VIM3L. Fixes: 7cfbba36e9f8 ("Convert CONFIG_SYS_MALLOC_LEN to Kconfig") Co-developed-by: Guillaume La Roque Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- configs/k

Re: [PATCH v1 6/7] cmd: avb: rework do_avb_verify_part

2024-02-09 Thread Mattijs Korpershoek
setting correct > androidboot.verifiedbootstate kernel cmdline parameter. > > Signed-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek Nitpick: the error handling migration could have been part of PATCH 5/7 but it's fine to keep as is. > --- > > cmd/avb.c | 50 +-

Re: [AVB/AB] Overhaul plans

2024-02-09 Thread Mattijs Korpershoek
Hi Igor, On ven., févr. 09, 2024 at 11:14, Igor Opaniuk wrote: > Hi everyone, > > I'm currently planning a big overhaul of the current implementation of > AVB/AB in U-Boot during the 2024 year, which I have barely touched since > 2019. I used to believe that it was stillborn, but looks like it's

[GIT PULL] Please pull u-boot-dfu-20240209

2024-02-09 Thread Mattijs Korpershoek
additions (AVB, AB) of myself to the MAINTAINERS file Mattijs Korpershoek (2): MAINTAINERS: add Mattijs for Android AB MAINTAINERS: add Mattijs for Android AVB Sean Anderson (1): lib: sparse: Fix error checking for

Re: [PATCH v2 1/7] common: avb_verify: don't call mmc_switch_part for SD

2024-02-13 Thread Mattijs Korpershoek
Hi Igor, On lun., févr. 12, 2024 at 09:05, Igor Opaniuk wrote: > Hi Dan, > > On Mon, Feb 12, 2024 at 8:05 AM Dan Carpenter > wrote: >> >> On Fri, Feb 09, 2024 at 08:20:39PM +0100, Igor Opaniuk wrote: >> > From: Igor Opaniuk >> > >> > mmc_switch_part() is used for switching between hw partitio

Re: [PATCH v2 4/7] cmd: avb: rework prints

2024-02-13 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On ven., févr. 09, 2024 at 20:20, Igor Opaniuk wrote: > From: Igor Opaniuk > > Simplify and add more context for prints where it's needed. > > Signed-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek > --- > > Changes

Re: [PATCH v2 7/7] doc: android: avb: sync usage details

2024-02-13 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On ven., févr. 09, 2024 at 20:20, Igor Opaniuk wrote: > From: Igor Opaniuk > > Sync usage info with the one cmd/avb.c. > > Signed-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek > --- > > Changes in v2: > - Address Matti

Re: [RESEND PATCH v1] MAINTAINERS: add custodian tree info for AVB/AB

2024-02-13 Thread Mattijs Korpershoek
Hi Igor, Thank you for the patch. On mar., févr. 13, 2024 at 08:36, Igor Opaniuk wrote: > From: Igor Opaniuk > > Add information about a custodian tree [1] for AVB/AB, which is > maintained by Mattijs Korpershoek. > > [1] https://source.denx.de/u-boot/custodians/u-boot-d

Re: [PATCH v1] MAINTAINERS: add custodian tree info for AV/AVB

2024-02-13 Thread Mattijs Korpershoek
Hi Marek, Thank you for your review. On mar., févr. 13, 2024 at 12:55, Marek Vasut wrote: > On 2/13/24 08:32, Igor Opaniuk wrote: >> From: Igor Opaniuk >> >> Add information about a custodian tree [1] for AVB/AB, which is >> maintained by Mattijs Ko

Re: [PATCH v2 1/7] common: avb_verify: don't call mmc_switch_part for SD

2024-02-13 Thread Mattijs Korpershoek
Hi Igor, On mar., févr. 13, 2024 at 12:19, Igor Opaniuk wrote: > Hi Mattijs, > > On Tue, Feb 13, 2024 at 9:13 AM Mattijs Korpershoek > wrote: >> >> Hi Igor, >> >> On lun., févr. 12, 2024 at 09:05, Igor Opaniuk >> wrote: >> >> > Hi Dan

Re: [RESEND PATCH v1] MAINTAINERS: add custodian tree info for AVB/AB

2024-02-13 Thread Mattijs Korpershoek
Hi, On Tue, 13 Feb 2024 08:36:38 +0100, Igor Opaniuk wrote: > Add information about a custodian tree [1] for AVB/AB, which is > maintained by Mattijs Korpershoek. > > [1] https://source.denx.de/u-boot/custodians/u-boot-dfu > > Thanks, Applied to https://source.denx.de/u-boot

Re: [PATCH v2 0/7] AVB: cosmetic adjustments/improvements

2024-02-13 Thread Mattijs Korpershoek
Hi, On Fri, 09 Feb 2024 20:20:38 +0100, Igor Opaniuk wrote: > This is the first patch series for incoming major > improvements for AVB implementation, that include: > - Simplify and add more context for debug/error prints where it's needed. > - Move SPDX license identifiers to the first line, so i

Re: [AVB/AB] Overhaul plans

2024-02-14 Thread Mattijs Korpershoek
Hi Igor, On Fri, Feb 09, 2024 at 17:17, Igor Opaniuk wrote: > Hello Mattijs, > > On Fri, Feb 9, 2024 at 11:30 AM Mattijs Korpershoek > wrote: >> >> Hi Igor, >> >> On ven., févr. 09, 2024 at 11:14, Igor Opaniuk >> wrote: >> >> > Hi eve

Re: [RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-02-15 Thread Mattijs Korpershoek
Hi Alexey, Thank you for the patch. On jeu., févr. 01, 2024 at 12:20, Alexey Romanov wrote: > Currently, fastboot protocol in U-Boot has no opportunity > to execute vendor custom code with verifed boot. This patch > introduce new fastboot subcommand fastboot oem board:, > which allow to run cu

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-15 Thread Mattijs Korpershoek
On jeu., févr. 01, 2024 at 12:20, Alexey Romanov wrote: > An example of how we use fastboot oeam board subcommand > for Sean Anderson. > > 1 - OEM_BOARD_WRITE_BOOTLOADER_CMD: > > We use it for custom Amlogic bootloader + tpl > flashing protocol. > > 2 - OEM_BOARD_ERASE_CMD: > > Custom logic for

Re: [PATCH v1 3/5] cmd: optee_rpmb: build cmd for sandbox

2024-02-15 Thread Mattijs Korpershoek
11 bytes > => optee_rpmb read_pvalue test_variable 11 > Read 11 bytes, value = test_value > > Signed-off-by: Igor Opaniuk Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek # on sandbox > --- > > cmd/Kconfig | 4 +++- > 1 file changed, 3 insertions(+), 1 del

[GIT PULL] Please pull u-boot-dfu-20240215

2024-02-15 Thread Mattijs Korpershoek
Hi Tom, Here are some developments for master including: - Fix avb_verify command with SD cards - Add u-boot-dfu maintainer tree for AB/AVB - Avb: report verified boot state based on lock state - Misc avb refactors improve code quality The CI job is at https://source.denx.de/u-boot/custodians/u

Re: [PATCH] usb: dwc3-generic: Fix build errors when USB_DWC3_GADGET is disabled

2024-03-01 Thread Mattijs Korpershoek
Hi Jonas, thank you for the patch. On lun., févr. 26, 2024 at 13:36, Jonas Karlman wrote: > On 2024-02-26 11:18, Marek Vasut wrote: >> On 2/26/24 10:50 AM, Jonas Karlman wrote: >>> On 2024-02-26 09:22, Marek Vasut wrote: On 2/26/24 8:54 AM, Jonas Karlman wrote: > On 2024-02-26 02:47, To

[PATCH 0/6] VIM3: misc cleanups to prepare android support

2021-07-29 Thread Mattijs Korpershoek
Android. [1] https://source.android.com/setup/build/devices#vim3_and_vim3l_boards [2] https://gitlab.com/baylibre/amlogic/atv/u-boot/-/tree/u-boot/v2021.07/integ Mattijs Korpershoek (6): configs: sei610: fix typo in header comment configs: meson64_android: fix bad indent in EXTRA_ENV_SETTINGS

[PATCH 1/6] configs: sei610: fix typo in header comment

2021-07-29 Thread Mattijs Korpershoek
s/510/610/ Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/sei610.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/sei610.h b/include/configs/sei610.h index 6d093161c9..9eeffdd72c 100644 --- a/include/configs/sei610

[PATCH 2/6] configs: meson64_android: fix bad indent in EXTRA_ENV_SETTINGS

2021-07-29 Thread Mattijs Korpershoek
both lines seem to be joined together which is not the case for the meson64.h EXTRA_ENV_SETTINGS. Add a newline for consistency. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH 4/6] configs: meson64_android: use boot part label instead of index

2021-07-29 Thread Mattijs Korpershoek
el quite a lot on their public documentation [1] Load the boot partition by label instead of by index [1] https://source.android.com/devices/bootloader/partitions Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 10 ++ 1 file changed

[PATCH 5/6] configs: meson64_android: use logo part label instead of index

2021-07-29 Thread Mattijs Korpershoek
To display the bootup logo, we read the gpt and assume that the partition with index "2" will be the "logo" partition. This might not always be the case, and it's very error-prone. Load the logo partition by label instead of by index. Signed-off-by: Guillaume La Roqu

[PATCH 3/6] configs: meson64_android: use CONFIG_FASTBOOT_USB_DEV

2021-07-29 Thread Mattijs Korpershoek
Right now, when running fastboot we use a hard-coded "0" for the device number. Use the Kconfig option named CONFIG_FASTBOOT_USB_DEV instead. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 ++-- 1 file changed, 2 insert

[PATCH 6/6] configs: meson64_android: don't set console bootargs

2021-07-29 Thread Mattijs Korpershoek
e La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 56545a72f8..3b61d5f703 100644 --- a/include/configs/meson64_andro

[PATCH 0/5] meson64_android: use BCB for reboot reason

2021-07-30 Thread Mattijs Korpershoek
son handling to use the BCB, which is the standard Android way. [1] https://android.googlesource.com/device/amlogic/yukawa [2] https://gitlab.com/baylibre/amlogic/atv/u-boot/-/tree/u-boot/v2021.07/integ Mattijs Korpershoek (5): Revert "ARM: meson: Add support for fastboot_set_rebo

[PATCH 1/5] Revert "ARM: meson: Add support for fastboot_set_reboot_flag()"

2021-07-30 Thread Mattijs Korpershoek
ned-off-by: Mattijs Korpershoek --- arch/arm/mach-meson/board-common.c | 34 -- 1 file changed, 34 deletions(-) diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 1690b6b1e6..7ceba7cede 100644 --- a/arch/arm/mach-meson/board-comm

[PATCH 4/5] configs: meson64_android: reboot to fastbootd from bootloader

2021-07-30 Thread Mattijs Korpershoek
gular recovery mode or fastbootd mode. Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index ce08346b70..f9f2b26416 100644 --- a/include/co

[PATCH 2/5] configs: meson64_android: use BCB for reboot to bootloader

2021-07-30 Thread Mattijs Korpershoek
ng sm calls. Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 3b61d5f703..d732032d1f 100644 -

[PATCH 5/5] configs: sei610/sei510: set CONFIG_CMD_BCB=y

2021-07-30 Thread Mattijs Korpershoek
SEI-610 and SEI-510 are both for Android boards based on Yukawa[1] Enable the BCB command to enable the standard Android boot flow. [1] https://android.googlesource.com/device/amlogic/yukawa/ Signed-off-by: Mattijs Korpershoek --- configs/sei510_defconfig | 1 + configs/sei610_defconfig | 1

[PATCH 3/5] configs: meson64_android: implement recovery boot via BCB

2021-07-30 Thread Mattijs Korpershoek
Right now meson64_android does not know how to boot into Android Recovery: it simply falls back to "fastboot" mode in the bootloader. Implement the boot to recovery. While at it, use the standard BCB way instead of a sm for consistency. Signed-off-by: Mattijs Korpershoek --- inclu

[PATCH v2 1/5] configs: meson64_android: use BCB for reboot to bootloader

2021-07-30 Thread Mattijs Korpershoek
ng sm calls. Signed-off-by: Mattijs Korpershoek Acked-by: Neil Armstrong --- include/configs/meson64_android.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 3b61d5f70

[PATCH v2 0/5] meson64_android: use BCB for reboot reason

2021-07-30 Thread Mattijs Korpershoek
son handling to use the BCB, which is the standard Android way. [1] https://android.googlesource.com/device/amlogic/yukawa [2] https://gitlab.com/baylibre/amlogic/atv/u-boot/-/tree/u-boot/v2021.07/integ Changes in v2: * re-ordered commits * added Neil's Acked-by Mattijs Korpershoek (5): conf

[PATCH v2 3/5] configs: meson64_android: reboot to fastbootd from bootloader

2021-07-30 Thread Mattijs Korpershoek
gular recovery mode or fastbootd mode. Signed-off-by: Mattijs Korpershoek Acked-by: Neil Armstrong --- include/configs/meson64_android.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index ce08346b70..f9f2b26416 1

[PATCH v2 5/5] Revert "ARM: meson: Add support for fastboot_set_reboot_flag()"

2021-07-30 Thread Mattijs Korpershoek
ned-off-by: Mattijs Korpershoek Acked-by: Neil Armstrong --- arch/arm/mach-meson/board-common.c | 34 -- 1 file changed, 34 deletions(-) diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 1690b6b1e6..7ceba7cede 100644 --- a/arc

[PATCH v2 4/5] configs: sei610/sei510: set CONFIG_CMD_BCB=y

2021-07-30 Thread Mattijs Korpershoek
SEI-610 and SEI-510 are both for Android boards based on Yukawa[1] Enable the BCB command to enable the standard Android boot flow. [1] https://android.googlesource.com/device/amlogic/yukawa/ Signed-off-by: Mattijs Korpershoek Acked-by: Neil Armstrong --- configs/sei510_defconfig | 1

[PATCH v2 2/5] configs: meson64_android: implement recovery boot via BCB

2021-07-30 Thread Mattijs Korpershoek
Right now meson64_android does not know how to boot into Android Recovery: it simply falls back to "fastboot" mode in the bootloader. Implement the boot to recovery. While at it, use the standard BCB way instead of a sm for consistency. Signed-off-by: Mattijs Korpershoek Acke

Re: [PATCH 0/5] meson64_android: use BCB for reboot reason

2021-07-30 Thread Mattijs Korpershoek
Hi Neil, Neil Armstrong writes: > On 30/07/2021 10:55, Mattijs Korpershoek wrote: >> The SEI-610 and SEI-510 boards are well supported in the >> Android Open Source project via the yukawa [1] platform. >> >> Their U-Boot version, despite being public [2] is not in m

Re: [PATCH] doc: board: amlogic: add documentation on boot flow

2022-07-05 Thread Mattijs Korpershoek
On Mon, Jul 04, 2022 at 16:10, "Neil Armstrong" wrote: > This is a preliminary documentation introducing different > boot sequences, and notably the recovery mode. > > Signed-off-by: Neil Armstrong Reviewed-by: Mattijs Korpershoek > --- > doc/board

[PATCH] fastboot: mmc: switch to user hwpart after erase/flash

2022-10-10 Thread Mattijs Korpershoek
neric fastboot_set_reboot_flag") because "fastboot reboot bootloader" will access the "misc" partition. Signed-off-by: Mattijs Korpershoek --- This fix has been used for over a year in the AOSP tree at [1] [1] https://android.googlesource.com/device/amlogic/yukawa/+/c

Re: [PATCH] avb: Extend support to non-eMMC interfaces

2022-10-10 Thread Mattijs Korpershoek
Hi Alistair, Thank you for your patch. On lun., sept. 26, 2022 at 22:02, Alistair Delva wrote: > From: Jiyong Park > > Previously Android AVB supported block devices only on eMMC. This change > eliminates the restriction by using the generic block driver model. > > The `avb init' command is mo

Re: [PATCH] fastboot: mmc: switch to user hwpart after erase/flash

2022-10-11 Thread Mattijs Korpershoek
Hi Sean, Thank you for your review. On Mon, Oct 10, 2022 at 11:38, Sean Anderson wrote: > On 10/10/22 4:05 AM, Mattijs Korpershoek wrote: >> Before erasing (or flashing) an mmc hardware partition, such as >> mmc0boot0 or mmc0boot1, we select it using blk_dselect_hwpart(). >

Re: [PATCH v2 2/2] mach-meson: g12a: reset usb controller in reset_misc()

2022-10-11 Thread Mattijs Korpershoek
On Tue, Oct 11, 2022 at 17:39, Marek Vasut wrote: > On 10/11/22 09:12, neil.armstr...@linaro.org wrote: >> On 10/10/2022 19:16, Marek Vasut wrote: >>> On 10/10/22 18:22, Neil Armstrong wrote: >>>> Hi, >>> >>> Hi, >>> >>>> On

Re: [PATCH] avb: Extend support to non-eMMC interfaces

2022-10-12 Thread Mattijs Korpershoek
On mar., oct. 11, 2022 at 13:40, Alistair Delva wrote: > On Mon, Oct 10, 2022 at 7:53 AM Mattijs Korpershoek > wrote: >> >> Hi Alistair, >> >> Thank you for your patch. >> >> On lun., sept. 26, 2022 at 22:02, Alistair Delva wrote: >> >>

Re: [PATCH] fastboot: mmc: switch to user hwpart after erase/flash

2022-10-13 Thread Mattijs Korpershoek
On Tue, Oct 11, 2022 at 11:52, Sean Anderson wrote: > On 10/11/22 8:07 AM, Mattijs Korpershoek wrote: >> Hi Sean, >> >> Thank you for your review. >> >> On Mon, Oct 10, 2022 at 11:38, Sean Anderson wrote: >> >>> On 10/10/22 4:05 AM, Mattijs Kor

[PATCH v2] cmd: bcb: select user(0) hwpart in __bcb_load()

2022-10-13 Thread Mattijs Korpershoek
Error: mmc 2:misc read failed (-2) Add a fail-safe in __bcb_load() to ensure we will always read from the user(0) hwpartition. This fixes the following fastboot sequence: $ fastboot erase mmc2boot1# switch to hwpart1 $ fastboot reboot bootloader # switch to hwpart0, then reads GPT Signed-off-

[PATCH] blk: fix a couple of trivial documentation typos

2022-10-13 Thread Mattijs Korpershoek
In some cases, the param variable is wrong, and in other cases we have undocumented arguments. Fix the docs. Signed-off-by: Mattijs Korpershoek --- --- include/blk.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/blk.h b/include/blk.h index 8806c382d4e7

Re: [PATCH] blk: fix a couple of trivial documentation typos

2022-10-17 Thread Mattijs Korpershoek
On ven., oct. 14, 2022 at 09:55, Simon Glass wrote: > Hi Mattijs, > > On Thu, 13 Oct 2022 at 06:57, Mattijs Korpershoek > wrote: >> >> In some cases, the param variable is wrong, and in other cases we have >> undocumented arguments. >> >> Fix the docs

[PATCH v2] blk: fix a couple of trivial documentation typos

2022-10-17 Thread Mattijs Korpershoek
In some cases, the param variable is wrong, and in other cases we have undocumented arguments. Fix the docs. Signed-off-by: Mattijs Korpershoek --- Changes in v2: * Don't edit blk_foreach_probe() comment as it's just returing (Simon) * Link to v1: https://lore.kernel.org/r/202210

Re: [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:41, Simon Glass wrote: > This converts 3 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fastboot/fb_get

Re: [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:42, Simon Glass wrote: > This converts 5 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH_MMC defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fast

Re: [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:42, Simon Glass wrote: > This converts 3 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH_NAND defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fast

Re: [PATCH v2 00/17] Support android boot image v3/v4

2023-02-01 Thread Mattijs Korpershoek
ndr_boot_img_hdr_v3 > andr_vendor_boot_img_hdr_v3_v4 -> andr_vendor_img_hdr Re-tested the whole series on Khadas vim3l board with boot header v2. Tested-by: Mattijs Korpershoek > > Safae Ouajih (17): > android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0 >

Re: [PATCH v2 01/17] android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0

2023-02-01 Thread Mattijs Korpershoek
> > To maintain support for version v0, v1 and v2 while introducing > version 3 and 4, this struct name must change to refer to the header > structure before v3. > > Signed-off-by: Safae Ouajih Reviewed-by: Mattijs Korpershoek > --- > boot/image-android.c | 26 +++

Re: [PATCH v2 02/17] android: boot: support vendor boot image in abootimg

2023-02-01 Thread Mattijs Korpershoek
ons >> >> Signed-off-by: Safae Ouajih >> --- >> cmd/abootimg.c | 18 +++--- >> 1 file changed, 15 insertions(+), 3 deletions(-) > > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2 03/17] android: boot: replace android_image_check_header

2023-02-01 Thread Mattijs Korpershoek
ontents(const struct andr_boot_img_hdr_v0 *hdr); >> bool android_image_print_dtb_contents(ulong hdr_addr); >> +bool is_android_boot_image_header(const struct andr_boot_img_hdr_v0 *hdr); > > Please add a full comment > >> >> /** >> * board_fit_config_name_match() - Check for a matching board name >> -- >> 2.34.1 >> > > With that: > > Reviewed-by: Simon Glass > > Regards, > SImon Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2 04/17] android: boot: add boot image header v3 and v4 structures

2023-02-01 Thread Mattijs Korpershoek
https://android.googlesource.com/platform/system/tools/mkbootimg >> >> Signed-off-by: Safae Ouajih >> --- >> include/android_image.h | 183 +++- >> 1 file changed, 182 insertions(+), 1 deletion(-) > > Reviewed-by: Simon Glass > > You might consider using the sphinx style for struct comments so you > can include this header file into the docs directly. Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2 05/17] android: boot: kcomp: support andr_image_data

2023-02-01 Thread Mattijs Korpershoek
| 27 +++ >> include/image.h | 2 ++ >> 3 files changed, 103 insertions(+), 1 deletion(-) >> > > Reviewed-by: Simon Glass > > But please comment struct andr_image_data. > > [..] Reviewed-by: Mattijs Korpershoek > >> diff --

Re: [PATCH v2 07/17] android: boot: content print is not supported for v3,v4 header version

2023-02-01 Thread Mattijs Korpershoek
ds, >> > Simon >> >> Hi Simon, >> >> Thank you for the review. >> >> Content print for boot image header v4 can be supported >> >> and only requires updating the existing functions. >> >> This is something I intend to support later on. > > OK thanks > > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2 08/17] android: boot: boot image header v3,v4 do not support recovery DTBO

2023-02-01 Thread Mattijs Korpershoek
r message when v1,v2 header version are not used. >> >> Signed-off-by: Safae Ouajih >> --- >> boot/image-android.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > Reviewed-by: Simon Glass > > log_err() might be better > Reviewed-by: Matt

Re: [PATCH v2 12/17] android: boot: support extra command line

2023-02-01 Thread Mattijs Korpershoek
In version 3 and 4 of boot image header, the vendor specific >> > vendor-spefcific >> > >> >> command line are located in vendor boot image. Thus, using >> > use the >> > >> >> extra command line to add those cmd to bootargs.

Re: [PATCH v2 13/17] android: boot: update android_image_get_dtb_img_addr to support v3,v4

2023-02-01 Thread Mattijs Korpershoek
nsertions(+), 14 deletions(-) >> > > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek > > nits below > >> diff --git a/boot/image-android.c b/boot/image-android.c >> index cb4fc22b00..edeeaaaee0 100644 >> --- a/boot/image-android.c >> +++

Re: [PATCH v2 15/17] android: boot: support boot image header version 3 and 4

2023-02-01 Thread Mattijs Korpershoek
On Thu, Jan 26, 2023 at 17:55, Simon Glass wrote: > Hi Safae, > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: >> >> This enables the support for boot image header version 3 and 4 >> using abootimg command. >> >> In order to use version 3 or 4: >> >> 1- Vendor boot image address should be g

Re: [PATCH v2 16/17] android: boot: support bootconfig

2023-02-01 Thread Mattijs Korpershoek
mage-android.c| 58 +++-- >> include/android_image.h | 11 >> 2 files changed, 67 insertions(+), 2 deletions(-) > > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek > > nit below > > [..] > >> diff --git a/in

Re: [PATCH v3 17/19] doc: android: add documentation for v3,v4 boot image header

2023-02-08 Thread Mattijs Korpershoek
On lun., févr. 06, 2023 at 00:50, Safae Ouajih wrote: > Update the Android documentation to describe version 3 and 4 of boot > image header. > > Signed-off-by: Safae Ouajih > --- Reviewed-by: Mattijs Korpershoek > doc/android/boot-image.rst | 13 - >

Re: [PATCH v3 00/19] Support android boot image v3/v4

2023-02-09 Thread Mattijs Korpershoek
; > > Here is a link to see the related android boot flow changes on KHADAS vim3l > as an example: > https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/-/commits/souajih/BootImagev4/ Re-tested the whole series on Khadas vim3l board with boot header v2. Tested-by: Mattijs Korpershoe

Re: [PATCH v3 06/19] android: boot: move to andr_image_data structure

2023-02-09 Thread Mattijs Korpershoek
On Mon, Feb 06, 2023 at 00:50, Safae Ouajih wrote: > Move from andr_boot_img_hdr_v0 to andr_image_data > structure to prepare for boot image header > version 3 and 4. > > Signed-off-by: Safae Ouajih > --- > boot/image-android.c | 121 +++ > cmd/abootimg.c

Re: [PATCH v3 09/19] android: boot: add vendor boot image to prepare for v3,v4 support

2023-02-09 Thread Mattijs Korpershoek
t; > Signed-off-by: Safae Ouajih Reviewed-by: Mattijs Korpershoek > --- > boot/bootm.c | 8 +++ > boot/image-android.c | 54 > boot/image-board.c | 3 +-- > boot/image-fdt.c | 3 ++- > cmd/abootimg.c

Re: [PATCH v3 09/19] android: boot: add vendor boot image to prepare for v3,v4 support

2023-02-09 Thread Mattijs Korpershoek
t; > Signed-off-by: Safae Ouajih Reviewed-by: Mattijs Korpershoek > --- > boot/bootm.c | 8 +++ > boot/image-android.c | 54 > boot/image-board.c | 3 +-- > boot/image-fdt.c | 3 ++- > cmd/abootimg.c

Re: [PATCH v3 10/19] android: boot: update android_image_get_data to support v3,v4

2023-02-09 Thread Mattijs Korpershoek
v3_v4_parse_hdr() > - android_vendor_boot_image_v3_v4_parse_hdr() > > Update android_image_get_data() to support v3 and v4 > > Signed-off-by: Safae Ouajih > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > boot/image-android.c| 80 +++-- > include/

Re: [PATCH v3 11/19] android: boot: ramdisk: support vendor ramdisk

2023-02-09 Thread Mattijs Korpershoek
vendor boot image. > > Support the new vendor ramdisk. > > Signed-off-by: Safae Ouajih > Reviewed-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > boot/image-android.c | 13 +++-- > include/image.h | 4 ++-- > 2 files changed, 13 insertions(+), 4 deletio

Re: [PATCH v3 14/19] drivers: fastboot: zImage flashing is not supported for v3,v4

2023-02-09 Thread Mattijs Korpershoek
es updating vendor boot image and/or generating a new image. > > Print an error message when the boot image header version is > greater than 2. > > Signed-off-by: Safae Ouajih Reviewed-by: Mattijs Korpershoek > --- > drivers/fastboot/fb_mmc.c | 8 > 1 file

Re: [PATCH v3 15/19] android: boot: support boot image header version 3 and 4

2023-02-09 Thread Mattijs Korpershoek
dor_boot_load_addr > > 2- "ramdisk_addr_r" env variable (ramdisk address) should be set to host > the ramdisk : generic ramdisk + vendor ramdisk > > Replace "struct andr_boot_img_hdr_v0*" by "void *" in > some functions since v3 and v4 are now s

[PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2022-11-23 Thread Mattijs Korpershoek
Ctrl-c Other tests: * ums 0 mmc 2 # can list / mount partitions from host * usb start; usb storage # list usb thumb drive * all defconfigs have been build tested [1] https://lore.kernel.org/u-boot/938b9439-9014-5ee8-1627-16af508bf...@linaro.org/ Signed-off-by: Mattijs Korpershoek --- M

[PATCH 1/2] usb: dwc3-meson-g12a: force mode on child add/removal

2022-11-23 Thread Mattijs Korpershoek
usb" (dwc2) driver is probed()/removed() instead. This is achieved via the glue driver, which gets notified each time one of its children is probed()/removed. Note: this change should be harmless without DM_USB_GADGET=y because the amlogic-g12a-usb driver is not probed via driver model. Signed-

[PATCH 2/2] ARM: meson: g12a: switch dwc2 otg to DM

2022-11-23 Thread Mattijs Korpershoek
Note: Only configs having both CONFIG_USB_DWC3_MESON_G12A=y *and* USB_GADGET_DWC2_OTG=y have been updated. Signed-off-by: Mattijs Korpershoek --- arch/arm/mach-meson/board-g12a.c | 127 -- configs/bananapi-m5_defconfig | 1 + configs/beel

Re: [PATCH v2 2/2] mach-meson: g12a: reset usb controller in reset_misc()

2022-11-23 Thread Mattijs Korpershoek
On Tue, Oct 11, 2022 at 19:57, neil.armstr...@linaro.org wrote: > On 11/10/2022 18:36, Mattijs Korpershoek wrote: >> On Tue, Oct 11, 2022 at 17:39, Marek Vasut wrote: >> >>> On 10/11/22 09:12, neil.armstr...@linaro.org wrote: >>>> On 10/10/2022 19:16, Marek

Re: [PATCH 00/17] Support android boot image v3/v4

2022-11-28 Thread Mattijs Korpershoek
; > > Here is a link to see the related android boot flow changes on KHADAS vim3l > as an example: > https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/-/commits/souajih/BootImagev4/ Tested the whole series on Khadas vim3l board with boot header v2. Tested-by: Mat

[PATCH 1/9] configs: meson64: permit redefining SYS_MALLOC_LEN

2021-08-05 Thread Mattijs Korpershoek
Permit redefining SYS_MALLOC_LEN for board specific configs. This is especially useful for Android with AVB, which requires a malloc length of 128M. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 0/9] meson64_android: Android boot flow using abootimg

2021-08-05 Thread Mattijs Korpershoek
libre/amlogic/atv/u-boot/-/tree/u-boot/v2021.07/integ Guillaume La Roque (2): configs: meson64_android: boot android via abootimg configs: sei510/610: android bootflow via abootimg Mattijs Korpershoek (7): configs: meson64: permit redefining SYS_MALLOC_LEN configs: meson64_android: inc

[PATCH 2/9] configs: meson64_android: increase SYS_MALLOC_LEN to 128M for AVB

2021-08-05 Thread Mattijs Korpershoek
To prepare for AVB support, increase SYS_MALLOC_LEN to 128M. This value has been found by testing the following on khadas vim3l: => avb init => avb verify Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 1 file changed, 4 insertions(+) diff --git a/i

[PATCH 4/9] configs: meson64_android: implement A/B slot support

2021-08-05 Thread Mattijs Korpershoek
-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 55 ++- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 48a23b6e41..83fa25bfb1

[PATCH 5/9] configs: meson64_android: define BOOT_CMD macro

2021-08-05 Thread Mattijs Korpershoek
BOOT_CMD might be different based on CONFIG_CMD_ABOOTIMG. To prepare for abootimg support, extract the boot command to a dedicated macro. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 6 -- 1 file changed, 4 insertions(+), 2

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