Re: [PATCH v2 3/4] NSA310S : Use Ethernet PHY name from device tree

2021-07-02 Thread Stefan Roese
On 03.07.21 05:08, Tony Dinh wrote: In DM Ethernet, the old "egiga0" name is no longer valid, so replace it with Ethernet PHY name from device tree. Signed-off-by: Tony Dinh --- Changes in v2: - Correct copyright board/zyxel/nsa310s/nsa310s.c | 19 --- 1 file changed, 8

[PATCH v2 4/4] NSA310S : Add DM SATA configs

2021-07-02 Thread Tony Dinh
Enable DM SATA, removed IDE driver, and add SATA MV driver. Signed-off-by: Tony Dinh --- Changes in v2: - Correct copyright include/configs/nsa310s.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/nsa310s.h b/include/configs/nsa310s.h index

[PATCH v2 3/4] NSA310S : Use Ethernet PHY name from device tree

2021-07-02 Thread Tony Dinh
In DM Ethernet, the old "egiga0" name is no longer valid, so replace it with Ethernet PHY name from device tree. Signed-off-by: Tony Dinh --- Changes in v2: - Correct copyright board/zyxel/nsa310s/nsa310s.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git

Re: [PATCH 2/2] ARM: imx: Pick correct eMMC boot partition from ROM log

2021-07-02 Thread Marek Vasut
On 7/1/21 12:07 PM, Teresa Remmet wrote: Hi [...] Am Donnerstag, den 01.07.2021, 01:08 +0200 schrieb Marek Vasut: In case the iMX8M boot from eMMC boot partition and the primary image is corrupted, the BootROM is capable of starting a secondary image in the other eMMC boot partition as a

[PATCH V2 2/2] ARM: imx: Pick correct eMMC boot partition from ROM log

2021-07-02 Thread Marek Vasut
In case the iMX8M boot from eMMC boot partition and the primary image is corrupted, the BootROM is capable of starting a secondary image in the other eMMC boot partition as a fallback. However, the BootROM leaves the eMMC BOOT_PARTITION_ENABLE setting as it was, i.e. pointing to the boot

[PATCH V2 1/2] spl: mmc: Factor out eMMC boot partition selection code

2021-07-02 Thread Marek Vasut
Factor out eMMC boot partition selection code into default_spl_mmc_emmc_boot_partition() function and implement weak spl_mmc_emmc_boot_partition(), so that architecture or board code can override the eMMC boot partition selection. Signed-off-by: Marek Vasut Cc: Faiz Abbas Cc: Harald Seiler Cc:

Re: [PATCH 2/2] ARM: imx: Pick correct eMMC boot partition from ROM log

