mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Compare commits
44 Commits
v2019.10-r
...
v2019.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61ba1244b5 | ||
|
|
2a7232371a | ||
|
|
879396a240 | ||
|
|
5bac9c5307 | ||
|
|
9bd9b2bcbe | ||
|
|
e263607a03 | ||
|
|
a11cb57def | ||
|
|
dac51e9aaf | ||
|
|
62861c70d3 | ||
|
|
2baa731d00 | ||
|
|
d90fc9c3de | ||
|
|
5ff1963da3 | ||
|
|
fa840f13f5 | ||
|
|
60a9aebdc3 | ||
|
|
4b0bcfa7c4 | ||
|
|
400b9554cc | ||
|
|
46f0d9c46b | ||
|
|
29c9db4d98 | ||
|
|
dd2d989972 | ||
|
|
12e800cdab | ||
|
|
d4c51412c5 | ||
|
|
fc8db754c2 | ||
|
|
c9e6c13deb | ||
|
|
e18c41fca4 | ||
|
|
e587886a61 | ||
|
|
ea4316cdb3 | ||
|
|
f2d2d22471 | ||
|
|
d905aa8a42 | ||
|
|
9de5b89e4c | ||
|
|
023ff4b88d | ||
|
|
2852482efd | ||
|
|
27a5d62827 | ||
|
|
e074d0f79b | ||
|
|
49d5fba81c | ||
|
|
d46b548290 | ||
|
|
03f98b75e4 | ||
|
|
dfd590075c | ||
|
|
1f3910da6e | ||
|
|
664689f1dc | ||
|
|
7ce01c78dc | ||
|
|
e184a3b4fd | ||
|
|
3545c66143 | ||
|
|
edb6b6842c | ||
|
|
be09372a71 |
@@ -59,7 +59,7 @@ stages:
|
||||
fi;
|
||||
fi;
|
||||
|
||||
build all 32bit ARM plaforms:
|
||||
build all 32bit ARM platforms:
|
||||
tags: [ 'all' ]
|
||||
stage: world build
|
||||
script:
|
||||
@@ -70,7 +70,7 @@ build all 32bit ARM plaforms:
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all 64bit ARM plaforms:
|
||||
build all 64bit ARM platforms:
|
||||
tags: [ 'all' ]
|
||||
stage: world build
|
||||
script:
|
||||
@@ -84,7 +84,7 @@ build all 64bit ARM plaforms:
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all PowerPC plaforms:
|
||||
build all PowerPC platforms:
|
||||
tags: [ 'all' ]
|
||||
stage: world build
|
||||
script:
|
||||
@@ -95,7 +95,7 @@ build all PowerPC plaforms:
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all other plaforms:
|
||||
build all other platforms:
|
||||
tags: [ 'all' ]
|
||||
stage: world build
|
||||
script:
|
||||
@@ -145,6 +145,13 @@ Build tools-only:
|
||||
script:
|
||||
- make tools-only_config tools-only -j$(nproc)
|
||||
|
||||
# Ensure env tools build
|
||||
Build envtools:
|
||||
tags: [ 'all' ]
|
||||
stage: testsuites
|
||||
script:
|
||||
- make tools-only_config envtools -j$(nproc)
|
||||
|
||||
Run binman, buildman, dtoc and patman testsuites:
|
||||
tags: [ 'all' ]
|
||||
stage: testsuites
|
||||
|
||||
@@ -361,6 +361,10 @@ matrix:
|
||||
- name: "Build tools-only"
|
||||
script:
|
||||
- make tools-only_config tools-only -j$(nproc)
|
||||
# Ensure env tools build
|
||||
- name: "Build envtools"
|
||||
script:
|
||||
- make tools-only_config envtools -j$(nproc)
|
||||
|
||||
# test/py
|
||||
- name: "test/py sandbox"
|
||||
|
||||
@@ -111,6 +111,7 @@ F: cmd/arm/
|
||||
ARM ALTERA SOCFPGA
|
||||
M: Marek Vasut <marex@denx.de>
|
||||
M: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
|
||||
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||
S: Maintainted
|
||||
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-socfpga.git
|
||||
F: arch/arm/mach-socfpga/
|
||||
@@ -365,7 +366,7 @@ F: arch/arm/include/asm/arch-stv0991/
|
||||
|
||||
ARM SUNXI
|
||||
M: Jagan Teki <jagan@amarulasolutions.com>
|
||||
M: Maxime Ripard <maxime.ripard@bootlin.com>
|
||||
M: Maxime Ripard <mripard@kernel.org>
|
||||
S: Maintained
|
||||
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi.git
|
||||
F: arch/arm/cpu/armv7/sunxi/
|
||||
|
||||
6
Makefile
6
Makefile
@@ -3,7 +3,7 @@
|
||||
VERSION = 2019
|
||||
PATCHLEVEL = 10
|
||||
SUBLEVEL =
|
||||
EXTRAVERSION = -rc4
|
||||
EXTRAVERSION =
|
||||
NAME =
|
||||
|
||||
# *DOCUMENTATION*
|
||||
@@ -1232,7 +1232,7 @@ ifndef CONFIG_SYS_UBOOT_START
|
||||
CONFIG_SYS_UBOOT_START := 0
|
||||
endif
|
||||
|
||||
# Boards with more complex image requirments can provide an .its source file
|
||||
# Boards with more complex image requirements can provide an .its source file
|
||||
# or a generator script
|
||||
ifneq ($(CONFIG_SPL_FIT_SOURCE),"")
|
||||
U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
|
||||
@@ -1875,7 +1875,7 @@ clean: $(clean-dirs)
|
||||
$(call cmd,rmfiles)
|
||||
@find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
|
||||
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
|
||||
-o -name '*.ko.*' -o -name '*.su' \
|
||||
-o -name '*.ko.*' -o -name '*.su' -o -name '*.pyc' \
|
||||
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
|
||||
-o -name '*.lex.c' -o -name '*.tab.[ch]' \
|
||||
-o -name '*.symtypes' -o -name 'modules.order' \
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
};
|
||||
|
||||
ethernet@18000 {
|
||||
compatible = "altr,socfpga-stmmac";
|
||||
compatible = "snps,arc-dwmac-3.70a";
|
||||
reg = < 0x18000 0x2000 >;
|
||||
phy-mode = "gmii";
|
||||
snps,pbl = < 32 >;
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
ethernet@f0008000 {
|
||||
#interrupt-cells = <1>;
|
||||
compatible = "altr,socfpga-stmmac";
|
||||
compatible = "snps,arc-dwmac-3.70a";
|
||||
reg = <0xf0008000 0x2000>;
|
||||
phy-mode = "gmii";
|
||||
};
|
||||
|
||||
18
arch/arm/dts/imx6q-logicpd-u-boot.dtsi
Normal file
18
arch/arm/dts/imx6q-logicpd-u-boot.dtsi
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2019 Logic PD <aford173@gmail.com>
|
||||
*/
|
||||
|
||||
#include "imx6qdl-u-boot.dtsi"
|
||||
|
||||
&uart1 {
|
||||
u-boot,dm-spl;
|
||||
};
|
||||
|
||||
&usdhc1 {
|
||||
u-boot,dm-spl;
|
||||
};
|
||||
|
||||
&usdhc2 {
|
||||
u-boot,dm-spl;
|
||||
};
|
||||
@@ -30,3 +30,7 @@
|
||||
mmc-hs400-1_8v;
|
||||
max-frequency = <200000000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -26,3 +26,11 @@
|
||||
sd-uhs-sdr104;
|
||||
max-frequency = <208000000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi3 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -30,3 +30,7 @@
|
||||
mmc-hs400-1_8v;
|
||||
max-frequency = <200000000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -26,3 +26,11 @@
|
||||
sd-uhs-sdr104;
|
||||
max-frequency = <208000000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi3 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -32,3 +32,7 @@
|
||||
max-frequency = <200000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -29,3 +29,11 @@
|
||||
max-frequency = <208000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi3 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -29,3 +29,11 @@
|
||||
sd-uhs-sdr25;
|
||||
max-frequency = <208000000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi0 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
&vcc_sdhi1 {
|
||||
u-boot,off-on-delay-us = <20000>;
|
||||
};
|
||||
|
||||
@@ -98,7 +98,7 @@ config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART
|
||||
config K3_SYSFW_IMAGE_SIZE_MAX
|
||||
int "Amount of memory dynamically allocated for loading SYSFW blob"
|
||||
depends on K3_LOAD_SYSFW
|
||||
default 269000
|
||||
default 276000
|
||||
help
|
||||
Amount of memory (in bytes) reserved through dynamic allocation at
|
||||
runtime for loading the combined System Firmware and configuration image
|
||||
|
||||
@@ -137,6 +137,26 @@ int fdt_fixup_msmc_ram(void *blob, char *parent_path, char *node_name)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fdt_disable_node(void *blob, char *node_path)
|
||||
{
|
||||
int offs;
|
||||
int ret;
|
||||
|
||||
offs = fdt_path_offset(blob, node_path);
|
||||
if (offs < 0) {
|
||||
debug("Node %s not found.\n", node_path);
|
||||
return 0;
|
||||
}
|
||||
ret = fdt_setprop_string(blob, offs, "status", "disabled");
|
||||
if (ret < 0) {
|
||||
printf("Could not add status property to node %s: %s\n",
|
||||
node_path, fdt_strerror(ret));
|
||||
return ret;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SYSRESET
|
||||
|
||||
@@ -14,4 +14,6 @@ struct ti_sci_handle *get_ti_sci_handle(void);
|
||||
int fdt_fixup_msmc_ram(void *blob, char *parent_path, char *node_name);
|
||||
int do_board_detect(void);
|
||||
void release_resources_for_core_shutdown(void);
|
||||
int fdt_disable_node(void *blob, char *node_path);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -82,7 +82,7 @@ def append_conf_section(file, cnt, dtname, segments):
|
||||
file.write('\t\t\tdescription = "%s";\n' % dtname)
|
||||
file.write('\t\t\tfirmware = "atf_1";\n')
|
||||
file.write('\t\t\tloadables = "uboot"')
|
||||
if segments != 0:
|
||||
if segments > 1:
|
||||
file.write(',')
|
||||
for i in range(1, segments):
|
||||
file.write('"atf_%d"' % (i + 1))
|
||||
@@ -90,7 +90,7 @@ def append_conf_section(file, cnt, dtname, segments):
|
||||
file.write(',')
|
||||
else:
|
||||
file.write(';\n')
|
||||
if segments == 0:
|
||||
if segments <= 1:
|
||||
file.write(';\n')
|
||||
file.write('\t\t\tfdt = "fdt_1";\n')
|
||||
file.write('\t\t};\n')
|
||||
|
||||
@@ -70,7 +70,7 @@ int rockchip_cpuid_from_efuse(const u32 cpuid_offset,
|
||||
}
|
||||
|
||||
/* read the cpu_id range from the efuses */
|
||||
ret = misc_read(dev, cpuid_offset, cpuid, sizeof(cpuid));
|
||||
ret = misc_read(dev, cpuid_offset, cpuid, cpuid_length);
|
||||
if (ret) {
|
||||
debug("%s: reading cpuid from the efuses failed\n",
|
||||
__func__);
|
||||
|
||||
@@ -94,7 +94,8 @@ struct boot_params {
|
||||
__u8 _pad2[4]; /* 0x054 */
|
||||
__u64 tboot_addr; /* 0x058 */
|
||||
struct ist_info ist_info; /* 0x060 */
|
||||
__u8 _pad3[16]; /* 0x070 */
|
||||
__u64 acpi_rsdp_addr; /* 0x070 */
|
||||
__u8 _pad3[8]; /* 0x078 */
|
||||
__u8 hd0_info[16]; /* obsolete! */ /* 0x080 */
|
||||
__u8 hd1_info[16]; /* obsolete! */ /* 0x090 */
|
||||
struct sys_desc_table sys_desc_table; /* 0x0a0 */
|
||||
|
||||
@@ -288,6 +288,10 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
|
||||
hdr->hardware_subarch = X86_SUBARCH_INTEL_MID;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GENERATE_ACPI_TABLE
|
||||
setup_base->acpi_rsdp_addr = acpi_get_rsdp_addr();
|
||||
#endif
|
||||
|
||||
setup_device_tree(hdr, (const void *)env_get_hex("fdtaddr", 0));
|
||||
setup_video(&setup_base->screen_info);
|
||||
|
||||
|
||||
@@ -7,3 +7,4 @@ F: configs/imx6q_logic_defconfig
|
||||
F: arch/arm/dts/imx6-logicpd-baseboard.dtsi
|
||||
F: arch/arm/dts/imx6-logicpd-som.dtsi
|
||||
F: arch/arm/dts/imx6q-logicpd.dts
|
||||
F: arch/arm/dts/imx6q-logicpd-u-boot.dtsi
|
||||
|
||||
@@ -312,6 +312,16 @@ int dram_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF_BOARD
|
||||
#ifdef CONFIG_BCM2711
|
||||
int dram_init_banksize(void)
|
||||
{
|
||||
return fdtdec_decode_ram_size(gd->fdt_blob, NULL, 0, NULL,
|
||||
(phys_size_t *)&gd->ram_size, gd->bd);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static void set_fdtfile(void)
|
||||
{
|
||||
const char *fdtfile;
|
||||
|
||||
@@ -151,7 +151,7 @@ F: configs/Bananapi_M2_Ultra_defconfig
|
||||
F: arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
|
||||
|
||||
BANANAPI M2 MAGIC BOARD
|
||||
M: Maxime Ripard <maxime.ripard@bootlin.com>
|
||||
M: Maxime Ripard <mripard@kernel.org>
|
||||
S: Maintained
|
||||
F: configs/Bananapi_m2m_defconfig
|
||||
F: arch/arm/dts/sun8i-r16-bananapi-m2m.dts
|
||||
@@ -179,7 +179,7 @@ F: configs/beelink_x2_defconfig
|
||||
F: arch/arm/dts/sun8i-h3-beelink-x2.dts
|
||||
|
||||
COLOMBUS BOARD
|
||||
M: Maxime Ripard <maxime.ripard@bootlin.com>
|
||||
M: Maxime Ripard <mripard@kernel.org>
|
||||
S: Maintained
|
||||
F: configs/Colombus_defconfig
|
||||
|
||||
@@ -465,7 +465,7 @@ F: configs/Sunchip_CX-A99_defconfig
|
||||
W: https://linux-sunxi.org/Sunchip_CX-A99
|
||||
|
||||
TBS A711 BOARD
|
||||
M: Maxime Ripard <maxime.ripard@bootlin.com>
|
||||
M: Maxime Ripard <mripard@kernel.org>
|
||||
S: Maintained
|
||||
F: configs/tbs_a711_defconfig
|
||||
|
||||
|
||||
@@ -96,10 +96,21 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||
int ret;
|
||||
|
||||
ret = fdt_fixup_msmc_ram(blob, "/interconnect@100000", "sram@70000000");
|
||||
if (ret)
|
||||
if (ret) {
|
||||
printf("%s: fixing up msmc ram failed %d\n", __func__, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
#if defined(CONFIG_TI_SECURE_DEVICE)
|
||||
/* Make HW RNG reserved for secure world use */
|
||||
ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
|
||||
if (ret) {
|
||||
printf("%s: disabling TRGN failed %d\n", __func__, ret);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
51
cmd/Kconfig
51
cmd/Kconfig
@@ -172,6 +172,7 @@ config AUTOBOOT_MENUKEY
|
||||
|
||||
config AUTOBOOT_MENU_SHOW
|
||||
bool "Show a menu on boot"
|
||||
depends on CMD_BOOTMENU
|
||||
help
|
||||
This enables the boot menu, controlled by environment variables
|
||||
defined by the board. The menu starts after running the 'preboot'
|
||||
@@ -267,6 +268,54 @@ config CMD_BOOTEFI
|
||||
help
|
||||
Boot an EFI image from memory.
|
||||
|
||||
config BOOTM_LINUX
|
||||
bool "Support booting Linux OS images"
|
||||
depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
|
||||
default y
|
||||
help
|
||||
Support booting the Linux kernel directly via a command such as bootm
|
||||
or booti or bootz.
|
||||
|
||||
config BOOTM_NETBSD
|
||||
bool "Support booting NetBSD (non-EFI) loader images"
|
||||
depends on CMD_BOOTM
|
||||
default y
|
||||
help
|
||||
Support booting NetBSD via the bootm command.
|
||||
|
||||
config BOOTM_OPENRTOS
|
||||
bool "Support booting OPENRTOS / FreeRTOS images"
|
||||
depends on CMD_BOOTM
|
||||
help
|
||||
Support booting OPENRTOS / FreeRTOS via the bootm command.
|
||||
|
||||
config BOOTM_OSE
|
||||
bool "Support booting Enea OSE images"
|
||||
depends on CMD_BOOTM
|
||||
help
|
||||
Support booting Enea OSE images via the bootm command.
|
||||
|
||||
config BOOTM_PLAN9
|
||||
bool "Support booting Plan9 OS images"
|
||||
depends on CMD_BOOTM
|
||||
default y
|
||||
help
|
||||
Support booting Plan9 images via the bootm command.
|
||||
|
||||
config BOOTM_RTEMS
|
||||
bool "Support booting RTEMS OS images"
|
||||
depends on CMD_BOOTM
|
||||
default y
|
||||
help
|
||||
Support booting RTEMS images via the bootm command.
|
||||
|
||||
config BOOTM_VXWORKS
|
||||
bool "Support booting VxWorks OS images"
|
||||
depends on CMD_BOOTM
|
||||
default y
|
||||
help
|
||||
Support booting VxWorks images via the bootm command.
|
||||
|
||||
config CMD_BOOTEFI_HELLO_COMPILE
|
||||
bool "Compile a standard EFI hello world binary for testing"
|
||||
depends on CMD_BOOTEFI && !CPU_V7M && !SANDBOX
|
||||
@@ -1468,7 +1517,7 @@ config CMD_BMP
|
||||
bool "Enable 'bmp' command"
|
||||
depends on LCD || DM_VIDEO || VIDEO
|
||||
help
|
||||
This provides a way to obtain information about a BMP-format iamge
|
||||
This provides a way to obtain information about a BMP-format image
|
||||
and to display it. BMP (which presumably stands for BitMaP) is a
|
||||
file format defined by Microsoft which supports images of various
|
||||
depths, formats and compression methods. Headers on the file
|
||||
|
||||
@@ -89,7 +89,7 @@ static int do_host_info(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
struct host_block_dev *host_dev;
|
||||
|
||||
#ifdef CONFIG_BLK
|
||||
host_dev = dev_get_priv(blk_dev->bdev);
|
||||
host_dev = dev_get_platdata(blk_dev->bdev);
|
||||
#else
|
||||
host_dev = blk_dev->priv;
|
||||
#endif
|
||||
|
||||
@@ -152,7 +152,7 @@ static int do_part_info(int argc, char * const argv[], enum cmd_part_info param)
|
||||
snprintf(buf, sizeof(buf), LBAF, info.size);
|
||||
break;
|
||||
case CMD_PART_INFO_NUMBER:
|
||||
snprintf(buf, sizeof(buf), "%d", part);
|
||||
snprintf(buf, sizeof(buf), "0x%x", part);
|
||||
break;
|
||||
default:
|
||||
printf("** Unknown cmd_part_info value: %d\n", param);
|
||||
|
||||
@@ -12,6 +12,7 @@ CONFIG_VERSION_VARIABLE=y
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
|
||||
@@ -41,6 +41,9 @@ CONFIG_SPL_YMODEM_SUPPORT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_EDITENV is not set
|
||||
|
||||
@@ -36,6 +36,9 @@ CONFIG_SPL_YMODEM_SUPPORT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_EDITENV is not set
|
||||
|
||||
@@ -26,6 +26,9 @@ CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="CL-SOM-iMX7 # "
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_EXPORTENV is not set
|
||||
|
||||
@@ -16,6 +16,8 @@ CONFIG_VERSION_VARIABLE=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_BOUNCE_BUFFER=y
|
||||
CONFIG_SYS_PROMPT="Colibri iMX6ULL # "
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_ELF is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
|
||||
@@ -12,6 +12,7 @@ CONFIG_VERSION_VARIABLE=y
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
CONFIG_CMD_MEMTEST=y
|
||||
CONFIG_CMD_CLK=y
|
||||
|
||||
@@ -19,6 +19,8 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_BOUNCE_BUFFER=y
|
||||
CONFIG_SYS_PROMPT="Colibri iMX7 # "
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
||||
@@ -20,6 +20,8 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_SYS_PROMPT="Colibri iMX7 # "
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
||||
@@ -66,7 +66,6 @@ CONFIG_AT91_GPIO=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
# CONFIG_MMC is not set
|
||||
# CONFIG_SYS_NAND_USE_FLASH_BBT is not set
|
||||
CONFIG_NAND_ATMEL=y
|
||||
CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER=y
|
||||
CONFIG_DM_ETH=y
|
||||
|
||||
@@ -14,6 +14,7 @@ CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
|
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/imx8m/imximage.cfg"
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
|
||||
@@ -24,6 +24,7 @@ CONFIG_SPL_POWER_SUPPORT=y
|
||||
CONFIG_SPL_POWER_DOMAIN=y
|
||||
CONFIG_SPL_WATCHDOG_SUPPORT=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_CMD_IMPORTENV is not set
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DM=y
|
||||
|
||||
@@ -27,6 +27,7 @@ CONFIG_SPL_POWER_DOMAIN=y
|
||||
CONFIG_SPL_WATCHDOG_SUPPORT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_CMD_IMPORTENV is not set
|
||||
CONFIG_CMD_CLK=y
|
||||
CONFIG_CMD_DM=y
|
||||
|
||||
@@ -14,6 +14,9 @@ CONFIG_BOUNCE_BUFFER=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_EXPORTENV is not set
|
||||
|
||||
@@ -13,6 +13,9 @@ CONFIG_BOUNCE_BUFFER=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_BOOTM_NETBSD is not set
|
||||
# CONFIG_BOOTM_PLAN9 is not set
|
||||
# CONFIG_BOOTM_RTEMS is not set
|
||||
# CONFIG_CMD_IMI is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_EXPORTENV is not set
|
||||
|
||||
@@ -3,7 +3,7 @@ CONFIG_ARCH_BCM283X=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00080000
|
||||
CONFIG_TARGET_RPI_4=y
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_NR_DRAM_BANKS=2
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
|
||||
|
||||
@@ -46,3 +46,4 @@ CONFIG_SPI=y
|
||||
CONFIG_TIMER=y
|
||||
CONFIG_SPL_TIMER=y
|
||||
CONFIG_DESIGNWARE_APB_TIMER=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -65,3 +65,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -66,3 +66,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -62,3 +62,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -61,3 +61,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -57,3 +57,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -47,4 +47,5 @@ CONFIG_SPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_USB_DWC2=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
||||
@@ -51,3 +51,4 @@ CONFIG_MII=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_CADENCE_QSPI=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -58,3 +58,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -66,3 +66,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -68,3 +68,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -57,3 +57,4 @@ CONFIG_MII=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_CADENCE_QSPI=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -91,3 +91,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
|
||||
@@ -28,6 +28,7 @@ alias jaehoon Jaehoon Chung <jh80.chung@samsung.com>
|
||||
alias jagan Jagan Teki <jagan@amarulasolutions.com>
|
||||
alias jhersh Joe Hershberger <joe.hershberger@ni.com>
|
||||
alias kevery Kever Yang <kever.yang@rock-chips.com>
|
||||
alias leyfoon Ley Foon Tan <ley.foon.tan@intel.com>
|
||||
alias lukma Lukasz Majewski <lukma@denx.de>
|
||||
alias macpaul Macpaul Lin <macpaul@andestech.com>
|
||||
alias marex Marek Vasut <marex@denx.de>
|
||||
@@ -66,7 +67,7 @@ alias s3c samsung
|
||||
alias s5pc samsung
|
||||
alias samsung uboot, prom
|
||||
alias snapdragon uboot, mateusz
|
||||
alias socfpga uboot, marex, dinh, simongoldschmidt
|
||||
alias socfpga uboot, marex, dinh, simongoldschmidt, leyfoon
|
||||
alias sunxi uboot, jagan, maxime
|
||||
alias tegra uboot, sjg, Tom Warren <twarren@nvidia.com>, Stephen Warren <swarren@nvidia.com>
|
||||
alias tegra2 tegra
|
||||
|
||||
@@ -261,12 +261,15 @@ fdt_addr_t ofnode_get_addr_size_index(ofnode node, int index, fdt_size_t *size)
|
||||
|
||||
if (ofnode_is_np(node)) {
|
||||
const __be32 *prop_val;
|
||||
u64 size64;
|
||||
uint flags;
|
||||
|
||||
prop_val = of_get_address(ofnode_to_np(node), index,
|
||||
(u64 *)size, &flags);
|
||||
prop_val = of_get_address(ofnode_to_np(node), index, &size64,
|
||||
&flags);
|
||||
if (!prop_val)
|
||||
return FDT_ADDR_T_NONE;
|
||||
if (size)
|
||||
*size = size64;
|
||||
|
||||
ns = of_n_size_cells(ofnode_to_np(node));
|
||||
|
||||
@@ -617,7 +620,7 @@ int ofnode_read_pci_addr(ofnode node, enum fdt_pci_space type,
|
||||
if ((fdt32_to_cpu(*cell) & type) == type) {
|
||||
addr->phys_hi = fdt32_to_cpu(cell[0]);
|
||||
addr->phys_mid = fdt32_to_cpu(cell[1]);
|
||||
addr->phys_lo = fdt32_to_cpu(cell[1]);
|
||||
addr->phys_lo = fdt32_to_cpu(cell[2]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -852,6 +852,7 @@ static const struct udevice_id designware_eth_ids[] = {
|
||||
{ .compatible = "amlogic,meson-gxbb-dwmac" },
|
||||
{ .compatible = "amlogic,meson-axg-dwmac" },
|
||||
{ .compatible = "st,stm32-dwmac" },
|
||||
{ .compatible = "snps,arc-dwmac-3.70a" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
7
env/common.c
vendored
7
env/common.c
vendored
@@ -24,10 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
#include <env_default.h>
|
||||
|
||||
struct hsearch_data env_htab = {
|
||||
#if CONFIG_IS_ENABLED(ENV_SUPPORT)
|
||||
/* defined in flags.c, only compile with ENV_SUPPORT */
|
||||
.change_ok = env_flags_validate,
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -229,9 +226,7 @@ void env_relocate(void)
|
||||
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
||||
env_reloc();
|
||||
env_fix_drivers();
|
||||
|
||||
if (env_htab.change_ok)
|
||||
env_htab.change_ok += gd->reloc_off;
|
||||
env_htab.change_ok += gd->reloc_off;
|
||||
#endif
|
||||
if (gd->env_valid == ENV_INVALID) {
|
||||
#if defined(CONFIG_ENV_IS_NOWHERE) || defined(CONFIG_SPL_BUILD)
|
||||
|
||||
@@ -9,11 +9,4 @@
|
||||
#ifndef _CONFIG_DEFAULTS_H_
|
||||
#define _CONFIG_DEFAULTS_H_
|
||||
|
||||
/* Support bootm-ing different OSes */
|
||||
#define CONFIG_BOOTM_LINUX 1
|
||||
#define CONFIG_BOOTM_NETBSD 1
|
||||
#define CONFIG_BOOTM_PLAN9 1
|
||||
#define CONFIG_BOOTM_RTEMS 1
|
||||
#define CONFIG_BOOTM_VXWORKS 1
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
|
||||
#define CONFIG_DISPLAY_BOARDINFO_LATE
|
||||
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
#define USDHC1_BASE_ADDR 0x5b010000
|
||||
#define USDHC2_BASE_ADDR 0x5b020000
|
||||
|
||||
@@ -35,13 +35,7 @@
|
||||
#ifdef CONFIG_SD_BOOT
|
||||
|
||||
#ifdef CONFIG_ENV_IS_IN_MMC
|
||||
/* Use raw reserved sectors to save environment */
|
||||
#define CONFIG_ENV_OFFSET 0x2000
|
||||
#define CONFIG_ENV_SIZE 0x1000
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||
#else
|
||||
/* u-boot env in sd/mmc card */
|
||||
#define CONFIG_ENV_SIZE 0x4000
|
||||
#endif
|
||||
|
||||
#define CONFIG_BOOTCOMMAND "if test ! -n ${dtb_name}; then " \
|
||||
@@ -66,8 +60,6 @@
|
||||
"sf read 0x22000000 0x6c000 0x394000; " \
|
||||
"bootz 0x22000000 - 0x21000000"
|
||||
#elif CONFIG_QSPI_BOOT
|
||||
#define CONFIG_ENV_OFFSET 0x140000
|
||||
#define CONFIG_ENV_SIZE 0x20000
|
||||
#define CONFIG_BOOTCOMMAND "sf probe 0; " \
|
||||
"sf read 0x21000000 0x180000 0x80000; " \
|
||||
"sf read 0x22000000 0x200000 0x600000; " \
|
||||
|
||||
@@ -72,32 +72,21 @@
|
||||
|
||||
#ifdef CONFIG_NAND_BOOT
|
||||
/* bootstrap + u-boot + env + linux in nandflash */
|
||||
#define CONFIG_ENV_OFFSET 0x140000
|
||||
#define CONFIG_ENV_OFFSET_REDUND 0x100000
|
||||
#define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */
|
||||
#define CONFIG_BOOTCOMMAND "nand read " \
|
||||
"0x22000000 0x200000 0x600000; " \
|
||||
"nand read 0x21000000 0x180000 0x20000; " \
|
||||
"bootz 0x22000000 - 0x21000000"
|
||||
#elif defined(CONFIG_SPI_BOOT)
|
||||
/* bootstrap + u-boot + env + linux in spi flash */
|
||||
#define CONFIG_ENV_OFFSET 0x5000
|
||||
#define CONFIG_ENV_SIZE 0x3000
|
||||
#define CONFIG_ENV_SECT_SIZE 0x1000
|
||||
#define CONFIG_BOOTCOMMAND "sf probe 0; " \
|
||||
"sf read 0x22000000 0x100000 0x300000; " \
|
||||
"bootm 0x22000000"
|
||||
#elif defined(CONFIG_SYS_USE_DATAFLASH)
|
||||
/* bootstrap + u-boot + env + linux in data flash */
|
||||
#define CONFIG_ENV_OFFSET 0x4200
|
||||
#define CONFIG_ENV_SIZE 0x4200
|
||||
#define CONFIG_ENV_SECT_SIZE 0x210
|
||||
#define CONFIG_BOOTCOMMAND "sf probe 0; " \
|
||||
"sf read 0x22000000 0x84000 0x294000; " \
|
||||
"bootm 0x22000000"
|
||||
#else /* CONFIG_SD_BOOT */
|
||||
/* bootstrap + u-boot + env + linux in mmc */
|
||||
#define CONFIG_ENV_SIZE 0x4000
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -61,11 +61,6 @@ BUR_COMMON_ENV \
|
||||
" bootm ${loadaddr} - ${dtbaddr}\0"
|
||||
#endif /* !CONFIG_SPL_BUILD*/
|
||||
|
||||
/* undefine command which we not need here */
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* Support both device trees and ATAGs. */
|
||||
#define CONFIG_CMDLINE_TAG
|
||||
#define CONFIG_SETUP_MEMORY_TAGS
|
||||
|
||||
@@ -58,11 +58,6 @@ BUR_COMMON_ENV \
|
||||
|
||||
#define CONFIG_BOOTCOMMAND "mmc dev 1; run b_default"
|
||||
|
||||
/* undefine command which we not need here */
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* Support both device trees and ATAGs. */
|
||||
#define CONFIG_CMDLINE_TAG
|
||||
#define CONFIG_SETUP_MEMORY_TAGS
|
||||
|
||||
@@ -38,10 +38,6 @@
|
||||
#define CONFIG_POWER_PFUZE3000
|
||||
#define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08
|
||||
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* I2C configs */
|
||||
#define CONFIG_SYS_I2C
|
||||
#define CONFIG_SYS_I2C_MXC
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
#define CONFIG_SYS_FSL_USDHC_NUM 1
|
||||
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* I2C configs */
|
||||
#define CONFIG_SYS_I2C_SPEED 100000
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
|
||||
#define CONFIG_DISPLAY_BOARDINFO_LATE
|
||||
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
#define USDHC1_BASE_ADDR 0x5b010000
|
||||
#define USDHC2_BASE_ADDR 0x5b020000
|
||||
|
||||
@@ -35,9 +35,6 @@
|
||||
#define CONFIG_SYS_FSL_USDHC_NUM 2
|
||||
#endif
|
||||
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* I2C configs */
|
||||
#define CONFIG_SYS_I2C_MXC
|
||||
#define CONFIG_SYS_I2C_SPEED 100000
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
#undef CONFIG_CMD_IMLS
|
||||
|
||||
#undef CONFIG_CMD_CRC32
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
|
||||
/* ENET Config */
|
||||
/* ENET1 */
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#undef CONFIG_CMD_IMLS
|
||||
|
||||
#undef CONFIG_CMD_CRC32
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
#define USDHC1_BASE_ADDR 0x5B010000
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#undef CONFIG_CMD_IMLS
|
||||
|
||||
#undef CONFIG_CMD_CRC32
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
#define USDHC1_BASE_ADDR 0x5B010000
|
||||
|
||||
@@ -30,10 +30,6 @@
|
||||
/* MMC Config*/
|
||||
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
||||
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_PLAN9
|
||||
#undef CONFIG_BOOTM_RTEMS
|
||||
|
||||
/* I2C configs */
|
||||
#define CONFIG_SYS_I2C_MXC
|
||||
#define CONFIG_SYS_I2C_SPEED 100000
|
||||
|
||||
@@ -34,8 +34,6 @@
|
||||
|
||||
#undef CONFIG_BOOTCOMMAND
|
||||
#ifdef CONFIG_SD_BOOT
|
||||
/* u-boot env in sd/mmc card */
|
||||
#define CONFIG_ENV_SIZE 0x4000
|
||||
/* bootstrap + u-boot + env in sd card */
|
||||
#define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " \
|
||||
"fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#define FAT_ENV_INTERFACE "mmc"
|
||||
#define FAT_ENV_DEVICE_AND_PART "0"
|
||||
#define FAT_ENV_FILE "uboot.env"
|
||||
#define CONFIG_ENV_SIZE 0x4000
|
||||
/* bootstrap + u-boot + env in sd card */
|
||||
#define CONFIG_BOOTCOMMAND "fatload mmc 0:1 0x21000000 at91-sama5d2_icp.dtb; " \
|
||||
"fatload mmc 0:1 0x22000000 zImage; " \
|
||||
|
||||
@@ -217,8 +217,8 @@
|
||||
"addr_secdb_key=0xc000000\0" \
|
||||
"name_kern=zImage\0" \
|
||||
"addr_mon=0x87000000\0" \
|
||||
"addr_non_sec_mon=0x0c087fc0\0" \
|
||||
"addr_load_sec_bm=0x0c08c000\0" \
|
||||
"addr_non_sec_mon=0x0c097fc0\0" \
|
||||
"addr_load_sec_bm=0x0c09c000\0" \
|
||||
"run_mon=mon_install ${addr_mon}\0" \
|
||||
"run_mon_hs=mon_install ${addr_non_sec_mon} " \
|
||||
"${addr_load_sec_bm}\0" \
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
#undef CONFIG_ZLIB
|
||||
#undef CONFIG_GZIP
|
||||
#undef CONFIG_CMD_ENV
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_VXWORKS
|
||||
#undef CONFIG_BOOTM_LINUX
|
||||
|
||||
/* BOOTP options */
|
||||
#undef CONFIG_BOOTP_BOOTFILESIZE
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
#undef CONFIG_GZIP
|
||||
#undef CONFIG_CMD_ENV
|
||||
#undef CONFIG_SYS_INIT_SP_ADDR
|
||||
#undef CONFIG_BOOTM_NETBSD
|
||||
#undef CONFIG_BOOTM_VXWORKS
|
||||
#undef CONFIG_BOOTM_LINUX
|
||||
|
||||
/* BOOTP options */
|
||||
#undef CONFIG_BOOTP_BOOTFILESIZE
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#undef CONFIG_GZIP
|
||||
|
||||
#undef CONFIG_SYS_CBSIZE
|
||||
#undef CONFIG_BOOTM_VXWORKS
|
||||
#undef CONFIG_BOOTM_LINUX
|
||||
|
||||
#define CONFIG_SYS_CBSIZE 1024
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#ifndef __ENV_H
|
||||
#define __ENV_H
|
||||
|
||||
#include <compiler.h>
|
||||
#include <stdbool.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
|
||||
@@ -30,11 +30,13 @@ static inline int initcall_run_list(const init_fnc_t init_sequence[])
|
||||
#ifdef CONFIG_EFI_APP
|
||||
reloc_ofs = (unsigned long)image_base;
|
||||
#endif
|
||||
debug("initcall: %p", (char *)*init_fnc_ptr - reloc_ofs);
|
||||
if (reloc_ofs)
|
||||
debug(" (relocated to %p)\n", (char *)*init_fnc_ptr);
|
||||
debug("initcall: %p (relocated to %p)\n",
|
||||
(char *)*init_fnc_ptr - reloc_ofs,
|
||||
(char *)*init_fnc_ptr);
|
||||
else
|
||||
debug("\n");
|
||||
debug("initcall: %p\n", (char *)*init_fnc_ptr - reloc_ofs);
|
||||
|
||||
ret = (*init_fnc_ptr)();
|
||||
if (ret) {
|
||||
printf("initcall sequence %p failed at call %p (err=%d)\n",
|
||||
|
||||
@@ -43,11 +43,6 @@ const efi_guid_t efi_guid_unicode_collation_protocol2 =
|
||||
* See the Unified Extensible Firmware Interface (UEFI) specification for
|
||||
* details.
|
||||
*
|
||||
* TODO:
|
||||
* The implementation does not follow the Unicode collation algorithm.
|
||||
* For ASCII characters it results in the same sort order as EDK2.
|
||||
* We could use table UNICODE_CAPITALIZATION_TABLE for better results.
|
||||
*
|
||||
* Return: 0: s1 == s2, > 0: s1 > s2, < 0: s1 < s2
|
||||
*/
|
||||
static efi_intn_t EFIAPI efi_stri_coll(
|
||||
|
||||
@@ -443,8 +443,6 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
#define ACCESS_ATTR (EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS)
|
||||
|
||||
old_val = env_get(native_name);
|
||||
if (old_val) {
|
||||
old_val = parse_attr(old_val, &attr);
|
||||
@@ -455,7 +453,9 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((data_size == 0) || !(attributes & ACCESS_ATTR)) {
|
||||
if ((data_size == 0 &&
|
||||
!(attributes & EFI_VARIABLE_APPEND_WRITE)) ||
|
||||
!attributes) {
|
||||
/* delete the variable: */
|
||||
env_set(native_name, NULL);
|
||||
ret = EFI_SUCCESS;
|
||||
@@ -470,7 +470,7 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||
|
||||
if (attributes & EFI_VARIABLE_APPEND_WRITE) {
|
||||
if (!prefix(old_val, "(blob)")) {
|
||||
return EFI_DEVICE_ERROR;
|
||||
ret = EFI_DEVICE_ERROR;
|
||||
goto out;
|
||||
}
|
||||
old_size = strlen(old_val);
|
||||
@@ -478,8 +478,9 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||
old_size = 0;
|
||||
}
|
||||
} else {
|
||||
if ((data_size == 0) || !(attributes & ACCESS_ATTR) ||
|
||||
(attributes & EFI_VARIABLE_APPEND_WRITE)) {
|
||||
if ((data_size == 0 &&
|
||||
!(attributes & EFI_VARIABLE_APPEND_WRITE)) ||
|
||||
!attributes) {
|
||||
/* delete, but nothing to do */
|
||||
ret = EFI_NOT_FOUND;
|
||||
goto out;
|
||||
|
||||
@@ -217,7 +217,7 @@ int fdtdec_get_pci_addr(const void *blob, int node, enum fdt_pci_space type,
|
||||
if ((fdt32_to_cpu(*cell) & type) == type) {
|
||||
addr->phys_hi = fdt32_to_cpu(cell[0]);
|
||||
addr->phys_mid = fdt32_to_cpu(cell[1]);
|
||||
addr->phys_lo = fdt32_to_cpu(cell[1]);
|
||||
addr->phys_lo = fdt32_to_cpu(cell[2]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -128,13 +128,6 @@ CONFIG_BOOGER
|
||||
CONFIG_BOOTBLOCK
|
||||
CONFIG_BOOTFILE
|
||||
CONFIG_BOOTMODE
|
||||
CONFIG_BOOTM_LINUX
|
||||
CONFIG_BOOTM_NETBSD
|
||||
CONFIG_BOOTM_OPENRTOS
|
||||
CONFIG_BOOTM_OSE
|
||||
CONFIG_BOOTM_PLAN9
|
||||
CONFIG_BOOTM_RTEMS
|
||||
CONFIG_BOOTM_VXWORKS
|
||||
CONFIG_BOOTP_
|
||||
CONFIG_BOOTP_BOOTFILE
|
||||
CONFIG_BOOTP_BOOTFILESIZE
|
||||
|
||||
10
tools/env/fw_env.c
vendored
10
tools/env/fw_env.c
vendored
@@ -119,13 +119,6 @@ static struct environment environment = {
|
||||
|
||||
static int have_redund_env;
|
||||
|
||||
static unsigned char ENV_REDUND_ACTIVE = 1;
|
||||
/*
|
||||
* ENV_REDUND_OBSOLETE must be 0 to efficiently set it on NOR flash without
|
||||
* erasing
|
||||
*/
|
||||
static unsigned char ENV_REDUND_OBSOLETE;
|
||||
|
||||
#define DEFAULT_ENV_INSTANCE_STATIC
|
||||
#include <env_default.h>
|
||||
|
||||
@@ -1142,6 +1135,7 @@ static int flash_flag_obsolete(int dev, int fd, off_t offset)
|
||||
{
|
||||
int rc;
|
||||
struct erase_info_user erase;
|
||||
char tmp = ENV_REDUND_OBSOLETE;
|
||||
|
||||
erase.start = DEVOFFSET(dev);
|
||||
erase.length = DEVESIZE(dev);
|
||||
@@ -1153,7 +1147,7 @@ static int flash_flag_obsolete(int dev, int fd, off_t offset)
|
||||
return rc;
|
||||
}
|
||||
ioctl(fd, MEMUNLOCK, &erase);
|
||||
rc = write(fd, &ENV_REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE));
|
||||
rc = write(fd, &tmp, sizeof(tmp));
|
||||
ioctl(fd, MEMLOCK, &erase);
|
||||
if (rc < 0)
|
||||
perror("Could not set obsolete flag");
|
||||
|
||||
Reference in New Issue
Block a user