From e11da41853ddb36745c68adaab352fbe00bebc16 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Wed, 18 May 2016 09:44:42 +0200
Subject: split yocto advanced training

use several tex files and include them in the presentation

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 .../yocto-advanced/yocto-u-boot-integration.tex    | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 distribution/yocto-advanced/yocto-u-boot-integration.tex

(limited to 'distribution/yocto-advanced/yocto-u-boot-integration.tex')

diff --git a/distribution/yocto-advanced/yocto-u-boot-integration.tex b/distribution/yocto-advanced/yocto-u-boot-integration.tex
new file mode 100644
index 0000000..6b1421e
--- /dev/null
+++ b/distribution/yocto-advanced/yocto-u-boot-integration.tex
@@ -0,0 +1,35 @@
+\begin{frame}[fragile]
+\frametitle{using a specific bootloader}
+add
+\begin{verbatim}
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
+PREFERRED_PROVIDER_virtual/u-boot = "u-boot"
+\end{verbatim}
+to meta-mini/machine/beaglebone-black.conf
+\end{frame}
+
+\subsection{generate a sdcard image}
+\begin{frame}[fragile]
+\frametitle{sdcard generation}
+create the file: 'meta-mini/classes/image\_sdcard.bbclass':
+\begin{verbatim}
+inherit image_types
+
+IMAGE_BOOTLOADER ?= "u-boot"
+
+# Handle u-boot suffixes
+UBOOT_SUFFIX ?= "bin"
+UBOOT_PADDING ?= "0"
+UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
+
+# Linux bootstream
+IMAGE_DEPENDS_linux.sb = "virtual/kernel:do_deploy"
+
+# Boot partition volume id
+BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"
+# Boot partition size [in KiB]
+BOOT_SPACE ?= "8192"
+# Set alignment to 4MB [in KiB]
+IMAGE_ROOTFS_ALIGNMENT = "4096"
+\end{verbatim}
+\end{frame}
-- 
cgit v1.2.3