2021-07-02 Thread Marek Vasut
On 7/1/21 1:22 PM, Harald Seiler wrote: [...] + /* Parse the ROM event ID version 2 log */ + rom_log = (u32 *)(uintptr_t)(*rom_log_addr); + for (i = 0; i < 128; i++) { + event_id = rom_log[i] >> 24; + switch (event_id) { + case 0x00:

Re: [RFC PATCH 03/28] cli: lil: Replace strclone with strdup

2021-07-02 Thread Sean Anderson
On 7/2/21 6:18 PM, Kostas Michalopoulos wrote: On 7/2/2021 4:38 PM, Sean Anderson wrote: I have not. I'm not sure what changes I've made are compatible with the vision he has for LIL. He's CC'd on this series, so perhaps he can comment. Yeah, sadly several of the changes i've seen in the code

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-02 Thread Sean Anderson
On 7/2/21 9:33 AM, Sean Anderson wrote: On 7/2/21 7:03 AM, Wolfgang Denk wrote: Dear Sean, In message <20210701061611.957918-3-sean...@gmail.com> you wrote: This is the LIL programming language [1] as originally written by Kostas Michalopoulos . LIL is a stripped-down TCL variant. Many syntax

Re: [RFC PATCH 03/28] cli: lil: Replace strclone with strdup

2021-07-02 Thread Kostas Michalopoulos
On 7/2/2021 4:38 PM, Sean Anderson wrote: I have not. I'm not sure what changes I've made are compatible with the vision he has for LIL. He's CC'd on this series, so perhaps he can comment. Yeah, sadly several of the changes i've seen in the code are not backwards compatible and backwards

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Marek Vasut
On 7/3/21 12:36 AM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 3:18 PM Marek Vasut wrote: On 7/2/21 11:44 PM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 12:53 PM Marek Vasut wrote: On 7/2/21 9:43 PM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: On 7/2/21 2:15 AM,

Re: [PULL u-boot] Please pull u-boot-amlogic-20210703

2021-07-02 Thread Tom Rini
On Sat, Jul 03, 2021 at 12:06:40AM +0200, Neil Armstrong wrote: > Hi Tom, > > Please find a very late fix for a SPI NOR Flash probe fail on the Amlogic > based libretech boards. > > The CI job is at > https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/8015 > > Thanks, > Neil >

Re: Pull request for efi-2021-07-rc6

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 06:41:19PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit b7ad721c83fdbeeb71189d5f259c109cb1c38895: > > Revert "TEST: USB_HOST not USB" (2021-06-30 13:10:02 -0400) > > are available in the Git repository at: > >

Re: [PATCH] autoboot: fix MENUKEY

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 12:32:43PM -0400, Da Xue wrote: > replace CONFIG_AUTOBOOT_USE_MENUKEY with CONFIG_AUTOBOOT_MENUKEY > > Signed-off-by: Da Xue Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] autoboot: fix typos of CONFIG_AUTOBOOT_USE_MENUKEY

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 12:22:01PM -0400, Da Xue wrote: > Hi Tom, > > There is a distinction between the two flags CONFIG_AUTOBOOT_USE_MENUKEY > AND CONFIG_AUTOBOOT_MENUKEY. > > config AUTOBOOT_USE_MENUKEY > bool "Allow a specify key to run a menu from the environment" > depends on

Re: [PATCH] configs: libretech: set SPI mode to 0

2021-07-02 Thread Tom Rini
On Sat, Jul 03, 2021 at 12:26:51AM +0200, Marek Vasut wrote: > On 7/3/21 12:01 AM, Neil Armstrong wrote: > > [...] > > > > diff --git a/configs/libretech-s912-pc_defconfig > > > b/configs/libretech-s912-pc_defconfig > > > index e2faea6242..669f000f7f 100644 > > > ---

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Tim Harvey
On Fri, Jul 2, 2021 at 3:18 PM Marek Vasut wrote: > > On 7/2/21 11:44 PM, Tim Harvey wrote: > > On Fri, Jul 2, 2021 at 12:53 PM Marek Vasut wrote: > >> > >> On 7/2/21 9:43 PM, Tim Harvey wrote: > >>> On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: > > On 7/2/21 2:15 AM, Tim Harvey

Re: [PATCH] configs: libretech: set SPI mode to 0

2021-07-02 Thread Marek Vasut
On 7/3/21 12:01 AM, Neil Armstrong wrote: [...] diff --git a/configs/libretech-s912-pc_defconfig b/configs/libretech-s912-pc_defconfig index e2faea6242..669f000f7f 100644 --- a/configs/libretech-s912-pc_defconfig +++ b/configs/libretech-s912-pc_defconfig @@ -35,6 +35,7 @@

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Fabio Estevam
Hi Tim, On Fri, Jul 2, 2021 at 6:44 PM Tim Harvey wrote: > Marek, > > When I tested UMS with this series on imx6 based gwventana I had to > troubleshoot a regression caused when I switched to DM_USB and found > that the gadget driver isn't probed until you issue the ums command. I > don't know

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Marek Vasut
On 7/2/21 11:44 PM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 12:53 PM Marek Vasut wrote: On 7/2/21 9:43 PM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: On 7/2/21 2:15 AM, Tim Harvey wrote: There is no need to set and/or detect mode in of_to_plat Are you

[PULL u-boot] Please pull u-boot-amlogic-20210703

2021-07-02 Thread Neil Armstrong
Hi Tom, Please find a very late fix for a SPI NOR Flash probe fail on the Amlogic based libretech boards. The CI job is at https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/8015 Thanks, Neil The following changes since commit b7ad721c83fdbeeb71189d5f259c109cb1c38895:

Re: [PATCH] configs: libretech: set SPI mode to 0

2021-07-02 Thread Neil Armstrong
On 02/07/2021 23:11, Da Xue wrote: > Kconfig defaults to mode 3 if CONFIG_SF_DEFAULT_MODE is not set. > It becomes an issue since meson_spifc does not support SPI_CPHA. > Needed after commit e2e95e5e25421fbef499e21bf94a5339701f9a99. > > Signed-off-by:Da Xue > --- >  

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Tim Harvey
On Fri, Jul 2, 2021 at 12:53 PM Marek Vasut wrote: > > On 7/2/21 9:43 PM, Tim Harvey wrote: > > On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: > >> > >> On 7/2/21 2:15 AM, Tim Harvey wrote: > >>> There is no need to set and/or detect mode in of_to_plat > >> > >> Are you absolutely sure of

Re: [PATCH] video: Add simple driver for ST-Ericsson MCDE with pre-configured display

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 7:22 PM Stephan Gerhold wrote: > The U-Boot port for ST-Ericsson Ux500 is currently only used on the > "stemmy" board, where U-Boot runs after firmware that already sets up > a boot splash screen. This means that the display is already on > and we can just continue using

Re: iMX8MM USB support?

2021-07-02 Thread Fabio Estevam
Hi Tim, On Fri, Jul 2, 2021 at 6:13 PM Tim Harvey wrote: > Fabio, > > After applying the other patches in your diff I'm able to get SDP > booting on my board as well. > > Please CC me when you submit your SDP series. It will overlap with my > 'usb: ehci-mx6: move mode set/detect to probe'. Ok,

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 11:14:00PM +0300, Alper Nebi Yasak wrote: > On 02/07/2021 23:03, Alper Nebi Yasak wrote: > > On 02/07/2021 22:01, Tom Rini wrote: > >> Hey all, > >> > >> I started taking a look at moving to guestfish to see if this resolves > >> the latest problem I've run in to: > >>

Re: iMX8MM USB support?

2021-07-02 Thread Tim Harvey
On Fri, Jul 2, 2021 at 7:50 AM Fabio Estevam wrote: > > Hi Tim, > > On Thu, Jul 1, 2021 at 10:36 PM Fabio Estevam wrote: > > > But I still get: > > > > U-Boot SPL 2021.07-rc5-2-g5f269bf8bd14-dirty (Jul 01 2021 - 22:28:29 > > -0300) > > WDT: Not starting > > SPL: Unsupported Boot Device! >

[PATCH] configs: libretech: set SPI mode to 0

2021-07-02 Thread Da Xue
Kconfig defaults to mode 3 if CONFIG_SF_DEFAULT_MODE is not set. It becomes an issue since meson_spifc does not support SPI_CPHA. Needed after commit e2e95e5e25421fbef499e21bf94a5339701f9a99. Signed-off-by:Da Xue --- configs/libretech-ac_defconfig | 1 + configs/libretech-cc_v2_defconfig

Re: [PATCH v2 0/9] efi: Various tidy-ups and drop the default

2021-07-02 Thread Simon Glass
Hi Tom, On Fri, 2 Jul 2021 at 14:19, Tom Rini wrote: > > On Fri, Jul 02, 2021 at 02:04:40PM -0600, Simon Glass wrote: > > Hi Mark, > > > > On Fri, 2 Jul 2021 at 13:50, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Fri, 2 Jul 2021 12:36:11 -0600 > > > > > > > > It has come

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-07-02 Thread Simon Glass
Hi Mark, On Fri, 2 Jul 2021 at 13:48, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 2 Jul 2021 13:05:20 -0600 > > Cc: Tom Rini , U-Boot Mailing List > > , > > Pali Rohár , > > Heinrich Schuchardt , > > Ilias Apalodimas , > > Alex Graf , > >

Re: [PATCH v2 9/9] efi: Make EBBR optional

2021-07-02 Thread Simon Glass
Hi Tom, On Fri, 2 Jul 2021 at 14:11, Tom Rini wrote: > > On Fri, Jul 02, 2021 at 12:36:20PM -0600, Simon Glass wrote: > > > Avoid enabling the options (EBBR / EFI_LOADER) by default, to save space. > > > > Resync the CONFIG options also. > > > > Signed-off-by: Simon Glass > > NAK. It's very

Re: [PATCH 1/1] tpm2: Add a TPMv2 MMIO TIS driver

2021-07-02 Thread Ilias Apalodimas
On Fri, Jul 02, 2021 at 07:54:13PM +0200, Heinrich Schuchardt wrote: > On 7/2/21 2:52 PM, Ilias Apalodimas wrote: > > Add a TPMv2 TIS MMIO compatible driver. > > This useful for a couple of reasons. First of all we can support a TPMv2 > > on devices that have this hardware (e.g the newly added

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 11:03:52PM +0300, Alper Nebi Yasak wrote: > On 02/07/2021 22:01, Tom Rini wrote: > > Hey all, > > > > I started taking a look at moving to guestfish to see if this resolves > > the latest problem I've run in to: > > https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 >

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Marek Vasut
On 7/2/21 10:10 PM, Da Xue wrote: [...] That should do the trick. Can you check which of the mode bits is set in meson_spifc_set_mode() and triggers the ENODEV condition ? SPI_CPHA seems to be the culprit. I tried adding spi-cpha = <0> to no avail. Can you find out what is setting the

Re: [PATCH v2 0/9] efi: Various tidy-ups and drop the default

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 02:04:40PM -0600, Simon Glass wrote: > Hi Mark, > > On Fri, 2 Jul 2021 at 13:50, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Fri, 2 Jul 2021 12:36:11 -0600 > > > > > > It has come to light that EFI_LOADER adds an extraordinary amount of > > > code to

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Alper Nebi Yasak
On 02/07/2021 23:03, Alper Nebi Yasak wrote: > On 02/07/2021 22:01, Tom Rini wrote: >> Hey all, >> >> I started taking a look at moving to guestfish to see if this resolves >> the latest problem I've run in to: >> https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 >> which I think is due to

Re: [PATCH v2 9/9] efi: Make EBBR optional

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 12:36:20PM -0600, Simon Glass wrote: > Avoid enabling the options (EBBR / EFI_LOADER) by default, to save space. > > Resync the CONFIG options also. > > Signed-off-by: Simon Glass NAK. It's very much intentional that we have EFI_LOADER, and then looking ahead, any

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 3:40 PM Marek Vasut wrote: > On 7/2/21 9:35 PM, Da Xue wrote: > > [...] > > >> Seems like you're hitting this code in drivers/spi/meson_spifc.c > >> > >> 250 static int meson_spifc_set_mode(struct udevice *dev, uint mode) > >> 251 { > >> 252

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 09:48:27PM +0200, Mark Kettenis wrote: > > From: Simon Glass > > Date: Fri, 2 Jul 2021 13:05:20 -0600 > > Cc: Tom Rini , U-Boot Mailing List > > , > > Pali Rohár , > > Heinrich Schuchardt , > > Ilias Apalodimas , > > Alex Graf , > >

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Sean Anderson
On 7/2/21 3:48 PM, Tom Rini wrote: On Fri, Jul 02, 2021 at 03:22:14PM -0400, Sean Anderson wrote: On 7/2/21 3:01 PM, Tom Rini wrote: > Hey all, > > I started taking a look at moving to guestfish to see if this resolves > the latest problem I've run in to: >

Re: [PATCH v2 0/9] efi: Various tidy-ups and drop the default

2021-07-02 Thread Simon Glass
Hi Mark, On Fri, 2 Jul 2021 at 13:50, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 2 Jul 2021 12:36:11 -0600 > > > > It has come to light that EFI_LOADER adds an extraordinary amount of > > code to U-Boot. For example, with nokia_rx51 the size delta is about > > 90KB. About 170

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Alper Nebi Yasak
On 02/07/2021 22:01, Tom Rini wrote: > Hey all, > > I started taking a look at moving to guestfish to see if this resolves > the latest problem I've run in to: > https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 > which I think is due to guestmount not being done in time for the test. That

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 01:06:23PM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 2 Jul 2021 at 13:01, Tom Rini wrote: > > > > Hey all, > > > > I started taking a look at moving to guestfish to see if this resolves > > the latest problem I've run in to: > >

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Marek Vasut
On 7/2/21 9:43 PM, Tim Harvey wrote: On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: On 7/2/21 2:15 AM, Tim Harvey wrote: There is no need to set and/or detect mode in of_to_plat Are you absolutely sure of that ? It used to be necessary to know the core mode early to determine which

Re: [PATCH v2 0/9] efi: Various tidy-ups and drop the default

2021-07-02 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 2 Jul 2021 12:36:11 -0600 > > It has come to light that EFI_LOADER adds an extraordinary amount of > code to U-Boot. For example, with nokia_rx51 the size delta is about > 90KB. About 170 boards explicitly disable the option, but is is clear > that many more

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 03:22:14PM -0400, Sean Anderson wrote: > > > On 7/2/21 3:01 PM, Tom Rini wrote: > > Hey all, > > > > I started taking a look at moving to guestfish to see if this resolves > > the latest problem I've run in to: > > https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 >

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-07-02 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 2 Jul 2021 13:05:20 -0600 > Cc: Tom Rini , U-Boot Mailing List , > Pali Rohár , > Heinrich Schuchardt , > Ilias Apalodimas , > Alex Graf , > Masahiro Yamada > Content-Type: text/plain; charset="UTF-8" > > Hi Mark, > > On

Re: [PATCH v2 1/2] usb: ehci-mx6: move mode set/detect to probe

2021-07-02 Thread Tim Harvey
On Fri, Jul 2, 2021 at 12:17 PM Marek Vasut wrote: > > On 7/2/21 2:15 AM, Tim Harvey wrote: > > There is no need to set and/or detect mode in of_to_plat > > Are you absolutely sure of that ? > > It used to be necessary to know the core mode early to determine which > driver (the gadget or host)

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Marek Vasut
On 7/2/21 9:35 PM, Da Xue wrote: [...] Seems like you're hitting this code in drivers/spi/meson_spifc.c 250 static int meson_spifc_set_mode(struct udevice *dev, uint mode) 251 { 252 struct meson_spifc_priv *spifc = dev_get_priv(dev); 253 254 if (mode & (SPI_CPHA | SPI_RX_QUAD

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 3:06 PM Marek Vasut wrote: > On 7/2/21 8:28 PM, Da Xue wrote: > > On Fri, Jul 2, 2021 at 2:10 PM Marek Vasut wrote: > > > >> On 7/2/21 8:03 PM, Da Xue wrote: > >>> SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, > total > >>> 16 MiB > >>> SPI mode: 3 >

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Sean Anderson
On 7/2/21 3:01 PM, Tom Rini wrote: > Hey all, > > I started taking a look at moving to guestfish to see if this resolves > the latest problem I've run in to: > https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 > which I think is due to guestmount not being done in time for the test. > So

[PATCH v2 9/9] efi: Make EBBR optional

2021-07-02 Thread Simon Glass
Avoid enabling the options (EBBR / EFI_LOADER) by default, to save space. Resync the CONFIG options also. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig.boot | 2 +- configs/am335x_igep003x_defconfig| 1 -

[PATCH v2 5/9] Allow efi_loader header to be included always

2021-07-02 Thread Simon Glass
It is bad practice to put function declarations behind an #ifdef since it makes it impossible to use IS_ENABLED() in the C code. The main reason for doing this is when an empty static inline function is desired when the feature is disabled. To this end, this header provides two different versions

[PATCH v2 8/9] Add an option for EBBR

2021-07-02 Thread Simon Glass
Add a new Kconfig option for EBBR so that the naming is more explicit. Make it select EFI_LOADER which is required for EBBR to work. Copy over the same 'default' setting so that there is no change in which boards enable it. Signed-off-by: Simon Glass --- Changes in v2: - Split out new patch to

[PATCH v2 4/9] Use LIB_UUID with ACPIGEN and FS_BTRFS

2021-07-02 Thread Simon Glass
Since the ACPI-generation code makes use of UUIDs we typically need to enabled UUID support for it to build. Add a new Kconfig condition. Use it for BTRFS also. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/Kconfig | 1 + fs/btrfs/Kconfig | 1 + 2 files changed, 2

[PATCH v2 7/9] Make EFI_LOADER depend on DM and OF_CONTROL

2021-07-02 Thread Simon Glass
This feature should never have been made available when driver model or devicetree are disabled. Add these as conditions, so that we don't create even more barriers to migration. Add a note about the substantial size increment associated with this option. Signed-off-by: Simon Glass --- Changes

[PATCH v2 3/9] disk: Tidy up #ifdefs in part_efi

2021-07-02 Thread Simon Glass
This file does not correctly handle the various cases, sometimes producing warnings about partition_basic_data_guid being defined but not used. Fix it. There was some discussion about adjusting Kconfig or making HAVE_BLOCK_DEVICE a prerequisite for PARTITIONS, but apparently this is not feasible.

[PATCH v2 6/9] lib: Create a new Kconfig option for charset conversion

2021-07-02 Thread Simon Glass
Rather than looking at two KConfig options in the Makefile, create a new Kconfig option for compiling lib/charset.c Enable it for UFS also, which needs this support. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) lib/Kconfig | 8 lib/Makefile

[PATCH v2 1/9] configs: Resync with savedefconfig

2021-07-02 Thread Simon Glass
Rsync all defconfig files using moveconfig.py Signed-off-by: Simon Glass --- (no changes since v1) configs/am64x_evm_a53_defconfig | 31 +++ configs/draco_defconfig | 2 +- configs/etamin_defconfig | 2 +- configs/evb-rk3568_defconfig |

[PATCH v2 2/9] Makefile: Drop include/asm directory as well as symlink

2021-07-02 Thread Simon Glass
At present when using 'make mrproper' on an out-of-tree build, a warning is shown about include/asm being a directory. With old versions of U-Boot it is a file, but more recently it has become a directory. Remove this directory first, since that covers both cases. Signed-off-by: Simon Glass ---

Re: [RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Simon Glass
Hi Tom, On Fri, 2 Jul 2021 at 13:01, Tom Rini wrote: > > Hey all, > > I started taking a look at moving to guestfish to see if this resolves > the latest problem I've run in to: > https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 > which I think is due to guestmount not being done in time

[PATCH v2 0/9] efi: Various tidy-ups and drop the default

2021-07-02 Thread Simon Glass
It has come to light that EFI_LOADER adds an extraordinary amount of code to U-Boot. For example, with nokia_rx51 the size delta is about 90KB. About 170 boards explicitly disable the option, but is is clear that many more could, thus saving image size and boot time. The current situation is

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Marek Vasut
On 7/2/21 8:28 PM, Da Xue wrote: On Fri, Jul 2, 2021 at 2:10 PM Marek Vasut wrote: On 7/2/21 8:03 PM, Da Xue wrote: SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB SPI mode: 3 meson_spifc spi@8c80: Cannot set mode (err=-19) Failed to initialize SPI flash at

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-07-02 Thread Simon Glass
Hi Mark, On Mon, 28 Jun 2021 at 11:49, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Mon, 28 Jun 2021 08:18:26 -0600 > > > > Hi Tom, Mark, > > > > On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: > > > > > > On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: > > > > > From:

[RFC] Start using guestfish for U-Boot fs tests

2021-07-02 Thread Tom Rini
Hey all, I started taking a look at moving to guestfish to see if this resolves the latest problem I've run in to: https://source.denx.de/u-boot/u-boot/-/jobs/284763#L307 which I think is due to guestmount not being done in time for the test. So I started converting things to use guestfish

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 2:10 PM Marek Vasut wrote: > On 7/2/21 8:03 PM, Da Xue wrote: > > SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total > > 16 MiB > > SPI mode: 3 > > meson_spifc spi@8c80: Cannot set mode (err=-19) > > Failed to initialize SPI flash at 0:0 (error -19)

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Marek Vasut
On 7/2/21 8:03 PM, Da Xue wrote: SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB SPI mode: 3 meson_spifc spi@8c80: Cannot set mode (err=-19) Failed to initialize SPI flash at 0:0 (error -19) I added spi-rx-bus-width = <1> and spi-tx-bus-width = <1> On Fri, Jul

Re: [PATCH 1/1] tpm2: Add a TPMv2 MMIO TIS driver

2021-07-02 Thread Heinrich Schuchardt
On 7/2/21 2:52 PM, Ilias Apalodimas wrote: Add a TPMv2 TIS MMIO compatible driver. This useful for a couple of reasons. First of all we can support a TPMv2 on devices that have this hardware (e.g the newly added SynQuacer box). We can also use the driver in our QEMU setups and test the EFI TCG2

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Marek Vasut
On 7/2/21 7:24 PM, Da Xue wrote: Hi Marek, This patch breaks meson_spifc: SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB meson_spifc spi@8c80: Cannot set mode (err=-19) Failed to initialize SPI flash at 0:0 (error -19) Best, Da On Wed, Jun 30, 2021 at 12:49

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
Hi Marek, This patch breaks meson_spifc: SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB meson_spifc spi@8c80: Cannot set mode (err=-19) Failed to initialize SPI flash at 0:0 (error -19) Best, Da On Wed, Jun 30, 2021 at 12:49 PM Tom Rini wrote: > On Thu, Jun

[PATCH] video: Add simple driver for ST-Ericsson MCDE with pre-configured display

2021-07-02 Thread Stephan Gerhold
The U-Boot port for ST-Ericsson Ux500 is currently only used on the "stemmy" board, where U-Boot runs after firmware that already sets up a boot splash screen. This means that the display is already on and we can just continue using it for U-Boot. Add a simple driver that simplifies this by

Pull request for efi-2021-07-rc6

2021-07-02 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit b7ad721c83fdbeeb71189d5f259c109cb1c38895: Revert "TEST: USB_HOST not USB" (2021-06-30 13:10:02 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2021-07-rc6 for you to fetch changes

Re: [PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 6:00 PM Stephan Gerhold wrote: > Simplify the code a bit by using dev_read_addr_ptr() instead of > dev_read_addr(). This avoids having to cast explicitly to the > struct nomadik_mtu_regs. > > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij Yours, Linus

Re: [PATCH 2/2] gpio: Add driver for Nomadik GPIO

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 5:06 PM Stephan Gerhold wrote: > Nomadik GPIO is a fairly simple GPIO module used in the ST-Ericsson > Ux500 SoCs (and some older Nomadik SoCs). It uses registers where > each GPIO is represented as a single bit, plus "set" and "clear" > registers that allow updating the

Re: [PATCH 1/2] gpio: Drop long unused DB8500 GPIO driver

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 5:06 PM Stephan Gerhold wrote: > The original U-Boot port for the ST-Ericsson U8500 SoC was dropped > in commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch"). > Most of the drivers related to the old port were removed, but the > db8500_gpio.c driver was

[PATCH] autoboot: fix MENUKEY

2021-07-02 Thread Da Xue
replace CONFIG_AUTOBOOT_USE_MENUKEY with CONFIG_AUTOBOOT_MENUKEY Signed-off-by: Da Xue --- common/autoboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/autoboot.c b/common/autoboot.c index c834db7323..26bfd64acc 100644 --- a/common/autoboot.c +++

Re: [PATCH] autoboot: fix typos of CONFIG_AUTOBOOT_USE_MENUKEY

2021-07-02 Thread Da Xue
Hi Tom, There is a distinction between the two flags CONFIG_AUTOBOOT_USE_MENUKEY AND CONFIG_AUTOBOOT_MENUKEY. config AUTOBOOT_USE_MENUKEY bool "Allow a specify key to run a menu from the environment" depends on !AUTOBOOT_KEYED help If a specific key is pressed to stop autoboot, then the

[PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

2021-07-02 Thread Stephan Gerhold
Simplify the code a bit by using dev_read_addr_ptr() instead of dev_read_addr(). This avoids having to cast explicitly to the struct nomadik_mtu_regs. Signed-off-by: Stephan Gerhold --- drivers/timer/nomadik-mtu-timer.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

Re: [PATCHv4] Azure/GitLab: Move to gcc-11.1.0 and LLVM-11

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 10:59:39PM +0800, Bin Meng wrote: > On Fri, Jul 2, 2021 at 10:42 PM Tom Rini wrote: > > > > - Move to gcc-11.1.0 builds from kernel.org for supported platforms and > > LLVM-11 for those tests. > > - As Heinrich has noted, the RISC-V platform specification has a profile >

[PATCH 2/2] gpio: Add driver for Nomadik GPIO

2021-07-02 Thread Stephan Gerhold
Nomadik GPIO is a fairly simple GPIO module used in the ST-Ericsson Ux500 SoCs (and some older Nomadik SoCs). It uses registers where each GPIO is represented as a single bit, plus "set" and "clear" registers that allow updating the state without having to read the existing state. The driver

[PATCH 1/2] gpio: Drop long unused DB8500 GPIO driver

2021-07-02 Thread Stephan Gerhold
The original U-Boot port for the ST-Ericsson U8500 SoC was dropped in commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch"). Most of the drivers related to the old port were removed, but the db8500_gpio.c driver was forgotten for some reason. There is no way to select it and it does

Re: [PATCHv4] Azure/GitLab: Move to gcc-11.1.0 and LLVM-11

2021-07-02 Thread Bin Meng
On Fri, Jul 2, 2021 at 10:42 PM Tom Rini wrote: > > - Move to gcc-11.1.0 builds from kernel.org for supported platforms and > LLVM-11 for those tests. > - As Heinrich has noted, the RISC-V platform specification has a profile > OS-A for running rich operating systems like Linux and BSD. This

Re: iMX8MM USB support?

2021-07-02 Thread Fabio Estevam
Hi Tim, On Thu, Jul 1, 2021 at 10:36 PM Fabio Estevam wrote: > But I still get: > > U-Boot SPL 2021.07-rc5-2-g5f269bf8bd14-dirty (Jul 01 2021 - 22:28:29 > -0300) > WDT: Not starting > SPL: Unsupported Boot Device! > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET

[PATCHv4] Azure/GitLab: Move to gcc-11.1.0 and LLVM-11

2021-07-02 Thread Tom Rini
- Move to gcc-11.1.0 builds from kernel.org for supported platforms and LLVM-11 for those tests. - As Heinrich has noted, the RISC-V platform specification has a profile OS-A for running rich operating systems like Linux and BSD. This profile requires 64bit and UEFI conforming to the EBBR.

Re: [RFC PATCH 03/28] cli: lil: Replace strclone with strdup

2021-07-02 Thread Tom Rini
On Fri, Jul 02, 2021 at 09:38:26AM -0400, Sean Anderson wrote: > On 7/2/21 4:36 AM, Rasmus Villemoes wrote: > > On 01/07/2021 08.15, Sean Anderson wrote: > > > Apparently strdup is not portable, so LIL used its own. Use strdup. > > > > You could reduce the churn by just making strclone "#define

Re: [RFC PATCH 00/28] cli: Add a new shell

2021-07-02 Thread Sean Anderson
On 7/1/21 4:21 PM, Tom Rini wrote: On Thu, Jul 01, 2021 at 02:15:43AM -0400, Sean Anderson wrote: Well, this has been sitting on my hard drive for too long without feedback ("Release early, release often"), so here's the first RFC. This is not ready to merge (see the "Future work" section

Re: [RFC PATCH 00/28] cli: Add a new shell

2021-07-02 Thread Sean Anderson
On 7/2/21 7:30 AM, Wolfgang Denk wrote: Dear Tom, In message <20210701202155.GQ9516@bill-the-cat> you wrote: First, great! Thanks for doing this. A new shell really is the only viable path forward here, and I appreciate you taking the time to evaluate several and implement one. I disagree

Re: [RFC PATCH 13/28] cli: lil: Wire up LIL to the rest of U-Boot

2021-07-02 Thread Sean Anderson
On 7/2/21 4:18 AM, Rasmus Villemoes wrote: On 01/07/2021 08.15, Sean Anderson wrote: This sets the shell to LIL when CONFIG_LIL is enabled. Repeated commands are not supporteed. Neither are partial commands a la Hush's secondary prompt. Setting and getting environmental variables is done

Re: Setting serverip from DHCP server

2021-07-02 Thread Harald Seiler
Hi, On Thu, 2021-07-01 at 15:56 +, Gregory Anders wrote: > (Re-sending now that I'm subscribed to the list) > > Hi all, > > I am running U-Boot on an embedded device that is connected via Ethernet > to my workstation. The workstation is running dhcpd and U-Boot is able > to successfully

Re: [RFC PATCH 03/28] cli: lil: Replace strclone with strdup

2021-07-02 Thread Sean Anderson
On 7/2/21 4:36 AM, Rasmus Villemoes wrote: On 01/07/2021 08.15, Sean Anderson wrote: Apparently strdup is not portable, so LIL used its own. Use strdup. You could reduce the churn by just making strclone "#define strclone(x) strdup(x)", but I suppose you end up modifying the upstream code so

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-02 Thread Sean Anderson
On 7/2/21 7:03 AM, Wolfgang Denk wrote: Dear Sean, In message <20210701061611.957918-3-sean...@gmail.com> you wrote: This is the LIL programming language [1] as originally written by Kostas Michalopoulos . LIL is a stripped-down TCL variant. Many syntax features are very similar to shell: Do

Re: [PATCH] phy: rockchip: inno-usb2: fix hang when multiple controllers exit

2021-07-02 Thread Grant Likely
On Wed, Apr 7, 2021 at 8:32 AM Icenowy Zheng wrote: > > > > 于 2021年4月7日 GMT+08:00 下午3:28:53, Frank Wang 写到: > >Hi, > > > > > >On 2021/4/7 14:43, Icenowy Zheng wrote: > >> > >> 于 2021年4月7日 GMT+08:00 下午2:42:34, Frank Wang > > 写到: > >>> Hi Icenowy Zheng, > >>> > >>> In my view, it is better to

[PATCH 1/1] tpm2: Add a TPMv2 MMIO TIS driver

2021-07-02 Thread Ilias Apalodimas
Add a TPMv2 TIS MMIO compatible driver. This useful for a couple of reasons. First of all we can support a TPMv2 on devices that have this hardware (e.g the newly added SynQuacer box). We can also use the driver in our QEMU setups and test the EFI TCG2 protocol, which cannot be tested with our

[PATCH v3 09/10] sandbox: add test of wdt_gpio driver

2021-07-02 Thread Rasmus Villemoes
It seems that no other test has claimed gpio_a:7 yet, so use that. The only small wrinkle is modifying the existing wdt test to use uclass_get_device_by_driver() since we now have two UCLASS_WDT instances in play, so it's a little more robust to fetch the device by driver and not merely

[PATCH v3 08/10] watchdog: add gpio watchdog driver

2021-07-02 Thread Rasmus Villemoes
A rather common kind of external watchdog circuit is one that is kept alive by toggling a gpio. Add a driver for handling such a watchdog. The corresponding linux driver apparently has support for some watchdog circuits which can be disabled by tri-stating the gpio, but I have never actually

[PATCH v3 07/10] watchdog: wdt-uclass.c: handle all DM watchdogs in watchdog_reset()

2021-07-02 Thread Rasmus Villemoes
A board can have and make use of more than one watchdog device, say one built into the SOC and an external gpio-petted one. Having wdt-uclass only handle the first is both a little arbitrary and unexpected. So change initr_watchdog() so we visit (probe) all DM watchdog devices. This essentially

[PATCH v3 10/10] sandbox: add test of wdt-uclass' watchdog_reset()

2021-07-02 Thread Rasmus Villemoes
Check that the watchdog_reset() implementation in wdt-uclass behaves as expected: - resets all activated watchdog devices - leaves unactivated/stopped devices alone - that the rate-limiting works, with a per-device threshold Reviewed-by: Simon Glass Reviewed-by: Stefan Roese Signed-off-by:

[PATCH v3 06/10] sandbox: disable CONFIG_WATCHDOG_AUTOSTART

2021-07-02 Thread Rasmus Villemoes
A later refactoring will put most of initr_watchdog() into a .post_probe function, which means that all watchdog devices end up being subject to the auto-start functionality. For the unit tests, it is more convenient if the tests are in charge of when the watchdog devices are started and stopped.

[PATCH v3 05/10] watchdog: wdt-uclass.c: keep track of each device's running state

2021-07-02 Thread Rasmus Villemoes
As a step towards handling all DM watchdogs in watchdog_reset(), use a per-device flag to keep track of whether the device has been started instead of a bit in gd->flags. We will still need that bit to know whether we are past initr_watchdog() and hence have populated gd->watchdog_dev -

[PATCH v3 04/10] watchdog: wdt-uclass.c: refactor initr_watchdog()

2021-07-02 Thread Rasmus Villemoes
In preparation for handling all DM watchdogs in watchdog_reset(), pull out the code which handles starting (or not) the gd->watchdog_dev device. Include the device name in various printfs. Reviewed-by: Simon Glass Reviewed-by: Stefan Roese Signed-off-by: Rasmus Villemoes ---

  1   2   >