Re: [PATCH v5 0/3] Add riscv semihosting support in u-boot

2022-12-02 Thread Bin Meng
Hi Kautuk, On Sat, Dec 3, 2022 at 12:28 PM Bin Meng wrote: > > On Tue, Nov 29, 2022 at 2:58 PM Kautuk Consul > wrote: > > > > I have tested it both on Qemu and Ventana's internal simulator. > > How to verify this? I used your instructions and U-Boot says: No match > for driver 'serial_semihosti

Re: [PATCH v5 0/3] Add riscv semihosting support in u-boot

2022-12-02 Thread Bin Meng
On Tue, Nov 29, 2022 at 2:58 PM Kautuk Consul wrote: > > I have tested it both on Qemu and Ventana's internal simulator. How to verify this? I used your instructions and U-Boot says: No match for driver 'serial_semihosting' U-Boot 2023.01-rc2-00113-g2a4accaf5e (Dec 03 2022 - 12:20:20 +0800) CPU:

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-02 Thread Bin Meng
On Fri, Sep 23, 2022 at 3:03 PM Kautuk Consul wrote: > > To enable semihosting we also need to enable the following > configs in defconfigs: > CONFIG_SEMIHOSTING > CONFIG_SPL_SEMIHOSTING > CONFIG_SEMIHOSTING_SERIAL > CONFIG_SERIAL_PROBE_ALL > CONFIG_SPL_FS_EXT4 > CONFIG_SPL_FS_FAT Why should thes

[PATCHv2 5/4] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2022-12-02 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar --- Forgot to send this patch previously in v2 cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6 insertions(+), 6 d

[PATCHv2 4/4] fwu: meta-data: switch to management by common code

2022-12-02 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCHv2 3/4] fwu: gpt: implement read_mdata and write_mdata callbacks

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 40 +++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/drivers/fwu-mda

[PATCHv2 2/4] fwu: move meta-data management in core

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCHv2 1/4] fwu: gpt: use cached meta-data partition numbers

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43 + 1 fi

[PATCHv2 0/4] FWU: Handle meta-data in common code

2022-12-02 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core in

Re: [PATCH v3 4/5] eficonfig: use efi_get_next_variable_name_int()

2022-12-02 Thread Masahisa Kojima
On Fri, 2 Dec 2022 at 16:36, Ilias Apalodimas wrote: > > On Fri, Dec 02, 2022 at 01:59:36PM +0900, Masahisa Kojima wrote: > > eficonfig command reads all possible UEFI load options > > from 0x to 0x to construct the menu. This takes too much > > time in some environment. > > This commit us

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-02 Thread Tom Rini
On Fri, Dec 02, 2022 at 08:20:11PM -0300, Fabio Estevam wrote: > [Adding Troy] > > On Fri, Dec 2, 2022 at 4:06 PM Detlev Casanova > wrote: > > > Upstream linux won't apply it as they want to keep the already established > > order in linux (the SD card has to stay at mmc2). See > > https://lore

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-02 Thread Fabio Estevam
[Adding Troy] On Fri, Dec 2, 2022 at 4:06 PM Detlev Casanova wrote: > Upstream linux won't apply it as they want to keep the already established > order in linux (the SD card has to stay at mmc2). See > https://lore.kernel.org/all/a13c2e92-cfa6-04fd-c32a-c4d444894...@pengutronix.de/ > > > I gu

[PATCH 38/41] net: vsc9953: Remove this driver

2022-12-02 Thread Tom Rini
No platforms enable this driver as there's no T1040D4RDB nor T1040RDB support at this time. Remove. Signed-off-by: Tom Rini --- board/freescale/t104xrdb/eth.c | 46 - drivers/net/Kconfig|3 - drivers/net/Makefile |1 - drivers/net/vsc9953.c | 2754 --

[PATCH 41/41] T104xRDB: Remove non-TARGET_T1042D4RDB variants

2022-12-02 Thread Tom Rini
At this point only the TARGET_T1042D4RDB variant of this is supported in tree, so remove the remaining parts of the other platforms. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 17 --- arch/powerpc/include/asm/fsl_secure_boot.h | 2 - board/freescale/t104xrdb/Kc

[PATCH 40/41] nxp: Rename CONFIG_U_BOOT_HDR_SIZE to FSL_U_BOOT_HDR_SIZE

2022-12-02 Thread Tom Rini
This is always defined to 16K, so we move this over to include/fsl_validate.h to start with. Next, we rename this from CONFIG_ to FSL_. Coalesce the various comments around this definition to be in fsl_validate.h as well to explain the usage. Signed-off-by: Tom Rini --- board/freescale/common/fs

[PATCH 39/41] usb: Remove CONFIG_USBD_HS

