summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-05-17 09:04:24 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-05-17 22:48:00 -0300
commitb055e5a7140cfb02593a9e71f1e1d7924020bdb0 (patch)
tree21695fa9c363050bbc035c2b6709802ae0b89c01 /classes
parent4427f8a09ea10df24ce9d3cc2f527012c1bf8f04 (diff)
downloadmeta-fsl-arm-b055e5a7140cfb02593a9e71f1e1d7924020bdb0.tar.gz
image_types_fsl.bbclass: document i.MX and i.MXS differences in partitioning
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass42
1 files changed, 28 insertions, 14 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 89bab5a..8471da2 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -16,20 +16,6 @@ IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native u-boot"
16IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ 16IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
17 ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD}" 17 ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD}"
18 18
19#
20# Create an image that can by written onto a SD card using dd.
21#
22# External variables needed:
23# ${SDCARD_ROOTFS} - the rootfs image to incorporate
24# ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
25#
26# The disk layout used is:
27#
28# 0 - 1M - reserved to bootloader and other data
29# 1M - BOOT_SPACE - kernel
30# BOOT_SPACE - SDCARD_SIZE - rootfs
31#
32
33# Default to 3.4GiB images 19# Default to 3.4GiB images
34SDCARD_SIZE ?= "3400" 20SDCARD_SIZE ?= "3400"
35 21
@@ -48,6 +34,20 @@ SDCARD_GENERATION_COMMAND_mxs = "generate_mxs_sdcard"
48SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard" 34SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard"
49SDCARD_GENERATION_COMMAND_mx6 = "generate_imx_sdcard" 35SDCARD_GENERATION_COMMAND_mx6 = "generate_imx_sdcard"
50 36
37#
38# Create an image that can by written onto a SD card using dd for use
39# with i.MX SoC family
40#
41# External variables needed:
42# ${SDCARD_ROOTFS} - the rootfs image to incorporate
43# ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
44#
45# The disk layout used is:
46#
47# 0 - 1M - reserved to bootloader and other data
48# 1M - BOOT_SPACE - kernel
49# BOOT_SPACE - SDCARD_SIZE - rootfs
50#
51generate_imx_sdcard () { 51generate_imx_sdcard () {
52 # Create partition table 52 # Create partition table
53 parted -s ${SDCARD} mklabel msdos 53 parted -s ${SDCARD} mklabel msdos
@@ -85,6 +85,20 @@ generate_imx_sdcard () {
85 dd if=${SDCARD_ROOTFS} of=${SDCARD} conv=notrunc seek=1 bs=${BOOT_SPACE} 85 dd if=${SDCARD_ROOTFS} of=${SDCARD} conv=notrunc seek=1 bs=${BOOT_SPACE}
86} 86}
87 87
88#
89# Create an image that can by written onto a SD card using dd for use
90# with i.MXS SoC family
91#
92# External variables needed:
93# ${SDCARD_ROOTFS} - the rootfs image to incorporate
94# ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
95#
96# The disk layout used is:
97#
98# 1M - 2M - reserved to bootloader and other data
99# 2M - BOOT_SPACE - kernel
100# BOOT_SPACE - SDCARD_SIZE - rootfs
101#
88generate_mxs_sdcard () { 102generate_mxs_sdcard () {
89 # Create partition table 103 # Create partition table
90 parted -s ${SDCARD} mklabel msdos 104 parted -s ${SDCARD} mklabel msdos