diff options
| author | Manuel Traut <manut@linutronix.de> | 2016-05-18 09:44:42 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2016-05-18 09:44:42 +0200 |
| commit | e11da41853ddb36745c68adaab352fbe00bebc16 (patch) | |
| tree | 6910e39f9f93b1622cc6692701ae42fd289e339a /distribution/yocto-advanced/yocto-u-boot-integration.tex | |
| parent | 03566e0d038005ca58630c3decc1f5ae301a67a7 (diff) | |
split yocto advanced training
use several tex files and include them in the presentation
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/yocto-u-boot-integration.tex')
| -rw-r--r-- | distribution/yocto-advanced/yocto-u-boot-integration.tex | 35 |
1 files changed, 35 insertions, 0 deletions
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} |
