summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-26video: mxc: Avoid setting global_data fb_baseSimon Glass
This is not used, so don't set it. Signed-off-by: Simon Glass <[email protected]>
2024-08-26video: Add a function to obtain the framebuffer addressSimon Glass
Add a new function which returns the framebuffer address of the first video device. This will allow the global_data field top be dropped. Signed-off-by: Simon Glass <[email protected]>
2024-08-26x86: Drop use of global_data fb_baseSimon Glass
This value is set by not used on x86 so there is no point in setting it. Drop the assignment. Signed-off-by: Simon Glass <[email protected]>
2024-08-26global_data: Move pci_clk to m68k and powerpcSimon Glass
Only m68k and powerpc use this field, so move it to the arch-specific info, to reduce the size for other archs. Signed-off-by: Simon Glass <[email protected]>
2024-08-24Merge tag 'efi-2024-10-rc4' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request efi-2024-10-rc4 Documentation: * Add description of the pwm command UEFI * Correct printf codes in mkeficapsule * Allow CONFIG_EFI_LOADER_BOUNCE_BUFFER on all architectures * Free memory in efi_get_dp_from_boot()
2024-08-24efi_loader: allow EFI_LOADER_BOUNCE_BUFFER on all architecturesHeinrich Schuchardt
There not only ARM64 boards but also RISC-V boards that require a bounce buffer to read block devices. Drop the architecture restriction. Signed-off-by: Heinrich Schuchardt <[email protected]>
2024-08-24doc: document the pwm commandEmil Kronborg
Signed-off-by: Emil Kronborg <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2024-08-24tools/mkeficapsule: correct printf codesHeinrich Schuchardt
uint64_t is defined as unsigned long long on 32-bit ARM. Use PRIX64 for printing uint64_t. This avoid a build failure on 32-bit systems: tools/mkeficapsule.c: In function 'dump_capsule_auth_header': tools/mkeficapsule.c:694:66: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 694 | printf("EFI_FIRMWARE_IMAGE_AUTH.MONOTONIC_COUNT\t\t: %08lX\n", | ~~~~^ | | | long unsigned int | %08llX Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Reviewed-by: Mark Kettenis <[email protected]>
2024-08-24efi_loader: fix memory freeing in efi_get_dp_from_boot()Ilias Apalodimas
efi_get_var() allocates memory which must be freed after the variable is used. Since the device path is duplicated after we deserialize the load options free the memory used for the variable payload Fixes: db61e70e0d2a efi_loader: efi_dp_from_lo() should skip VenMedia node Signed-off-by: Ilias Apalodimas <[email protected]> Reviewed-by: Heinric Schuchardt <[email protected]>
2024-08-23Merge patch series "test/overlay: Make this depend on SANDBOX"Tom Rini
Tom Rini <[email protected]> says: Update a few things so that CONFIG_UNIT_TEST will compile for more hardware platforms.
2024-08-23test/cmd: Move wget test to under a sandbox guardTom Rini
This test is sandbox-centric, so guard it so. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2024-08-23test/boot: Make BOOTSTD tests depend on UT_BOOTSTDTom Rini
While we have a symbol for controlling if we will be testing BOOTSTD or not, and it depends on SANDBOX, we do not control the building of test/boot/ content correctly. Guard the current bootstd tests with a check for UT_BOOTSTD and leave the measurement test available. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2024-08-23test/overlay: Make this depend on SANDBOXTom Rini
As the overlays are sandbox specific, mark the whole test as depending on sandbox. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2024-08-23Merge patch series "spl: mmc: Some tweaks for SPL, particularly with MMC"Tom Rini
Simon Glass <[email protected]> says: This series includes various minor fixes and tweaks found when trying to reduce the size of MMC code in SPL.
2024-08-23blk: Correct comment for blk_get_devnum_by_uclass_idname()Simon Glass
Update the comment to match the function. Fix the indentation while we are here. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: Create a function to init spl_load_infoSimon Glass
Rather than having every caller set this up individually, create a common init function. This allows new fields to be added without the risk of them being left uninited. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
2024-08-23spl: mmc: Adjust args of spl_mmc_find_device()Simon Glass
At present spl_mmc_load() is the only caller of this function, passing it a boot_device, an index into the available MMC devices. Pass the device number instead, since it is known by the caller and simplifies the code. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: Remove remaining #ifdef in spl_parse_image_header()Simon Glass
Define spl_set_header_raw_uboot() always so we can drop the last #ifdef in this function. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: Use unified inline functions for spl_load_infoSimon Glass
Rather than declaring completely separate functions, put the code for each case into the same function. This makes it easier to read. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: mmc: Handle error codes consistentlySimon Glass
Use 'ret' as the return code, since it may not be an error and this is the common name in U-Boot. Make sure to return the error code when given, rather than transforming it into -1 (-EPERM). Signed-off-by: Simon Glass <[email protected]>
2024-08-23spl: Remove some #ifdefs in spl_parse_image_header()Simon Glass
This function has a number of unnecessary #ifdefs so remove them. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: mmc: Try to clean up raw-mode optionsSimon Glass
Make the raw-mode options depend on SPL_SYS_MMCSD_RAW_MODE in a more direct way. This makes it easier to understand the options with 'make menuconfig'. There are three different ways of specifying the offset: - sector offset - partition number - partition type So make these a choice, so it is more obvious what is going on. Update existing boards to enable SPL_SYS_MMCSD_RAW_MODE where needed. Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Signed-off-by: Simon Glass <[email protected]>
2024-08-23spl: mmc: Drop checks for CONFIG_SPL_LIBCOMMON_SUPPORTSimon Glass
This check is not needed now, since printf() resolved to nothing if not available. Drop the #ifdefs Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23spl: Correct use of CMD_BOOTI and CMD_BOOTZSimon Glass
These should have a CONFIG_ prefix. Add it. Signed-off-by: Simon Glass <[email protected]> Fixes: 7a0d88076b9 ("Add in the ability to load and boot an uncompr...") Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23log: Avoid including function names by defaultSimon Glass
Unless function names are requested, the logging system should not compile these into the code. Adjust the macros to handle this. This means that turning on function names at runtime won't work unless CONFIG_LOGF_FUNC is enabled. We could perhaps split this into a separate option if that is a problem. Enable CONFIG_LOGF_FUNC logging for sandbox since the tests expect the function names to be included. Fix up the pinmux test which checks a logging statement. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23rockchip: Move the default timer init to a common fileSimon Glass
Rather than repeating the same code in two files (SPL and TPL), move it to a shared filed. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Dragan Simic <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23mmc: Use logging instead of pr_err()Simon Glass
Use the log subsystem instead of dev, to avoid including function names in the code. The CONFIG_LOGF_FUNC option can be used to enable the function name. Update 'enhanced size' to use hex since this is the U-Boot default and more natural for the large numbers involved. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23mmc: Use logging instead of printf()Simon Glass
The code makes quite a few uses of __func__ which puts the function name into the resulting SPL image. Use the log subsystem instead, to reduce size. The CONFIG_LOGF_FUNC option can be used to enable the function name. Use lower-case hex for the status output in sdhci_transfer_data(), to match sdhci_send_command() Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
2024-08-23Merge tag 'u-boot-imx-next-20240823' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-imx into next CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/22098 - Add BOOTAUX support for apalis and colibri imx8 boards. - Cleanup tqma6 board by removing unneeded board code. - Add support for booting from ecspi3 via bmode command on imx6. - Add a script to ease updating flash.bin on imx8mm phytec board. - Enable cat and xxd commands on Data Modul i.MX8M Mini/Plus eDM SBC and use USB SDPS as fallback option. - Fix critical temperature on imx9. - Add Cortex M and bootaux support for phycore-imx8mp.
2024-08-23ARM: imx: Enable cat and xxd commands on Data Modul i.MX8M Mini/Plus eDM SBCMarek Vasut
Enable 'cat' command to print file from filesystem to stdout. Enable 'xxd' command to hexdump file from filesystem to stdout. Signed-off-by: Marek Vasut <[email protected]>
2024-08-23ARM: imx: Use USB SDPS as fallback option on Data Modul i.MX8M Plus eDM SBCMarek Vasut
The Data Modul i.MX8M Plus eDM SBC does have USB gadget capable port accessible via USB A-A cable plugged into the bottom USB 3.0 port. Use USB SDPS as the fallback boot device, so USB SDPS loading can be performed using e.g. uuu tool. Signed-off-by: Marek Vasut <[email protected]>
2024-08-23configs: phycore-imx8mp_defconfig: Enabled bootaux commandYashwanth Varakala
To start the mcore binary from u-boot, bootaux command is needed. Signed-off-by: Yashwanth Varakala <[email protected]>
2024-08-23board: phytec: phycore_imx8mp: Add mcore supportYashwanth Varakala
Added m7 core support in uboot for imx8mp by adding the boot variable prepare_mcore. Based on commit 0ed32cc8568a ("LF-6555 imx8m[m/n/p/q]_evk: add bootargs to support mcore") Signed-off-by: Yashwanth Varakala <[email protected]>
2024-08-23mx6: Expand bmode to support ecspi3 bootFabio Estevam
Currently, the bmode command only supports booting from ecspi1. Expand it to also support booting from ecspi3. Signed-off-by: Fabio Estevam <[email protected]> Acked-by: Peng Fan <[email protected]>
2024-08-23gw_ventana: Remove unneeded commentsFabio Estevam
Remove several comments that do not apply anymore to the current file content. While at it, write 'PMIC' into a single line for consistency. Signed-off-by: Fabio Estevam <[email protected]>
2024-08-23tqma6_mba6: Remove UART board codeFabio Estevam
With DM_SERIAL in place, there is no need to setup the UART pins in the board code. The UART pins are setup via devicetree, thanks to DM. Remove the unneeded code. Signed-off-by: Fabio Estevam <[email protected]>
2024-08-23tqma6_mba6: Remove unused definesFabio Estevam
The PAD_CTRL definitions are not used anywhere. Remove them to make the code cleaner. Signed-off-by: Fabio Estevam <[email protected]>
2024-08-23tqma6: Remove non-DM board codeFabio Estevam
CONFIG_DM_MMC and CONFIG_DM_SPI are alway selected so the mmc and spi board code can be safely removed. Remove it to make the code cleaner. Signed-off-by: Fabio Estevam <[email protected]>
2024-08-23imx: imx9: Set correct critical temperaturePrimoz Fiser
Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") wrongly set critical temperature to (maxc - 5) instead of maxc. Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses") Signed-off-by: Primoz Fiser <[email protected]>
2024-08-23config: Add 'update_bootimg' command to update flash.bin on Phytec's imx8mmLukasz Majewski
This command allows easy update on SD card or eMMC of the flash.bin generated (with binman) during u-boot build. Signed-off-by: Lukasz Majewski <[email protected]> Reviewed-by: Benjamin Hahn <[email protected]> Tested-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2024-08-23colibri-imx8x: enable i.MX specific SNVS configurationAndrejs Cainikovs
commit 242d1cd69b9f ("imx8: Configure SNVS") implemented IMX_SNVS_SEC_SC. Enable it. Signed-off-by: Andrejs Cainikovs <[email protected]> Signed-off-by: Max Krummenacher <[email protected]>
2024-08-23colibri-imx8x: enable i.MX specific BOOTAUXAndrejs Cainikovs
commit e8cd1f60d964 ("imx: imx8: bootaux: Add i.MX8 M4 boot support") implemented IMX_BOOTAUX. Enable it. Signed-off-by: Andrejs Cainikovs <[email protected]> Signed-off-by: Max Krummenacher <[email protected]>
2024-08-23apalis-imx8: enable i.MX specific BOOTAUXAndrejs Cainikovs
commit e8cd1f60d964 ("imx: imx8: bootaux: Add i.MX8 M4 boot support") implemented IMX_BOOTAUX. Enable it. Signed-off-by: Andrejs Cainikovs <[email protected]> Signed-off-by: Max Krummenacher <[email protected]>
2024-08-23board: apalis-imx8: add reset codeAndrejs Cainikovs
With commit 922d4504bcab ("imx: scu_api: update to version 1.16 and add more APIs") added the reboot API. Add the board code to use that. Signed-off-by: Andrejs Cainikovs <[email protected]> Signed-off-by: Max Krummenacher <[email protected]>
2024-08-22Merge branch 'master' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-samsung into next
2024-08-22Merge tag 'u-boot-dfu-20240822' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-dfu u-boot-dfu-20240822 - Fix crash in BCB on invalid block device (reported by coverity) - Fix booting Android kernel without a ramdisk using fastboot - Fix ux500 gadget driver ops based on CONFIG_USB_MUSB_HOST
2024-08-22usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST setMarek Vasut
In case CONFIG_USB_MUSB_HOST is set, the ux500_gadget_ops get overridden to musb_usb_ops . Simply set the ops one way or the other depending on whether CONFIG_USB_MUSB_HOST is set or not. Fixes: ac4bf5d48a9e ("usb: gadget: ux500: Convert interrupt handling to usb_gadget_generic_ops") Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
2024-08-22boot: android: fix booting without a ramdiskMichael Walle
android_image_get_ramdisk() will return an error if there is no ramdisk. Using the android image without a ramdisk worked until commit 1ce8e10f3b4b ("image: Fix up ANDROID_BOOT_IMAGE ramdisk code") because the return code wasn't checked until then. Return -ENOENT in case there is no ramdisk and translate that into -ENOPKG in the calling code, which will then indicate "no ramdisk" to its caller (boot_get_ramdisk()). This way, we can get rid of the "*rd_data = *rd_len = 0;" in the error path, too. With this, I'm able to boot a linux kernel using fastboot again: fastboot --base 0x41000000 --header-version 2 --dtb /path/to/dtb \ --cmdline "root=/dev/mmcblk0p1 rootwait" boot path/to/Image Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Reviewed-by: Simon Glass <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
2024-08-22cmd: bcb: Fix segfault on invalid block deviceMattijs Korpershoek
When blk_get_dev() fails, block NULL and gets de-referenced in the error path by a printf(), resulting in a crash. This can be reproduced on sandbox with: $ ./u-boot --command "bcb load mmc 0 0" Fix the message by using the functions arguments (iface, devnum) instead. Note: partition (being a global static initialized) can be used safely. This issue has been reported by coverity [1] [1] https://lore.kernel.org/all/20240723141844.GF989285@bill-the-cat/ Fixes: dfeb4f0d7935 ("cmd: bcb: extend BCB C API to allow read/write the fields") Reviewed-by: Dmitrii Merkurev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
2024-08-21CI: Update to latest DockerfileTom Rini
This primarily updates our python cache. Signed-off-by: Tom Rini <[email protected]>