User Tools

Site Tools


zed_machine_conf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
zed_machine_conf [2019/05/05 16:04]
rpjday [zedboard-zynq7.conf]
zed_machine_conf [2019/05/05 16:05]
rpjday [machine-xilinx-overrides.inc]
Line 47: Line 47:
  
 ==== tune-zynq.inc ==== ==== tune-zynq.inc ====
 +
 +<​code>​
 +DEFAULTTUNE ?= "​cortexa9thf-neon"​
 +SOC_FAMILY ?= "​zynq"​
 +
 +# Available SOC_VARIANT'​s for zynq:
 +# 7zs - Zynq-7000 Single A9 Core
 +# 7z  - Zynq-7000 Dual A9 Core
 +
 +SOC_VARIANT ?= "​7z"​
 +
 +require conf/​machine/​include/​tune-cortexa9.inc
 +require conf/​machine/​include/​soc-family.inc
 +
 +# Linux Configuration
 +KERNEL_IMAGETYPE ?= "​uImage"​
 +
 +# Set default load address.
 +# Override with KERNEL_EXTRA_ARGS_<​board>​ += "​..."​ in machine file if required
 +KERNEL_EXTRA_ARGS_zynq += "​UIMAGE_LOADADDR=0x8000"​
 +</​code>​
  
 ==== machine-xilinx-overrides.inc ==== ==== machine-xilinx-overrides.inc ====
  
 +<​code>​
 +SOC_VARIANT ??= ""​
 +MACHINEOVERRIDES =. "​${@['',​ '​${SOC_FAMILY}${SOC_VARIANT}:'​]['​${SOC_VARIANT}'​ != ''​]}"​
 +
 +# Here we can extend overrides for the corresponding family and variant
 +def get_soc_overrides(fam,​ var, d):
 +  extender = ''​
 +  if (fam == '​zynqmp'​):​
 +    if (var == '​eg'​):​
 +      extender = '​mali400:'​
 +    elif (var == '​ev'​):​
 +      extender = '​mali400:​vcu:'​
 +  return extender
 +
 +# Gets OVERRIDES extender depending on the board
 +SOC_OVERRIDES = "​${@get_soc_overrides(d.getVar('​SOC_FAMILY'​),​d.getVar('​SOC_VARIANT'​),​ d)}"
 +
 +MACHINEOVERRIDES ​ =. "​${SOC_OVERRIDES}"​
 +
 +PACKAGE_EXTRA_ARCHS_append = " ${SOC_FAMILY}"​
 +PACKAGE_EXTRA_ARCHS_append = "​${@['',​ ' ${SOC_FAMILY}${SOC_VARIANT}'​]['​${SOC_VARIANT}'​ != ''​]}"​
 +</​code>​
 ==== machine-xilinx-default.inc ==== ==== machine-xilinx-default.inc ====
zed_machine_conf.txt ยท Last modified: 2019/05/05 16:06 by rpjday