Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| u-boot_configuration [2019/12/26 14:52] – [Files] rpjday | u-boot_configuration [2019/12/27 07:02] (current) – [Files] rpjday | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| </ | </ | ||
| - | zynq-related: | + | zynq[mp]-related: |
| < | < | ||
| Line 69: | Line 69: | ||
| * '' | * '' | ||
| + | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| Line 95: | Line 96: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * dts/ | + | * '' |
| - | * zynqmp-zcu102-rev1.0.dts | + | * '' |
| - | * board/ | + | * '' |
| - | * xilinx/ | + | * '' |
| - | * Makefile | + | * '' |
| - | * common/ | + | * '' |
| - | * board.c | + | * '' |
| - | * zynqmp/ | + | * '' |
| - | * Makefile | + | * '' |
| - | * Kconfig | + | |
| - | + | ||
| - | + | ||
| - | ===== Makefile ===== | + | |
| - | + | ||
| - | < | + | |
| - | ... | + | |
| - | export ARCH CPU BOARD VENDOR SOC CPUDIR BOARDDIR | + | |
| - | ... | + | |
| - | ifeq ($(autoconf_is_old), | + | |
| - | include config.mk | + | |
| - | include arch/ | + | |
| - | endif | + | |
| - | ... | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | ===== config.mk ===== | + | |
| - | + | ||
| - | < | + | |
| - | ARCH := $(CONFIG_SYS_ARCH:" | + | |
| - | CPU := $(CONFIG_SYS_CPU:" | + | |
| - | ifdef CONFIG_SPL_BUILD | + | |
| - | ifdef CONFIG_TEGRA | + | |
| - | CPU := arm720t | + | |
| - | endif | + | |
| - | endif | + | |
| - | BOARD := $(CONFIG_SYS_BOARD:" | + | |
| - | ifneq ($(CONFIG_SYS_VENDOR), | + | |
| - | VENDOR := $(CONFIG_SYS_VENDOR:" | + | |
| - | endif | + | |
| - | ifneq ($(CONFIG_SYS_SOC), | + | |
| - | SOC := $(CONFIG_SYS_SOC:" | + | |
| - | endif | + | |
| - | + | ||
| - | # Some architecture config.mk files need to know what CPUDIR is set to, | + | |
| - | # so calculate CPUDIR before including ARCH/ | + | |
| - | # Check if arch/ | + | |
| - | # CPU-specific code. | + | |
| - | CPUDIR=arch/ | + | |
| - | + | ||
| - | sinclude $(srctree)/ | + | |
| - | sinclude $(srctree)/ | + | |
| - | + | ||
| - | ifdef SOC | + | |
| - | sinclude $(srctree)/ | + | |
| - | endif | + | |
| - | ifneq ($(BOARD), | + | |
| - | ifdef | + | |
| - | BOARDDIR = $(VENDOR)/ | + | |
| - | else | + | |
| - | BOARDDIR = $(BOARD) | + | |
| - | endif | + | |
| - | endif | + | |
| - | ifdef | + | |
| - | sinclude $(srctree)/ | + | |
| - | endif | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== configs/ ===== | + | |
| - | + | ||
| - | ==== zynq_zed_defconfig ==== | + | |
| - | + | ||
| - | < | + | |
| - | CONFIG_ARM=y | + | |
| - | CONFIG_ARCH_ZYNQ=y | + | |
| - | ... much more ... | + | |
| - | </ | + | |
| - | + | ||
| - | ===== include/ ===== | + | |
| - | + | ||
| - | ==== configs/ ==== | + | |
| - | + | ||
| - | === zynq-common.h === | + | |
| - | + | ||
| - | Consulted from '' | + | |
| - | + | ||
| - | ===== arch/arm/ ===== | + | |
| - | + | ||
| - | ==== Kconfig ==== | + | |
| - | + | ||
| - | < | + | |
| - | config SYS_ARCH | + | |
| - | | + | |
| - | + | ||
| - | ... snip ... | + | |
| - | + | ||
| - | config ARCH_ZYNQ | + | |
| - | bool " | + | |
| - | select BOARD_EARLY_INIT_F if WDT | + | |
| - | select CLK | + | |
| - | select CLK_ZYNQ | + | |
| - | select CPU_V7A | + | |
| - | select DM | + | |
| - | select DM_ETH if NET | + | |
| - | select DM_MMC if MMC | + | |
| - | select DM_SERIAL | + | |
| - | select DM_SPI | + | |
| - | select DM_SPI_FLASH | + | |
| - | select DM_USB if USB | + | |
| - | select OF_CONTROL | + | |
| - | select SPI | + | |
| - | select SPL_BOARD_INIT if SPL | + | |
| - | select SPL_CLK if SPL | + | |
| - | select SPL_DM if SPL | + | |
| - | select SPL_OF_CONTROL if SPL | + | |
| - | select SPL_SEPARATE_BSS if SPL | + | |
| - | select SUPPORT_SPL | + | |
| - | imply ARCH_EARLY_INIT_R | + | |
| - | imply BOARD_LATE_INIT | + | |
| - | imply CMD_CLK | + | |
| - | imply CMD_DM | + | |
| - | imply CMD_SPL | + | |
| - | imply FAT_WRITE | + | |
| - | + | ||
| - | ... snip ... | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Makefile ==== | + | |
| - | + | ||
| - | < | + | |
| - | machine-$(CONFIG_ARCH_ZYNQ) | + | |
| - | machdirs := $(patsubst %, | + | |
| - | head-y := arch/ | + | |
| - | ... | + | |
| - | libs-y += arch/ | + | |
| - | libs-y += arch/ | + | |
| - | libs-y += arch/ | + | |
| - | </ | + | |
| - | ==== mach-zynq/ ==== | + | |
| - | + | ||
| - | === Kconfig === | + | |
| - | + | ||
| - | < | + | |
| - | config SYS_BOARD | + | |
| - | string "Board name" | + | |
| - | default " | + | |
| - | + | ||
| - | config SYS_VENDOR | + | |
| - | string " | + | |
| - | default " | + | |
| - | + | ||
| - | config SYS_SOC | + | |
| - | default " | + | |
| - | + | ||
| - | config SYS_CONFIG_NAME | + | |
| - | string "Board configuration name" | + | |
| - | default " | + | |
| - | help | + | |
| - | This option contains information about board configuration name. | + | |
| - | Based on this option include/ | + | |
| - | will be used for board configuration. | + | |
| - | </ | + | |
| - | + | ||
| - | ===== make cfg ===== | + | |
| - | + | ||
| - | In addition to generating the appropriate | + | |
| - | + | ||
| - | < | + | |
| - | $ make cfg | + | |
| - | </ | + | |
| - | + | ||
| - | Relevant entries that define the remainder of the build: | + | |
| - | + | ||
| - | < | + | |
| - | #define CONFIG_SYS_CPU " | + | |
| - | #define CONFIG_SYS_CONFIG_NAME " | + | |
| - | #define CONFIG_BOARDDIR board/ | + | |
| - | #define CONFIG_CPU_V7A 1 | + | |
| - | #define CONFIG_SYS_VENDOR " | + | |
| - | #define CONFIG_SYS_ARCH " | + | |
| - | #define CONFIG_SYS_BOARD " | + | |
| - | #define CONFIG_SYS_ARM_ARCH 7 | + | |
| - | #define CONFIG_ARM 1 | + | |
| - | #define CONFIG_ARCH_ZYNQ 1 | + | |
| - | </ | + | |