From 6e7e1b7172813fc4ecb60597f903dd21a4616159 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Tue, 19 Dec 2017 11:16:28 +0100
Subject: update yocto-advanced: sync to devel/manut/yocto

The devel/manut/yocto heavily diverted from master. Sync
with latest version 8cd4956a9b48a316eab6dc6d1b1f6cd51362fecf.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 .../yocto-advanced/yocto-sdcard-generation.tex     | 28 +++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

(limited to 'distribution/yocto-advanced/yocto-sdcard-generation.tex')

diff --git a/distribution/yocto-advanced/yocto-sdcard-generation.tex b/distribution/yocto-advanced/yocto-sdcard-generation.tex
index a36e213..b563bcd 100644
--- a/distribution/yocto-advanced/yocto-sdcard-generation.tex
+++ b/distribution/yocto-advanced/yocto-sdcard-generation.tex
@@ -1,3 +1,29 @@
+\subsection{generate a sdcard image}
+\begin{frame}[fragile]
+\frametitle{sdcard generation}
+create the file: 'meta-foo/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}
+
 \begin{frame}[fragile]
 \frametitle{sdcard generation \#2}
 \begin{verbatim}
@@ -100,7 +126,7 @@ IMAGE_TYPEDEP_sdcard = "${@d.getVar('SDCARD_ROOTFS', 1).split('.')[-1]}"
 
 \begin{frame}[fragile]
 \frametitle{configure machine to use sdcard imagetype}
-add the following lines to 'meta-mini/conf/machine/beaglebone-black.conf':
+add the following lines to 'meta-foo/conf/machine/beaglebone-black.conf':
 \begin{verbatim}
 IMAGE_CLASSES += "image_sdcard"
 SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
-- 
cgit v1.2.3

