- Aug 11, 2022
-
-
Safae Ouajih authored
This is used for bootconfig support with android boot image header v4 Signed-off-by:
Safae Ouajih <souajih@baylibre.com>
-
Safae Ouajih authored
This adds support for bootconfig feature. Signed-off-by:
Safae Ouajih <souajih@baylibre.com>
-
Safae Ouajih authored
Signed-off-by:
Safae Ouajih <souajih@baylibre.com>
-
Safae Ouajih authored
This adds support for Android boot header version 3 and 4. Signed-off-by:
Roman Stratiienko <r.stratiienko@gmail.com> Signed-off-by:
Safae Ouajih <souajih@baylibre.com>
-
- Jul 08, 2022
-
-
Mattijs Korpershoek authored
On the VIM3L board, with some USB cables/hosts, there is a long (5s) delay before between "fastboot reboot" and the host detecting a USB reset. This breaks tools relying on "fastboot reboot fastboot" which assume that 1s after the command send, the board should disconnect on usb. To reproduce, enable fastboot in U-Boot console: => fastboot usb 0 Then, on the host, run: # echo "running fastboot reboot bootloader" > /dev/kmsg && fastboot reboot bootloader Rebooting into bootloader OKAY [ 0.003s] Finished. Total time: 3.033s [54074.251551] running fastboot reboot bootloader ... there is a delay of 5s before we detect a disconnection ... [54079.041238] usb 1-7.4: USB disconnect, device number 72 [54079.239625] usb 1-7.4: new high-speed USB device number 73 using xhci_hcd [54079.359103] usb 1-7.4: New USB device found, idVendor=1b8e, idProduct=fada, bcdDevice= 2.27 [54079.359110] usb 1-7.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [54079.359112] usb 1-7.4: Product: USB download gadget [54079.359114] usb 1-7.4: Manufacturer: U-Boot [54079.359116] usb 1-7.4: SerialNumber: C8631470CC41 Note: this does not happen when we use the RST button on the board, nor in linux. Resetting the usb controller before psci_reset fixes this. Signed-off-by:
Mattijs Korpershoek <mkorpershoek@baylibre.com>
-
Mattijs Korpershoek authored
To erase/flash hwpartitions, we first change hwpart from EMMC_USER (0) to EMMC_BOOT{1,2} by calling raw_part_get_info_by_name(). However, we don't switch back to EMMC_USER at the end of an erase. Therefore, all other fastboot commands are ran on the EMMC_BOOT{1,2} hwpart instead of the EMMC_USER hwpart. For example, the following sequence is broken: $ fastboot erase bootenv # switch to hwpart 2 $ fastboot reboot bootloader # attempts to read GPT from hwpart 2 The GPT being stored in EMMC_USER, the above command generates this error: > writing 128 blocks starting at 8064... > ........ wrote 65536 bytes to 'bootenv' > GUID Partition Table Header signature is wrong: 0xFB4EC30FC5B7E5B2 != 0x5452415020494645 > find_valid_gpt: *** ERROR: Invalid GPT *** > GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645 > find_valid_gpt: *** ERROR: Invalid Backup GPT *** > Error: mmc 2:misc read failed (-2) Fix it by switching back to EMMC_USER at the end of mmc_boot_ops(). Note: this is more visible since commit a362ce21 ("fastboot: Implement generic fastboot_set_reboot_flag") because "fastboot reboot bootloader" will access the "misc" partition. Signed-off-by:
Mattijs Korpershoek <mkorpershoek@baylibre.com>
-
- Jul 05, 2022
-
-
use unlocked state to know if device is lock. with android10 and new dunamic partition android have a userspace implementation to flash parition, userspace fastboot[1] use "androidboot.verifiedbootstate"[2] to know if device is lock or not. [1] https://android.googlesource.com/platform/system/core/+/refs/heads/master/fastboot/device/utility.cpp#202 [2] https://source.android.com/security/verifiedboot/boot-flow#communicating-verified-boot-state-to-users Signed-off-by:
Guillaume La Roque <glaroque@baylibre.com>
-
- Apr 04, 2022
-
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Andrey Zhizhikin authored
If include/generated/env.in does not exist, which is a typical case for clean build, quiet_cmd_gen_envp command tries to delete this file unconditionally. This produces following warning during the build: ENVP include/generated/env.in rm: cannot remove 'include/generated/env.in': No such file or directory Add '-f' option to the `rm` command to not complain if file does not exist. Fixes: f432eb6d ("env: Avoid using a leftover text-environment file") Reviewed-by:
Sean Anderson <seanga2@gmail.com> Signed-off-by:
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
-
- Apr 01, 2022
-
-
Francesco Dolcini authored
colibri-imx6ull ethernet device is fec2, while the optional secondary ethernet is fec1, update the ethernet aliases in the .dts file so that ethaddr is set to fec2 and eth1addr to fec1. Without this change the ethernet interfaces have a different mac address between Linux and U-Boot. Signed-off-by:
Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by:
Fabio Estevam <festevam@gmail.com>
-
https://source.denx.de/u-boot/custodians/u-boot-efiTom Rini authored
Pull request for efi-2022-04-rc6 Documentation: * Move VxWorks and Plan 9 to HTML documentation * Move all command man-pages to a separate directory Test: * Fix pylint errors UEFI * Fix build flags for initrddump.efi QEMU * Remove unused function to get RNG device
-
Simon Glass authored
If include/generated/environment.h exists (perhaps leftover from a build of another board) it is used, even if the board currently being built does not have a text environment. This causes a build error. Fix it by emptying the file if it should not be there. Fixes: https://source.denx.de/u-boot/u-boot/-/issues/9 Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Sean Anderson <seanga2@gmail.com> Tested-by:
Sean Anderson <seanga2@gmail.com>
-
- Mar 31, 2022
-
-
Andy Shevchenko authored
It seems a copy'n'paste typo when tool had been introduced. It has never had the 'exit' suffix in the file name. Hence, the custom CFLAGS never been applied and, for example, BFD linker complains: LD lib/efi_loader/initrddump_efi.so ld.bfd: lib/efi_loader/initrddump.o: warning: relocation in read-only section `.text.efi_main' ld.bfd: warning: creating DT_TEXTREL in a shared object Remove wrong 'exit' suffix from the custom CFLAGS variable. Fixes: 65ab48d6 ("efi_selftest: provide initrddump test tool") Fixes: 9c045a49 ("efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader") Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
* Use f'' strings instead of .format(). * Correct sequence of imports. * Remove a superfluous import. * Add missing documentation. * Replace yield by return. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
* fix style of argument documentation * add encoding to open() calls Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Bin Meng authored
This converts the existing README.plan9 to reST, and puts it under the doc/usage/os directory. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Bin Meng authored
At present the doc only mentions Arm, PowerPC and x86. RISC-V support has been added since VxWorks SR0650 support for a while, and U-Boot supports loading a RISC-V VxWorks kernel too. Let's document it. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Bin Meng authored
This converts the existing README.vxworks to reST, and puts it under the doc/usage/os directory. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
Bin Meng authored
Update the extension command title for consistency with other commands. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Bin Meng authored
Currently all shell command docs are put in the doc/usage root. Let's group them into cmd/ sub-directory. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Patrick Delaunay authored
Provide human readable descriptions of the speed nodes instead of the name of constants from the code as it is already done for 'mmc rescan' command in commit 212f0784 ("doc: mmc rescan speed mode"). Signed-off-by:
Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Aswath Govindraju <a-govindraju@ti.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Sughosh Ganu authored
The QEMU platform has a function defined to get the random number generator(RNG) device. However, the RNG device can be obtained simply by searching for a device belonging to the RNG uclass. Remove the superfluous platform function defined for the QEMU platform for getting the RNG device. Signed-off-by:
Sughosh Ganu <sughosh.ganu@linaro.org> Tested-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tom Rini authored
- Fixes for 2 gateworks platforms, Edison platform, incorrectly showing 2 logos on LCD screens, not cleaning a generated environment file and correct the CONFIG_SYS_IMMR Kconfig migration on a number of MPC85xx platforms.
-
Tim Harvey authored
The SPL does not update the memory node with the dram size from EEPROM but instead we can use get_ram_size which does a simple memory test to determine the available RAM. Update PHYS_SDRAM_SIZE to 4GiB as that is the max used on the Venice boards. Signed-off-by:
Tim Harvey <tharvey@gateworks.com> Reviewed-by:
Fabio Estevam <festevam@denx.de>
-
Andy Shevchenko authored
Before the culprit patch (see BugLink for the details): => acpi list Name Base Size Detail ---- -------- ----- ------ RSDP 000e4500 24 v02 U-BOOT RSDT 000e4530 38 v01 U-BOOT U-BOOTBL 20220401 INTL 0 XSDT 000e45e0 4c v01 U-BOOT U-BOOTBL 20220401 INTL 0 CSRT 000e5490 58 v00 U-BOOT U-BOOTBL 20220401 INTL 0 FACP 000e54f0 114 v06 U-BOOT U-BOOTBL 20220401 INTL 0 DSDT 000e4780 c06 v02 U-BOOT U-BOOTBL 10000 INTL 20200925 FACS 000e4740 40 MCFG 000e5610 3c v01 U-BOOT U-BOOTBL 20220401 INTL 0 SPCR 000e5650 50 v02 U-BOOT U-BOOTBL 20220401 INTL 0 APIC 000e56a0 48 v02 U-BOOT U-BOOTBL 20220401 INTL 0 After the culprit patch: => acpi list Name Base Size Detail ---- -------- ----- ------ RSDP 000e4500 24 v02 U-BOOT RSDT 000e4530 34 v01 U-BOOT U-BOOTBL 20220401 INTL 0 XSDT 000e45e0 44 v01 U-BOOT U-BOOTBL 20220401 INTL 0 CSRT 000e53a0 58 v00 U-BOOT U-BOOTBL 20220401 INTL 0 MCFG 000e5520 3c v01 U-BOOT U-BOOTBL 20220401 INTL 0 SPCR 000e5560 50 v02 U-BOOT U-BOOTBL 20220401 INTL 0 APIC 000e55b0 48 v02 U-BOOT U-BOOTBL 20220401 INTL 0 As a result Linux kernel can't find mandatory tables and fails to boot. Hence, revert it for good. This reverts commit 379d3c1f. BugLink: https://lore.kernel.org/all/20220131225930.GJ7515@bill-the-cat/ Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-
Tom Rini authored
When migrating SYS_IMMR, I didn't allow for boards to provide non-default values here. This lead to an incorrect migration on the platforms where CONFIG_SYS_IMMR is set to CONFIG_SYS_CCSRBAR and CONFIG_SYS_CSSRBAR is NOT the same as CONFIG_SYS_CCSRBAR_DEFAULT. Add text to the prompt so that non-default values can be used and re-migrate the platforms that have CONFIG_SYS_IMMR=CONFIG_SYS_CSSRBAR where CONFIG_SYS_CSSRBAR != CONFIG_SYS_CCSRBAR_DEFAULT. Fixes: be7dbb60 ("Convert CONFIG_SYS_IMMR to Kconfig") Reported-by:
Pali Rohár <pali@kernel.org> Signed-off-by:
Tom Rini <trini@konsulko.com> Tested-by:
Pali Rohár <pali@kernel.org>
-
Heinrich Schuchardt authored
'make sifive_unamtched_defconfig; make clean; make' fails if file include/generated/env.in exists. 'make clean' should remove all files that stop building. Add file include/generated/env.in to the clean target. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by:
Marek Behún <marek.behun@nic.cz>
-
Fabio Estevam authored
Currently, on imx6sabresd and gwventana boards, the company logo and U-Boot logo are shown. The correct behavior is to show only the company logo, if available, and not both logos. Reported-by:
Tim Harvey <tharvey@gateworks.com> Signed-off-by:
Fabio Estevam <festevam@denx.de> Tested-by: Tim Harvey <tharvey@gateworks.com> #gw_ventana
-
Tim Harvey authored
commit 7c84319a ("dm: gpio: Correct use of -ENODEV in drivers") changed the return code for an I2C NAK from -ENODEV to -EREMOTEIO. Update the gsc_i2c_read and gsc_i2c_write functions for this change to properly retry the transaction on a NAK meaning the GSC is busy. Fixes: 7c84319a ("dm: gpio: Correct use of -ENODEV in drivers") Signed-off-by:
Tim Harvey <tharvey@gateworks.com> Reviewed-by:
Fabio Estevam <festevam@denx.de>
-
- Mar 28, 2022
-
-
-
Marek Vasut authored
The 2x256 MiB SF variant of this system has 192 MiB rootfs MTD partition containing UBI on SF0, use the correct size in U-Boot environment, else U-Boot cannot mount UBI and boot on this variant. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Siew Chin Lim <elly.siew.chin.lim@intel.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Tien Fong Chee <tien.fong.chee@intel.com> Cc: Tom Rini <trini@konsulko.com>
-
Tim Harvey authored
Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration. Fixes: 777f333c ("imx: ventana: enable dm for MTD and NAND") Signed-off-by:
Tim Harvey <tharvey@gateworks.com> Reviewed-by:
Fabio Estevam <festevam@denx.de>
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Tom Rini authored
Rsync all defconfig files using moveconfig.py Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Tom Rini authored
- A zstd, two Apple M1 and an MXS NAND critical bugfix - Clean up another file that wasn't being removed and update some external documentation links.
-
Han Xu authored
Previous u-boot code changed the default bch setting behavior and caused backward compatible issue. This fix choose the legacy bch geometry back again as the default option. If the minimum ecc strength that NAND chips required need to be chosen, it can be enabled by either adding DT flag "fsl,use-minimum-ecc" or CONFIG_NAND_MXS_USE_MINIMUM_ECC in configs. The unused flag "fsl,legacy-bch-geometry" get removed. Fixes: 51cdf83e (mtd: gpmi: provide the option to use legacy bch geometry) Fixes: 616f03da (mtd: gpmi: change the BCH layout setting for large oob NAND) Tested-by:
Tim Harvey <tharvey@gateworks.com> Tested-by:
Sean Nyekjaer <sean@geanix.com> Signed-off-by:
Han Xu <han.xu@nxp.com> Reviewed-by:
Miquel Raynal <miquel.raynal@bootlin.com>
-
Jérôme Carretero authored
The code was mistakenly initializing the input buffer twice. Tested to be working on BeagleBone by adjusting CONFIG_SYS_BOOTM_LEN to 64MiB (probably works with less) and preparing uImage with: cat arch/arm/boot/Image \ | zstd --ultra -22 --zstd=windowLog=22 \ > linux.bin.zst mkimage -A arm -T kernel uImage -C zstd -d linux.bin.zst \ -a 0x80008000 -e 0x80008000 Without the windowLog restriction, bootm fails with a zstd decompression error 7 (window too large), which I haven't troubleshooted. There should be a bit more documentation on the feature... Reviewed-by:
Simon Glass <sjg@chromium.org> Fixes: 458b30af image: Update image_decomp() to avoid ifdefs
-
Freescale git repos are now on source.codeaurora.org. Signed-off-by:
Pali Rohár <pali@kernel.org>
-
Heinrich Schuchardt authored
make sandbox_defconfig make mrproper make tests fails with ../drivers/video/u_boot_logo.S: Assembler messages: ../drivers/video/u_boot_logo.S:5: Error: file not found: drivers/video/u_boot_logo.bmp We have to delete the generated file. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Mark Kettenis authored
The current approach for setting the environment variables that describe the memory layout runs the risk of overlapping with reserved memory regions. Use the lmb code to derive the addresses for these variables instead. Signed-off-by:
Mark Kettenis <kettenis@openbsd.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-