Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| zed_machine_conf [2019/05/05 16:04] – [zedboard-zynq7.conf] rpjday | zed_machine_conf [2019/05/05 16:06] (current) – [machine-xilinx-default.inc] rpjday | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| ==== tune-zynq.inc ==== | ==== tune-zynq.inc ==== | ||
| + | |||
| + | < | ||
| + | DEFAULTTUNE ?= " | ||
| + | SOC_FAMILY ?= " | ||
| + | |||
| + | # Available SOC_VARIANT' | ||
| + | # 7zs - Zynq-7000 Single A9 Core | ||
| + | # 7z - Zynq-7000 Dual A9 Core | ||
| + | |||
| + | SOC_VARIANT ?= " | ||
| + | |||
| + | require conf/ | ||
| + | require conf/ | ||
| + | |||
| + | # Linux Configuration | ||
| + | KERNEL_IMAGETYPE ?= " | ||
| + | |||
| + | # Set default load address. | ||
| + | # Override with KERNEL_EXTRA_ARGS_< | ||
| + | KERNEL_EXTRA_ARGS_zynq += " | ||
| + | </ | ||
| ==== machine-xilinx-overrides.inc ==== | ==== machine-xilinx-overrides.inc ==== | ||
| + | < | ||
| + | SOC_VARIANT ??= "" | ||
| + | MACHINEOVERRIDES =. " | ||
| + | |||
| + | # Here we can extend overrides for the corresponding family and variant | ||
| + | def get_soc_overrides(fam, | ||
| + | extender = '' | ||
| + | if (fam == ' | ||
| + | if (var == ' | ||
| + | extender = ' | ||
| + | elif (var == ' | ||
| + | extender = ' | ||
| + | return extender | ||
| + | |||
| + | # Gets OVERRIDES extender depending on the board | ||
| + | SOC_OVERRIDES = " | ||
| + | |||
| + | MACHINEOVERRIDES | ||
| + | |||
| + | PACKAGE_EXTRA_ARCHS_append = " ${SOC_FAMILY}" | ||
| + | PACKAGE_EXTRA_ARCHS_append = " | ||
| + | </ | ||
| ==== machine-xilinx-default.inc ==== | ==== machine-xilinx-default.inc ==== | ||
| + | |||
| + | < | ||
| + | # Default Xilinx BSP Machine settings | ||
| + | |||
| + | MACHINE_FEATURES_BACKFILL_CONSIDERED += " | ||
| + | |||
| + | # File System Configuration | ||
| + | IMAGE_FSTYPES ?= " | ||
| + | |||
| + | # Kernel Configuration | ||
| + | XILINX_DEFAULT_KERNEL := " | ||
| + | XILINX_DEFAULT_KERNEL_microblaze := " | ||
| + | XILINX_DEFAULT_KERNEL_zynqmp := " | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | |||
| + | # U-Boot Configuration | ||
| + | XILINX_DEFAULT_UBOOT := " | ||
| + | XILINX_DEFAULT_UBOOT_zynqmp := " | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | |||
| + | UBOOT_SUFFIX ?= " | ||
| + | UBOOT_SUFFIX_zynqmp ?= " | ||
| + | UBOOT_SUFFIX_microblaze ?= " | ||
| + | |||
| + | UBOOT_BINARY ?= " | ||
| + | UBOOT_ELF ?= " | ||
| + | UBOOT_ELF_aarch64 ?= " | ||
| + | |||
| + | #Hardware accelaration | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | PREFERRED_PROVIDER_virtual/ | ||
| + | |||
| + | |||
| + | XSERVER ?= " \ | ||
| + | xserver-xorg \ | ||
| + | xf86-input-evdev \ | ||
| + | xf86-input-mouse \ | ||
| + | xf86-input-keyboard \ | ||
| + | xf86-video-fbdev \ | ||
| + | ${XSERVER_EXT} \ | ||
| + | " | ||
| + | |||
| + | IMAGE_BOOT_FILES ?= " | ||
| + | |||
| + | def get_default_image_boot_files(d): | ||
| + | files = [] | ||
| + | |||
| + | # kernel images | ||
| + | kerneltypes = set((d.getVar(" | ||
| + | kerneltypes |= set((d.getVar(" | ||
| + | for i in kerneltypes: | ||
| + | files.append(i) | ||
| + | |||
| + | # u-boot image | ||
| + | if d.getVar(" | ||
| + | files.append(d.getVar(" | ||
| + | |||
| + | # device trees (device-tree only), these are first as they are likely desired over the kernel ones | ||
| + | if " | ||
| + | files.append(" | ||
| + | |||
| + | |||
| + | # device trees (kernel only) | ||
| + | if d.getVar(" | ||
| + | dtbs = d.getVar(" | ||
| + | dtbs = [os.path.basename(d) for d in dtbs] | ||
| + | for dtb in dtbs: | ||
| + | files.append(dtb) | ||
| + | |||
| + | return " " | ||
| + | |||
| + | XSERVER_EXT ?= "" | ||
| + | XSERVER_EXT_zynqmp ?= " | ||
| + | |||
| + | # For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/ | ||
| + | PREFERRED_VERSION_gdb_microblaze = " | ||
| + | </ | ||