blob: 6b1421e301868fcfcab2e53c3085e055b2d5e430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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}
|