2022-12-02 Thread Tom Rini
This define is not enabled by the only platform which currently enables the legacy option of CONFIG_USB_DEVICE. We can drop this code. Signed-off-by: Tom Rini --- README | 8 - drivers/serial/usbtty.c| 50 -- drivers/se

[PATCH 36/41] Convert CONFIG_THOR_RESET_OFF to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_THOR_RESET_OFF Signed-off-by: Tom Rini --- cmd/Kconfig | 4 configs/topic_miami_defconfig| 1 + configs/topic_miamilite_defconfig| 1 + configs/topic_miamiplus_defconfig| 1 + configs/xilinx_zynq_virt

[PATCH 37/41] net: Remove more legacy functions

2022-12-02 Thread Tom Rini
Remove some of the board and arch specific non-DM_ETH helper code. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/ls102xa/cpu.c| 9 - arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 --- arch/powerpc/cpu/mpc83xx/cpu.c | 18 - arch/powerpc/cpu/mpc8xxx/cpu.c

[PATCH 35/41] Convert CONFIG_TEGRA_ENABLE_UARTA et al to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_TEGRA_ENABLE_UARTA CONFIG_TEGRA_ENABLE_UARTB CONFIG_TEGRA_ENABLE_UARTC CONFIG_TEGRA_ENABLE_UARTD CONFIG_TEGRA_SPI CONFIG_TEGRA_UARTA_GPU CONFIG_TEGRA_UARTA_SDIO1 CONFIG_TEGRA_VDD_CORE_TPS62361B_SET3 CONFIG_TEGRA_VDD_CORE_TPS6

[PATCH 34/41] Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_STANDALONE_LOAD_ADDR Signed-off-by: Tom Rini --- README| 7 --- api/Kconfig | 19 +++ arch/arc/config.mk| 3 --- arch/arm/

[PATCH 31/41] arm: ti814x: Remove remaining support code

2022-12-02 Thread Tom Rini
When the ti814x_evm config was removed most, but not all, of the relevant support code was remove. Get rid of what was missed. Fixes: 50b532686849 ("ti814x: Remove platform") Signed-off-by: Tom Rini --- arch/arm/include/asm/arch-am33xx/clock.h | 2 +- .../include/asm/arch-am33xx/clock_ti

[PATCH 33/41] sandbox: Finish migration to Kconfig

2022-12-02 Thread Tom Rini
Stop using CONFIG_SANDBOX_ARCH and use CONFIG_SANDBOX instead. For the SPI related defines, set them directly in Kconfig. This now empties arch/sandbox/include/asm/config.h. Cc: Simon Glass Signed-off-by: Tom Rini --- arch/sandbox/include/asm/config.h | 10 -- drivers/adc/adc-uclass.c

[PATCH 32/41] powerpc: Migrate CONFIG_PPC_SPINTABLE_COMPATIBLE to Kconfig

2022-12-02 Thread Tom Rini
Move this symbol to Kconfig, and preserve the current behavior. The help text here comes from where the relevant code is implemented and it is quite likely at this point in time we could either disable this option or at least make it configurable. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc

[PATCH 28/41] etamin: Rework CONFIG_NAND_CS_INIT

2022-12-02 Thread Tom Rini
Enable this in the board Kconfig file, but then check for it via CONFIG_IS_ENABLED so that it will only be true in the non-SPL case, as is done today. As part of this we move some defines local to where they are used as it's board specific. Cc: Samuel Egli Signed-off-by: Tom Rini --- board/sie

[PATCH 30/41] Convert CONFIG_PEN_ADDR_BIG_ENDIAN to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_PEN_ADDR_BIG_ENDIAN Signed-off-by: Tom Rini --- arch/arm/Kconfig | 3 +++ arch/arm/cpu/armv7/ls102xa/Kconfig | 3 +++ include/configs/ls1021aiot.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atwr

[PATCH 29/41] Convert CONFIG_OVERWRITE_ETHADDR_ONCE to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_OVERWRITE_ETHADDR_ONCE Signed-off-by: Tom Rini --- README| 7 --- configs/M5253DEMO_defconfig | 1 + configs/M5275EVB_defconfig| 1 + configs/eb_cpu5282_defconfig | 1 + configs/e

[PATCH 26/41] Convert CONFIG_MONITOR_IS_IN_RAM to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_MONITOR_IS_IN_RAM As part of this, reword some of the documentation slightly to reflect that this is in Kconfig and not a define now. Signed-off-by: Tom Rini --- arch/Kconfig | 4 board/cobra5272/README | 27 +

[PATCH 27/41] Convert CONFIG_MXC_NAND_HWECC to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_MXC_NAND_HWECC Signed-off-by: Tom Rini --- configs/m53menlo_defconfig | 1 + drivers/mtd/nand/raw/Kconfig | 4 include/configs/m53menlo.h | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/m53menlo_defconfig b/c

