diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-05-15 21:27:31 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-05-15 21:27:31 +1000 |
commit | 0264be4b1718048e89f073825c61b10b858ebeab (patch) | |
tree | de75264391f810ff2a68a9cfb9e392f3caf7ea18 /conf | |
parent | 0303b641295bb893c2f17f3fc7dd080ec76875ab (diff) | |
download | meta-xilinx-0264be4b1718048e89f073825c61b10b858ebeab.tar.gz |
u-boot-zynq-uenv.bb: Add recipe to generate uEnv.txt environment
Add a recipe to generate uEnv.txt environments for SD boot of Zynq
targets. This replaces the existing uEnv.txt for zc702/zedboard that
were manually created and populated only for u-boot-xlnx builds.
The generated uEnv.txt files also support auto loading of the fpga
bitstream before the kernel.
Also enable the use of this recipe for all *-zynq7 machines that use
U-Boot and have SD/eMMC available. And additionally setup
IMAGE_BOOT_FILES for these machines.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/microzed-zynq7.conf | 8 | ||||
-rw-r--r-- | conf/machine/picozed-zynq7.conf | 8 | ||||
-rw-r--r-- | conf/machine/zc702-zynq7.conf | 2 | ||||
-rw-r--r-- | conf/machine/zc706-zynq7.conf | 8 | ||||
-rw-r--r-- | conf/machine/zedboard-zynq7.conf | 2 | ||||
-rw-r--r-- | conf/machine/zybo-linux-bd-zynq7.conf | 6 | ||||
-rw-r--r-- | conf/machine/zybo-zynq7.conf | 8 |
7 files changed, 38 insertions, 4 deletions
diff --git a/conf/machine/microzed-zynq7.conf b/conf/machine/microzed-zynq7.conf index 8e24d5f5..ec28c3ff 100644 --- a/conf/machine/microzed-zynq7.conf +++ b/conf/machine/microzed-zynq7.conf | |||
@@ -12,9 +12,15 @@ MACHINE_FEATURES = "ext2 vfat usbhost" | |||
12 | UBOOT_MACHINE = "zynq_microzed_config" | 12 | UBOOT_MACHINE = "zynq_microzed_config" |
13 | SPL_BINARY = "spl/boot.bin" | 13 | SPL_BINARY = "spl/boot.bin" |
14 | 14 | ||
15 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
16 | |||
15 | SERIAL_CONSOLE = "115200 ttyPS0" | 17 | SERIAL_CONSOLE = "115200 ttyPS0" |
16 | 18 | ||
17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 19 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
18 | 20 | ||
19 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" | 21 | IMAGE_BOOT_FILES += " \ |
22 | boot.bin \ | ||
23 | ${MACHINE}.dtb \ | ||
24 | uEnv.txt \ | ||
25 | " | ||
20 | 26 | ||
diff --git a/conf/machine/picozed-zynq7.conf b/conf/machine/picozed-zynq7.conf index e1d723c4..2fb310b9 100644 --- a/conf/machine/picozed-zynq7.conf +++ b/conf/machine/picozed-zynq7.conf | |||
@@ -16,9 +16,15 @@ MACHINE_FEATURES = "ext2 vfat usbhost usbgadget" | |||
16 | UBOOT_MACHINE = "zynq_picozed_config" | 16 | UBOOT_MACHINE = "zynq_picozed_config" |
17 | SPL_BINARY = "spl/boot.bin" | 17 | SPL_BINARY = "spl/boot.bin" |
18 | 18 | ||
19 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
20 | |||
19 | SERIAL_CONSOLE = "115200 ttyPS0" | 21 | SERIAL_CONSOLE = "115200 ttyPS0" |
20 | 22 | ||
21 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 23 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
22 | 24 | ||
23 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" | 25 | IMAGE_BOOT_FILES += " \ |
26 | boot.bin \ | ||
27 | ${MACHINE}.dtb \ | ||
28 | uEnv.txt \ | ||
29 | " | ||
24 | 30 | ||
diff --git a/conf/machine/zc702-zynq7.conf b/conf/machine/zc702-zynq7.conf index 503caa31..ef423013 100644 --- a/conf/machine/zc702-zynq7.conf +++ b/conf/machine/zc702-zynq7.conf | |||
@@ -19,6 +19,8 @@ MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" | |||
19 | UBOOT_MACHINE = "zynq_zc702_config" | 19 | UBOOT_MACHINE = "zynq_zc702_config" |
20 | SPL_BINARY = "spl/boot.bin" | 20 | SPL_BINARY = "spl/boot.bin" |
21 | 21 | ||
22 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
23 | |||
22 | SERIAL_CONSOLE = "115200 ttyPS0" | 24 | SERIAL_CONSOLE = "115200 ttyPS0" |
23 | 25 | ||
24 | KERNEL_DEVICETREE = "zynq-zc702.dtb" | 26 | KERNEL_DEVICETREE = "zynq-zc702.dtb" |
diff --git a/conf/machine/zc706-zynq7.conf b/conf/machine/zc706-zynq7.conf index 1aff9d09..0df5aa71 100644 --- a/conf/machine/zc706-zynq7.conf +++ b/conf/machine/zc706-zynq7.conf | |||
@@ -19,8 +19,16 @@ MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" | |||
19 | UBOOT_MACHINE = "zynq_zc706_config" | 19 | UBOOT_MACHINE = "zynq_zc706_config" |
20 | SPL_BINARY = "spl/boot.bin" | 20 | SPL_BINARY = "spl/boot.bin" |
21 | 21 | ||
22 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
23 | |||
22 | SERIAL_CONSOLE = "115200 ttyPS0" | 24 | SERIAL_CONSOLE = "115200 ttyPS0" |
23 | 25 | ||
24 | KERNEL_DEVICETREE = "zynq-zc706.dtb" | 26 | KERNEL_DEVICETREE = "zynq-zc706.dtb" |
25 | KERNEL_FEATURES += "features/rtc/rtc.scc" | 27 | KERNEL_FEATURES += "features/rtc/rtc.scc" |
26 | 28 | ||
29 | IMAGE_BOOT_FILES += " \ | ||
30 | boot.bin \ | ||
31 | ${KERNEL_IMAGETYPE}-zynq-zc706.dtb \ | ||
32 | uEnv.txt \ | ||
33 | " | ||
34 | |||
diff --git a/conf/machine/zedboard-zynq7.conf b/conf/machine/zedboard-zynq7.conf index 90dc993b..58cee372 100644 --- a/conf/machine/zedboard-zynq7.conf +++ b/conf/machine/zedboard-zynq7.conf | |||
@@ -16,6 +16,8 @@ require conf/machine/include/machine-xilinx-board.inc | |||
16 | UBOOT_MACHINE = "zynq_zed_config" | 16 | UBOOT_MACHINE = "zynq_zed_config" |
17 | SPL_BINARY = "spl/boot.bin" | 17 | SPL_BINARY = "spl/boot.bin" |
18 | 18 | ||
19 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
20 | |||
19 | SERIAL_CONSOLE = "115200 ttyPS0" | 21 | SERIAL_CONSOLE = "115200 ttyPS0" |
20 | 22 | ||
21 | KERNEL_DEVICETREE = "zynq-zed.dtb" | 23 | KERNEL_DEVICETREE = "zynq-zed.dtb" |
diff --git a/conf/machine/zybo-linux-bd-zynq7.conf b/conf/machine/zybo-linux-bd-zynq7.conf index a5505c06..d44575bd 100644 --- a/conf/machine/zybo-linux-bd-zynq7.conf +++ b/conf/machine/zybo-linux-bd-zynq7.conf | |||
@@ -21,11 +21,15 @@ UBOOT_MACHINE = "zynq_zybo_config" | |||
21 | SPL_BINARY = "spl/boot.bin" | 21 | SPL_BINARY = "spl/boot.bin" |
22 | FORCE_PLATFORM_INIT = "1" | 22 | FORCE_PLATFORM_INIT = "1" |
23 | 23 | ||
24 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
25 | |||
24 | EXTRA_IMAGEDEPENDS += "virtual/bitstream" | 26 | EXTRA_IMAGEDEPENDS += "virtual/bitstream" |
25 | 27 | ||
26 | IMAGE_BOOT_FILES += "boot.bin \ | 28 | IMAGE_BOOT_FILES += " \ |
29 | boot.bin \ | ||
27 | ${MACHINE}.dtb \ | 30 | ${MACHINE}.dtb \ |
28 | bitstream \ | 31 | bitstream \ |
32 | uEnv.txt \ | ||
29 | " | 33 | " |
30 | 34 | ||
31 | KERNEL_FEATURES += " \ | 35 | KERNEL_FEATURES += " \ |
diff --git a/conf/machine/zybo-zynq7.conf b/conf/machine/zybo-zynq7.conf index 361d7ccd..ddddfba1 100644 --- a/conf/machine/zybo-zynq7.conf +++ b/conf/machine/zybo-zynq7.conf | |||
@@ -16,9 +16,15 @@ MACHINE_FEATURES = "ext2 vfat usbhost usbgadget" | |||
16 | UBOOT_MACHINE = "zynq_zybo_config" | 16 | UBOOT_MACHINE = "zynq_zybo_config" |
17 | SPL_BINARY = "spl/boot.bin" | 17 | SPL_BINARY = "spl/boot.bin" |
18 | 18 | ||
19 | EXTRA_IMAGEDEPENDS += "u-boot-zynq-uenv" | ||
20 | |||
19 | SERIAL_CONSOLE = "115200 ttyPS0" | 21 | SERIAL_CONSOLE = "115200 ttyPS0" |
20 | 22 | ||
21 | KERNEL_DEVICETREE = "zynq-zybo.dtb" | 23 | KERNEL_DEVICETREE = "zynq-zybo.dtb" |
22 | 24 | ||
23 | IMAGE_BOOT_FILES += "boot.bin ${KERNEL_IMAGETYPE}-zynq-zybo.dtb" | 25 | IMAGE_BOOT_FILES += " \ |
26 | boot.bin \ | ||
27 | ${KERNEL_IMAGETYPE}-zynq-zybo.dtb \ | ||
28 | uEnv.txt \ | ||
29 | " | ||
24 | 30 | ||