- 24 7月, 2021 11 次提交
-
-
由 Heinrich Schuchardt 提交于
Commit 316ab801 ("doc: Update CapsuleUpdate READMEs") deleted file doc/board/emulation/qemu_capsule_update.rst. Update the index. this avoids doc/board/emulation/index.rst:6: WARNING: toctree contains reference to nonexisting document 'board/emulation/qemu_capsule_update' Fixes: 316ab801 ("doc: Update CapsuleUpdate READMEs") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Simon Glass 提交于
U-Boot uses the Linux Kbuild build system. Add the associated documentation so that people can understand the Makefiles better. This is taken from Linux v5.12 Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Tom Rini 提交于
- A new driver uclass is created to handle the reboot mode control. - Add support for libcrypt-style passwords for autoboot
-
由 Steffen Jaeckel 提交于
This adds tests for the crypt-based and plain SHA256-based password hashing algorithms in the autoboot flow. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Steffen Jaeckel 提交于
In case crypt-based hashing is enabled this will be the default mechanism that is used. If a user wants to have support for both, the environment variable `bootstopusesha256` can be set to `true` to allow plain SHA256 based hashing of the password. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Steffen Jaeckel 提交于
The key-sequence based unlock mechanisms are sensitive to junk symbols that could have been sent to stdin and are still waiting to be retrieved. Enabling this option will read all symbols off stdin before displaying the autoboot prompt (and starting to read the password from stdin). Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Steffen Jaeckel 提交于
In case a user has to enter a complicated password it is sometimes desireable to give the user more time than the default timeout. Enabling this feature will disable the timeout entirely in case the user presses the <Enter> key before entering any other character. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Steffen Jaeckel 提交于
While doing code-review internally this got nitpicked by 2 reviewers, so I decided to include this here. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Steffen Jaeckel 提交于
Hook into the autoboot flow as an alternative to the existing mechanisms. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Steffen Jaeckel 提交于
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Steffen Jaeckel 提交于
Add the basic functionality required to support the standard crypt format. The files crypt-sha256.c and crypt-sha512.c originate from libxcrypt and their formatting is therefor retained. The integration is done via a crypt_compare() function in crypt.c. ``` libxcrypt $ git describe --long --always --all tags/v4.4.17-0-g6b110bc ``` Signed-off-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
- 23 7月, 2021 29 次提交
-
-
由 Nandor Han 提交于
RTC devices could provide battery-backed memory that can be used for storing the reboot mode magic value. Add a new reboot-mode back-end that uses RTC to store the reboot-mode magic value. The driver also supports both endianness modes. Signed-off-by: NNandor Han <nandor.han@vaisala.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Nandor Han 提交于
A use case for controlling the boot mode is when the user wants to control the device boot by pushing a button without needing to go in user-space. Add a new backed for reboot mode where GPIOs are used to control the reboot-mode. The driver is able to scan a predefined list of GPIOs and return the magic value. Having the modes associated with the magic value generated based on the GPIO values, allows the reboot mode uclass to select the proper mode. Signed-off-by: NNandor Han <nandor.han@vaisala.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Nandor Han 提交于
A new driver uclass is created to handle the reboot mode control. The new uclass driver is updating an environment variable with the configured reboot mode. The mode is extracted from a map provided at initialization time. The map contains a list of modes and associated ids. Signed-off-by: NNandor Han <nandor.han@vaisala.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Tom Rini 提交于
- Assorted FIT, optee, pcf8575, mux, vexpress64 and distro bootcmd fixes. - Allow pinmux status to take pin names
-
由 Michal Simek 提交于
CONFIG_NET_MULTI has been removed long time ago by commit 795428fc ("net: remove CONFIG_NET_MULTI") but 4 boards were added later which wasn't found. The patch is removing this reference from 4 boards. Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Reviewed-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Patrick Wildt 提交于
The macro should be passed a state, which should be passed to the actual function. Otherwise using that macro would yield a build error. Signed-off-by: NPatrick Wildt <patrick@blueri.se> Reviewed-by: NPratyush Yadav <p.yadav@ti.com>
-
由 Andre Przywara 提交于
The ARM Juno boards can be used as somewhat decent machines to run off-the-shelf distributions, with USB, SATA, GBit Ethernet and 8GB of DRAM. With stable DTs in the board's NOR flash this would work really nicely, however the default boot command is to fetch a kernel and an initrd from the on-board NOR flash, which sounds somewhat embedded. Include the config_distro_bootcmd.h header and define the available devices (starting with USB, to catch USB installer sticks) to make distributions and UEFI work out of the box. The NOR flash kernel functionality is still preserved as the last resort, should all other methods fail. Signed-off-by: NAndre Przywara <andre.przywara@arm.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Andre Przywara 提交于
The generic distro boot sequence iterates over several types of devices, trying one after another. In doing do, it starts with setting the "devtype" variable, then uses this later in more generic commands. Now most (block) device types use a local variable for that, but DHCP puts the type into the environment, where it shadows any local variables. As a consequence any boot attempt after bootcmd_dhcp has been run fails: =========================== VExpress64# run bootcmd_dhcp ... VExpress64# run bootcmd_sata0 SATA#0: (3.0 Gbps) SATA#1: (No RDY) Device 0: Model: 16GB SATA Flash Drive .... ... is now current device Couldn't find partition dhcp 0:1 =========================== This problem typically doesn't show, because DHCP is mostly the last command to try, but is a problem when this order is different, or when distro_bootcmd or bootcmd_xxx are run separately or multiple times. Let bootcmd_dhcp use a local variable, as the other kids do, to make the order of boot commands irrelevant, and allow repeated calls. Signed-off-by: NAndre Przywara <andre.przywara@arm.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Tom Rini 提交于
When we build U-Boot with POSITION_INDEPENDENT we must have SYS_TEXT_BASE be set to zero. Make this the default in that case. Signed-off-by: NTom Rini <trini@konsulko.com> Reviewed-by: NMark Kettenis <kettenis@openbsd.org>
-
由 John Keeping 提交于
Switch to fit_image_get_data_and_size() for consistency with all other data loaded from FIT. Signed-off-by: NJohn Keeping <john@metanate.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Anders Dellien 提交于
As 'part_get_info_by_name' now returns more status codes than just -1 to indicate failure, we need to update the return value check. Signed-off-by: NAnders Dellien <anders.dellien@arm.com> Reviewed-by: NSean Anderson <sean.anderson@seco.com>
-
由 Lukasz Majewski 提交于
This patch add support for using NXP's pca8574 I2C IO expander, which has only 8 IO lines. After this change the .data member's information from struct udevice_id are used to either sent one or two bytes. Moreover, the '_le16' suffix from pcf8575_i2c_{write|read}_le16() functions have been removed as now we also sent 8 bit data. Signed-off-by: NLukasz Majewski <lukma@denx.de> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Lukasz Majewski 提交于
Those members are not used anymore as ones from gpio_dev_priv structure (when DM_GPIO support is enabled) are used instead. Signed-off-by: NLukasz Majewski <lukma@denx.de> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Patrick Delaunay 提交于
Allow pin name parameter for pimux staus command, as gpio command to get status of one pin. The possible usage of the command is: > pinmux dev pinctrl > pinmux status > pinmux status -a > pinmux status <pin-name> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Patrick Delaunay 提交于
Update the result of do_status and always returns a CMD_RET_ value (-ENOSYS was a possible result of show_pinmux). This patch also adds pincontrol name in error messages (dev->name) and treats correctly the status sub command when pin-controller device is not selected. Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Etienne Carriere 提交于
This change ensures both U-Boot and OP-TEE see the same content from shared memory when OP-TEE is invoked prior U-Boot relocation. This change is required since U-Boot may execute with data cache off while OP-TEE always enables cache on memory shared with U-Boot. Signed-off-by: NEtienne Carriere <etienne.carriere@linaro.org> Reviewed-by: NJens Wiklander <jens.wiklander@linaro.org> Acked-by: NIlias Apalodimas <ilias.apalodimas@linaro.org>
-
由 John Keeping 提交于
It's possible that LOAD_FIT_FULL will have different values for TPL and SPL, in which case just checking CONFIG_SPL_LOAD_FIT_FULL causes this to be compiled in to the TPL even though functions and struct members it depends on are not. Use CONFIG_IS_ENABLED() to ensure the correct TPL/SPL variant is checked. Signed-off-by: NJohn Keeping <john@metanate.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
-
The result of dpio_close() is actually taken into account. Signed-off-by: NCosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-
Change the reg variable to not be unsigned so that we not get into an unsigned compared against 0. Signed-off-by: NCosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-
由 Patrick Delaunay 提交于
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-
由 Patrick Delaunay 提交于
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-
由 Patrick Delaunay 提交于
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-
由 Patrick Delaunay 提交于
Add a common empty ops: eqos_null_ops() to remove the duplicated empty functions and reduce the driver size for stm32 and imx config. This patch also aligns the prototype of ops 'eqos_stop_clks' with other eqos ops by adding return value. Reviewed-by: NRamon Fried <rfried.dev@gmail.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
由 Patrick Delaunay 提交于
Use the generic ethernet phy which already manages the correct binding for gpio reset, including the assert an deassert delays. Reviewed-by: NRamon Fried <rfried.dev@gmail.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
由 Patrick Delaunay 提交于
Since the commit commit 6a895d03 ("net: Update eQos driver and FEC driver to use eth phy interfaces") the field phyaddr of driver private data struct eqos_priv is no more used in eqos_start() for the phy_connect() parameter. Now this variable is only initialized in eqos_probe_resources_stm32() it can be removed. Reviewed-by: NRamon Fried <rfried.dev@gmail.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
由 Patrick Delaunay 提交于
Bind any subnode with name beginning by mdio, mdio0 for example, and not only the "mdio" as namei of subnode. Reviewed-by: NRamon Fried <rfried.dev@gmail.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
由 Patrick Delaunay 提交于
Replace debug trace and printf to log macros: - debug() replaced by dev_dbg() when device is available, this macro indicate the device name since commit ceb70bb8 ("dm: Print device name in dev_xxx like Linux") - printf() replaced by log_notice() to allow dispatch to log backends. Reviewed-by: NRamon Fried <rfried.dev@gmail.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
由 Patrick Delaunay 提交于
The gpio reset and the assert or deassert delay are defined in generic binding of the ethernet phy in Linux: Documentation/devicetree/bindings/net/ethernet-phy.yaml reset-gpios: maxItems: 1 description: The GPIO phandle and specifier for the PHY reset signal. reset-assert-us: description: Delay after the reset was asserted in microseconds. If this property is missing the delay will be skipped. reset-deassert-us: description: Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped. See also U-Boot: doc/device-tree-bindings/net/phy.txt This patch adds the parsing of this common DT properties in the u-class "eth_phy_generic", used by default in the associated driver "eth_phy_generic_drv" This parsing function eth_phy_of_to_plat can be reused by other ethernet phy drivers for this uclass UCLASS_ETH_PHY. Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
-