[PATCH 25/41] ddr: fsl: Remove CONFIG_MEM_INIT_VALUE

2022-12-02 Thread Tom Rini
The way all of the memory init code here works is that we pass 0xDEADBEEF around for the initial value (as it's a well known 'poison' value and so easily recognized in debuggers, etc). The only point of this CONFIG symbol was to pass in a different value for that purpose. Drop this symbol and clean

[PATCH 21/41] global: Remove unused CONFIG symbols

2022-12-02 Thread Tom Rini
This removes the following unreferenced CONFIG symbols: CONFIG_FDTADDR CONFIG_FDTFILE CONFIG_FLASH_SECTOR_SIZE CONFIG_FSL_CPLD CONFIG_HDMI_ENCODER_I2C_ADDR CONFIG_I2C_MVTWSI CONFIG_I2C_RTC_ADDR CONFIG_IRAM_END CONFIG_IRAM_SIZE CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE CON

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Thorsten Leemhuis
On 02.12.22 15:31, Marek Vasut wrote: > On 12/2/22 15:05, Miquel Raynal wrote: > [...] >> 3. To fix the current situation: >>     Immediately revert commit (and prevent it from being backported): >>     753395ea1e45 ("ARM: dts: imx7: Fix NAND controller size-cells") >>     This way your own boot fl

[PATCH 23/41] Convert CONFIG_L2_CACHE to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_L2_CACHE Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 3 +++ configs/MPC8548CDS_36BIT_defconfig | 1 + configs/MPC8548CDS_defconfig | 1 + configs/MPC8548CDS_legacy_defconfig | 1 +

[PATCH 22/41] Convert CONFIG_KSNET_NETCP_V1_0 et al to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_KSNET_NETCP_V1_0 CONFIG_KSNET_NETCP_V1_5 Signed-off-by: Tom Rini --- configs/k2hk_evm_defconfig| 1 + configs/k2hk_hs_evm_defconfig | 1 + drivers/net/ti/Kconfig| 13 + include/configs/k2e_evm.h | 1 - include/co

[PATCH 24/41] malta: Rename CONFIG_MALTA to CONFIG_TARGET_MALTA

2022-12-02 Thread Tom Rini
Fixup this last remnant of CONFIG_MALTA. Cc: Paul Burton Signed-off-by: Tom Rini --- drivers/rtc/mc146818.c | 2 +- include/configs/malta.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c index 122691b97842..03ce081d5764 1006

[PATCH 20/41] i2c: Remove CONFIG_I2C_MULTI_BUS

2022-12-02 Thread Tom Rini
This functionality is part of the legacy I2C subsystem and is currently unused anywhere. Remove the remaining references. Signed-off-by: Tom Rini --- README | 10 + cmd/i2c.c| 15 + drivers/i2c/mv_i2c.c

[PATCH 19/41] env: eeprom: Remove CONFIG_I2C_ENV_EEPROM_BUS support

2022-12-02 Thread Tom Rini
This functionality is currently unused, and has not been migrated to using DM_I2C, even. Drop this. Signed-off-by: Tom Rini --- env/Kconfig | 7 --- env/eeprom.c | 59 +++- 2 files changed, 8 insertions(+), 58 deletions(-) diff --git a/env/K

[PATCH 10/41] Convert CONFIG_FLASH_SHOW_PROGRESS to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_FLASH_SHOW_PROGRESS Signed-off-by: Tom Rini --- README| 5 - configs/3c120_defconfig | 1 + configs/M5208EVBE_defconfig | 1 + configs/M5235EVB_Flash32_defconfig

[PATCH 18/41] arm: samsung: Rename CONFIG_G_DNL_*_NUM variables

2022-12-02 Thread Tom Rini
Following how g_dnl_bind_fixup is used on other platforms, rename the unchanging defines used here to be prefixed with EXYNOS rather than Samsung, and define them here. Cc: Minkyu Kang Cc: Jaehoon Chung Signed-off-by: Tom Rini --- board/samsung/common/gadget.c| 14 ++ include/c

[PATCH 16/41] Convert CONFIG_POWER_PCA9450 to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_POWER_PCA9450 Signed-off-by: Tom Rini --- configs/imx8mp-icore-mx8mp-edimm2.2_defconfig | 1 + configs/imx8mp_evk_defconfig | 1 + configs/phycore-imx8mp_defconfig | 1 + configs/verdin-imx8mp_defconfig

[PATCH 15/41] meson64: Fix missing CFG_SYS_BAUDRATE_TABLE migration

2022-12-02 Thread Tom Rini
CONFIG_SYS_BAUDRATE_TABLE has already been migrated to CFG_SYS but this instance was missed, correct. Signed-off-by: Tom Rini --- include/configs/meson64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index 6331b7615db6

[PATCH 14/41] CONFIG_SYS_MPC8xxx_GUTS_ADDR: Migrate to CFG_SYS

2022-12-02 Thread Tom Rini
Due to whitespace, CONFIG_SYS_MPC8xxx_GUTS_ADDR wasn't migrated to CFG_SYS previously. Do this now. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc8xxx/srio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/cpu/mpc8xxx/srio.c b/arch/powerpc/cpu/mpc8xxx/s

[PATCH 11/41] Convert CONFIG_FLASH_SPANSION_S29WS_N et al to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_FLASH_SPANSION_S29WS_N CONFIG_FLASH_VERIFY CONFIG_FSL_FM_10GEC_REGULAR_NOTATION CONFIG_FSL_ISBC_KEY_EXT CONFIG_FSL_TRUST_ARCH_v1 CONFIG_FSL_SDHC_V2_3 CONFIG_MAX_DSP_CPUS CONFIG_MIU_2BIT_INTERLEAVED CONFIG_SERIAL_BOOT CONF

[PATCH 13/41] env: nvram: Drop CONFIG_SYS_NVRAM_ACCESS_ROUTINE

2022-12-02 Thread Tom Rini
This option is unused anywhere and likely untested for quite a long while. Drop this support code. Signed-off-by: Tom Rini --- env/nvram.c | 42 ++ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/env/nvram.c b/env/nvram.c index fb265235afc7.

[PATCH 12/41] Convert CONFIG_FSL_ESDHC_PIN_MUX to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_FSL_ESDHC_PIN_MUX Signed-off-by: Tom Rini --- configs/MPC837XERDB_defconfig | 1 + drivers/mmc/Kconfig | 4 drivers/mmc/fsl_esdhc_imx.c | 2 +- include/configs/MPC837XERDB.h | 1 - 4 files changed, 6 insertions(+), 2 deletions(-)

[PATCH 09/41] fec_mxc: Remove CONFIG_FEC_FIXED_SPEED support

2022-12-02 Thread Tom Rini
This option is only used on one platform currently. However, with PHYLIB enabled, which this platform also does, this option is not checked and the functional use case is handled. Remove this code. Signed-off-by: Tom Rini --- doc/README.fec_mxc | 6 -- drivers/net/fec_mxc.c| 4

[PATCH 07/41] env: Rework ENV_IS_EMBEDDED and related logic slightly

2022-12-02 Thread Tom Rini
- Drop CONFIG_BUILD_ENVCRC as this is never set directly but instead means ENV_IS_EMBEDDED, so reference that in code and rename the Makefile usage to BUILD_ENVCRC. - Remove extra-$(CONFIG_ENV_IS_EMBEDDED) line as it could never be true, and likely why there is an extra- line for CONFIG_ENV_I

[PATCH 08/41] Convert CONFIG_DM9000_BYTE_SWAPPED et al to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_DM9000_BYTE_SWAPPED CONFIG_DM9000_NO_SROM CONFIG_DM9000_USE_16BIT CONFIG_DM9000_DEBUG CONFIG_MXC_GPT_HCLK CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC Signed-off-by: Tom Rini --- arch/arm/Kconfig | 2 ++ ar

[PATCH 06/41] Convert CONFIG_HSMMC2_8BIT to Kconfig

2022-12-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_HSMMC2_8BIT Signed-off-by: Tom Rini --- configs/am335x_shc_defconfig | 1 + configs/am335x_shc_ict_defconfig | 1 + configs/am335x_shc_netboot_defconfig | 1 + configs/am335x_shc_sdboot_defconfig | 1 + configs/am57xx_evm_defconfig

[PATCH 05/41] arm: trats2: Set mmcdev directly

2022-12-02 Thread Tom Rini
Only this platform sets mmcdev via CONFIG_MMC_DEFAULT_DEV so we hard-code that default directly. Signed-off-by: Tom Rini --- include/configs/exynos4-common.h | 3 --- include/configs/s5p_goni.h | 3 --- include/configs/trats2.h | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-

[PATCH 04/41] x530: Remove unused symbols

2022-12-02 Thread Tom Rini
The symbols CONFIG_UBI_PART and CONFIG_UBIFS_VOLUME are not referenced anywhere, drop them. Signed-off-by: Tom Rini --- include/configs/x530.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/x530.h b/include/configs/x530.h index dee87cb77325..6cc3496ee593 100644 --- a/inclu

[PATCH 03/41] p1_p1_rdb: Remove unused environment sections

2022-12-02 Thread Tom Rini
The CONFIG_USB_FAT_BOOT, CONFIG_USB_EXT2_BOOT and CONFIG_NORBOOT defines are not referenced anywhere, so remove them. Signed-off-by: Tom Rini --- include/configs/p1_p2_rdb_pc.h | 25 - 1 file changed, 25 deletions(-) diff --git a/include/configs/p1_p2_rdb_pc.h b/include/

[PATCH 02/41] arm: exynos5: Migrate USB_BOOTING to Kconfig

2022-12-02 Thread Tom Rini
This symbol is enabled for all exynos5 platforms, move to Kconfig and select it. Cc: Jaehoon Chung Cc: Minkyu Kang Signed-off-by: Tom Rini --- Please note that include/configs/exynos5-common.h isn't covered by a MAINTAINERS entry and should be, thanks. --- arch/arm/mach-exynos/Kconfig | 4

[PATCH 01/41] usb: Update USB_STORAGE dependencies

2022-12-02 Thread Tom Rini
As it's no longer possible to have !DM_USB set, we can remove these dependencies. Signed-off-by: Tom Rini --- common/spl/Kconfig | 2 +- drivers/usb/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index c6da4a403e98..78797e99e

Re: [PATCH v2] fastboot: Add OEM run command

2022-12-02 Thread Sean Anderson
On 12/2/22 16:22, Marek Vasut wrote: > On 12/2/22 22:03, Sean Anderson wrote: > > [...] > >> +Running Shell Commands >> +-- >> + >> +Normally, arbitrary U-Boot command execution is not enabled. This is so >> +fastboot can be used to update systems using verified boot. However,

Re: [PATCH v2] fastboot: Add OEM run command

2022-12-02 Thread Marek Vasut
On 12/2/22 22:03, Sean Anderson wrote: [...] +Running Shell Commands +-- + +Normally, arbitrary U-Boot command execution is not enabled. This is so +fastboot can be used to update systems using verified boot. However, such +functionality can be useful for production or when

[PATCH v2] fastboot: Add OEM run command

2022-12-02 Thread Sean Anderson
This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allows running generic U-Boot commands over fastboot without UUU, which is especially useful when not using USB. This is really the route w

Re: [PATCH] fastboot: Add OEM run command

2022-12-02 Thread Marek Vasut
On 12/2/22 21:51, Sean Anderson wrote: On 12/2/22 15:50, Marek Vasut wrote: On 12/2/22 18:11, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allows running gener

Re: [PATCH] fastboot: Add OEM run command

2022-12-02 Thread Sean Anderson
On 12/2/22 15:50, Marek Vasut wrote: > On 12/2/22 18:11, Sean Anderson wrote: >> This adds the UUU UCmd functionality as an OEM command. While the >> fastboot tool allows sending arbitrary commands as long as they are >> prefixed with "oem". This allows running generic U-Boot commands over >> fastb

Re: [PATCH] fastboot: Add OEM run command

2022-12-02 Thread Marek Vasut
On 12/2/22 18:11, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allows running generic U-Boot commands over fastboot without UUU, which is especially useful when

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-02 Thread Tom Rini
On Fri, Dec 02, 2022 at 02:06:26PM -0500, Detlev Casanova wrote: > On Friday, November 11, 2022 10:35:56 A.M. EST Tom Rini wrote: > > On Fri, Nov 11, 2022 at 10:28:43AM -0500, Detlev Casanova wrote: > > > On Thursday, October 27, 2022 2:30:51 P.M. EST Tom Rini wrote: > > > > On Thu, Oct 27, 2022 at

Pull request for efi-2023-01-rc3

2022-12-02 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a32f6341ccf2ea69f64fe87b9d07fd87325a2056: Merge branch '2022-12-02-assorted-updates' (2022-12-02 10:00:55 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-01-rc3 for you to fet

Re: [PATCH] pci: Handle failed calloc in decode_regions()

2022-12-02 Thread sean
Quoting Pierre-Clément Tosi : Add a check for calloc() failing to allocate the requested memory. Make decode_regions() return an error code. Cc: Bin Meng Cc: Simon Glass Cc: Stefan Roese Signed-off-by: Pierre-Clément Tosi --- Hi, We upgraded from v2022.04 -> v2022.10, and this PATCH b

Re: [PATCH] fs/squashfs: use lldiv function for math

2022-12-02 Thread sean
Quoting kas...@krinvent.dk: From: Kasper Revsbech When compling for x86: u-boot/fs/squashfs/sqfs.c:90: undefined reference to `__udivmoddi4' Signed-off-by: Kasper Revsbech Tested-by: Sean Nyekjaer --- fs/squashfs/sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-02 Thread Detlev Casanova
On Friday, November 11, 2022 10:35:56 A.M. EST Tom Rini wrote: > On Fri, Nov 11, 2022 at 10:28:43AM -0500, Detlev Casanova wrote: > > On Thursday, October 27, 2022 2:30:51 P.M. EST Tom Rini wrote: > > > On Thu, Oct 27, 2022 at 11:22:52AM -0400, Detlev Casanova wrote: > > > > In commit d0399a46e7cda

Re: [TF-A] [RFC] Proposed location to host the firmware handoff specification.

2022-12-02 Thread Simon Glass
Hi, On Wed, 30 Nov 2022 at 16:48, Julius Werner wrote: > > Okay, FWIW I created a pull request with my suggestions here: > https://github.com/FirmwareHandoff/firmware_handoff/pull/4 > > That should make it easier to discuss specific details, hopefully. As > I was looking at the header size and fo

[PATCH 3/7] board/km/cent2: migrate to environment text file

2022-12-02 Thread Holger Brunck
Use like the other boards a text file for the environment. As this is the last user of keymile-common.h we can now remove this file completely. Signed-off-by: Holger Brunck --- board/keymile/Kconfig | 12 -- board/keymile/kmcent2/kmcent2.c | 2 +- board/keymile/kmcent2/kmcen

[PATCH 7/7] km/mpc8360: remove unused CONFIG_SYS_PAXE defines

2022-12-02 Thread Holger Brunck
These are unused defines and can be dropped. Signed-off-by: Holger Brunck --- include/configs/km/km-mpc8360.h | 7 --- scripts/config_whitelist.txt| 1 - 2 files changed, 8 deletions(-) diff --git a/include/configs/km/km-mpc8360.h b/include/configs/km/km-mpc8360.h index 92e046d02d..185b

[PATCH 1/7] board/km: move ls102xa boards to environment text files

2022-12-02 Thread Holger Brunck
Create a common.env which we can use later on also for other boards. Signed-off-by: Holger Brunck --- .../keymile/pg-wcom-ls102xa/pg-wcom-expu1.env | 3 + .../keymile/pg-wcom-ls102xa/pg-wcom-seli8.env | 3 + configs/pg_wcom_expu1_defconfig | 2 +- configs/pg_wcom_expu1_update_de

[PATCH 2/7] km/powerpc: migrate to env.txt file

2022-12-02 Thread Holger Brunck
Use already present common.env file and add a powerpc specific env so that we can move all the environment defines to text files. Signed-off-by: Holger Brunck --- board/keymile/km83xx/km83xx.env | 21 +++ configs/kmcoge5ne_defconfig | 2 +- configs/kmeter1_defconfig

[PATCH 6/7] km/ppc: migrate all mpc83xx to DM_I2C

2022-12-02 Thread Holger Brunck
Enable DM_I2C and I2C mux to get rid of the usage of the legacy i2c driver. Signed-off-by: Holger Brunck --- board/keymile/Kconfig | 3 +- board/keymile/km83xx/Makefile | 2 +- board/keymile/km83xx/km83xx_i2c.c | 73 --- configs/kmcoge5ne_defconfig

[PATCH 5/7] board/km: remove obsolete ARCH_KIRKWOOD

2022-12-02 Thread Holger Brunck
We already removed the support for these boards. Signed-off-by: Holger Brunck --- board/keymile/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig index 46d0897108..cd8a06e278 100644 --- a/board/keymile/Kconfig +++ b/boa

[PATCH 4/7] board/km/secu: migrate to use environment text files

2022-12-02 Thread Holger Brunck
Instead of having these defines in a header file, move them to a simple text file. Signed-off-by: Holger Brunck --- board/keymile/secu1/socfpga_secu.env | 50 configs/socfpga_secu1_defconfig| 4 +- include/configs/socfpga_arria5_secu1.h | 53 --

[PATCH 0/7] updates for km board series

2022-12-02 Thread Holger Brunck
- migrate all boards to environment.txt files - migrate PPC boards to DM_I2C - some cleanup Holger Brunck (7): board/km: move ls102xa boards to environment text files km/powerpc: migrate to env.txt file board/km/cent2: migrate to environment text file board/km/secu: migrate to use environm

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Francesco Dolcini
On Fri, Dec 02, 2022 at 05:42:55PM +0100, Miquel Raynal wrote: > Please also do it with the NAND chip described. If, when the NAND chip > is described U-Boot tries to create partitions in the controller node, > then the situation is even worse than I thought. But I believe It's like that for U-Boo

[PATCH] fastboot: Add OEM run command

2022-12-02 Thread Sean Anderson
This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allows running generic U-Boot commands over fastboot without UUU, which is especially useful when not using USB. This is really the route w

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Marek Vasut
On 12/2/22 17:57, Miquel Raynal wrote: Hi Marek, Hi, On 12/2/22 17:42, Miquel Raynal wrote: Hi Marek, Hi, [...] However, it should not be empty, at the very least a reg property should indicate on which CS it is wired, as expected there: https://git.kernel.org/pub/scm/linux/kernel/git/m

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Francesco, france...@dolcini.it wrote on Fri, 2 Dec 2022 17:45:37 +0100: > On Fri, Dec 02, 2022 at 05:17:59PM +0100, Marek Vasut wrote: > > On 12/2/22 16:49, Miquel Raynal wrote: > > > , not the NAND controller node. I hope this > > > is correctly supported in U-Boot though. So if there is a

Re: [PATCH v3 4/5] eficonfig: use efi_get_next_variable_name_int()

2022-12-02 Thread Heinrich Schuchardt
On 12/2/22 08:35, Ilias Apalodimas wrote: On Fri, Dec 02, 2022 at 01:59:36PM +0900, Masahisa Kojima wrote: eficonfig command reads all possible UEFI load options from 0x to 0x to construct the menu. This takes too much time in some environment. This commit uses efi_get_next_variable_name

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Marek, ma...@denx.de wrote on Fri, 2 Dec 2022 17:52:05 +0100: > On 12/2/22 17:42, Miquel Raynal wrote: > > Hi Marek, > > Hi, > > [...] > > >>> However, it should not be empty, at the very least a reg property > >>> should indicate on which CS it is wired, as expected there: > >>> https://

Re: [PATCH 1/2] arm: dts: imx8m*-venice-*: add I2C GPIO bus recovery support

2022-12-02 Thread Fabio Estevam
On Fri, Nov 11, 2022 at 1:03 PM Tim Harvey wrote: > > Add I2C GPIO bus recovery support by adding scl-gpios and sda-gpios for the > various I2C busses on Gateworks Venice boards. > > Signed-off-by: Tim Harvey Reviewed-by: Fabio Estevam

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Marek Vasut
On 12/2/22 17:42, Miquel Raynal wrote: Hi Marek, Hi, [...] However, it should not be empty, at the very least a reg property should indicate on which CS it is wired, as expected there: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/tree/Documentation/devicetree/bindings/mtd/na

Re: [PATCH v3 2/2] doc: board: j721e_evm: Fix code-block type and indents

2022-12-02 Thread Heinrich Schuchardt
On 11/9/22 18:30, Andrew Davis wrote: * BASH code should be labeled as such. * Code blocks should be indented by 4 spaces. Fix these here. Suggested-by: Heinrich Schuchardt Signed-off-by: Andrew Davis Reviewed-by: Heinrich Schuchardt --- Changes from v2: - None Changes from v1:

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Francesco Dolcini
On Fri, Dec 02, 2022 at 05:17:59PM +0100, Marek Vasut wrote: > On 12/2/22 16:49, Miquel Raynal wrote: > > , not the NAND controller node. I hope this > > is correctly supported in U-Boot though. So if there is a NAND chip > > subnode, I suppose U-Boot would try to create the partitions that are > >

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Marek, ma...@denx.de wrote on Fri, 2 Dec 2022 17:17:59 +0100: > On 12/2/22 16:49, Miquel Raynal wrote: > > Hi Marek, > > Hi, > > >> On 12/2/22 16:00, Miquel Raynal wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>> ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: > >>> O

Re: [PATCH 1/2] arm: dts: imx8m*-venice-*: add I2C GPIO bus recovery support

2022-12-02 Thread Tim Harvey
On Thu, Dec 1, 2022 at 7:23 PM Fabio Estevam wrote: > > Hi Tim, > > On Fri, Nov 11, 2022 at 1:03 PM Tim Harvey wrote: > > > > Add I2C GPIO bus recovery support by adding scl-gpios and sda-gpios for the > > various I2C busses on Gateworks Venice boards. > > > > Signed-off-by: Tim Harvey > > --- >

[PATCH 1/1] efi_loader: add an EFI binary to print boot hart ID

2022-12-02 Thread Heinrich Schuchardt
Provide an EFI binary that prints the boot hart ID as found in the device-tree as /chosen/boot-hartid property and as provided by the RISCV_EFI_BOOT_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/Makefile | 6 + lib/efi_loader/boothart.c | 334 +++

Re: [PATCH V3 01/13] env: Complete generic support for writable list

2022-12-02 Thread Marek Vasut
On 11/4/22 12:23, Jan Kiszka wrote: From: Jan Kiszka This completes what 890feecaab72 started by selecting ENV_APPEND and loading the default env before any other sources. This ensures that load operations pick up all non-writable vars from the default env and only permitted parts from other lo

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Marek Vasut
On 12/2/22 16:49, Miquel Raynal wrote: Hi Marek, Hi, On 12/2/22 16:00, Miquel Raynal wrote: Hi Marek, Hi, ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: On 12/2/22 15:05, Miquel Raynal wrote: Hi Francesco, Hi, [...] I still strongly disagree with the initial proposal

[PATCH] reboot-mode: Add NVMEM reboot mode

2022-12-02 Thread Sean Anderson
This adds an NVMEM reboot mode driver, similar to Linux's implementation. This allows using the same device tree binding for Linux and U-Boot in most cases. Signed-off-by: Sean Anderson --- MAINTAINERS | 1 + drivers/reboot-mode/Kconfig | 7 +++ drivers

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
miquel.ray...@bootlin.com wrote on Fri, 2 Dec 2022 16:49:04 +0100: > Hi Marek, > > ma...@denx.de wrote on Fri, 2 Dec 2022 16:23:29 +0100: > > > On 12/2/22 16:00, Miquel Raynal wrote: > > > Hi Marek, > > > > Hi, > > > > > ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: > > >

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Marek, ma...@denx.de wrote on Fri, 2 Dec 2022 16:23:29 +0100: > On 12/2/22 16:00, Miquel Raynal wrote: > > Hi Marek, > > Hi, > > > ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: > > > >> On 12/2/22 15:05, Miquel Raynal wrote: > >>> Hi Francesco, > >> > >> Hi, > >> > >> [...]

[PATCH] rtc: abx8xx: Add support for reading RAM

2022-12-02 Thread Sean Anderson
This adds support for reading the battery-backed memory present on these RTCs. This modifies the read/write methods to access the RAM instead of raw register offsets. No one was using these in-tree, so we should be fine changing them. We use the "standard" address space window to access the RAM. T

Re: [PATCH] MAINTAINERS: add RaspberryPi co-maintainer

2022-12-02 Thread Tom Rini
On Wed, Nov 30, 2022 at 12:57:49PM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > Peter accpeted to step up as a co-maintainer for the RPis. > Reflect that in the corresponding MAINTAINERS files. > > Signed-off-by: Matthias Brugger > Reviewed-by: Peter Robinson Applied to

Re: [PATCH] config: tools only: add VIDEO to build bmp_logo

2022-12-02 Thread Tom Rini
On Thu, Nov 24, 2022 at 02:05:59PM +, Peter Robinson wrote: > Pre 2023.01 the bmp_logo was built as part of the tools-only_defconfig > build, something changed and the VIDEO dep needed to build it > is no longer pulled in so fix that by explicitly defining it. > > Signed-off-by: Peter Robinso

Re: [PATCH v2 1/9] dm: core: Fix iteration over driver_info records

2022-12-02 Thread Tom Rini
On Mon, Nov 14, 2022 at 12:42:35PM +, Paul Barker wrote: > We should only perform additional iteration steps when needed to > initialize the parent of a device. Other binding errors (such as a > missing driver) should not lead to additional iteration steps. > > Unnecessary iteration steps can

Re: [PATCH] MAINTAINERS: Move usb_storage from DFU to USB

2022-12-02 Thread Tom Rini
On Fri, Nov 04, 2022 at 12:28:07PM +0100, Marek Vasut wrote: > The usb_storage.c is the host-side USB mass storage device support, > it is not the DFU/UMS gadget-side implementation. Fix the entry. > > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Descrip

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Marek Vasut
On 12/2/22 16:00, Miquel Raynal wrote: Hi Marek, Hi, ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: On 12/2/22 15:05, Miquel Raynal wrote: Hi Francesco, Hi, [...] I still strongly disagree with the initial proposal but what I think we can do is: 1. To prevent future breakages

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Marek, ma...@denx.de wrote on Fri, 2 Dec 2022 15:31:40 +0100: > On 12/2/22 15:05, Miquel Raynal wrote: > > Hi Francesco, > > Hi, > > [...] > > > I still strongly disagree with the initial proposal but what I think we > > can do is: > > > > 1. To prevent future breakages: > >Fix fdt_f

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Marek Vasut
On 12/2/22 15:05, Miquel Raynal wrote: Hi Francesco, Hi, [...] I still strongly disagree with the initial proposal but what I think we can do is: 1. To prevent future breakages: Fix fdt_fixup_mtdparts() in u-boot. This way newer U-Boot + any kernel should work. 2. To help tracking do

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Miquel Raynal
Hi Francesco, france...@dolcini.it wrote on Fri, 2 Dec 2022 12:23:37 +0100: > + u-boot list > > On Fri, Dec 02, 2022 at 11:53:27AM +0100, Miquel Raynal wrote: > > france...@dolcini.it wrote on Fri, 2 Dec 2022 11:24:29 +0100: > > > On Fri, Dec 02, 2022 at 11:12:43AM +0100, Francesco Dolcini wro

  1   2   >