- 25 7月, 2019 23 次提交
-
-
由 David Abdurachmanov 提交于
Starting libvirt v5.3.0 with QEMU 4.0.0 use of PCI is automatic and thus storage is connected via PCI, which is not visible to U-Boot out-of-the-box. Refactor to do "pci enum" followed by "virtio scan" to see PCI connected storage, and allow bootloader to load kernel and initramfs images. Tested with Fedora/RISCV using releases: libvirt 5.4.0 & 5.5.0, QEMU 4.0.0 and U-Boot 2019.07 RC4. Signed-off-by: NDavid Abdurachmanov <david.abdurachmanov@sifive.com>
-
由 Suman Anna 提交于
The rproc uclass driver can either be built with SPL_REMOTEPROC or REMOTEPROC, but the function prototypes in remoteproc.h are defined only when CONFIG_REMOTEPROC is defined. This can cause build issues in SPL if CONFIG_REMOTEPROC is not selected. Fix this by replacing the existing precompiler macro usage with CONFIG_IS_ENABLED. Fixes: ddf56bc7 ("drivers: Introduce a simplified remoteproc framework") Signed-off-by: NSuman Anna <s-anna@ti.com> Reviewed-by: NNishanth Menon <nm@ti.com> Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
-
由 Mickaël Tansorier 提交于
Add missing newline before title and subtitle. Signed-off-by: NMickaël Tansorier <mickael.tansorier@smile.fr>
-
由 Mickaël Tansorier 提交于
Increment conf id to avoid to have two same conf name into one configuration description. Signed-off-by: NMickaël Tansorier <mickael.tansorier@smile.fr>
-
由 Bin Meng 提交于
Now we have a logo for U-Boot, we can include it in the Sphinx html doc. Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Bin Meng 提交于
With Sphinx documentation moving from Documentation directory to doc directory, we missed updating .gitignore for the Sphinx build output directory. Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Baruch Siach 提交于
Support load of the U-Boot image from raw SATA disk sector. This is equivalent to load from MMC raw sector. Signed-off-by: NBaruch Siach <baruch@tkos.co.il>
-
由 Heinrich Schuchardt 提交于
kernel-doc fails to parse function definitions like the one below efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event, void *context), void *notify_context, efi_guid_t *group, struct efi_event **event) { due to the "EFIAPI" attribute preceding the function name. cf. https://lkml.org/lkml/2018/9/3/1185Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Update the script from Linux 5.2 to avoid some warnings. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Jonathan Corbet 提交于
Recent versions of sphinx will emit messages like: doc/sphinx/kerneldoc.py:103: RemovedInSphinx20Warning: app.warning() is now deprecated. Use sphinx.util.logging instead. Switch to sphinx.util.logging to make this unsightly message go away. Alas, that interface was only added in version 1.6, so we have to add a version check to keep things working with older sphinxes. Signed-off-by: NJonathan Corbet <corbet@lwn.net> Rebased for U-Boot Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Ruslan Trofymenko 提交于
Add support for A/B boot process on AM57xx based boards: 1. Define 'slot_suffix' variable (using 'ab_select' command) 2. Extend 'emmc_android_boot' boot command (add commands for A/B boot process) 'ab_select' command is used to decide which slot should be used for booting up. A/B metadata resides in 'misc' partition. To activate the A/B boot process, the following config options must be set: CONFIG_ANDROID_AB=y CONFIG_CMD_AB_SELECT=y For successful A/B boot, the corresponding A/B infrastructure must be involved on Android side [1] (including mounting system as root), and disk must be partitioned accordingly. When A/B boot is enabled, there are some known limitations currently exist (not related to A/B patches, need to be implemented later): 1. The 'Verified Boot' sequence is not supported 2. dev path to system partition (system_a or system_b) is passed via 'bootargs' as 'root=' argument like 'root=/dev/mmcblk1p12', but further we'll need to rework it with respect to dm-verity requirements [2] In case when A/B partitions are not present in system (and A/B boot is enabled), boot up process will be terminated and next message will be shown: "boot_a(b) partition not found" [1] https://source.android.com/devices/tech/ota/ab [2] https://source.android.com/devices/tech/ota/ab/ab_implement#kernelSigned-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ruslan Trofymenko 提交于
Add a short documentation for A/B enablement and 'ab_select' command usage. Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ruslan Trofymenko 提交于
Add sandbox test for 'ab_select' command. Test: ./test/py/test.py --bd sandbox --build -k test_ab Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ruslan Trofymenko 提交于
For A/B system update support the Android boot process requires to send 'androidboot.slot_suffix' parameter as a command line argument. This patch implementes 'ab_select' command which allows us to obtain current slot by processing the A/B metadata. The patch was extracted from commit [1] with one modification: the separator for specifying the name of metadata partition was changed from ';' to '#', because ';' is used for commands separation. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ruslan Trofymenko 提交于
This patch determines the A/B-specific bootloader message structure that is the basis for implementation of recovery and A/B update functions. A/B metadata is stored in this structure and used to decide which slot should we use to boot the device. Also some basic functions for A/B metadata manipulation are implemented (like slot selection). The patch was extracted from commits [1], [2] with some coding style fixes. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729878/2 [2] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ruslan Trofymenko 提交于
This patch adds part_get_info_by_dev_and_name_or_num() function which allows us to get partition info from its number or name. Partition of interest is specified by string like "device_num:partition_number" or "device_num#partition_name". The patch was extracted from [1]. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Eugeniu Rosca 提交于
These have been reported by Simon in [1] and fixed in [2]. However, since [1] has already been pushed to u-boot/master, the improvements incorporated in [2] are now extracted and resubmitted. The changes are in the area of coding style and best practices: * s/field/fieldp/, s/size/sizep/, to convey that the variables return an output to the caller * s/err_1/err_read_fail/, s/err_2/err_too_small/, to be more descriptive * Made sure 'static int do_bcb_load' appears on the same line * Placed a `/*` on top of multi-line comment [1] https://patchwork.ozlabs.org/patch/1104244/#2200259 [2] https://patchwork.ozlabs.org/cover/1128661/ ("[v4,0/4] Add 'bcb' command to read/modify/write Android BCB") Fixes: db7b7a05 ("cmd: Add 'bcb' command to read/modify/write BCB fields") Reported-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
-
由 Eugeniu Rosca 提交于
Quote from https://patchwork.ozlabs.org/patch/1104244/#2210814: ----------8<----------- strncmp() is chosen for the sake of paranoid/defensive programming. Indeed, strncmp() is not really needed when comparing a variable with a string literal. We expect strcmp() to behave safely even if the string variable is not NUL-terminated. In the same scenario, Linux v5.2-rc7 uses both strcmp() and strncmp(), but the frequency of strcmp() is higher: $ git --version git version 2.22.0 $ (Linux 5.2-rc7) git grep -En 'strncmp\([^"]*"[[:alnum:]]+"' | wc -l 1066 $ (Linux 5.2-rc7) git grep -En 'strcmp\([^"]*"[[:alnum:]]+"' | wc -l 1968 A quick "strcmp vs strncmp" object size test shows that strcmp() generates smaller memory footprint (gcc-8, x86_64): $ (U-Boot) size cmd/bcb-strncmp.o cmd/bcb-strcmp.o text data bss dec hex filename 3373 400 2048 5821 16bd cmd/bcb-strncmp.o 3314 400 2048 5762 1682 cmd/bcb-strcmp.o So, overall, I agree to use strcmp() whenever variables are compared with string literals. ----------8<----------- Fixes: db7b7a05 ("cmd: Add 'bcb' command to read/modify/write BCB fields") Reported-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NIgor Opaniuk <igor.opaniuk@gmail.com>
-
由 Eugeniu Rosca 提交于
Fix warning V1037 reported by PVS-Studio Static Analyzer: Two or more case-branches perform the same actions. Check lines: 49, 53 Fixes: db7b7a05 ("cmd: Add 'bcb' command to read/modify/write BCB fields") Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
-
由 Eugeniu Rosca 提交于
Commit 9bdf0e8f ("doc: relocate/rename Android README and add BCB overview") left some obsolete references of Android documents/paths. This has been pointed out by Sam (thanks!) in: https://patchwork.ozlabs.org/patch/1104245/#2208134 Fixes: 9bdf0e8f ("doc: relocate/rename Android README and add BCB overview") Reported-by: NSam Protsenko <semen.protsenko@linaro.org> Suggested-by: NSam Protsenko <semen.protsenko@linaro.org> Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
-
由 Roman Stratiienko 提交于
This allows to use any available compression format with Android boot image Since not all available compression formats have a magic number we should explicitly specify type of compression. For this purpose using uImage format becomes very useful, as this format is well-known by the community and mkimage tool is already available. Usage example: mkimage -A ARM64 -T kernel -C lzma -d Image.lzma out/kernel At this moment only -C option is handled, but specifying -A and -T options are recommended for compatibility reasons in the future. Kernel that compressed with LZ4 can be already used without wrapping into the uImage, but I recommend wrapping it into the uImage in order to avoid situations when by some mistake legacy LZ4 is used, that is interpreted as raw Image and causes CPU to enter Exception Handler without providing any meaningful explanation to the user. Signed-off-by: NRoman Stratiienko <roman.stratiienko@globallogic.com>
-
由 Leon Yu 提交于
If there is only one menu item available, prompting user to enter choice makes little sense and just causes unnecessary boot delay. This change makes menu_get_choice return the only one item when there is no other choices. Signed-off-by: NLeon Yu <leoyu@nvidia.com> Cc: Tom Warren <twarren@nvidia.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Thierry Reding <treding@nvidia.com>
-
由 Ruslan Trofymenko 提交于
This sub-command serves for getting the partition index from partition name. Also it can be used to test the existence of specified partition. Use case: For example, in most CI environments this U-Boot command for automatic testing of Linux rootfs is used: => setenv bootpart 1:f where 0xf is "userdata" partition. But the number of "userdata" partition can be changed any time, when partition table is changed. So it would be nice to get rid of that 0xf magic number and use partition name instead, like this: => part number mmc 1 userdata part_num => setenv bootpart 1:${part_num} Signed-off-by: NRuslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: NAlistair Strachan <astrachan@google.com> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NSam Protsenko <semen.protsenko@linaro.org>
-
- 24 7月, 2019 2 次提交
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-efi由 Tom Rini 提交于
Pull request for UEFI sub-system for v2019.10-rc1 (2) * Implement the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event. * Address errors of type -Werror=address-of-packed-member when building with GCC9.1 * Fix an error when adding memory add addres 0x00000000. * Rework some code comments for Sphinx compliance.
-
https://gitlab.denx.de/u-boot/custodians/u-boot-stm由 Tom Rini 提交于
- add rtc driver for stm32mp1 - add remoteproc driver for stm32mp1 - use kernel qspi compatible string for stm32
-
- 23 7月, 2019 1 次提交
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip由 Tom Rini 提交于
- rk3399 sdhci driver fixup - TPL BANNER fixup
-
- 22 7月, 2019 14 次提交
-
-
由 Chris Webb 提交于
The generic code in common/spl/spl.c allows TPL/SPL banners to be silenced by unsetting CONFIG_TPL_BANNER_PRINT or CONFIG_SPL_BANNER_PRINT respectively. However, arch/arm/mach-rockchip/tpl.c prints this banner unconditionally. Fix the rockchip-specific tpl.c so that the TPL banner depends on CONFIG_TPL_BANNER_PRINT in the same way as the generic code. Signed-off-by: <chris@arachsys.com> Reviewed-by: NKever Yang <Kever.yang@rock-chips.com>
-
由 Chris Webb 提交于
If CONFIG_DEBUG_UART is set but CONFIG_TPL_SERIAL_SUPPORT is not, the serial output should be available in SPL and full U-Boot, but not built in TPL. However, the rockchip tpl.c instead fails to compile with undefined references to the debug UART. Instead, initialise the debug UART and print the TPL banner only if both CONFIG_DEBUG_UART and CONFIG_TPL_SERIAL_SUPPORT are set. Signed-off-by: <chris@arachsys.com> Reviewed-by: NKever Yang <Kever.yang@rock-chips.com>
-
由 Patrick Delaunay 提交于
Add support of STM32MP1 rtc driver. Enable it for basic and trusted configurations. Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com>
-
由 Patrick Delaunay 提交于
Add RTCAPB and RTC clock support. Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrice Chotard 提交于
Align doc/device-tree-bindings/spi/spi-stm32-qspi.txt with kernel v5.2-rc6 Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
-
由 Patrice Chotard 提交于
"st,stm32-qspi" is no more used, remove it. Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
-
由 Patrice Chotard 提交于
For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
-
由 Patrice Chotard 提交于
For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
-
由 Patrick Delaunay 提交于
Activate the remote processor support for stm32mp15 configs. Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com>
-
由 Fabien Dessenne 提交于
Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com>
-
由 Fabien Dessenne 提交于
This patch introduces support of Cortex-M4 remote processor for STM32 MCU and MPU families. Signed-off-by: NLoic Pallardy <loic.pallardy@st.com> Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com>
-
由 Fabien Dessenne 提交于
The current implementation supports only binary file load. Add helpers to support ELF32 format (sanity check, and load). Note that since an ELF32 image is built for the remote processor, the load function uses the device_to_virt ops to translate the addresses. Implement a basic translation for sandbox_testproc. Add related tests. Test result: => ut dm remoteproc_elf Test: dm_test_remoteproc_elf: remoteproc.c Test: dm_test_remoteproc_elf: remoteproc.c (flat tree) Failures: 0 Signed-off-by: NLoic Pallardy <loic.pallardy@st.com> Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com> Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
-
由 Fabien Dessenne 提交于
Introduce the device_to_virt function to allow translation between device address (remote processor view) and virtual address (main processor view). Signed-off-by: NLoic Pallardy <loic.pallardy@st.com> Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com> Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
-
由 Fabien Dessenne 提交于
Add full function comment headers. Fix rproc_is_initialized() return value description. Signed-off-by: NFabien Dessenne <fabien.dessenne@st.com> Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
-