Re: [PATCH 2/6] usb: gadget: Drop usb_udc_release()

2024-08-29 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On lun., août 26, 2024 at 16:38, Marek Vasut wrote: > This callback is never called, drop it. Instead, call kfree(udc) > in usb_del_gadget_udc() to free the struct usb_udc data. > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek

Re: [PATCH 3/6] usb: gadget: Track driver data as part of struct usb_gadget

2024-08-29 Thread Mattijs Korpershoek
-by: Mattijs Korpershoek > --- > Cc: Linus Walleij > Cc: Lukasz Majewski > Cc: Mattijs Korpershoek > Cc: Miquel Raynal > Cc: Neil Armstrong > Cc: Nishanth Menon > Cc: Zixun LI > --- > include/linux/usb/gadget.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 de

Re: [PATCH 4/6] usb: gadget: Drop dev_to_usb_gadget()

2024-08-29 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On lun., août 26, 2024 at 16:38, Marek Vasut wrote: > This function is unused, remove it. > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: Linus Walleij > Cc: Lukasz Majewski > Cc: Mattijs Korpershoek

Re: [PATCH 5/6] usb: gadget: dwc2: Drop get/set_udc_gadget_private_data()

2024-08-29 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On lun., août 26, 2024 at 16:38, Marek Vasut wrote: > Neither get_udc_gadget_private_data() nor set_udc_gadget_private_data() > is ever called anywhere, remove both. > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek >

Re: [PATCH 6/6] usb: gadget: Pass struct udevice to usb_add_gadget_udc()

2024-08-29 Thread Mattijs Korpershoek
gt; Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: Linus Walleij > Cc: Lukasz Majewski > Cc: Mattijs Korpershoek > Cc: Miquel Raynal > Cc: Neil Armstrong > Cc: Nishanth Menon > Cc: Zixun LI > --- > drivers/usb/cdns3/gadget.c| 2 +-

Re: [PATCH v2] android_ab: Fixes: Fix backup offset calculation

2024-08-29 Thread Mattijs Korpershoek
in bytes and must > be a multiple of the block size, and add a runtime check to validate the > offset. > > Signed-off-by: Joshua Watt Reviewed-by: Mattijs Korpershoek As Igor suggested, I will add: Fixes: 3430f24bc69d ("android_ab: Try backup booloader_message")

Re: [PATCH] mmc: Hide mmc speed command under mmc command

2024-08-29 Thread Mattijs Korpershoek
s enabled. > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: AKASHI Takahiro > Cc: Francis Laniel > Cc: Heinrich Schuchardt > Cc: Mattijs Korpershoek > Cc: Michal Simek > Cc: Simon Glass > Cc: Tom Rini > Cc: u-bo

Re: [PATCH 1/3] board: ti: am62x_evm: Add android bootflow

2024-09-03 Thread Mattijs Korpershoek
to have it here as well. > > Co-developed-by: Mattijs Korpershoek > Signed-off-by: Mattijs Korpershoek > Signed-off-by: Guillaume La Roque > --- > board/ti/am62x/am62x.env | 5 + > configs/am62x_a53_android.config | 34 +++

Re: [PATCH 2/3] board: beagle: beagleplay: Add android bootflow support

2024-09-03 Thread Mattijs Korpershoek
Hi Guillaume, Thank you for the patch. On lun., sept. 02, 2024 at 18:31, Guillaume La Roque wrote: > From: Mattijs Korpershoek > > Beagle Play has a different boot flow than the AM62x SK EVM. > > AM62x SK EVM: > 1. Boot rom reads UDA (User Data Area), looking for tiboot3 &

Re: [PATCH 3/3] board: ti: am62px: Add android bootflow support

2024-09-03 Thread Mattijs Korpershoek
Hi Guillaume, Thank you for the patch. On lun., sept. 02, 2024 at 18:31, Guillaume La Roque wrote: > From: Mattijs Korpershoek > > When CONFIG_BOOTMETH_ANDROID is set, enable Android boot flow support. > > To build for AM62Px for Android, we can re-use > the am62x_a53_andro

Re: [PATCH v2] mmc: Hide mmc speed command under mmc command

2024-09-03 Thread Mattijs Korpershoek
CMD_MMC to make it show up alongside the MMC command. >> >> Signed-off-by: Marek Vasut >> --- >> Cc: AKASHI Takahiro >> Cc: Francis Laniel >> Cc: Heinrich Schuchardt >> Cc: Mattijs Korpershoek >> Cc: Michal Simek >> Cc: Quentin Schulz

[PATCH] bootstd: android: Add U-Boot version to cmdline

2024-09-04 Thread Mattijs Korpershoek
properly on the screen. [1] https://android.googlesource.com/platform/bootable/recovery/+/refs/heads/main/fastboot/fastboot.cpp#42 Signed-off-by: Mattijs Korpershoek --- boot/bootmeth_android.c | 9 + 1 file changed, 9 insertions(+) diff --git a/boot/bootmeth_android.c b/boot

Re: [PATCH v2] android_ab: Fixes: Fix backup offset calculation

2024-09-04 Thread Mattijs Korpershoek
Hi, On Wed, 28 Aug 2024 08:37:57 -0600, Joshua Watt wrote: > The backup offset is in bytes, but was incorrectly be interpreted as > blocks, leading to it being written to the wrong location. Fix the > calculation, clarify that ANDROID_AB_BACKUP_OFFSET is in bytes and must > be a multiple of the bl

