- Jul 06, 2021
-
-
In a system with multiple network controllers it can be difficult to know the names of the various devices available. This is especially true for USB ether devices as they do not display device names upon detection. This is being added as a net sub-system in case other commands may want to be added or moved here. Note that this is only enabled for DM_ETH Example: U-Boot > net net - NET sub-system Usage: net list - list available devices U-Boot > net list eth0 : ethernet@2188000 00:d0:12:98:f5:47 active eth1 : e1000#0 00:d0:12:98:f5:48 eth2 : asix_eth 8c:ae:4c:f5:84:9d eth3 : asix_eth 8c:ae:4c:f9:41:e3 Signed-off-by:
Tim Harvey <tharvey@gateworks.com> Reviewed-by:
Stefan Roese <sr@denx.de> Reviewed-by:
Ramon Fried <rfried.dev@gmail.com>
-
- Jul 05, 2021
-
-
Probably, a pointer to a variable in an inner block should not be exposed to an outer block. Fixes: c70f4481 ("efi_loader: simplify 'printenv -e'") Signed-off-by:
AKASHI Takahiro <takahiro.akashi@linaro.org> [trini: Don't make guid const now] Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jun 30, 2021
-
-
Tom Rini authored
This reverts commit 4e1903a6. This local commit was not intended to be pushed out. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jun 28, 2021
-
-
Heinrich Schuchardt authored
Display the number of the boot option and not its index. Fixes: 2ecee310 ("efi_loader: use efi_create_indexed_name()") Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jun 24, 2021
-
-
The <name> argument can now also be MTD's DM device name or OF path. Mention this is command help. Signed-off-by:
Marek Behún <marek.behun@nic.cz> Reviewed-by:
Miquel Raynal <miquel.raynal@bootlin.com> Tested-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Jagan Teki <jagan@amarulasolutions.com> Cc: Priyanka Jain <priyanka.jain@nxp.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Cc: Patrick Delaunay <patrick.delaunay@st.com>
-
Print MTD's device OF path in the output of `mtd list` command. Signed-off-by:
Marek Behún <marek.behun@nic.cz> Reviewed-by:
Miquel Raynal <miquel.raynal@bootlin.com> Tested-by:
Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by:
Jagan Teki <jagan@amarulasolutions.com> Cc: Priyanka Jain <priyanka.jain@nxp.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Cc: Patrick Delaunay <patrick.delaunay@st.com>
-
- Jun 22, 2021
-
-
This patch allows uboot scripts make choices about where to boot from based on the active mmc boot partition. This allows having two copies of kernel, filesystems etc, and choosing which to boot from based off of the active bootloader partition. Signed-off-by:
Reuben Dowle <reuben.dowle@4rf.com> Reviewed-by:
Jaehoon Chung <jh80.chung@samsung.com>
-
- Jun 18, 2021
-
-
If the environment does not have "soc" or "board" set, and fdtdir option is specified in extlinux.conf, the bootloader will crash whilst dereferencing a null pointer. Add a guard against null soc or board. Fixes a crash of qemu-riscv64_smode configuration, which does not have CONFIG_SYS_SOC defined. Signed-off-by:
Dimitri John Ledkov <xnox@ubuntu.com> Reviewed-by:
Ramon Fried <rfried.dev@gmail.com>
-
- Jun 11, 2021
-
-
Add support command for debugging K3 power domains. This is useful with the HSM rearch setup, where power domains are directly controlled by SPL instead of going through the TI SCI layer. The debugging support is only available in the u-boot codebase though, so the raw register access power domain layer must be enabled on u-boot side for this to work. By default, u-boot side uses the TI SCI layer, and R5 SPL only uses the direct access methods. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Signed-off-by:
Tero Kristo <kristo@kernel.org> Reviewed-by:
Jaehoon Chung <jh80.chung@samsung.com>
-
Add new clk subcommand "clk setfreq", for setting up a clock rate directly from u-boot cmdline. This is handy for any debugging purposes towards clocks. Acked-by:
Lukasz Majewski <lukma@denx.de> Signed-off-by:
Tero Kristo <t-kristo@ti.com> Signed-off-by:
Tero Kristo <kristo@kernel.org>
-
Some clocks are not associated to a DM node, so just parsing the DM is not enough. This is especially true for root clocks, which typically don't have any parents. Instead, fetch every registered UCLASS_CLK instance, and dump these out. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Signed-off-by:
Tero Kristo <kristo@kernel.org>
-
- Jun 08, 2021
-
-
Add the missing dependency for the command ums: - CONFIG_BLK: call of blk_* functions in usb_mass_storage.c - CONFIG_USB_GADGET: required to select CONFIG_USB_FUNCTION_MASS_STORAGE Signed-off-by:
Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- May 25, 2021
-
-
Heinrich Schuchardt authored
Use efi_get_variable_int() instead of EFI_CALL(RT->get_variable()). Use efi_set_variable_int() instead of EFI_CALL(efi_set_variable()). Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Tested-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org>
-
Heinrich Schuchardt authored
Simplify the creation of indexed variable names like 'Boot0000' by using function efi_create_indexed_name(). Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org>
-
Heinrich Schuchardt authored
To print a UTF-16 string use %ls instead of converting string to UTF-8. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org>
-
Heinrich Schuchardt authored
To print a UTF-16 string use %ls instead of converting string to UTF-8. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org>
-
- May 24, 2021
-
-
Tom Rini authored
With better compiler optimizations available, a compiler may see we do nothing with our buffer after calling memset and omit the call, thus causing us to not smash the stack. Add a comment to explain why we now also have a printf call, so that the test will pass as the memset will not be omitted. Reported-by:
Marek Behún <marek.behun@nic.cz> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- May 16, 2021
-
-
Stefan Roese authored
Rename the misleading cmd "rx_training" to "mvebu_comphy_rx_training" to avoid confusion and mixup with DDR3/4 training. This makes it clear, that this command is platform specific and handles the COMPHY RX training. Also depend this cmd on ARMADA_8K and not TARGET_MVEBU_ARMADA_8K to make is available for OcteonTX2 CN913x. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Pali Rohár <pali@kernel.org> Cc: Marek Behun <marek.behun@nic.cz> Cc: Kostya Porotchkin <kostap@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Acked-by:
Marek Behún <marek.behun@nic.cz> Acked-by:
Pali Rohár <pali@kernel.org>
-
- May 13, 2021
-
-
This patch adds a new "extension" command, which aims at detecting extension boards connected to the hardware platform, and apply the Device Tree overlays that describe the hardware present on those extension boards. In order to enable this mechanism, board-specific code must implement the extension_board_scan() function that fills in a linked list of "struct extension", each describing one extension board. In addition, the board-specific code must select the SUPPORT_EXTENSION_SCAN Kconfig boolean. Based on this: - "extension scan" makes the generic code call the board-specific extension_board_scan() function to retrieve the list of detected extension boards. - "extension list" allows to list the detected extension boards. - "extension apply <number>|all" allows to apply the Device Tree overlay(s) corresponding to one, or all, extension boards The latter requires two environment variables to exist and set one variable to run: - extension_overlay_addr: the RAM address where to load the Device Tree overlays - extension_overlay_cmd: the U-Boot command to load one overlay. Indeed, the location and mechanism to load DT overlays is very setup specific. - extension_overlay_name: set by the command: the name of the DT which will be load during the execution. When calling the command described in the extension_overlay_cmd variable, the variable extension_overlay_name will be defined. So a typical extension_overlay_cmd will look like this: extension_overlay_cmd=load mmc 0:1 $extension_overlay_addr /boot/$extension_overlay_name Here is an example on how to use it: => run loadfdt => fdt addr $fdtaddr => setenv extension_overlay_addr 0x1000 => setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}' => extension scan Found 1 extension board(s). => extension apply 0 519 bytes read in 3 ms (168.9 KiB/s) Signed-off-by:
Kory Maincent <kory.maincent@bootlin.com> Reviewed-by:
Maxime Ripard <maxime@cerno.tech>
-
Move the fdt_valid function to fdt_support. This changes allow to be able to test the validity of a devicetree in other c files. Update code syntax. Signed-off-by:
Kory Maincent <kory.maincent@bootlin.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Maxime Ripard <maxime@cerno.tech>
-
- May 10, 2021
-
-
This should be 'regwidth', not 'baud'. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
- May 05, 2021
-
-
Heinrich Schuchardt authored
The ebreak instruction should generate a breakpoint exception. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Rick Chen <rick@andestech.com>
-
- May 04, 2021
-
-
This change would enhance the existing 'gpt read' command to allow (optionally) writing of the read GPT partitions to an environment variable in the UBOOT partitions layout format. This would allow users to easily change the overall partition settings by editing said variable and then using the variable in the 'gpt write' and 'gpt verify' commands. Signed-off-by:
Farhan Ali <farhan.ali@broadcom.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Corneliu Doban <cdoban@broadcom.com> Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Apr 29, 2021
-
-
This patch adds support for running RX training using new command called "rx_training" Usage: rx_training - rx_training <cp id> <comphy id> RX training allows to improve link quality (for SFI mode) by running training sequence between us and the link partner, this allows to reach better link quality then using static configuration. Change-Id: I818fe67ccaf19a87af50d4c34a9db7d6802049a5 Signed-off-by:
Igal Liberman <igall@marvell.com> Signed-off-by:
Marcin Wojtas <mw@semihalf.com>
-
- fix the dependency for MMC boot (add XENON to MVEBU_MMC) - fix the bubt destination assignment (missing # in "else" case) Signed-off-by:
Konstantin Porotchkin <kostap@marvell.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Apr 23, 2021
-
-
Michal Simek authored
On systems without usb gadget dfu core fails which was reported by error but command itself returns pass which breaks any usage in a script. That's why propagate error from run_usb_dnl_gadget(). Fixes: 16297cfb ("usb: new board-specific USB init interface") Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Apr 20, 2021
-
-
Add support for stack protector for UBOOT, SPL, and TPL as well as new pytest for stackprotector Signed-off-by:
Joel Peshkin <joel.peshkin@broadcom.com> Adjust UEFI build flags. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
Add additional param for reset cmd, which provides type of reset. Signed-off-by:
Igor Opaniuk <igor.opaniuk@foundries.io>
-
Trying to compile with CONFIG_CMD_MMC=y and CONFIG_MMC=n leads to errors: riscv64-linux-gnu-ld.bfd: cmd/built-in.o: in function `do_mmcops': cmd/mmc.c:984: undefined reference to `get_mmc_num' riscv64-linux-gnu-ld.bfd: cmd/built-in.o: in function `do_mmc_setdsr': cmd/mmc.c:873: undefined reference to `find_mmc_device' Add missing dependency. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Jaehoon Chung <jh80.chung@samsung.com>
-
- Apr 12, 2021
-
-
In case exit is called in a script without parameter, the command returns -2 ; in case exit is called with a numerical parameter, the command returns -2 and lower. This leads to the following problem: => setenv foo 'echo bar ; exit 1' ; run foo ; echo $? bar 0 => setenv foo 'echo bar ; exit 0' ; run foo ; echo $? bar 0 => setenv foo 'echo bar ; exit -2' ; run foo ; echo $? bar 0 That is, no matter what the 'exit' command argument is, the return value is always 0 and so it is not possible to use script return value in subsequent tests. Fix this and simplify the exit command such that if exit is called with no argument, the command returns 0, just like 'true' in cmd/test.c. In case the command is called with any argument that is positive integer, the argument is set as return value. => setenv foo 'echo bar ; exit 1' ; run foo ; echo $? bar 1 => setenv foo 'echo bar ; exit 0' ; run foo ; echo $? bar 0 => setenv foo 'echo bar ; exit -2' ; run foo ; echo $? bar 0 Note that this does change ABI established in 2004 , although it is unclear whether that ABI was originally OK or not. Fixes: c26e454d Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Cc: Tom Rini <trini@konsulko.com>
-
We move qfw into its own uclass and split the PIO functions into a specific driver for that uclass. The PIO driver is selected in the qemu-x86 board config (this covers x86 and x86_64). include/qfw.h is cleaned up and documentation added. Signed-off-by:
Asherah Connor <ashe@kivikakk.ee> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com>
-
serial_reinit_all() is only available if CONFIG_SERIAL is defined (i.e. !CONFIG_DM_SERIAL). Signed-off-by:
Asherah Connor <ashe@kivikakk.ee> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
stdio_dev methods have taken a pointer to themselves since 709ea543 (nearly 7 years ago). Signed-off-by:
Asherah Connor <ashe@kivikakk.ee> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
This variable is a boolean, not a string. Signed-off-by:
Sean Anderson <sean.anderson@seco.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Apr 10, 2021
-
-
Heinrich Schuchardt authored
Replace static function efi_get_device_handle_info() by a simplified function efi_get_device_path_text() avoiding EFI_CALL(). Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Apr 08, 2021
-
-
This patch enable blob command for mScale platforms. Signed-off-by:
Aymen Sghaier <aymen.sghaier@nxp.com> Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Signed-off-by:
Franck LENORMAND <franck.lenormand@nxp.com> Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
U-Boot can instantiate CAAM RNG if needed by crypto operations. Call sec_init() prior running a blob operation to ensure RNG is correctly instantiated. Make sure CAAM clock is enabled and check if a job ring is available for that operation. Signed-off-by:
Breno Lima <breno.lima@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com> Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
In order to build CMD_BLOB on i.MX CAAM supported devices it's necessary to select IMX_HAB. Add IMX_HAB and CAAM supported SoCs as dependency. Signed-off-by:
Breno Lima <breno.lima@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com> Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-