- 19 Jun, 2022 5 commits
-
-
Heinrich Schuchardt authored
If CONFIG_VIDEO_DM=n we query the display size from the serial console. Especially when using a remote console the response can be so late that it interferes with autoboot. Only query the console size when running an EFI binary. Add debug output showing the determined console size. Reported-by:
Fabio Estevam <festevam@gmail.com> Fixes: a57ad20d ("efi_loader: split efi_init_obj_list() into two stages") Fixes: a9bf024b ("efi_loader: disk: a helper function to create efi_disk objects from udevice") Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tested-by:
Fabio Estevam <festevam@denx.de> Tested-by:
Heiko Thiery <heiko.thiery@gmail.com>
-
Heinrich Schuchardt authored
When the UEFI sub-system is initialized it sends an escape sequence to the serial console to determine the terminal size. This stops the run_command_list() function of the console emulation from recognizing the U-Boot command line prompt. Add a 'print -e' command as first command in the command list to work around this issue. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
If printenv -e is executed and the specified variable is not found, the return value $? of the command should be 1 (false). Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
Privide a man-page for the printenv command. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
Provide a man-page for the bootz command. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
- 17 Jun, 2022 15 commits
-
-
https://source.denx.de/u-boot/custodians/u-boot-stmTom Rini authored
- Fix the stm32prog command for stm32mp platform - Add stm32mp15x DHCOR based DRC Compact board
-
Tom Rini authored
Merge commit '32e03791' of https://github.com/tienfong/uboot_mainline
-
Tom Rini authored
- A wide array of regression fixes and minor updates
-
Dinesh Maniyam authored
Convert the constant integer to 'phys_size_t' to avoid overflow when calculating the SDRAM size. Signed-off-by:
Dinesh Maniyam <dinesh.maniyam@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Dinesh Maniyam authored
There is hardware bug in NCORE CCU IP and it is causing an issue in the coherent directory tracking of outstanding cache lines. The workaround is disabling snoop filter. Signed-off-by:
Dinesh Maniyam <dinesh.maniyam@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Dinesh Maniyam authored
The freeze controller is required for FPGA partial reconfig. This node is disable on default. Enable this node via u-boot fdt command when needed. Signed-off-by:
Yau Wai Gan <yau.wai.gan@intel.com> Signed-off-by:
Dinesh Maniyam <dinesh.maniyam@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Dinesh Maniyam authored
The freeze controller is required for FPGA partial reconfig. This node is disable on default. Enable this node via u-boot fdt command when needed. Signed-off-by:
Yau Wai Gan <yau.wai.gan@intel.com> Signed-off-by:
Dinesh Maniyam <dinesh.maniyam@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Dinesh Maniyam authored
Override __udelay() as 'always inlined' function so that PSCI code run in '__secure' section can call this delay function as well. Signed-off-by:
Chee Hong Ang <chee.hong.ang@intel.com> Signed-off-by:
Dinesh Maniyam <dinesh.maniyam@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Add DT for DH DRC Compact unit, which is a universal controller device. The system has two ethernet ports, one CAN, RS485 and RS232, USB, uSD card slot, eMMC and SDIO Wi-Fi. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Add another mux option for SPI2 pins, this is used on DRC Compact board. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Add another mux option for CAN1 pins, this is used on DRC Compact board. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Add another mux option for UART5 pins, this is used on DRC Compact board. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Add another mux option for UART4 pins, this is used on DRC Compact board. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Add another mux option for UART3 pins, this is used on DRC Compact board. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Patrick Delaunay <patrick.delaunay@foss.st.com>
-
Patrick Delaunay authored
The third parameter of dfu_alt_add(), the string description of alternate, is build in stm32prog_alt_add() with a unnecessary character ';' at the end of the string. This separator was required in the first implementation of dfu_alt_add() but is no more needed in the current implementation; this separator is managed only in dfu_config_interfaces() which call dfu_alt_add() for this parameter without this separator. And since the commit 53b40636 ("DFU: Check the number of arguments and argument string strictly"), this added character cause an error when the stm32prog command is executed because the third parameter of dfu_alt_add() must be a string with a numerical value; 's' must be NULL in the result of call in dfu_fill_entity_mmc(): third_arg = simple_strtoul(argv[2], &s, 0); Fixes: 53b40636 ("DFU: Check the number of arguments and argument string strictly") Signed-off-by:
Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com>
-
- 16 Jun, 2022 19 commits
-
-
Replace discuss with discard, that is what happens with packet with incorrect checksum. Fix the typo. Fixes: 4b37fd14 ("Convert CONFIG_UDP_CHECKSUM to Kconfig") Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Ramon Fried <rfried.dev@gmail.com> Cc: Simon Glass <sjg@chromium.org>
-
btool is needed after install binman to system. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Reviewed-by:
Alper Nebi Yasak <alpernebiyasak@gmail.com>
-
The origin of this patch is the breaking of am335x-hs boot due to commit e41651ff ("dm: Support parent devices with of-platdata") HS boards have less SRAM for SPL and so this commit increased memory usage beyond am335x limit. This commit added 10 driver binding pass and am335x boot only if one pass is done. SPL try to do more than one pass due to eth_cpsw failing. Since HS SPL does not need network (and NET is already disabled in config), the easiest fix is to "remove" eth_cpsw from SPL by testing if NET is enabled. Signed-off-by:
Corentin LABBE <clabbe@baylibre.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Acked-by:
Andrew Davis <afd@ti.com>
-
Currently get_tcr() takes an "el" parameter, to select the proper version of the TCR_ELx system register. This is problematic in case of the Apple M1, since it runs with HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using the TCR_EL1 layout, and we get the wrong version. For U-Boot's purposes the only sensible choice here is the current exception level, and indeed most callers treat it like that, so let's remove that parameter and read the current EL inside the function. This allows us to check for the E2H bit, and pretend it's EL1 in this case. There are two callers which don't care about the EL, and they pass 0, which looks wrong, but is irrelevant in these two cases, since we don't use the return value there. So the change cannot affect those two. Signed-off-by:
Andre Przywara <andre.przywara@arm.com> Reviewed-by:
Mark Kettenis <kettenis@openbsd.org> Tested-by:
Mark Kettenis <kettenis@openbsd.org>
-
With the move to use DM_CLK the boards uart stops working. The used properties are not supported by the imx8mq clock driver. Thus the correct baudrate cannot be selected. Remove this properties here and the board can start with working uart. Keep it in the main dts because linux handles these porperties fine. Signed-off-by:
Heiko Thiery <heiko.thiery@gmail.com>
-
The generic EHCI binding does not *require* resets and clocks properties, and indeed for instance the Allwinner A20 SoCs does not need or define any resets in its DT. Don't easily give up if clk_get_bulk() or reset_get_bulk() return an error, but check if that is due to the DT simply having no entries for either of them. This fixes USB operation on all boards with an Allwinner A10 or A20 SoC, which were reporting an error after commit ba96176a : ======================= Bus usb@1c14000: ehci_generic usb@1c14000: Failed to get resets (err=-2) probe failed, error -2 ======================= Signed-off-by:
Andre Przywara <andre.przywara@arm.com> Reviewed-by:
Patrice Chotard <patrice.chotard@foss.st.com>
-
Following Jincheng's report, an out-of-band write leading to arbitrary code execution is possible because on one side the squashfs logic accepts directory names up to 65535 bytes (u16), while U-Boot fs logic accepts directory names up to 255 bytes long. Prevent such an exploit from happening by capping directory name sizes to 255. Use a define for this purpose so that developers can link the limitation to its source and eventually kill it some day by dynamically allocating this array (if ever desired). Link: https://lore.kernel.org/all/CALO=DHFB+yBoXxVr5KcsK0iFdg+e7ywko4-e+72kjbcS8JBfPw@mail.gmail.com Reported-by:
Jincheng Wang <jc.w4ng@gmail.com> Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Tested-by:
Jincheng Wang <jc.w4ng@gmail.com>
-
Tom Rini authored
When migrating CONFIG_CONS_INDEX to Kconfig, on this platform we changed what "board" evaluated to in the environment. This in turn meant that we would no longer try and find the correct fdtfile via the normal distro boot logic. Fix this by overriding board in the default environment, as done on other platforms where CONFIG_SYS_BOARD is not what we want to be in the board environment variable. Fixes: f76750d1 ("Convert CONFIG_CONS_INDEX et al to Kconfig") Reported-by:
Gabriel Hojda <ghojda@yo2urs.ro> Tested-by:
Gabriel Hojda <ghojda@yo2urs.ro> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
b4 utility [1] is introduced by Linux Kernel developers and used to fetch patches and patch series from lore.kernel.org and is proven to be useful for U-Boot development. Detailed usage of the tool can be read under post from the original author [2]. This tool fetches files from the list and populates the source folder with additional files (*.cover and *.mbx) which are not ignored by git and shown as newly added files. Add those file patterns into .gitignore file, so they can be safely skipped during changes attestation. Link: [1]: https://pypi.org/project/b4/ Link: [2]: https://people.kernel.org/monsieuricon/introducing-b4-and-patch-attestation Signed-off-by:
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Without this register unlock it is not possible to configure the pinmux used for mcu spi0. Fixes: 92e46092 ("arch: arm: mach-k3: am642_init: Probe ESM nodes") Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Nishanth Menon <nm@ti.com>
-
This patch updates my email address and company name. Signed-off-by:
Christophe Leroy <christophe.leroy@csgroup.eu>
-
While working on an LX2160 based board and updating to latest mainline I noticed problems using the HW accelerated hash functions on this platform, when trying to boot a FIT Kernel image. Here the resulting error message: Using 'conf-freescale_lx2160a.dtb' configuration Trying 'kernel-1' kernel subimage Verifying Hash Integrity ... sha256Error: Address arguments are not aligned CAAM was not setup properly or it is faulty error! Bad hash value for 'hash-1' hash node in 'kernel-1' image node Bad Data Hash ERROR: can't get kernel image! Testing and checking with Gaurav Jain from NXP has revealed, that this alignment check is not necessary here at all. So let's remove this check completely. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Gaurav Jain <gaurav.jain@nxp.com> Cc: dullfire@yahoo.com Reviewed-by:
Gaurav Jain <gaurav.jain@nxp.com>
-
https://gitlab.denx.de/u-boot/custodians/u-boot-imxTom Rini authored
u-boot-imx-20220616 ------------------- Fixes for 2022.07 + Toradex apalis-imx8 (missed in last PR) CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/12322
-
Marek Vasut authored
Clean up in ubiload script. Unmount UBIFS from which kernel image was loaded and detach UBI on which the UBIFS is located, otherwise message similar to the following is printed just before booting kernel: Removing MTD device #7 (rootfs) with use count 1 Error when deleting partition "rootfs" (-16) 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> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Tien Fong Chee authored
Replace with phys_size_t for all memory size variables declaration for the sake of scalability. phys_size_t is defined in /arch/arm/include/asm/types.h. Signed-off-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Tien Fong Chee authored
Bit[7-4] for both register seq2core and core2seq handshake in HPS are not required for triggering DDR re-calibration or resetting EMIF. So, ignoring these bits just for playing it safe. Signed-off-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Yau Wai Gan authored
This new MMC sample select value is obtained from running tests on multiple Stratix 10 boards and proven working. Signed-off-by:
Yau Wai Gan <yau.wai.gan@intel.com> Reviewed-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
-
-
- 15 Jun, 2022 1 commit
-
-
Tien Fong Chee authored
All the source code of sdram_n5x.c are from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project. Signed-off-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-