Re: [PATCH v2 1/3] phy: Extend generic_setup_phy() with PHY mode and submode

2024-09-09 Thread Mattijs Korpershoek
On dim., sept. 08, 2024 at 20:11, Marek Vasut wrote: > On 6/17/24 7:36 PM, Marek Vasut wrote: >> Extend generic_setup_phy() parameter list with PHY mode and submode and >> call generic_phy_set_mode() in generic_setup_phy(), so the generic PHY >> setup function can configure the PHY into correct m

Re: [PATCH 1/6] usb: gadget: Inline usb_add_gadget_udc_release

2024-09-10 Thread Mattijs Korpershoek
Hi, On Mon, 26 Aug 2024 16:38:36 +0200, Marek Vasut wrote: > The release parameter of usb_add_gadget_udc_release() is never used. > The function is never called from anywhere except from a wrapper in > udc-core.c . Inline the function into the wrapper. > > Thanks, Applied to https://source.denx

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

2024-09-10 Thread Mattijs Korpershoek
Hi Tom, Please find some fixes for master: - Fix ANDROID_AB_BACKUP_OFFSET unit to bytes CI job: - https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/22302 Thanks, Mattijs The following changes since commit 1312faac5f52d27cfb45dfe1a5a93a2944ca5c21: Prepare v2024.10-rc4 (2024-09-0

Re: [PATCH] dfu: fix Kconfig dependencies

2024-09-10 Thread Mattijs Korpershoek
is is because SPL_DFU compiles common/spl/spl_dfu.c which calls > run_usb_dnl_gadget() which is implemented in common/dfu.c which needs > DFU_OVER_USB. > > Therefore add these dependencies to Kconfig. > > Signed-off-by: Jerome Forissier Reviewed-by: Mattijs Korpershoek > ---

Re: [PATCH] bootstd: android: Add U-Boot version to cmdline

2024-09-12 Thread Mattijs Korpershoek
Hi Simon, Thank you for your review. On mer., sept. 11, 2024 at 18:59, Simon Glass wrote: > Hi Mattijs, > > On Wed, 4 Sept 2024 at 03:38, Mattijs Korpershoek > wrote: >> >> When booting into Android fastbootd (a subset of recovery), the default >> UI shows the bo

Re: [PATCH v2 1/3] board: ti: am62x_evm: Add android bootflow

2024-09-12 Thread Mattijs Korpershoek
en building A53 bootloaders: > > $ make am62x_evm_a53_defconfig > $ make am62x_a53_android.config > $ make > > Co-developed-by: Mattijs Korpershoek > Signed-off-by: Mattijs Korpershoek > Signed-off-by: Guillaume La Roque Reviewed-by: Mattijs Korpershoek > --

Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT

2024-09-12 Thread Mattijs Korpershoek
> > Signed-off-by: Jerome Forissier Reviewed-by: Mattijs Korpershoek > --- > common/spl/Kconfig | 8 ++-- > drivers/usb/gadget/Kconfig | 2 +- > 2 files changed, 3 insertions(+), 7 deletions(-) > > diff --git a/common/spl/Kconfig b/common/spl/K

[PATCH v2] bootstd: android: Add U-Boot version to cmdline

2024-09-12 Thread Mattijs Korpershoek
properly on the screen. [1] https://android.googlesource.com/platform/bootable/recovery/+/refs/heads/main/fastboot/fastboot.cpp#42 Reviewed-by: Julien Masson Reviewed-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- Changes in v2: - Clarify by a comment that we intentionally

Re: [PATCH] dfu: fix Kconfig dependencies

2024-09-13 Thread Mattijs Korpershoek
Hi, On Tue, 10 Sep 2024 12:27:50 +0200, Jerome Forissier wrote: > Fix link errors caused by missing Kconfig dependencies: > > 1. DFU_OVER_USB compiles common/dfu.c which calls g_dnl_clear_detach() > which is implemented in drivers/usb/gadget/g_dnl.c which needs > USB_GADGET_DOWNLOAD. Test case: >

Re: [PATCH] dfu: define a callback function for the dfu_alt_info environment variable

2024-09-13 Thread Mattijs Korpershoek
mechanism whereby C code can be told about > changes to specific environment variables. So instead of always doing > re-init, add a hook to the dfu_alt_info variable so that we only do > set dfu_reinit_needed if the commands actually did modify that > variable. > > Signed

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-15 Thread Mattijs Korpershoek
Hi Dmitry, On mar., oct. 15, 2024 at 16:26, Dmitry Rokosov wrote: > Hi Mattijs, > > On Tue, Oct 15, 2024 at 02:10:10PM +0200, Mattijs Korpershoek wrote: >> Hi Simon, Dmitry >> >> On lun., oct. 14, 2024 at 15:06, Simon Glass wrote: >> >> > Hi Dmit

Re: [PATCH v4 0/3] dwc3: gadget: properly fix cache operations

2024-10-15 Thread Mattijs Korpershoek
Hi, On Fri, 11 Oct 2024 16:38:23 +0200, Neil Armstrong wrote: > We experience huge problems with cache handling on Qualcomm > systems, and it appears the dcache handling in the DWC3 gadget > code is quite wrong and causes operational issues. > > This serie fixes the dcache operations on unaligned

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-15 Thread Mattijs Korpershoek
Hi Simon, Dmitry On lun., oct. 14, 2024 at 15:06, Simon Glass wrote: > Hi Dmitry, > > On Mon, 14 Oct 2024 at 14:38, Dmitry Rokosov > wrote: >> >> Hello Mattijs, >> >> On Sat, Oct 12, 2024 at 10:49:08AM +0200, Mattijs Korpershoek wrote: >> > Hi Dmit

Re: [PATCH v4 2/5] treewide: bcb: move ab_select command to bcb subcommands

2024-10-15 Thread Mattijs Korpershoek
Hi Dmitry, Thank you for the patch. On mar., oct. 15, 2024 at 00:06, Dmitry Rokosov wrote: > To enhance code organization, it is beneficial to consolidate all A/B > BCB management routines into a single super-command. > The 'bcb' command is an excellent candidate for this purpose. > > This pat

Re: [PATCH v4 1/4] dfu: add scsi backend

2024-10-15 Thread Mattijs Korpershoek
at on v3 here: https://lore.kernel.org/all/87zfs11999@baylibre.com/ And on v2: here: https://lore.kernel.org/all/87o7a94pe1@baylibre.com/ With above addressed, feel free to add: Reviewed-by: Mattijs Korpershoek And please take this through your tree: Acked-by: Mattijs Korpershoek

Re: [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address

2024-10-15 Thread Mattijs Korpershoek
Hi Svyatoslav, Thank you for the patch. On dim., oct. 13, 2024 at 17:58, Svyatoslav Ryhel wrote: > From: Ion Agorria > > In the older USB controllers like for example in ChipIdea controller > used by the Tegra 2 the "USBADRA: Device Address Advance" bitflag > does not exist, so the new device

Re: [PATCH] test: Drop mention of old flags in a comment

2024-10-15 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On lun., oct. 14, 2024 at 14:17, Simon Glass wrote: > A comment in test-main.c was not updated with the recent rename. Fix it. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > test/test-main.c | 12 ++--

Re: [PATCH] TI: include: env: ti_common: move fdtoverlay_addr_r to fix ramdisk size

2024-10-15 Thread Mattijs Korpershoek
Hi Tom, On lun., oct. 14, 2024 at 18:02, Tom Rini wrote: > On Fri, Oct 11, 2024 at 05:39:53PM +0200, Mattijs Korpershoek wrote: >> Hi Judith, >> >> Thank you for sending this patch. >> >> On jeu., oct. 10, 2024 at 19:03, Judith Mendez wrote: >> >>

Re: [PATCH v1] eth: asix88179: drop ADVERTISE_LPACK and ADVERTISE_NPAGE advertise flags

2024-10-08 Thread Mattijs Korpershoek
Hi Maksim, Thank you for the patch and sorry for the review delay. On jeu., sept. 19, 2024 at 16:58, biguncle...@gmail.com wrote: > From: Maksim Kiselev > > Some USB-ETH adapters based on the AX88179 (ex. D-link DUB-2312) > has link issue if ADVERTISE_NPAGE flag is set. Do you see the issue on

Re: [PATCH 3/3] binman: Add a tutorial on resolving test-coverage bugs

2024-10-08 Thread Mattijs Korpershoek
_fname, 'w') as outf: > +47print('ROM_VERSION v%d' % self.rom_version, file=outf) > +48print('BOOT_FROM %s' % self.boot_from, file=outf) > +49print('LOADER %s %#x' % (input_fname, > self.loader_address), file=outf) > +50 > +51output_fname = tools.get_output_filename(f'cfg-out.{uniq}') > +52args = ['-d', input_fname, '-n', cfg_fname, '-T', 'imx8mimage', > +53output_fname] > +54if self.mkimage.run_cmd(*args) is not None: > +55return tools.read_file(output_fname) > +56else: > +57# Bintool is missing; just use the input data as the output > +58 x self.record_missing_bintool(self.mkimage) > +59 x return data > +60 > +61def SetImagePos(self, image_pos): > +62# Customized SoC specific SetImagePos which skips the mkimage > etype > +63# implementation and removes the 0x48 offset introduced there. > That > +64# offset is only used for uImage/fitImage, which is not the > case in > +65# here. > +66upto = 0x00 > +67for entry in super().GetEntries().values(): > +68 x entry.SetOffsetSize(upto, None) > +69 > +70# Give up if any entries lack a size > +71 x if entry.size is None: > +72 x return > +73 x upto += entry.size > +74 > +75Entry_section.SetImagePos(self, image_pos) > + > +Most of the file is covered, but the lines marked with ``x`` indicate missing > +coverage. The will show up red in your browser. The what? The line ? With those addressed, feel free to add: Reviewed-by: Mattijs Korpershoek > + > +What is a test? [...]

Re: [PATCH v2] usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket

2024-10-08 Thread Mattijs Korpershoek
ally expects (max_packet_size). > > Fix this. > > Fixes: 7e91f6ccdc84 ("usb: Add Cadence USB3 host and gadget driver") > Signed-off-by: Siddharth Vadapalli Reviewed-by: Mattijs Korpershoek > --- > > Hello, > > This patch is based on commit > dd4d130c8e clk:

Re: [PATCH] Make AVB_VERIFY depend on FASTBOOT

2024-10-08 Thread Mattijs Korpershoek
Hi Jerome, Thank you for the patch. On mer., oct. 02, 2024 at 16:48, Jerome Forissier wrote: > AVB_BUF_ADDR, which is under "if AVB_VERIFY", defaults to > FASTBOOT_BUF_ADDR. Therefore AVB_VERIFY should depend on FASTBOOT. > > Signed-off-by: Jerome Forissier Reviewed-b

Re: [PATCH v3 4/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-10-10 Thread Mattijs Korpershoek
Hi Dmitry, On jeu., oct. 10, 2024 at 13:20, Dmitry Rokosov wrote: > On Wed, Oct 09, 2024 at 03:13:57PM -0600, Simon Glass wrote: >> Hi Dmitry, >> >> On Wed, 9 Oct 2024 at 07:26, Dmitry Rokosov >> wrote: >> > >> > Hello Simon, >> > >> > On Tue, Oct 08, 2024 at 07:57:15PM -0600, Simon Glass wr

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-11 Thread Mattijs Korpershoek
On ven., oct. 11, 2024 at 15:30, "Mattijs Korpershoek via groups.io" wrote: > Hi Dmitry, > > Thank you for the patch. > > On mar., oct. 08, 2024 at 23:18, Dmitry Rokosov > wrote: > >> To enhance code organization, it is beneficial to consolidate all

Re: [PATCH v3 4/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-10-11 Thread Mattijs Korpershoek
Hi Dmitry, On jeu., oct. 10, 2024 at 14:17, "Mattijs Korpershoek via groups.io" wrote: [...] >>> > > >>> > > Reviewed-by: Simon Glass >>> > > >>> > > Can you also update the test? >>> > >>> > I a

Re: [PATCH v3 4/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-10-11 Thread Mattijs Korpershoek
t; Slot[0] Metadata: >> - Priority: 15 >> - Tries Remaining: 0 >> - Successful Boot: 1 >> - Verity Corrupted: 0 >> >> Slot[1] Metadata: >> - Priority: 14 >> - Tries Remaining: 7 >>

Re: [PATCH 1/1] sandbox: add bootmethod EFI boot-manager

2024-10-11 Thread Mattijs Korpershoek
t unit tests to reflect the additional boot method. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Mattijs Korpershoek > --- > arch/sandbox/dts/test.dts | 4 > test/boot/bootmeth.c | 28 +--- > 2 files changed, 21 insertions(+), 11 d

Re: [PATCH] TI: include: env: ti_common: move fdtoverlay_addr_r to fix ramdisk size

2024-10-11 Thread Mattijs Korpershoek
Hi Judith, Thank you for sending this patch. On jeu., oct. 10, 2024 at 19:03, Judith Mendez wrote: > From: Mattijs Korpershoek > > When booting Android with adtbo_idx set, we observe the > following crash: In upstream/master, this is no such thing as adtbo_idx. This is only pre

[PATCH 1/2] configs: khadas-vim3{l}: Increase boot/recovery partition size

2024-10-11 Thread Mattijs Korpershoek
-builds Signed-off-by: Mattijs Korpershoek --- include/configs/khadas-vim3_android.h | 8 include/configs/khadas-vim3l_android.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/configs/khadas-vim3_android.h b/include/configs/khadas-vim3_android.h index

[PATCH 2/2] configs: meson64_android: Remove dtbo support

2024-10-11 Thread Mattijs Korpershoek
/+/ac2ea0bb91a3b5f5e71eba66c441e58beca6767e/arch/arm64/boot/dts/amlogic/ Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 26 +- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs

[PATCH 0/2] configs: khadas-vim3{l}: Android bootflow updates

2024-10-11 Thread Mattijs Korpershoek
, since these are not part of android-mainline [1] https://android-review.googlesource.com/c/kernel/common/+/3296472 Signed-off-by: Mattijs Korpershoek --- Mattijs Korpershoek (2): configs: khadas-vim3{l}: Increase boot/recovery partition size configs: meson64_android: Remove dtbo support

Re: [PATCH v2 1/6] include/android_ab: move ab_select_slot() documentation to @ notation

2024-09-30 Thread Mattijs Korpershoek
Hi Dmitry, Thank you for the patch. On jeu., sept. 12, 2024 at 00:49, Dmitry Rokosov wrote: > There are new function documentation requirements in U-Boot, so apply > these changes for android_ab. > > Signed-off-by: Dmitry Rokosov Reviewed-by: Mattijs Korpershoek > --- >

Re: [GIT PULL] Please pull u-boot-dfu-20240930

2024-10-02 Thread Mattijs Korpershoek
On mar., oct. 01, 2024 at 12:44, Tom Rini wrote: > On Mon, Sep 30, 2024 at 05:27:16PM +0200, Mattijs Korpershoek wrote: > >> Hi Tom, >> >> Please find some fixes for master: >> - Fix Kconfig dependencies for DFU_OVER_USB >> >> CI job: >> - htt

Re: [PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-02 Thread Mattijs Korpershoek
ion. > > Signed-off-by: Neil Armstrong Reviewed-by: Mattijs Korpershoek > --- > include/spi_flash.h | 34 ++ > 1 file changed, 34 insertions(+) > > diff --git a/include/spi_flash.h b/include/spi_flash.h > index 10d19fd4b11..2e703e85250

Re: [PATCH v2 2/2] dfu: sf: rely on DT for spi speed and mode

2024-10-02 Thread Mattijs Korpershoek
t; Using CONFIG_SF_DEFAULT_SPEED and CONFIG_SF_DEFAULT_MODE > makes the SPIFC controller on Amlogic Meson G12B & SM1 > hardware fail and is unable to recover until a system reboot. > > Signed-off-by: Neil Armstrong Reviewed-by: Mattijs Korpershoek > --- > drivers/dfu/dfu_sf.c | 16 ++

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

2024-10-17 Thread Mattijs Korpershoek
Hi Tom, Please find some fixes for master: Usb Gadget: - Fix cdns3 endpoint configuration by setting maxpacket - Fix dwc3 cache handling when using DMA Fastboot: - Make AVB_VERIFY depends on FASTBOOT CI job: - https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/22742 Thanks, Mattij

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Mattijs Korpershoek
Hi Neil, On jeu., oct. 17, 2024 at 14:01, Neil Armstrong wrote: > On 17/10/2024 13:58, Mattijs Korpershoek wrote: >> Hi Neil, >> >> On jeu., oct. 17, 2024 at 13:33, Mattijs Korpershoek >> wrote: >> >>> Hi Neil, >>> >>> Thank you f

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Mattijs Korpershoek
Hi Neil, On jeu., oct. 17, 2024 at 13:33, Mattijs Korpershoek wrote: > Hi Neil, > > Thank you for the series. > > On mer., oct. 16, 2024 at 17:46, Neil Armstrong > wrote: > >> When trying to use the Android boot image with header version 2 >> on recent Qua

Re: [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address

2024-10-17 Thread Mattijs Korpershoek
On jeu., oct. 17, 2024 at 16:02, Svyatoslav Ryhel wrote: > чт, 17 жовт. 2024 р. о 15:21 Mattijs Korpershoek > пише: >> >> Hi, >> >> On mer., oct. 16, 2024 at 21:57, Ion Agorria wrote: >> >> > Hello, >> > >> > Yes that's t

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Mattijs Korpershoek
On jeu., oct. 17, 2024 at 14:07, Mattijs Korpershoek wrote: > Hi Neil, > > On jeu., oct. 17, 2024 at 14:01, Neil Armstrong > wrote: > >> On 17/10/2024 13:58, Mattijs Korpershoek wrote: >>> Hi Neil, >>> >>> On jeu., oct. 17, 2024 at 13:33, Ma

Re: [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address

2024-10-17 Thread Mattijs Korpershoek
it easier to compare with the Linux driver in the future, Thanks Mattijs > > Regards, > Ion Agorria > > El mar, 15 oct 2024 a las 11:56, Mattijs Korpershoek > () escribió: >> >> Hi Svyatoslav, >> >> Thank you for the patch. >> >> On dim., oc

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-17 Thread Mattijs Korpershoek
Hi Dmitry, On mer., oct. 16, 2024 at 17:06, Dmitry Rokosov wrote: [...] >> > >> > I just run build on the my x86 Ubuntu machine. >> > >> > $ cd uboot >> > $ make mproper >> > $ make sandbox_defconfig >> > $ make -j$(nproc) >> >> I tried these commands: >> Here is the successfull build output:

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-17 Thread Mattijs Korpershoek
Hi Dmitry, On mer., oct. 16, 2024 at 18:48, Dmitry Rokosov wrote: [...] >> > ``` >> >> Long help should use U_BOOT_LONGHELP, we normally handle this with >> #ifdef - see cmd/bootflow.c for example > > Thank you for pointing me to U_BOOT_LONGHELP. I have redesigned > cmd/bcb.c to utilize the U

Re: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-17 Thread Mattijs Korpershoek
Hi Neil, Thank you for the series. On mer., oct. 16, 2024 at 17:46, Neil Armstrong wrote: > When trying to use the Android boot image with header version 2 > on recent Qualcomm platforms, we get into some troubles. > > First the kernel in-place address can be > 32bit, then since > we use the A

Re: [PATCH 3/3] image: android: handle ramdisk default address

2024-10-17 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch. On mer., oct. 16, 2024 at 17:46, Neil Armstrong wrote: > The two tools that create android boot images, mkbootimg and the fastboot > client, set the kernel address by default to 0x11008000. > > U-boot always honors this field, and will try to copy the ramdisk

Re: [PATCH v4 1/4] dfu: add scsi backend

2024-10-17 Thread Mattijs Korpershoek
On jeu., oct. 17, 2024 at 15:16, Caleb Connolly wrote: > Hi Mattijs, > > On 15/10/2024 11:32, Mattijs Korpershoek wrote: >> Hi Caleb, >> >> Thank you for the patch. >> >> On sam., oct. 12, 2024 at 15:57, Caleb Connolly >> wrote: >> &g

Re: [PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-10 Thread Mattijs Korpershoek
Hi Jagan, Vignesh, On mar., oct. 01, 2024 at 18:06, Neil Armstrong wrote: > To smoothly handle the transition from the legacy SPI FLASH > API to the the driver model API, add the DM functions > as dummy inline functions. > > Today, client code uses #if/#else conditionals, but it's better > to u

Re: [PATCH 1/6] bootstd: android: add support of bootimage v2

2024-10-22 Thread Mattijs Korpershoek
1] instead of 1:). See some examples: https://source.denx.de/u-boot/u-boot/-/commit/9214627f5ecede8610e33abf2de5a0083f3f80ce https://source.denx.de/u-boot/u-boot/-/commit/608a31bdec6284ad6f821226e4c62c9cd3052874 With that fixed: Reviewed-by: Mattijs Korpershoek > > Signed-off-by: Guillau

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-12 Thread Mattijs Korpershoek
Hi Dmitry, On ven., oct. 11, 2024 at 21:00, Dmitry Rokosov wrote: > On Fri, Oct 11, 2024 at 04:20:39PM +0200, Mattijs Korpershoek wrote: >> On ven., oct. 11, 2024 at 15:30, "Mattijs Korpershoek via groups.io" >> wrote: >> >> > Hi Dmitry, >> &g

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-11 Thread Mattijs Korpershoek
Hi Dmitry, Thank you for the patch. On mar., oct. 08, 2024 at 23:18, Dmitry Rokosov wrote: > To enhance code organization, it is beneficial to consolidate all A/B > BCB management routines into a single super-command. > The 'bcb' command is an excellent candidate for this purpose. > > This pat

Re: [PATCH v2] usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket

2024-10-11 Thread Mattijs Korpershoek
Hi, On Mon, 07 Oct 2024 17:49:27 +0530, Siddharth Vadapalli wrote: > The function cdns3_ep_config() calculates the maximum packet size based > on the Endpoint Type and the Gadget Speed and stores it in the variable > "max_packet_size". This value is then programmed in the USB Controller > for the

Re: [PATCH] Make AVB_VERIFY depend on FASTBOOT

2024-10-11 Thread Mattijs Korpershoek
Hi, On Wed, 02 Oct 2024 16:48:45 +0200, Jerome Forissier wrote: > AVB_BUF_ADDR, which is under "if AVB_VERIFY", defaults to > FASTBOOT_BUF_ADDR. Therefore AVB_VERIFY should depend on FASTBOOT. > > Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu) [1/1] Make A

Re: [PATCH v3 4/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-10-11 Thread Mattijs Korpershoek
On ven., oct. 11, 2024 at 17:45, Dmitry Rokosov wrote: > Hello Mattijs, > > On Fri, Oct 11, 2024 at 04:22:43PM +0200, Mattijs Korpershoek wrote: >> Hi Dmitry, >> >> On jeu., oct. 10, 2024 at 14:17, "Mattijs Korpershoek via groups.io" >> wrote: >

Re: [PATCH v5 2/6] cmd: bcb: rework the command to U_BOOT_LONGHELP approach

2024-10-22 Thread Mattijs Korpershoek
-- > 1 file changed, 43 insertions(+), 108 deletions(-) Nice diffstat, always great to see code removed! Reviewed-by: Mattijs Korpershoek > > diff --git a/cmd/bcb.c b/cmd/bcb.c > index > 97a96c009641cc094645607ef833575f3c03fe4b..98b2a71087a27b1721f4bed4160095d65ec75402 > 100

Re: [PATCH v2 1/3] image: android: use ulong for kernel address

2024-10-22 Thread Mattijs Korpershoek
e > 32bits address numbers. > > Signed-off-by: Neil Armstrong Reviewed-by: Mattijs Korpershoek > --- > boot/image-android.c| 4 ++-- > include/android_image.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/boot/i

Re: [PATCH v5 5/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-10-22 Thread Mattijs Korpershoek
>> - Verity Corrupted: 0 > > > The ab_dump command allows you to display ABC data directly on the > U-Boot console. During an A/B test execution, this test verifies the > accuracy of each field within the ABC data. > > Signed-off-by: Dmitry Rokosov Reviewe

Re: [PATCH 4/6] configs: khadas-vim3l_android{_ab}: move on bootmeth android

2024-10-22 Thread Mattijs Korpershoek
Hi Guillaume, Thank you for the patch. On jeu., oct. 17, 2024 at 18:10, Guillaume La Roque wrote: > Actually khadas vim3l use distro command to boot android image. > Move on new bootmeth android for A/B and non-A/B vim3l android. > > Signed-off-by: Guillaume La Roque > --- > configs/khadas-v

Re: [PATCH 5/6] configs: khadas-vim3_android{_ab}: move on bootmeth android

2024-10-22 Thread Mattijs Korpershoek
Hi Guillaume, Thank you for the patch. On jeu., oct. 17, 2024 at 18:10, Guillaume La Roque wrote: > Actually khadas vim3 use distro command to boot android image. > Move on new bootmeth android for A/B and non-A/B vim3 android. > > Signed-off-by: Guillaume La Roque > --- > configs/khadas-vim

Re: [PATCH 6/6] bootstd: Add test for Android boot image v2

2024-10-22 Thread Mattijs Korpershoek
@@ -1135,13 +1136,20 @@ > filename = "mmc6.img"; > }; > > - /* This is used for Android tests */ > + /* This is used for Android tests image v4 tests */ Nit: we are repeating "tests" twice here. Maybe rephrase to "This is used for Android boot image v4 tests" ? With the nit addressed: Reviewed-by: Mattijs Korpershoek [...] > mmc7 { > > -- > 2.34.1

Re: [PATCH 3/6] configs: khadas-vim3{l}: fix userdata size

2024-10-22 Thread Mattijs Korpershoek
e patch, I was not aware that VIM3 had 2 models with different eMMC sizes: - VIM3 (Basic) with 16GB of eMMC - VIM3 Pro with 32GB of eMMC I of course have the VIM3 pro so I did not notice this regression. Sorry about this. Reviewed-by: Mattijs Korpershoek > --- > include/configs/khad

Re: [PATCH v2 24/31] bootmeth: Update the read_file() method to include a type

2024-10-22 Thread Mattijs Korpershoek
ut the image that > is read. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- [...]

Re: [PATCH 2/6] bootstd: android: add non-A/B image support

2024-10-22 Thread Mattijs Korpershoek
Hi Guillaume, Thank you for the patch. On jeu., oct. 17, 2024 at 18:10, Guillaume La Roque wrote: > Update android bootmeth to support non-A/B image. > Enable AB support only when ANDROID_AB is enabled. > > Signed-off-by: Guillaume La Roque > --- > boot/Kconfig | 1 - >

Re: [PATCH v2 10/31] test: boot: Use a consistent name for the script bootmeth

2024-10-22 Thread Mattijs Korpershoek
by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > (no changes since v1) > > test/boot/bootflow.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c > index 154dea70a59..8ea284098e7 100644 >

Re: [PATCH v5 3/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-22 Thread Mattijs Korpershoek
s purpose. > > This patch integrates the separate 'ab_select' command into the 'bcb' > group as the 'ab_select' subcommand, maintaining the same parameter list > for consistency. > > Signed-off-by: Dmitry Rokosov Reviewed-by: Mattijs Korpershoek

Re: [PATCH v5 0/6] android_ab: introduce bcb ab_dump command and provide several bcb fixes

2024-10-22 Thread Mattijs Korpershoek
- add a test for the ab_dump command to verify the accuracy of each > field within the ABC data displayed, it's also useful for testing > slot_suffix problem code paths > > Signed-off-by: Dmitry Rokosov Boot tested AOSP using on Khadas VIM3 using khadas_vim3_androi

Re: [PATCH v4 0/3] dwc3: gadget: properly fix cache operations

2024-10-22 Thread Mattijs Korpershoek
Hi Tom, On lun., oct. 21, 2024 at 17:31, Tom Rini wrote: > On Fri, 11 Oct 2024 16:38:23 +0200, Neil Armstrong wrote: > >> We experience huge problems with cache handling on Qualcomm >> systems, and it appears the dcache handling in the DWC3 gadget >> code is quite wrong and causes operational is

Re: [PATCH v2 2/3] image: android: do not boot XIP when kernel is compressed

2024-10-22 Thread Mattijs Korpershoek
; uncompress. > > Take in account the compressed state, and if compressed > use the kernel_addr_r which should be big enough. > > Signed-off-by: Neil Armstrong Reviewed-by: Mattijs Korpershoek > --- > boot/image-android.c | 20 +++- > 1 file changed, 15 insertio

Re: [PATCH v2 3/3] image: android: handle ramdisk default address

2024-10-22 Thread Mattijs Korpershoek
s that it will already have been > downloaded to some location that is suitable to use the ramdisk in-place > for header version 0 to 2. For header version 3 and later, the ramdisk > can't be used in-place to use ramdisk_addr_r in this case. > > Signed-off-by: Neil Armstrong Re

Re: [PATCH v5 6/6] common: android_ab: fix slot suffix for abc block

2024-11-05 Thread Mattijs Korpershoek
om/docs/core/architecture/bootloader/updating#slots >> >> Based-on: >> https://android-review.googlesource.com/c/platform/external/u-boot/+/1446439 >> Reviewed-by: Mattijs Korpershoek >> Reviewed-by: Simon Glass >> Tested-by: Guillaume La Roque >> Signed-off

Re: [PATCH v5 6/6] common: android_ab: fix slot suffix for abc block

2024-11-05 Thread Mattijs Korpershoek
/source.android.com/docs/core/architecture/bootloader/updating#slots >> >> Based-on: >> https://android-review.googlesource.com/c/platform/external/u-boot/+/1446439 >> Reviewed-by: Mattijs Korpershoek >> Reviewed-by: Simon Glass >> Tested-by: Guillaume La

Re: [PATCH v2 0/2] dfu: sf: fix flash probe when DM_SPI_FLASH is enabled

2024-10-24 Thread Mattijs Korpershoek
Hi, On Tue, 01 Oct 2024 18:06:10 +0200, Neil Armstrong wrote: > With DM_SPI_FLASH is enabled, the code uses the legacy > SPI FLASH code leading to probable errors since it doesn't > use speed and mode provided by DT. > > This adds the DM functions as dummy inline functions > to add both legacy an

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

2024-10-25 Thread Mattijs Korpershoek
Hi Tom, Please find some new developments and fixes for master: Dfu: - Rely on device tree for spi speed/mode on spi flash Android image: - Fix booting on platforms having > 4GiB of memory - Decompress boot image to kernel_addr_r when compression is enabled - Honor CONFIG_SYS_LOAD_ADDR when mkbo

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

2024-09-30 Thread Mattijs Korpershoek
Hi Tom, Please find some fixes for master: - Fix Kconfig dependencies for DFU_OVER_USB CI job: - https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/22468/ PS: I know it's a bit late, if you'd prefer to defer this to next release, let me know. Thanks, Mattijs The following changes

Re: [PATCH] usb: gadget: cdns3: Fix missing cache operations for non-zero Endpoints

2024-09-30 Thread Mattijs Korpershoek
Fix this. > > Fixes: 7e91f6ccdc84 ("usb: Add Cadence USB3 host and gadget driver") > Signed-off-by: Siddharth Vadapalli Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2 3/6] cmd: bcb: change strcmp() usage style in the do_bcb_ab_select()

2024-09-30 Thread Mattijs Korpershoek
n as well. > > Signed-off-by: Dmitry Rokosov Reviewed-by: Mattijs Korpershoek > --- > cmd/bcb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cmd/bcb.c b/cmd/bcb.c > index a56535a743c0..a888549eed3a 100644 > --- a/cmd/bcb.c > +++ b/cmd

Re: [PATCH v2 4/6] cmd: bcb: introduce 'ab_dump' command to print BCB block content

2024-09-30 Thread Mattijs Korpershoek
t; Slot[0] Metadata: >> - Priority: 15 >> - Tries Remaining: 0 >> - Successful Boot: 1 >> - Verity Corrupted: 0 >> >> Slot[1] Metadata: >> - Priority: 14 >> - Tries Remaining: 7 >>

Re: [PATCH v2 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-09-30 Thread Mattijs Korpershoek
Hi Dmitry, Thank you for the patch. On jeu., sept. 12, 2024 at 00:49, Dmitry Rokosov wrote: > To enhance code organization, it is beneficial to consolidate all A/B > BCB management routines into a single super-command. > The 'bcb' command is an excellent candidate for this purpose. > > This pa

Re: [PATCH v2] usb: gadget: usbhs: Add Renesas USBHS device driver

2024-09-30 Thread Mattijs Korpershoek
https://lore.kernel.org/r/all/87jzhcpi9z@baylibre.com/ The diff between v1 and v2 looks good to me as well, so Reviewed-by: Mattijs Korpershoek > --- > Note that the driver does have a few checkpatch warnings in it, those > also partly come from Linux. > --- > Cc: Jonas Karlman > Cc

Re: [PATCH] dfu: define a callback function for the dfu_alt_info environment variable

2024-10-01 Thread Mattijs Korpershoek
Hi, On Wed, 11 Sep 2024 15:39:00 +0200, Rasmus Villemoes wrote: > I'm trying to use dfu-util for bootstrapping an stm32mp board. It > mostly works fine, but something goes horribly wrong as soon as I make > use of the ability to run arbitrary u-boot shell commands. The shell > commands themselves

Re: [PATCH 1/1] cmd: simplify CONFIG_CMD_USB_MASS_STORAGE dependencies

2024-10-01 Thread Mattijs Korpershoek
Hi Heinrich, Thank you for the patch. On sam., sept. 21, 2024 at 11:20, Heinrich Schuchardt wrote: > CONFIG_USB_GADGET_DOWNLOAD depends on CONFIG_USB_GADGET. > It is sufficient to depend on the prior. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Mattijs Korpershoek

Re: [PATCH v2] usb: gadget: usbhs: Add Renesas USBHS device driver

2024-10-01 Thread Mattijs Korpershoek
Hi, On Mon, 09 Sep 2024 01:06:24 +0200, Marek Vasut wrote: > Add UDC driver for Renesas USBHS controller found in R-Car Gen3 SoCs. > This is mostly ported from the Linux kernel, with additional porting > glue. The code has been synchronized with 1b4861e32e46 ("Linux 6.9.3") > and cleaned up and po

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Mattijs Korpershoek
On mar., oct. 01, 2024 at 12:13, Neil Armstrong wrote: > On 01/10/2024 12:01, Neil Armstrong wrote: >> On 01/10/2024 10:52, Mattijs Korpershoek wrote: >>> Hi Neil, >>> >>> Thank you for the patch and sorry the review delay. >>> >>> On mar

Re: [PATCH v2] bootstd: android: Add U-Boot version to cmdline

2024-10-01 Thread Mattijs Korpershoek
Hi, On Thu, 12 Sep 2024 16:00:01 +0200, Mattijs Korpershoek wrote: > When booting into Android fastbootd (a subset of recovery), the default > UI shows the bootloader version in the screen [1]. > This is done via the ro.bootloader property which should come from the > bootloader. >

Re: [PATCH v2 0/3] dwc3: gadget: properly fix cache operations

2024-10-01 Thread Mattijs Korpershoek
On mar., oct. 01, 2024 at 16:43, Neil Armstrong wrote: > Hi, > > On 24/07/2024 17:48, Neil Armstrong wrote: >> We experience huge problems with cache handling on Qualcomm >> systems, and it appears the dcache handling in the DWC3 gadget >> code is quite wrong and causes operational issues. >> >

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch and sorry the review delay. On mar., sept. 17, 2024 at 14:24, Neil Armstrong wrote: > Align with cmd_sf, and try to rely on DT for spi speed and mode, > and still fallback on spi_flash_probe() if it fails. > > With the current scheme, spi_flash_probe() will be

Re: [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot

2024-10-01 Thread Mattijs Korpershoek
Hi Simon, On mar., oct. 01, 2024 at 05:18, Simon Glass wrote: > Hi, > > On Fri, 23 Aug 2024 at 14:48, Simon Glass wrote: >> >> This series attempts to migrate all sunxi boards to use standard boot, >> along with a text environment. >> >> Changes in v2: >> - Add new patch to resolve BOOTSTD->BLK

[PATCH] boot: android: Fix ramdisk loading for v2 header

2024-10-03 Thread Mattijs Korpershoek
ssing memcpy() to fix the issue. Fixes: da3447d09fa0 ("android: Fix ramdisk loading for bootimage v3+") Signed-off-by: Mattijs Korpershoek --- Note that on default AOSP boot images, there is another bug: the ramdisk offset is wronly configured: $ file boot.img boot.img: Android bo

<    2   3   4   5   6   7   8   9   10   >