Marek Vasut
a4fca3045d
board: opalkelly: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Reviewed-by: Michal Simek <michal.simek@amd.com >
2024-07-22 10:51:47 -06:00
Marek Vasut
25ad85a16f
board: mntre: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
54e6499259
board: logicpd: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
acd0226eb8
board: l+g: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
f21e15fd1e
board: kontron: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
f5f5e2d4d5
board: is1: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
8bdf353a19
board: hisilicon: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
9a8c4f18e5
board: ge: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
d1124022ad
board: gdsys: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
90b9479b38
board: freescale: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:47 -06:00
Marek Vasut
5fb3ba988c
board: engicam: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
9e8b81b95c
board: ebv: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
4d36d3538f
board: dhelectronics: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
9c8cf720ab
board: devboards: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
606f56c6f3
board: davinci: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
05da705bea
board: congatec: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
251bf0af1c
board: compulab: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
8ed437b891
board: cobra5272: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
c8ce6c15fe
board: cadence: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
141615e59e
board: armltd: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
4afb91fe28
board: aries: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
7413246e4c
board: altera: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
63b191241a
board: advantech: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Marek Vasut
5565440883
board: BuS: Remove duplicate newlines
...
Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
2024-07-22 10:51:46 -06:00
Tom Rini
cb0b7ab607
Merge tag 'efi-2024-10-rc1-3' of https://source.denx.de/u-boot/custodians/u-boot-efi
...
Pull request efi-2024-10-rc1-3
Documentation:
* Move out-of-tree building info to HTML
* Enable ReadTheDocs addon management
* Remove FIT documentation that is elsewhere
* Update table of contents for FIT images
* Add description for more boot methods
UEFI:
* Correct finding distro device-path for media devices
* Fix typo in EFI_RT_VOLATILE_STORE description
Other:
* MAINTAINERS: Rename BOOTDEVICE
2024-07-19 08:53:23 -06:00
Simon Glass
38b000881e
doc: Describe the bootstd settings
...
The bootstd node provides some configuration properties. Add these to
the documentation.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 14:01:46 +02:00
Simon Glass
6b387c9396
boot: Correct indentation in efi bootmeth
...
Fix a minor indentation / whitespace problem in a comment.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Heinrich Schuchardt <xypron.glkp@gmx.de >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 14:01:42 +02:00
Simon Glass
1c930686ca
doc: Add a link to VBE from the bootstd docs
...
Link to this page to make it easier to find the VBE docs.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 14:01:30 +02:00
Simon Glass
87d00856df
doc: Add a description for bootmeth_script
...
Add documentation for the script bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:57:53 +02:00
Simon Glass
60b180fdba
bootstd: Correct handling of script from network
...
When reading a script from a network, no block device is available.
Update the implementation to support this correctly, avoiding setting
environment variables which relate only to block devices.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:57:50 +02:00
Simon Glass
cfed2219e3
bootstd: Tidy up comments on the boothmeth drivers
...
Fix a typo in the comment and add one to the EFI driver too.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:57:47 +02:00
Simon Glass
95403023cf
doc: Add a description for bootmeth_sandbox
...
Add documentation for the sandbox bootmeth.
Fix up the compatible string to drop the 'extlinux' part, which is not
relevant to this bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:57:44 +02:00
Simon Glass
56418511e9
doc: Add a description for bootmeth_cros
...
Add documentation for the cros bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:56:04 +02:00
Simon Glass
70a4982d4f
doc: Add a description for bootmeth_qfw
...
Add documentation for the qfw bootmeth.
Fix up the compatible string to drop the 'extlinux' part, which is not
relevant to this bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:54:54 +02:00
Simon Glass
64a1446bd0
doc: Add a description for bootmeth_pxe
...
Add documentation for the pxe bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:54:01 +02:00
Simon Glass
b1bb34fecd
doc: Add a description for bootmeth_extlinux
...
Add documentation for the extlinux bootmeth.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:53:59 +02:00
Simon Glass
1426f672d2
doc: Mention automatic binding of bootmeths
...
Add a note about how bootmeth drivers are instantiated.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
2024-07-19 13:53:56 +02:00
Simon Glass
c684db989e
doc: Move bootstd into its own directory
...
Before adding more files, move the bootstd docs into a new directory,
with an index.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:53:05 +02:00
Simon Glass
d5b6800374
MAINTAINERS: Rename BOOTDEVICE
...
Rename this to BOOTSTD which is the normal name for the feature.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-19 13:53:03 +02:00
Heinrich Schuchardt
df86796028
doc: enable ReadTheDocs addon management
...
Up to now ReadTheDocs has been injecting code when building on their
platform. This includes for instance improvements for the search function.
To maintain the current output ReadTheDocs requires setting html_baseurl
and html_context in conf.py.
See: https://about.readthedocs.com/blog/2024/07/addons-by-default/
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Tom Rini <trini@konsulko.com >
2024-07-19 13:46:29 +02:00
Michal Simek
ff47fddf72
efi_loader: Fix typo in EFI_RT_VOLATILE_STORE description
...
Fix typo in EFI_RT_VOLATILE_STORE description.
Fixes: c28d32f946 ("efi_loader: conditionally enable SetvariableRT")
Signed-off-by: Michal Simek <michal.simek@amd.com >
2024-07-19 13:45:56 +02:00
Heinrich Schuchardt
c72a163e54
doc: move out-of-tree building info to HTML
...
Move the information about out-of-tree building
from README to the generated HTML documentation.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2024-07-19 13:44:12 +02:00
Heinrich Schuchardt
5c1b5e6bc5
efi_loader: find distro device-path for media devices
...
The auto-generated load options for media device do not contain a partition
node. We cannot expect the simple file protocol here.
Get the partition device-path via the loaded image protocol.
Fixes: e91b68fd6b ("efi_loader: load distro dtb in bootmgr")
Reported-by: E Shattow <lucent@gmail.com >
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Tested-by: E Shattow <lucent@gmail.com >
2024-07-19 13:43:50 +02:00
Sam Povilus
7aab2b6c1f
doc: add missing table of content links
...
add missing table of content links, make alphabetical
Signed-off-by: Sam Povilus <sam.povilus@amd.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2024-07-19 11:55:56 +02:00
Sam Povilus
dadc3c2153
doc: Remove FIT documentation that is elsewhere
...
Before 9d0750064e (doc: Move external FIT docs into the main body), the
FIT property data-size was not a mandatory property and still it is not
expected to be set alongside the data property.
Move the data-size property to the "Conditionally mandatory property"
section, where it actually belongs.
Signed-off-by: Sam Povilus <sam.povilus@amd.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2024-07-19 11:55:56 +02:00
Tom Rini
4595600007
Merge patch series "bootstd: Add Android support"
...
Mattijs Korpershoek <mkorpershoek@baylibre.com > says:
Android boot flow is a bit different than a regular Linux distro.
Android relies on multiple partitions in order to boot.
A typical boot flow would be:
1. Parse the Bootloader Control Block (BCB, misc partition)
2. If BCB requested bootonce-bootloader, start fastboot and wait.
3. If BCB requested recovery or normal android, run the following:
a. Get slot (A/B) from BCB
b. Run AVB (Android Verified Boot) on boot partitions
c. Load boot and vendor_boot partitions
d. Load device-tree, ramdisk and boot
The AOSP documentation has more details at [1], [2], [3]
This has been implemented via complex boot scripts such as [4].
However, these boot script are neither very maintainable nor generic.
Moreover, DISTRO_DEFAULTS is being deprecated [5].
Add a generic Android bootflow implementation for bootstd.
For this initial version, only boot image v4 is supported.
This has been tested on sandbox using:
$ ./test/py/test.py --bd sandbox --build -k test_ut
This has also been tested on the AM62X SK EVM using TI's Android SDK[6]
To test on TI board, the following (WIP) patch is needed as well:
84cceb912b
[1] https://source.android.com/docs/core/architecture/bootloader
[2] https://source.android.com/docs/core/architecture/partitions
[3] https://source.android.com/docs/core/architecture/partitions/generic-boot
[4] https://source.denx.de/u-boot/u-boot/-/blob/master/include/configs/meson64_android.h
[5] https://lore.kernel.org/r/all/20230914165615.1058529-17-sjg@chromium.org/
[6] https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_02_00/docs/android/Overview.html
2024-07-18 17:03:47 -06:00
Tom Rini
cbfd2c28a0
Merge patch series "finish using .dtso for overlay source files"
...
Rasmus Villemoes <rasmus.villemoes@prevas.dk > says:
This is a followup to the patches that landed in 2024.01 and nearly
made sure that source files for producing .dtbo files use the .dtso
extension. In the same release, a few new .dts files snuck in, and
there was also some test code involving .dtbo -> .dtbo.S -> .dtbo.o I
didn't really know how to handle at the time. This should finish the
job, bring us in sync with linux (at least in this respect), and drop
the .dts -> .dtbo build rule.
2024-07-18 17:03:47 -06:00
Mattijs Korpershoek
c2a2a06e01
bootstd: Add test for bootmeth_android
...
Add a unit test for testing the Android bootmethod.
This requires another mmc image (mmc7) to contain the following partitions:
- misc: contains the Bootloader Control Block (BCB)
- boot_a: contains a fake generic kernel image
- vendor_boot_a: contains a fake vendor_boot image
Also add BOOTMETH_ANDROID as a dependency on sandbox so that we can test
this with:
$ ./test/py/test.py --bd sandbox --build -k test_ut # build the mmc7.img
$ ./test/py/test.py --bd sandbox --build -k bootflow_android
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
Reviewed-by: Julien Masson <jmasson@baylibre.com >
Reviewed-by: Guillaume La Roque <glaroque@baylibre.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2024-07-18 13:51:30 -06:00
Mattijs Korpershoek
125d9f3306
bootstd: Add a bootmeth for Android
...
Android boot flow is a bit different than a regular Linux distro.
Android relies on multiple partitions in order to boot.
A typical boot flow would be:
1. Parse the Bootloader Control Block (BCB, misc partition)
2. If BCB requested bootonce-bootloader, start fastboot and wait.
3. If BCB requested recovery or normal android, run the following:
3.a. Get slot (A/B) from BCB
3.b. Run AVB (Android Verified Boot) on boot partitions
3.c. Load boot and vendor_boot partitions
3.d. Load device-tree, ramdisk and boot
The AOSP documentation has more details at [1], [2], [3]
This has been implemented via complex boot scripts such as [4].
However, these boot script are neither very maintainable nor generic.
Moreover, DISTRO_DEFAULTS is being deprecated [5].
Add a generic Android bootflow implementation for bootstd.
For this initial version, only boot image v4 is supported.
[1] https://source.android.com/docs/core/architecture/bootloader
[2] https://source.android.com/docs/core/architecture/partitions
[3] https://source.android.com/docs/core/architecture/partitions/generic-boot
[4] https://source.denx.de/u-boot/u-boot/-/blob/master/include/configs/meson64_android.h
[5] https://lore.kernel.org/r/all/20230914165615.1058529-17-sjg@chromium.org/
Reviewed-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Julien Masson <jmasson@baylibre.com >
Tested-by: Guillaume La Roque <glaroque@baylibre.com >
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-18 13:51:30 -06:00
Mattijs Korpershoek
a525656c5b
android: boot: Add set_abootimg_addr() and set_avendor_bootimg_addr()
...
The only way to configure the load addresses for both bootimg and
vendor_bootimg is by using the "abootimg" command.
If we want to use the C API, there is no equivalent.
Add set_abootimg_addr() and set_avendor_bootimg_addr() so that we can
specify the load address from C.
This can be useful for implementing an Android bootmethod.
Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com >
Reviewed-by: Julien Masson <jmasson@baylibre.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Guillaume La Roque <glaroque@baylibre.com >
Tested-by: Guillaume La Roque <glaroque@baylibre.com >
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com >
2024-07-18 13:51:30 -06:00