- Jan 18, 2023
-
-
Simon Glass authored
Some blobs are actually not necessary for the board to work correctly. Add a property to allow this to be indicated. Missing optional blobs do not cause a build failure. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
OP-TEE has a format with a binary header that can be used instead of the ELF file. With newer versions of OP-TEE this may be required on some platforms. Add support for this in binman. First, add a method to obtain the ELF sections from an entry, then use that in the FIT support. We then end up with the ability to support both types of OP-TEE files, depending on which one is passed in with the entry argument (TEE=xxx in the U-Boot build). Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a function which checks whether data is in ELF format or not. This will be used by binman to check this for entries. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Support entries which can be optional depending on their contents. This allows special entry types which appear in the image only when needed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Several etypes have this reference in their documentation. Now that we are using rST, link to the section directly. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Quentin Schulz <quentin.schulz@theobroma-systems.com>
-
Simon Glass authored
These have got out of data recently. Regenerate them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Expand this comment to cover both cases that are supported. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present only the image (which is a section) has a filename. Move this implementation to the entry_Section class so that any section can have a filename. With this, the section data is written to a file. This allows parts of an image to be written, along with the entire image. Make a note that this can be used to include the contents of a section in one image in another (later) image. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This breaks chromebook_coral and it is also not how things should work. If a board needs to bind GPIOs as part of a pinctrl driver this can be done during the bind step, if needed. We cannot probe pinctrl devices when binding as a rule, since it cannot be supported on some platforms. The bind and probe steps are separate in U-Boot and they should remain separate. This reverts commit f9ec791b. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The fdt_path_offset() function is slow since it must scan the tree. This substantial overhead now applies to all boards. The original code may not be ideal but it is fit for purpose and is only needed on a few boards. Reverting this reduces time to set up driver model by about 30ms. Before revert: Accumulated time: 47,170 dm_r 53,237 dm_spl 572,986 dm_f Accumulated time: 44,598 dm_r 50,347 dm_spl 549,133 dm_f This reverts commit 26f981f2. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board is useful for benchmarking overall U-Boot performance. Enable the bootstage feature so we get a report. Since this returns to the boot rom before finishing executing board_init_r() in SPL, add a few bootstage calls so that we can collect timing from TPL. For the stash region, use a portion of SRAM, 64KB below the stack top. This allows the TPL image to be up to nearly 120KB (it is typically about 64KB). SPL normally runs from SDRAM at 0, so can use the same stash region. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some platforms cannot honour this and don't need trace before relocation. Use 'imply' instead, so boards can disable this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This now includes flags and the layout has changed slightly in recent versions of Linux. Update the generator accordingly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The flags in this tool don't match the comments or help. Also the variable names are quite confusing. Update them for consistency. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add messages to make it clearer which part of the FIT creation is failing. This can happen when an invalid 'algo' property is provided in the .its file. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This can be written before relocation. Move it to the data section, since accessing BSS before relocation is not permitted. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
If the FDT overlaps with the data region of the image, or with the stack, it can become corrupted before relocation. Add a check for this, behind a debug flag, as it can be very confusing and time-consuming to debug. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function uses gd->fdt_blob a lot and cannot be used to check any other device tree. Use a parameter instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is a bit messy with several #ifdefs. Convert them to use C for the conditions. Rewrite the function comment since most of it is stale. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is not used outside this file. Make it static. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The current approach is a bit of a hack and only works for the tpm subsystem. Add a Kconfig so that crc8 can be enabled in SPL for other purposes. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Use the notrace attribute so that timer functions can be used when tracing. This is required to avoid infinite loops when recording a trace. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The attribute syntax is quite verbose. Use the macro provided for this purpose. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 17, 2023
-
-
Tom Rini authored
To quote the author: So far standard boot lacks a boot menu, although it is possible to create a rudimentary one using the existing 'bootmenu' command. Even then, this text-based menu offer only basic functionality and does not take full advantage of the displays which are common on many devices. This series provides a 'bootflow menu' command which allows the user to select from the available bootflows. An attempt is made to show the name of the available operating systems, by reading more information into the bootflow. A logo can be read also, where supported, so that this can be presented to the user when an option is highlighted. Full use is made of TrueType fonts, if enabled. For cases where only a serial console is available, it falls back to a simple text-based menu. All of this is implementing using a new 'expo' construct, a collection of scenes (like menu screens) which can be navigated by the user to view information and select options. This is fairly general and should be able to cope with a wider array of use cases, with less hacking of the menu code, such as is currently needed for CMD_BOOTEFI_BOOTMGR. Of course it would be possible to enhance the existing menu rather than creating a new setup. Instead it seems better to make the existing menu use expo, if code space permits. It avoids the event-loop problem and should be more extensible, given its loosely coupled components and use of IDs instead of pointers. Further motivation is provided in the documentation. For now the CLI keypress-decoding code is split out to be used by the new menu. The key codes defined by menu.h are reused also. This is of course just a starting point. Some ideas for future work are included in the documentation.
-
https://source.denx.de/u-boot/custodians/u-boot-marvellTom Rini authored
- kirkwood: Convert to DM Serial for various Kirkwood boards (Tony) - orion-timer: Fix problem in early_init_done() (Stefan)
-
For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. Please see Michael's patch here: https://lore.kernel.org/u-boot/20220817193809.1059688-20-michael@walle.cc/ This patch enables the early malloc in DRAM for all Kirkwood boards. Note that this will work for boards that have either non-DM serial and DM_SERIAL. Also, add the CONFIG_KIRKWOOD_COMMON option to enable DM_SERIAL as a common option for boards that have been tested. Signed-off-by:
Tony Dinh <mibodhi@gmail.com>
-
Stefan Roese authored
It was noticed that Clearfog is currently broken with this newly introduced early_init_done() function. Apparently the timer is enabled here when U-Boot is run but not configured - at least not correctly. Resulting in a hangup in the timer reading functions. To fix this, also read the value of the reload register and check it's value with the one written to by U-Boot. Only if this matches, the init has already been done. Fixes: 5387b093 ("timer: orion-timer: Fix problem with early static variable") Signed-off-by:
Stefan Roese <sr@denx.de> Acked-by:
Pali Rohár <pali@kernel.org> Cc: Martin Rowe <martin.p.rowe@gmail.com> Cc: Tony Dinh <mibodhi@gmail.com> Cc: Pali Rohár <pali@kernel.org> Cc: Michael Walle <michael@walle.cc>
-
https://source.denx.de/u-boot/custodians/u-boot-rockchipTom Rini authored
- Add support for rv1126 soc and rv1126 neu2 io board; - Add support for rk3399 pine64 pinephone pro board; - dts sync from linux for rk3399 and px30; - Add support for PX30 Ringneck SoM board;
-
- Jan 16, 2023
-
-
Add some documentation for the expo feature. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Allow a theme to be set. For now this is very simple, just a default font size to use for all elements. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Add a test which checks that two operating systems can be displayed in a menu, allowing one to be selected. Enable a few things on snow so that the unit tests build. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Create an expo to handle the boot menu. For now this is quite simple, with just a header, some menu items and a pointer to show the current one. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Add some tests for the expo, including setting up and rendering an expo. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
A menu is a key part of the expo design. It consists of a number of items which the user can select from. Add the initial implementation of this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
A scene is a single screen within an expo. It is possible to move between scenes but only one can be displayed at once. Add a basic implementation. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
An expo is a way of presenting and collecting information from the user. It consists of a collection of 'scenes' of which only one is presented at a time. An expo is typically used to show a boot menu and allow settings to be changed. One created, the same expo can be automatically presented in graphical form using a vidconsole, or in text form on a serial console. Add an initial implementation of the expo itself. Supports for scenes and objects is provided later. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Move this code into a separate function so that it can be used in the new VBE menu. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Some operating systems provide a logo in bmp format. Read this in if present so it can be displayed in the menu. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Add the concept of an OS name to the bootflow. This typically includes the OS name, version and kernel version. Implement this for the distro and script bootmeths so that it works with Armbian and older version of Fedora. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Support for fonts currently depends on the type of vidconsole in use. Add two new methods to enumerate fonts and to set the font. Fix a few other method comments while we are here. Signed-off-by:
Simon Glass <sjg@chromium.org>
-