mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 12:14:32 +08:00
global: Use proper project name U-Boot
Use proper project name in comments, Kconfig, readmes. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/0dbdf0432405c1c38ffca55703b6737a48219e79.1684307818.git.michal.simek@amd.com
This commit is contained in:
parent
6fe46936a3
commit
1be82afa80
@ -90,7 +90,7 @@ config SPL_UBOOT_KEY_HASH
|
||||
default ""
|
||||
help
|
||||
Set the key hash for U-Boot here if public/private key pair used to
|
||||
sign U-boot are different from the SRK hash put in the fuse. Example
|
||||
sign U-Boot are different from the SRK hash put in the fuse. Example
|
||||
of a key hash is
|
||||
41066b564c6ffcef40ccbc1e0a5d0d519604000c785d97bbefd25e4d288d1c8b.
|
||||
Otherwise leave this empty.
|
||||
|
@ -80,7 +80,7 @@ static inline void sync(void)
|
||||
|
||||
/*
|
||||
* We add memory barriers for __raw_readX / __raw_writeX accessors same way as
|
||||
* it is done for readX and writeX accessors as lots of U-boot driver uses
|
||||
* it is done for readX and writeX accessors as lots of U-Boot driver uses
|
||||
* __raw_readX / __raw_writeX instead of proper accessor with barrier.
|
||||
*/
|
||||
#define __raw_writeb(v, c) ({ __iowmb(); __arch_putb(v, c); })
|
||||
|
@ -110,7 +110,7 @@ config ARMV7_LPAE
|
||||
config ARMV7_SET_CORTEX_SMPEN
|
||||
bool
|
||||
help
|
||||
Enable the ARM Cortex ACTLR.SMP enable bit in U-boot.
|
||||
Enable the ARM Cortex ACTLR.SMP enable bit in U-Boot.
|
||||
|
||||
config SPL_ARMV7_SET_CORTEX_SMPEN
|
||||
bool
|
||||
|
@ -145,7 +145,7 @@ config ARMV8_PSCI
|
||||
bool "Enable PSCI support" if EXPERT
|
||||
help
|
||||
PSCI is Power State Coordination Interface defined by ARM.
|
||||
The PSCI in U-boot provides a general framework and each platform
|
||||
The PSCI in U-Boot provides a general framework and each platform
|
||||
can implement their own specific PSCI functions.
|
||||
Say Y here to enable PSCI support on ARMv8 platform.
|
||||
|
||||
|
@ -125,7 +125,7 @@ mcinitcmd: This environment variable is defined to initiate MC and DPL deploymen
|
||||
from the location where it is stored(NOR, NAND, SD, SATA, USB)during
|
||||
u-boot booting.If this variable is not defined then MC_BOOT_ENV_VAR
|
||||
will be null and MC will not be booted and DPL will not be applied
|
||||
during U-boot booting.However the MC, DPC and DPL can be applied from
|
||||
during U-Boot booting.However the MC, DPC and DPL can be applied from
|
||||
console independently.
|
||||
The variable needs to be set from the console once and then on
|
||||
rebooting the parameters set in the variable will automatically be
|
||||
|
@ -51,7 +51,7 @@
|
||||
|
||||
idle-states {
|
||||
/*
|
||||
* PSCI node is not added default, U-boot will add missing
|
||||
* PSCI node is not added default, U-Boot will add missing
|
||||
* parts if it determines to use PSCI.
|
||||
*/
|
||||
entry-method = "psci";
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
/* Keep HW order from U-boot */
|
||||
/* Keep HW order from U-Boot */
|
||||
aliases {
|
||||
/delete-property/ mmc0;
|
||||
/delete-property/ mmc1;
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
/* Keep HW order from U-boot */
|
||||
/* Keep HW order from U-Boot */
|
||||
aliases {
|
||||
/delete-property/ mmc0;
|
||||
/delete-property/ mmc1;
|
||||
|
@ -41,7 +41,7 @@
|
||||
};
|
||||
|
||||
&gmac2phy {
|
||||
/* Integrated PHY unsupported by U-boot */
|
||||
/* Integrated PHY unsupported by U-Boot */
|
||||
status = "broken";
|
||||
};
|
||||
|
||||
|
@ -984,7 +984,7 @@
|
||||
};
|
||||
|
||||
/*
|
||||
* U-boot Specific Change
|
||||
* U-Boot Specific Change
|
||||
*
|
||||
* The OTG controller must come after the USB host pair for it
|
||||
* to work. This is likely due to lack of support for the USB
|
||||
|
@ -22,7 +22,7 @@
|
||||
*
|
||||
* -PCIe
|
||||
* -there is a range of stream IDs set aside for PCI in this
|
||||
* file. U-boot will scan the PCI bus and for each device discovered:
|
||||
* file. U-Boot will scan the PCI bus and for each device discovered:
|
||||
* -allocate a streamID
|
||||
* -set a PEXn LUT table entry mapping 'requester ID' to 'stream ID'
|
||||
* -set a msi-map entry in the PEXn controller node in the
|
||||
|
@ -23,7 +23,7 @@
|
||||
*
|
||||
* -PCIe
|
||||
* -there is a range of stream IDs set aside for PCI in this
|
||||
* file. U-boot will scan the PCI bus and for each device discovered:
|
||||
* file. U-Boot will scan the PCI bus and for each device discovered:
|
||||
* -allocate a streamID
|
||||
* -set a PEXn LUT table entry mapping 'requester ID' to 'stream ID'
|
||||
* -set a msi-map entry in the PEXn controller node in the
|
||||
|
@ -559,7 +559,7 @@ int board_mmc_init(struct bd_info *bis)
|
||||
gpio_direction_input(USDHC2_CD_GPIO);
|
||||
/*
|
||||
* According to the board_mmc_init() the following map is done:
|
||||
* (U-boot device node) (Physical Port)
|
||||
* (U-Boot device node) (Physical Port)
|
||||
* mmc0 USDHC2
|
||||
* mmc1 USDHC4
|
||||
*/
|
||||
|
@ -68,7 +68,7 @@ Netboot
|
||||
- see also doc/SPL/README.am335x-network
|
||||
|
||||
- set the jumper into netboot mode
|
||||
- compile the U-boot sources with:
|
||||
- compile the U-Boot sources with:
|
||||
make am335x_shc_netboot_defconfig
|
||||
make all
|
||||
- copy the images into your tftp boot directory
|
||||
|
@ -86,7 +86,7 @@ int board_mmc_init(struct bd_info *bis)
|
||||
int i, ret;
|
||||
/*
|
||||
* According to the board_mmc_init() the following map is done:
|
||||
* (U-boot device node) (Physical Port)
|
||||
* (U-Boot device node) (Physical Port)
|
||||
* mmc0 USDHC1
|
||||
* mmc2 USDHC3 (eMMC)
|
||||
*/
|
||||
|
@ -30,7 +30,7 @@ CONNECTORS One connector for Smart Card One connector for TSI
|
||||
Note of warning:
|
||||
================
|
||||
|
||||
U-boot has a *strong* dependency with the l-loader and the arm trusted firmware
|
||||
U-Boot has a *strong* dependency with the l-loader and the arm trusted firmware
|
||||
repositories.
|
||||
|
||||
The boot sequence is:
|
||||
|
@ -37,7 +37,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/* GPIO0_27 and GPIO0_26 are used to read board revision from IGEP003x boards
|
||||
* and control IGEP0034 green and red LEDs.
|
||||
* U-boot configures these pins as input pullup to detect board revision:
|
||||
* U-Boot configures these pins as input pullup to detect board revision:
|
||||
* IGEP0034-LITE = 0b00
|
||||
* IGEP0034 (FULL) = 0b01
|
||||
* IGEP0033 = 0b1X
|
||||
|
@ -47,7 +47,7 @@ U_BOOT_DRVINFO(igep_uart) = {
|
||||
* IGEP00x0 boards. First of all, it is necessary to reset USB transceiver from
|
||||
* IGEP0030 in order to read GPIO_IGEP00X0_BOARD_DETECTION correctly, because
|
||||
* this functionality is shared by USB HOST.
|
||||
* Once USB reset is applied, U-boot configures these pins as input pullup to
|
||||
* Once USB reset is applied, U-Boot configures these pins as input pullup to
|
||||
* detect board and revision:
|
||||
* IGEP0020-RF = 0b00
|
||||
* IGEP0020-RC = 0b01
|
||||
|
@ -123,7 +123,7 @@ config SYS_IVM_EEPROM_PAGE_LEN
|
||||
Page size of inventory in EEPROM.
|
||||
|
||||
config PG_WCOM_UBOOT_UPDATE_SUPPORTED
|
||||
bool "Enable U-boot Field Fail-Safe Update Functionality"
|
||||
bool "Enable U-Boot Field Fail-Safe Update Functionality"
|
||||
select EVENT
|
||||
default n
|
||||
help
|
||||
@ -132,7 +132,7 @@ config PG_WCOM_UBOOT_UPDATE_SUPPORTED
|
||||
from parallel NOR flash.
|
||||
|
||||
config PG_WCOM_UBOOT_BOOTPACKAGE
|
||||
bool "U-boot Is Part Of Factory Boot-Package Image"
|
||||
bool "U-Boot Is Part Of Factory Boot-Package Image"
|
||||
default n
|
||||
help
|
||||
Indicates that u-boot will be a part of the factory programmed
|
||||
@ -140,7 +140,7 @@ config PG_WCOM_UBOOT_BOOTPACKAGE
|
||||
Has to be set for original u-boot programmed at factory.
|
||||
|
||||
config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
|
||||
hex "Text Base For U-boot Programmed Outside Factory"
|
||||
hex "Text Base For U-Boot Programmed Outside Factory"
|
||||
default 0xFFFFFFFF
|
||||
help
|
||||
Text base of an updated u-boot that is not factory programmed but
|
||||
@ -148,7 +148,7 @@ config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
|
||||
Has to be set for original u-boot programmed at factory.
|
||||
|
||||
config PG_WCOM_UBOOT_UPDATE
|
||||
bool "U-boot Is Part Of Factory Boot-Package Image"
|
||||
bool "U-Boot Is Part Of Factory Boot-Package Image"
|
||||
default n
|
||||
help
|
||||
Indicates that u-boot will be a part of the embedded software and
|
||||
|
@ -1,4 +1,4 @@
|
||||
Field Fail-Save U-boot Update
|
||||
Field Fail-Save U-Boot Update
|
||||
-----------------------------
|
||||
Field Fail-Save u-boot update is a feature that allows save u-boot update
|
||||
of FOX and XMC products that are rolled out in the field.
|
||||
|
@ -101,7 +101,7 @@ int board_mmc_init(struct bd_info *bis)
|
||||
|
||||
/*
|
||||
* According to the board_mmc_init() the following map is done:
|
||||
* (U-boot device node) (Physical Port)
|
||||
* (U-Boot device node) (Physical Port)
|
||||
* mmc0 USDHC1
|
||||
* mmc1 USDHC2
|
||||
*/
|
||||
|
@ -37,12 +37,12 @@ not supported.
|
||||
Flashing U-Boot onto an SD card
|
||||
-------------------------------
|
||||
|
||||
After a successful build, the generated SPL and U-boot binaries can be copied
|
||||
After a successful build, the generated SPL and U-Boot binaries can be copied
|
||||
to an SD card. Adjust the SD card device as necessary:
|
||||
|
||||
$ sudo dd if=u-boot-with-spl.imx of=/dev/mmcblk0 bs=1k seek=1
|
||||
|
||||
This is equivalent to separately copying the SPL and U-boot using:
|
||||
This is equivalent to separately copying the SPL and U-Boot using:
|
||||
|
||||
$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1
|
||||
$ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=197
|
||||
@ -50,11 +50,11 @@ $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=197
|
||||
The default bootscripts expect a kernel fit-image file named "fitImage" in the
|
||||
first partition and Linux ext4 rootfs in the second partition.
|
||||
|
||||
Flashing U-boot to the SPI Flash, for booting Linux from NAND
|
||||
Flashing U-Boot to the SPI Flash, for booting Linux from NAND
|
||||
-------------------------------------------------------------
|
||||
|
||||
The SD card created above can also be used to install the SPL and U-boot into
|
||||
the SPI flash. Boot U-boot from the SD card as above, and stop at the autoboot.
|
||||
The SD card created above can also be used to install the SPL and U-Boot into
|
||||
the SPI flash. Boot U-Boot from the SD card as above, and stop at the autoboot.
|
||||
|
||||
Then, clear the SPI flash:
|
||||
|
||||
@ -64,13 +64,13 @@ Then, clear the SPI flash:
|
||||
Load the equivalent of u-boot-with-spl.imx from the raw MMC into memory and
|
||||
copy to the SPI. The SPL is expected at an offset of 0x400, and its size is
|
||||
maximum 392*512-byte blocks in size, therefore 0x188 blocks, totaling 0x31000
|
||||
bytes. Assume U-boot should fit into 640KiB, therefore 0x500 512-byte blocks,
|
||||
bytes. Assume U-Boot should fit into 640KiB, therefore 0x500 512-byte blocks,
|
||||
totalling 0xA0000 bytes. Adding these together:
|
||||
|
||||
=> mmc read ${loadaddr} 0x2 0x688
|
||||
=> sf write ${loadaddr} 0x400 0xD1000
|
||||
|
||||
The SPL is located at offset 0x400, and U-boot at 0x31400 in SPI flash, as to
|
||||
The SPL is located at offset 0x400, and U-Boot at 0x31400 in SPI flash, as to
|
||||
match the SD Card layout. This would allow, instead of reading from the SD Card
|
||||
above, with networking and TFTP correctly configured, the equivalent of:
|
||||
|
||||
@ -84,7 +84,7 @@ image) and "root" (which contains a ubifs root filesystem).
|
||||
The "bootm_size" variable in the environment
|
||||
--------------------------------------------
|
||||
|
||||
By default, U-boot relocates the device tree towards the upper end of the RAM,
|
||||
By default, U-Boot relocates the device tree towards the upper end of the RAM,
|
||||
which kernels using CONFIG_HIGHMEM=y may not be able to access during early
|
||||
boot. With the bootm_size variable set to 0x30000000, U-boot relocates the
|
||||
boot. With the bootm_size variable set to 0x30000000, U-Boot relocates the
|
||||
device tree to below this address instead.
|
||||
|
@ -583,7 +583,7 @@ enum hsdk_axi_masters {
|
||||
*
|
||||
* Please read ARC HS Development IC Specification, section 17.2 for more
|
||||
* information about apertures configuration.
|
||||
* NOTE: we intentionally modify default settings in U-boot. Default settings
|
||||
* NOTE: we intentionally modify default settings in U-Boot. Default settings
|
||||
* are specified in "Table 111 CREG Address Decoder register reset values".
|
||||
*/
|
||||
|
||||
@ -942,7 +942,7 @@ static int do_hsdk_go(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
int ret;
|
||||
|
||||
if (board_mismatch()) {
|
||||
printf("ERR: U-boot is not configured for this board!\n");
|
||||
printf("ERR: U-Boot is not configured for this board!\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
@ -983,10 +983,10 @@ U_BOOT_CMD(
|
||||
|
||||
/*
|
||||
* We may simply use static variable here to store init status, but we also want
|
||||
* to avoid the situation when we reload U-boot via MDB after previous
|
||||
* to avoid the situation when we reload U-Boot via MDB after previous
|
||||
* init is done but HW reset (board reset) isn't done. So let's store the
|
||||
* init status in any unused register (i.e CREG_CPU_0_ENTRY) so status will
|
||||
* survive after U-boot is reloaded via MDB.
|
||||
* survive after U-Boot is reloaded via MDB.
|
||||
*/
|
||||
#define INIT_MARKER_REGISTER ((void __iomem *)CREG_CPU_0_ENTRY)
|
||||
/* must be equal to INIT_MARKER_REGISTER reset value */
|
||||
@ -1008,7 +1008,7 @@ static int do_hsdk_init(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
int ret;
|
||||
|
||||
if (board_mismatch()) {
|
||||
printf("ERR: U-boot is not configured for this board!\n");
|
||||
printf("ERR: U-Boot is not configured for this board!\n");
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
@ -1258,11 +1258,11 @@ int checkboard(void)
|
||||
printf("Board: Synopsys %s\n", board_name(get_board_type_runtime()));
|
||||
|
||||
if (board_mismatch())
|
||||
printf("WARN: U-boot is configured NOT for this board but for %s!\n",
|
||||
printf("WARN: U-Boot is configured NOT for this board but for %s!\n",
|
||||
board_name(get_board_type_config()));
|
||||
|
||||
reg = readl(CREG_AXI_M_HS_CORE_BOOT) & CREG_CORE_BOOT_IMAGE;
|
||||
printf("U-boot autostart: %s\n", reg ? "enabled" : "disabled");
|
||||
printf("U-Boot autostart: %s\n", reg ? "enabled" : "disabled");
|
||||
|
||||
return 0;
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ void *locate_dtb_in_fit(const void *fit)
|
||||
header = (struct legacy_img_hdr *)fit;
|
||||
|
||||
if (image_get_magic(header) != FDT_MAGIC) {
|
||||
debug("No FIT image appended to U-boot\n");
|
||||
debug("No FIT image appended to U-Boot\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/**
|
||||
* ufs.c - UFS specific U-boot commands
|
||||
* ufs.c - UFS specific U-Boot commands
|
||||
*
|
||||
* Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
|
||||
*
|
||||
|
@ -321,7 +321,7 @@ static int spl_load_fit_image(struct spl_image_info *spl_image,
|
||||
spl_image->fdt_addr = (void *)dt_data;
|
||||
|
||||
if (spl_image->os == IH_OS_U_BOOT) {
|
||||
/* HACK: U-boot expects FDT at a specific address */
|
||||
/* HACK: U-Boot expects FDT at a specific address */
|
||||
fdt_hack = spl_image->load_addr + spl_image->size;
|
||||
fdt_hack = (fdt_hack + 3) & ~3;
|
||||
debug("Relocating FDT to %p\n", spl_image->fdt_addr);
|
||||
|
@ -250,7 +250,7 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
|
||||
return ret;
|
||||
|
||||
if (spl_image->os != IH_OS_LINUX && spl_image->os != IH_OS_TEE) {
|
||||
puts("Expected image is not found. Trying to start U-boot\n");
|
||||
puts("Expected image is not found. Trying to start U-Boot\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
PCAP:
|
||||
|
||||
U-boot supports live Ethernet packet capture in PCAP(2.4) format.
|
||||
U-Boot supports live Ethernet packet capture in PCAP(2.4) format.
|
||||
This is enabled by CONFIG_CMD_PCAP.
|
||||
|
||||
The capture is stored on physical memory, and should be copied to
|
||||
|
@ -38,7 +38,7 @@ The source code for (the used?) LUbuntu 16.04 can be found at [5].
|
||||
Links
|
||||
=====
|
||||
|
||||
[1] FriendlyArm U-boot v2016.01:
|
||||
[1] FriendlyArm U-Boot v2016.01:
|
||||
|
||||
https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01
|
||||
|
||||
|
@ -12,7 +12,7 @@ Methodology
|
||||
|
||||
The SPL image is responsible for loading the next stage boot loader, which is
|
||||
the main u-boot image. For secure boot process on these platforms ROM verifies
|
||||
SPL image, so to continue chain of trust SPL image verifies U-boot image using
|
||||
SPL image, so to continue chain of trust SPL image verifies U-Boot image using
|
||||
spl_validate_uboot(). This function uses QorIQ Trust Architecture header
|
||||
(appended to U-boot image) to validate the U-boot binary just before passing
|
||||
(appended to U-Boot image) to validate the U-Boot binary just before passing
|
||||
control to it.
|
||||
|
@ -56,7 +56,7 @@ image but sources have been shared by Linux development contractor, Baylibre:
|
||||
$ make
|
||||
$ export FIPDIR=$PWD/fip
|
||||
|
||||
Go back to mainline U-boot source tree then :
|
||||
Go back to mainline U-Boot source tree then :
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -50,7 +50,7 @@ the git tree published by the board vendor:
|
||||
$ make
|
||||
$ export FIPDIR=$PWD/fip
|
||||
|
||||
Go back to mainline U-boot source tree then :
|
||||
Go back to mainline U-Boot source tree then :
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -56,7 +56,7 @@ image but sources have been shared by Linux development contractor, Baylibre:
|
||||
$ make
|
||||
$ export FIPDIR=$PWD/fip
|
||||
|
||||
Go back to mainline U-boot source tree then :
|
||||
Go back to mainline U-Boot source tree then :
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -54,7 +54,7 @@ Note that for some odd reason qemu-system-aarch64 needs to be explicitly
|
||||
told to use a 64-bit CPU or it will boot in 32-bit mode. The -nographic argument
|
||||
ensures that output appears on the terminal. Use Ctrl-A X to quit.
|
||||
|
||||
Additional persistent U-boot environment support can be added as follows:
|
||||
Additional persistent U-Boot environment support can be added as follows:
|
||||
|
||||
- Create envstore.img using qemu-img::
|
||||
|
||||
|
@ -150,7 +150,7 @@ Then, launch openocd like::
|
||||
|
||||
openocd -f u-boot.tcl
|
||||
|
||||
You should see the U-boot SPL banner followed by the banner for U-Boot proper
|
||||
You should see the U-Boot SPL banner followed by the banner for U-Boot proper
|
||||
in the output of openocd. The CMSIS-DAP adapter is slow, so this can take a
|
||||
long time. If you don't see it, something has gone wrong. After a while, you
|
||||
should see the prompt. You can load an image using semihosting by running::
|
||||
|
@ -53,7 +53,7 @@ This will generate the SPL and u-boot-dtb.img binaries.
|
||||
|
||||
- Boot first from SD card as shown in the previous section
|
||||
|
||||
In U-boot change the eMMC partition config::
|
||||
In U-Boot change the eMMC partition config::
|
||||
|
||||
=> mmc partconf 2 1 0 0
|
||||
|
||||
|
@ -333,12 +333,12 @@ Note:
|
||||
|
||||
Unlike later SoC models the rk3066 BootROM doesn't have SDMMC support.
|
||||
If all other boot options fail then it enters into a BootROM mode on the USB OTG port.
|
||||
This method loads TPL/SPL on NAND with U-boot and kernel on SD card.
|
||||
This method loads TPL/SPL on NAND with U-Boot and kernel on SD card.
|
||||
|
||||
SD Card
|
||||
^^^^^^^
|
||||
|
||||
U-boot expects a GPT partition map and a boot directory structure with files on the SD card.
|
||||
U-Boot expects a GPT partition map and a boot directory structure with files on the SD card.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
@ -363,7 +363,7 @@ Boot partition:
|
||||
zImage
|
||||
rk3066a-mk808.dtb
|
||||
|
||||
To write a U-boot image to the SD card (assumed to be /dev/sda):
|
||||
To write a U-Boot image to the SD card (assumed to be /dev/sda):
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -558,7 +558,7 @@ for partitions one through three respectively.
|
||||
--new=3:10280:10535 --change-name=3:env --typecode=3:3DE21764-95BD-54BD-A5C3-4ABE786F38A8 \
|
||||
/dev/mtdblock0
|
||||
|
||||
Write U-boot SPL and U-boot to their partitions.
|
||||
Write U-Boot SPL and U-Boot to their partitions.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
|
@ -345,7 +345,7 @@ Build Procedure
|
||||
- BL33=u-boot-nodtb.bin
|
||||
- BL33_CFG=u-boot.dtb
|
||||
|
||||
You can also update a existing FIP after U-boot compilation with fiptool,
|
||||
You can also update a existing FIP after U-Boot compilation with fiptool,
|
||||
a tool provided by TF-A_::
|
||||
|
||||
# fiptool update --nt-fw u-boot-nodtb.bin --hw-config u-boot.dtb fip-stm32mp157c-ev1.bin
|
||||
|
@ -6,7 +6,7 @@ Xen guest ARM64 board
|
||||
This board specification
|
||||
------------------------
|
||||
|
||||
This board is to be run as a virtual Xen [1] guest with U-boot as its primary
|
||||
This board is to be run as a virtual Xen [1] guest with U-Boot as its primary
|
||||
bootloader. Xen is a type 1 hypervisor that allows multiple operating systems
|
||||
to run simultaneously on a single physical server. Xen is capable of running
|
||||
virtual machines in both full virtualization and para-virtualization (PV)
|
||||
@ -16,7 +16,7 @@ Paravirtualized drivers are a special type of device drivers that are used in
|
||||
a guest system in the Xen domain and perform I/O operations using a special
|
||||
interface provided by the virtualization system and the host system.
|
||||
|
||||
Xen support for U-boot is implemented by introducing a new Xen guest ARM64
|
||||
Xen support for U-Boot is implemented by introducing a new Xen guest ARM64
|
||||
board and porting essential drivers from MiniOS [3] as well as some of the work
|
||||
previously done by NXP [4]:
|
||||
|
||||
@ -39,7 +39,7 @@ previously done by NXP [4]:
|
||||
Board limitations
|
||||
-----------------
|
||||
|
||||
1. U-boot runs without MMU enabled at the early stages.
|
||||
1. U-Boot runs without MMU enabled at the early stages.
|
||||
According to Xen on ARM ABI (xen/include/public/arch-arm.h): all memory
|
||||
which is shared with other entities in the system (including the hypervisor
|
||||
and other guests) must reside in memory which is mapped as Normal Inner
|
||||
@ -54,14 +54,14 @@ Board limitations
|
||||
2. No serial console until MMU is up.
|
||||
Because data cache maintenance is required until the MMU setup the
|
||||
early/debug serial console is not implemented. Therefore, we do not have
|
||||
usual prints like U-boot’s banner etc. until the serial driver is
|
||||
usual prints like U-Boot’s banner etc. until the serial driver is
|
||||
initialized.
|
||||
|
||||
3. Single RAM bank supported.
|
||||
If a Xen guest is given much memory it is possible that Xen allocates two
|
||||
memory banks for it. The first one is allocated under 4GB address space and
|
||||
in some cases may represent the whole guest’s memory. It is assumed that
|
||||
U-boot most likely won’t require high memory bank for its work andlaunching
|
||||
U-Boot most likely won’t require high memory bank for its work andlaunching
|
||||
OS, so it is enough to take the first one.
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ Binding/unbinding a driver
|
||||
This document aims to describe the bind and unbind commands.
|
||||
|
||||
For debugging purpose, it should be useful to bind or unbind a driver from
|
||||
the U-boot command line.
|
||||
the U-Boot command line.
|
||||
|
||||
The unbind command calls the remove device driver callback and unbind the
|
||||
device from its driver.
|
||||
|
@ -92,9 +92,9 @@ For example of getting DT phandle from /chosen and creating instance:
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Firmware loader driver is also designed to support U-boot environment
|
||||
Firmware loader driver is also designed to support U-Boot environment
|
||||
variables, so all these data from FDT can be overwritten
|
||||
through the U-boot environment variable during run time.
|
||||
through the U-Boot environment variable during run time.
|
||||
|
||||
For examples:
|
||||
|
||||
@ -110,7 +110,7 @@ fw_ubi_volume:
|
||||
When above environment variables are set, environment values would be
|
||||
used instead of data from FDT.
|
||||
The benefit of this design allows user to change storage attribute data
|
||||
at run time through U-boot console and saving the setting as default
|
||||
at run time through U-Boot console and saving the setting as default
|
||||
environment values in the storage for the next power cycle, so no
|
||||
compilation is required for both driver and FDT.
|
||||
|
||||
|
@ -330,7 +330,7 @@ bit in OsIndications variable with
|
||||
|
||||
=> setenv -e -nv -bs -rt -v OsIndications =0x0000000000000004
|
||||
|
||||
Since U-boot doesn't currently support SetVariable at runtime, its value
|
||||
Since U-Boot doesn't currently support SetVariable at runtime, its value
|
||||
won't be taken over across the reboot. If this is the case, you can skip
|
||||
this feature check with the Kconfig option (CONFIG_EFI_IGNORE_OSINDICATIONS)
|
||||
set.
|
||||
|
@ -161,7 +161,7 @@ The boot scripts (boot.scr) is created with:
|
||||
|
||||
mkimage -T script -n 'Test script' -d boot.txt boot.scr
|
||||
|
||||
The script can be execute in U-boot like this:
|
||||
The script can be execute in U-Boot like this:
|
||||
|
||||
.. code-block::
|
||||
|
||||
|
@ -9,7 +9,7 @@ Overview
|
||||
The Device Firmware Upgrade (DFU) allows to download and upload firmware
|
||||
to/from U-Boot connected over USB.
|
||||
|
||||
U-boot follows the Universal Serial Bus Device Class Specification for
|
||||
U-Boot follows the Universal Serial Bus Device Class Specification for
|
||||
Device Firmware Upgrade Version 1.1 the USB forum (DFU v1.1 in www.usb.org).
|
||||
|
||||
U-Boot implements this DFU capability (CONFIG_DFU) with the command dfu
|
||||
|
@ -184,7 +184,7 @@ struct clk *clk_hw_register_mux_table(struct device *dev, const char *name,
|
||||
if (!mux)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
/* U-boot specific assignments */
|
||||
/* U-Boot specific assignments */
|
||||
mux->parent_names = parent_names;
|
||||
mux->num_parents = num_parents;
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
* https://patchwork.kernel.org/patch/9148419/
|
||||
* - the Toradex version by Max Krummenacher <max.krummenacher@toradex.com>:
|
||||
* http://git.toradex.com/cgit/linux-toradex.git/tree/drivers/gpio/gpio-fxl6408.c?h=toradex_5.4-2.3.x-imx
|
||||
* - the U-boot PCA953x driver by Peng Fan <van.freenix@gmail.com>:
|
||||
* - the U-Boot PCA953x driver by Peng Fan <van.freenix@gmail.com>:
|
||||
* drivers/gpio/pca953x_gpio.c
|
||||
*
|
||||
* TODO:
|
||||
|
@ -553,7 +553,7 @@ config NAND_ZYNQ_USE_BOOTLOADER1_TIMINGS
|
||||
bool "Enable use of 1st stage bootloader timing for NAND"
|
||||
depends on NAND_ZYNQ
|
||||
help
|
||||
This flag prevent U-boot reconfigure NAND flash controller and reuse
|
||||
This flag prevent U-Boot reconfigure NAND flash controller and reuse
|
||||
the NAND timing from 1st stage bootloader.
|
||||
|
||||
config NAND_OCTEONTX
|
||||
@ -732,10 +732,10 @@ config SYS_NAND_BAD_BLOCK_POS
|
||||
default 5 if HAS_NAND_SMALL_BADBLOCK_POS
|
||||
|
||||
config SYS_NAND_U_BOOT_LOCATIONS
|
||||
bool "Define U-boot binaries locations in NAND"
|
||||
bool "Define U-Boot binaries locations in NAND"
|
||||
help
|
||||
Enable CONFIG_SYS_NAND_U_BOOT_OFFS though Kconfig.
|
||||
This option should not be enabled when compiling U-boot for boards
|
||||
This option should not be enabled when compiling U-Boot for boards
|
||||
defining CONFIG_SYS_NAND_U_BOOT_OFFS in their include/configs/<board>.h
|
||||
file.
|
||||
|
||||
|
@ -275,8 +275,8 @@ void nand_boot(void)
|
||||
|
||||
#ifdef CONFIG_CHAIN_OF_TRUST
|
||||
/*
|
||||
* U-Boot header is appended at end of U-boot image, so
|
||||
* calculate U-boot header address using U-boot header size.
|
||||
* U-Boot header is appended at end of U-Boot image, so
|
||||
* calculate U-Boot header address using U-Boot header size.
|
||||
*/
|
||||
#define FSL_U_BOOT_HDR_ADDR \
|
||||
((CFG_SYS_NAND_U_BOOT_START + \
|
||||
|
@ -814,7 +814,7 @@ static inline void class_set_config(struct class_cfg *cfg)
|
||||
writel(0x1, CLASS_AXI_CTRL);
|
||||
|
||||
/*Make Util AXI transactions non-bufferable */
|
||||
/*Util is disabled in U-boot, do it from here */
|
||||
/*Util is disabled in U-Boot, do it from here */
|
||||
writel(0x1, UTIL_AXI_CTRL);
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
#define MV_SIP_COMPHY_PLL_LOCK 0x82000003
|
||||
#define MV_SIP_COMPHY_XFI_TRAIN 0x82000004
|
||||
|
||||
/* Used to distinguish between different possible callers (U-boot/Linux) */
|
||||
/* Used to distinguish between different possible callers (U-Boot/Linux) */
|
||||
#define COMPHY_CALLER_UBOOT (0x1 << 21)
|
||||
|
||||
#define COMPHY_FW_MODE_FORMAT(mode) ((mode) << 12)
|
||||
|
@ -9,7 +9,7 @@
|
||||
* Author: Robert Marko <robert.marko@sartura.hr>
|
||||
* Author: Luka Kovacic <luka.kovacic@sartura.hr>
|
||||
*
|
||||
* Based on stock U-boot and Linux drivers
|
||||
* Based on stock U-Boot and Linux drivers
|
||||
*/
|
||||
|
||||
#include <asm/gpio.h>
|
||||
|
@ -171,7 +171,7 @@ config OF_LIST
|
||||
default DEFAULT_DEVICE_TREE
|
||||
help
|
||||
This option specifies a list of device tree files to use for DT
|
||||
control. These will be packaged into a FIT. At run-time, U-boot
|
||||
control. These will be packaged into a FIT. At run-time, U-Boot
|
||||
or SPL will select the correct DT to use by examining the
|
||||
hardware (e.g. reading a board ID value). This is a list of
|
||||
device tree files (without the directory or .dtb suffix)
|
||||
@ -254,7 +254,7 @@ config DTB_RESELECT
|
||||
config MULTI_DTB_FIT
|
||||
bool "Support embedding several DTBs in a FIT image for u-boot"
|
||||
help
|
||||
This option provides hooks to allow U-boot to parse an
|
||||
This option provides hooks to allow U-Boot to parse an
|
||||
appended FIT image and enable board specific code to then select
|
||||
the correct DTB to be used. Use this if you need to support
|
||||
multiple DTBs but don't use the SPL.
|
||||
|
@ -46,7 +46,7 @@
|
||||
/*
|
||||
* Read data from device specified by @desc and @part
|
||||
*
|
||||
* U-boot equivalent of pread().
|
||||
* U-Boot equivalent of pread().
|
||||
*
|
||||
* Return the bytes of data read.
|
||||
* Return <0 for error.
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Use pointer to provide better alignment.
|
||||
* - Remove max_cache_size related interfaces
|
||||
* Includes free_extent_buffer_nocache()
|
||||
* As we don't cache eb in U-boot.
|
||||
* As we don't cache eb in U-Boot.
|
||||
* - Include headers
|
||||
*
|
||||
* Write related functions are kept as we still need to modify dummy extent
|
||||
|
@ -275,9 +275,9 @@ int fsl_check_boot_mode_secure(void);
|
||||
int fsl_setenv_chain_of_trust(void);
|
||||
|
||||
/*
|
||||
* This function is used to validate the main U-boot binary from
|
||||
* This function is used to validate the main U-Boot binary from
|
||||
* SPL just before passing control to it using QorIQ Trust
|
||||
* Architecture header (appended to U-boot image).
|
||||
* Architecture header (appended to U-Boot image).
|
||||
*/
|
||||
void spl_validate_uboot(uint32_t hdr_addr, uintptr_t img_addr);
|
||||
|
||||
|
@ -35,7 +35,7 @@ enum pm_api_id {
|
||||
PM_FPGA_LOAD = 22,
|
||||
PM_FPGA_GET_STATUS = 23,
|
||||
PM_GET_CHIPID = 24,
|
||||
/* ID 25 is been used by U-boot to process secure boot images */
|
||||
/* ID 25 is been used by U-Boot to process secure boot images */
|
||||
/* Secure library generic API functions */
|
||||
PM_SECURE_SHA = 26,
|
||||
PM_SECURE_RSA = 27,
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Android Verified Boot 2.0 Test
|
||||
|
||||
"""
|
||||
This tests Android Verified Boot 2.0 support in U-boot:
|
||||
This tests Android Verified Boot 2.0 support in U-Boot:
|
||||
|
||||
For additional details about how to build proper vbmeta partition
|
||||
check doc/android/avb2.rst
|
||||
|
@ -13,7 +13,7 @@ def cat_data(u_boot_config):
|
||||
"""Set up a file system to be used in cat tests
|
||||
|
||||
Args:
|
||||
u_boot_config -- U-boot configuration.
|
||||
u_boot_config -- U-Boot configuration.
|
||||
"""
|
||||
mnt_point = u_boot_config.persistent_data_dir + '/test_cat'
|
||||
image_path = u_boot_config.persistent_data_dir + '/cat.img'
|
||||
|
@ -12,7 +12,7 @@ def efi_bootmgr_data(u_boot_config):
|
||||
"""Set up a file system to be used in UEFI bootmanager tests.
|
||||
|
||||
Args:
|
||||
u_boot_config -- U-boot configuration.
|
||||
u_boot_config -- U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A path to disk image to be used for testing
|
||||
|
@ -17,7 +17,7 @@ def efi_capsule_data(request, u_boot_config):
|
||||
for testing.
|
||||
|
||||
request -- Pytest request object.
|
||||
u_boot_config -- U-boot configuration.
|
||||
u_boot_config -- U-Boot configuration.
|
||||
"""
|
||||
mnt_point = u_boot_config.persistent_data_dir + '/test_efi_capsule'
|
||||
data_dir = mnt_point + CAPSULE_DATA_DIR
|
||||
|
@ -14,7 +14,7 @@ def efi_boot_env(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A path to disk image to be used for testing
|
||||
@ -139,7 +139,7 @@ def efi_boot_env_intca(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A path to disk image to be used for testing
|
||||
|
@ -14,7 +14,7 @@ def efi_eficonfig_data(u_boot_config):
|
||||
tests
|
||||
|
||||
Args:
|
||||
u_boot_config -- U-boot configuration.
|
||||
u_boot_config -- U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A path to disk image to be used for testing
|
||||
|
@ -97,7 +97,7 @@ def pytest_generate_tests(metafunc):
|
||||
# Helper functions
|
||||
#
|
||||
def fstype_to_ubname(fs_type):
|
||||
"""Convert a file system type to an U-boot specific string
|
||||
"""Convert a file system type to an U-Boot specific string
|
||||
|
||||
A generated string can be used as part of file system related commands
|
||||
or a config name in u-boot. Currently fat16 and fat32 are handled
|
||||
@ -217,7 +217,7 @@ def fs_obj_basic(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A fixture for basic fs test, i.e. a triplet of file system type,
|
||||
@ -339,7 +339,7 @@ def fs_obj_ext(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A fixture for extended fs test, i.e. a triplet of file system type,
|
||||
@ -440,7 +440,7 @@ def fs_obj_mkdir(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A fixture for mkdir test, i.e. a duplet of file system type and
|
||||
@ -471,7 +471,7 @@ def fs_obj_unlink(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A fixture for unlink test, i.e. a duplet of file system type and
|
||||
@ -551,7 +551,7 @@ def fs_obj_symlink(request, u_boot_config):
|
||||
|
||||
Args:
|
||||
request: Pytest request object.
|
||||
u_boot_config: U-boot configuration.
|
||||
u_boot_config: U-Boot configuration.
|
||||
|
||||
Return:
|
||||
A fixture for basic fs test, i.e. a triplet of file system type,
|
||||
|
@ -5,7 +5,7 @@
|
||||
# SCP03 command test
|
||||
|
||||
"""
|
||||
This tests SCP03 command in U-boot.
|
||||
This tests SCP03 command in U-Boot.
|
||||
|
||||
For additional details check doc/usage/scp03.rst
|
||||
"""
|
||||
|
@ -13,7 +13,7 @@ def xxd_data(u_boot_config):
|
||||
"""Set up a file system to be used in xxd tests
|
||||
|
||||
Args:
|
||||
u_boot_config -- U-boot configuration.
|
||||
u_boot_config -- U-Boot configuration.
|
||||
"""
|
||||
mnt_point = u_boot_config.persistent_data_dir + '/test_xxd'
|
||||
image_path = u_boot_config.persistent_data_dir + '/xxd.img'
|
||||
|
Loading…
Reference in New Issue
Block a user