summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-05-21riscv: dts: binman.dtsi: Drop filename property for proper U-BootYao Zi
Drop filename property for proper U-Boot entry since binman takes "u-boot-nodtb.bin" as the default filename for u-boot-nodtb entries. This follows efe9c12322b ("riscv: dts: binman.dtsi: Switch to u-boot-nodtb entry for proper U-Boot") to clean binman.dtsi up. Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2025-05-21booti/bootm: riscv: Verify image arch typeMayuresh Chitale
Unlike ARM and X86, booting 32-bit images on 64-bit CPUs is currently not supported for Risc-V. Hence, for bootm, disallow booting a FIT or a legacy image that was built for an arch type which is different than the current arch and for booti, set the arch type to be the same as the current arch. Signed-off-by: Mayuresh Chitale <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2025-05-21riscv: Select appropriate image typeMayuresh Chitale
Select between the 32-bit or 64-bit arch type for the image headers depending on how the build is configured. Signed-off-by: Mayuresh Chitale <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2025-05-21riscv: image: Add new image type for RV64Mayuresh Chitale
Similar to ARM and X86, introduce a new image type which allows u-boot to distinguish between images built for 32-bit vs 64-bit Risc-V CPUs. Signed-off-by: Mayuresh Chitale <[email protected]> Reviewed-by: Maxim Moskalets <[email protected]>
2025-05-20Merge tag 'mmc-2025-05-20' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-mmc CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/26241 - Fix mmc cv1800b build without MMC_SUPPORTS_TUNING
2025-05-20mmc: cv1800b: Fix build without MMC_SUPPORTS_TUNINGAlexander Sverdlin
That's how it looks like without CONFIG_MMC_SUPPORTS_TUNING before the patch: aarch64-buildroot-linux-gnu-ld.bfd: drivers/mmc/cv1800b_sdhci.o: in function `cv1800b_execute_tuning': drivers/mmc/cv1800b_sdhci.c:47:(.text.cv1800b_execute_tuning+0x50): undefined reference to `mmc_send_tuning' Signed-off-by: Alexander Sverdlin <[email protected]> Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-05-20net: lwip: tftp: time out if there is no reply from serverJerome Forissier
When there is no reply from the TFTP server, do_tftpb() should eventually time out. Add a 10 second timer for that purpose. Reported-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Jerome Forissier <[email protected]>
2025-05-20net-lwip: tftp: add LMB and buffer checksJerome Forissier
Legacy NET tftp invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier <[email protected]> Suggested-by: Sughosh Ganu <[email protected]> Acked-by: Sughosh Ganu <[email protected]> Tested-by: Sughosh Ganu <[email protected]>
2025-05-20net-lwip: wget: add LMB and buffer checksJerome Forissier
Legacy NET wget invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier <[email protected]> Suggested-by: Sughosh Ganu <[email protected]> Acked-by: Sughosh Ganu <[email protected]> Tested-by: Sughosh Ganu <[email protected]>
2025-05-20net, net-lwip: wget: suppress console output when called by EFIJerome Forissier
Functions called from EFI applications should not do console output. Refactor the wget code to implement this requirement. The wget_http_info struct is used to hold the boolean that signifies whether the output is allowed or not. Signed-off-by: Jerome Forissier <[email protected]> Reported-by: Heinrich Schuchardt <[email protected]>
2025-05-20net-lwip: change static function wget_loop() to be wget_do_request()Jerome Forissier
wget_do_request() currently does so little before calling the static function wget_loop() that we may as well rename wget_loop() to wget_do_request() and put everything in one function. Signed-off-by: Jerome Forissier <[email protected]> Acked-by: Sughosh Ganu <[email protected]>
2025-05-18Merge tag 'efi-2025-07-rc3-2' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request efi-2025-07-rc3-2 Documentation: * Add test/py/requirements.txt to documentation * Use globing for selecting pytest files UEFI: * Provide a function to disable ANSI output during tests Other: * test: allow multiple config options in buildconfigspec * test: allow testing with NET_LWIP=y
2025-05-18test: allow testing with NET_LWIP=yHeinrich Schuchardt
Adjust network tests to run with CONFIG_NET_LWIP=y. Signed-off-by: Heinrich Schuchardt <[email protected]> Acked-by: Jerome Forissier <[email protected]>
2025-05-18test: allow multiple config options in buildconfigspecHeinrich Schuchardt
In some cases we have alternative configuration options that supply the same functionality, e.g CONFIG_NET and CONFIG_NET_LWIP. Allow to specify all of them as arguments for buildconfigspec() and execute the text if any of these is fulfilled, e.g. @pytest.mark.buildconfigspec('net', 'net_lwip') Update the documentation. Signed-off-by: Heinrich Schuchardt <[email protected]> Acked-by: Jerome Forissier <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2025-05-18doc: pytest: Use globing for test filesTom Rini
After the original series was merged, Quentin noted that we could handle adding additional tests more easily by using the glob feature. Do so. Suggested-by: Quentin Schulz <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2025-05-18CI, docs: Install test/py/requirements.txt as wellTom Rini
As noted by Quentin, in CI we should be at least versioning the pytest that we install. To avoid problems later, go with the whole requirements file being used. Furthermore, our documentation building for readthedocs must also have pytest so install the requirements file there as well. Reported-by: Quentin Schulz <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2025-05-18efi_loader: Disable ANSI output for testsSimon Glass
We don't want ANSI escape-sequences written in tests since it is a pain to check the output with ut_assert_nextline() et al. Provide a way to tests to request that these characters not be sent. Add a proper function comment while we are here, to encourage others. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2025-05-16Merge tag 'u-boot-watchdog-20250516' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-watchdog CI: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=393&view=results - make cyclic_(un)register idempotent
2025-05-16Merge tag 'u-boot-marvell-20250516-v2' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-marvell CI: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=392&view=results - mvebu_espressobin_ultra-88f3720_defconfig: enable hwrng - kirkwood: Convert to DM_SERIAL for Kirkwood boards - kirkwood: Convert to DM_SERIAL for Synology DS109 board - cmd: tlv_eeprom: return after successful read from EEPROM
2025-05-16Merge tag 'dm-pull-16may25' of git://git.denx.de/u-boot-dm into nextTom Rini
Bring in the strim() changes and associated test
2025-05-16cyclic: document new guarantees for cyclic_(un)registerRasmus Villemoes
Signed-off-by: Rasmus Villemoes <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16cyclic: make cyclic_register safe to call on already-registered infoRasmus Villemoes
Now that cyclic_unregister() is safe to call on a not-registered cyclic_info, we can make cyclic_register() behave like the mod_timer() and hrtimer_start() APIs in linux, in that they don't distinguish between whether the timer was already enabled or not; from the point of the call it is, with whatever timeout/period is set in that most recent call. This avoids users of the cyclic API from separately keeping track of whether their callback is already registered or not, and even if they know it is, can be used for changing the period (and/or the callback function) without first doing unregister(). See also this recent'ish message from kernel maintainer Thomas Gleixner on that API design for timer frameworks: https://lore.kernel.org/lkml/87ikn6sibi.ffs@tglx/ First of all the question is whether add() and mod() are really valuable distinctions. I'm not convinced at all. Back then, when we introduced hrtimers, we came to the conclusion that hrtimer_start() is sufficient. Signed-off-by: Rasmus Villemoes <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16cyclic: make cyclic_unregister() idempotentRasmus Villemoes
Make cyclic_unregister() safe to call with an already unregistered, or possibly never registered, struct cyclic_info. This is similar to how the various timer APIs in the linux kernel work (they all allow calling delete/cancel/... on an inactive timer object). This means callers don't have to separately keep track of whether their cyclic callback is registered or not, and avoids them trying to peek into the struct cyclic_info for that information - which leads to somewhat ugly code as it would have to be guarded by ifdef CONFIG_CYCLIC. Signed-off-by: Rasmus Villemoes <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16cmd: tlv_eeprom: return after successful read from EEPROMMartin Schiller
Commit f6eff35b8c19 ("cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function") removed the needed 'return 0' after a successful read. As a result, the usage message is shown when 'tlv_eeprom read' is successfully called. Let's fix it by adding the needed 'return 0'. Signed-off-by: Martin Schiller <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16arm: kirkwood: Remove Synology DS109 board reset_miscTony Dinh
Remove DS109 board reset_misc() function. U-Boot generic reset is enough. Signed-off-by: Tony Dinh <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16arm: kirkwood: Convert to DM_SERIAL for Synology DS109 boardTony Dinh
Enable DM_SERIAL for Marvell Kirkwood Synology DS109. Note that this patch depends on: https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/ Signed-off-by: Tony Dinh <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16arm: kirkwood: Convert to DM_SERIAL for Kirkwood boardsTony Dinh
Enable DM_SERIAL for Marvell Kirkwood boards that have not been converted. Signed-off-by: Tony Dinh <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16configs: mvebu_espressobin_ultra-88f3720_defconfig: enable hwrngBenjamin Schneider
This device has a hardware random number generator. Linux can use this feature to randomize the location of the kernel in memory for better security. However, that functionality is only available if the bootloader firmware provides it. Enable support for it in the default configuration for this device. Signed-off-by: Benjamin Schneider <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2025-05-16test: Add a test for strim()Simon Glass
This function trims whitespace from the start and end of a string. Add a test for it. Signed-off-by: Simon Glass <[email protected]>
2025-05-16strim: Sync up with Linux versionSimon Glass
Linux changed the behaviour of strim() so that a string with only spaces reduces places the terminator at the start of the string, rather than returning a pointer to the end of the string. Bring in this version, from Linux v6.14 Add a comment about the new behaviour. Signed-off-by: Simon Glass <[email protected]>
2025-05-14include/command.h: Drop <env.h>Tom Rini
Now that all of the cases of code that relied on <command.h> to provide <env.h> (or one of the headers that it includes, and so forth) have been fixed, we can drop the include from here. Signed-off-by: Tom Rini <[email protected]>
2025-05-14global: Avoid indirect inclusion of <env.h> from <command.h>Tom Rini
The include file <command.h> does not need anything from <env.h>. Furthermore, include/env.h itself includes other headers which can lead to longer indirect inclusion paths. To prepare to remove <env.h> from <command.h> fix all of the places which had relied on this indirect inclusion to instead include <env.h> directly. Signed-off-by: Tom Rini <[email protected]> --- Cc: Anatolij Gustschin <[email protected]> Cc: Bin Meng <[email protected]> Cc: Heinrich Schuchardt <[email protected]> Cc: Ilias Apalodimas <[email protected]> Cc: Jaehoon Chung <[email protected]> Cc: Jerome Forissier <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Mark Kettenis <[email protected]> Cc: Masahisa Kojima <[email protected]> Cc: Mattijs Korpershoek <[email protected]> Cc: Patrice Chotard <[email protected]> Cc: Patrick Delaunay <[email protected]> Cc: Rayagonda Kokatanur <[email protected]> Cc: Simon Glass <[email protected]> Cc: Simon Goldschmidt <[email protected]> Cc: Stefan Bosch <[email protected]> Cc: Tien Fong Chee <[email protected]> Cc: Tingting Meng <[email protected]> Cc: Tobias Waldekranz <[email protected]>
2025-05-14gpio: pca953x: Add missing <asm/byteorder.h>Tom Rini
This driver takes a long implicit include path to get this header which it directly uses. Add it. Signed-off-by: Tom Rini <[email protected]>
2025-05-14cmd/mem.c, test/cmd/mem_copy.c: Add <compiler.h>Tom Rini
These files require <compiler.h> in order to have MEM_SUPPORT_64BIT_DATA be defined but currently rely on a long indirect include path to get it. Add this directly. Signed-off-by: Tom Rini <[email protected]>
2025-05-14global: Add <linux/string.h> instead of long indirect include pathTom Rini
In a number of cases we have C files which rely on a chain of indirect include paths to get <linux/string.h> to be included via <command.h>. To facilitate cleaning up <command.h> make this code directly include <linux/string.h>. Signed-off-by: Tom Rini <[email protected]> --- Cc: Andrew Davis <[email protected]> Cc: Bin Meng <[email protected]> Cc: Dai Okamura <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Francesco Dolcini <[email protected]> Cc: Ilias Apalodimas <[email protected]> Cc: Jens Wiklander <[email protected]> Cc: Kunihiko Hayashi <[email protected]> Cc: Mingkai Hu <[email protected]> Cc: Priyanka Jain <[email protected]> Cc: Shengzhou Liu <[email protected]> Cc: Simon Glass <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Svyatoslav Ryhel <[email protected]> Cc: Thierry Reding <[email protected]> Cc: William Zhang <[email protected]>
2025-05-13fs.h: Switch to using rtc_def.hTom Rini
This file only needs the definition of 'struct rtc_time' and that is found in <rtc_def.h>. Use that instead of pulling in rtc.h to pull in rtc_def.h as rtc.h includes many other include files. Signed-off-by: Tom Rini <[email protected]>
2025-05-13fat.c: Add missing includeTom Rini
This file references rtc functions and implicitly includes <rtc.h> today. Add this explicitly. Signed-off-by: Tom Rini <[email protected]>
2025-05-13ext4fs.c: Add missing includeTom Rini
This file references rtc functions and implicitly includes <rtc.h> today. Add this explicitly. Signed-off-by: Tom Rini <[email protected]>
2025-05-13cmd/cat.c: Add missing includeTom Rini
This file references errno values and so needs to include <linux/errno.h>. Signed-off-by: Tom Rini <[email protected]>
2025-05-12Merge tag 'u-boot-imx-master-20250512' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-imx CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/26116 - Add imxrt1170 support to the fspi SPI driver. - Enable PCI early on imx95_evk. - Fix fsl_enetc imdio register calculation.
2025-05-12imx95_evk: enable PCI earlyTim Harvey
Enable PCI early as the NETC device is an PCI ECAM device. Signed-off-by: Tim Harvey <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Alice Guo <[email protected]>
2025-05-12net: fsl_enetc: fix imdio register calculationThomas Schaefer
With commit cc4e8af2c552, fsl_enetc register accessors have been split to handle different register offsets on different SoCs. However, for internal MDIO register calculation, only ENETC_PM_IMDIO_BASE was fixed without adding the SoC specific MAC register offset. As a result, the network support for the Kontron SMARC-sAL28 and probably other boards based on the LS1028A CPU is broken. Add the SoC specific MAC register offset to calculation of imdio.priv to fix this. Fixes: cc4e8af2c552 ("net: fsl_enetc: Split register accessors") Signed-off-by: Thomas Schaefer <[email protected]> Signed-off-by: Heiko Thiery <[email protected]> Reviewed-by: Michael Walle <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Tested-by: Vladimir Oltean <[email protected]> # LS1028A Tested-by: Tim Harvey <[email protected]> # imx95_19x19_evk Reviewed-by: Marek Vasut <[email protected]> Reviewed-by: Alice Guo <[email protected]>
2025-05-12configs: imxrt1170-evk_defconfig: include FlexSPI driver and flash chip supportJonathan Currier
Signed-off-by: Jonathan Currier <[email protected]>
2025-05-12spi: fspi: dev_dbg() call assumes fdt_addr_t always a long longJonathan Currier
On 32-bit systems, e.g. i.mxrt-1170 fdt_addr_t may only be 32-bit. Cast to a "long long" for garbage avoidance. Signed-off-by: Jonathan Currier <[email protected]>
2025-05-12ARM: dts: imx: Add flexspi (fspi) to imxrt1170 and it's evk.Jonathan Currier
Signed-off-by: Jonathan Currier <[email protected]>
2025-05-12spi: fspi: Add imxrt1170 device dataJonathan Currier
Add the device specific driver data, and the clock configuration. Signed-off-by: Jonathan Currier <[email protected]>
2025-05-12spi: fspi: involve lut_num for struct nxp_fspi_devtype_dataJonathan Currier
The flexspi on different SoCs may have different number of LUTs. So involve lut_num in nxp_fspi_devtype_data to make distinguish. This patch prepare for the adding of imx8ulp. Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: [email protected] Signed-off-by: Haibo Chen <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]> (Picked from linux 190b7e2efb1ed8435fc7431d9c7a2447d05d5066) Signed-off-by: Jonathan Currier <[email protected]>
2025-05-12Prepare v2025.07-rc2v2025.07-rc2Tom Rini
Signed-off-by: Tom Rini <[email protected]>
2025-05-12configs: Resync with savedefconfigTom Rini
Resync all defconfig files using qconfig.py Signed-off-by: Tom Rini <[email protected]>
2025-05-12clk: Fix clk_set_parent() regressionJonas Karlman
The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled while reparenting") add a call to clk_enable() for the parent clock. For clock drivers that do not implement the enable() ops, like most Rockchip clock drivers, this now cause the set_parent() ops to never be called when CLK_CCF=n (default for Rockchip). clk_enable() typically return -ENOSYS when the enable() ops is not implemented by the clock driver, with CLK_CCF=y clk_enable() instead return 0 when the enable() ops is unimplemented. Change to ignore -ENOSYS from the newly introduced clk_enable() call to fix this regression and restore the old behavior of set_parent() ops being called regardless of if enable() ops is implemented or not. Fixes: ac30d90f3367 ("clk: Ensure the parent clocks are enabled while reparenting") Signed-off-by: Jonas Karlman <[email protected]> Tested-by: Dang Huynh <[email protected]> Acked-by: Miquel Raynal <[email protected]>