]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: document i.MX and i.MXS differences in partitioning
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 17 May 2012 12:04:24 +0000 (09:04 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 18 May 2012 01:48:00 +0000 (22:48 -0300)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/classes/image_types_fsl.bbclass

index 89bab5a6e95cb526da1cd4e6ddee18692666e0d3..8471da2d5c013fa146f492b6757e23658298d97f 100644 (file)
@@ -16,20 +16,6 @@ IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native u-boot"
 IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
                                              ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD}"
 
-#
-# Create an image that can by written onto a SD card using dd.
-#
-# External variables needed:
-#   ${SDCARD_ROOTFS}    - the rootfs image to incorporate
-#   ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
-#
-# The disk layout used is:
-#
-#    0  - 1M                  - reserved to bootloader and other data
-#    1M - BOOT_SPACE          - kernel
-#    BOOT_SPACE - SDCARD_SIZE - rootfs
-#
-
 # Default to 3.4GiB images
 SDCARD_SIZE ?= "3400"
 
@@ -48,6 +34,20 @@ SDCARD_GENERATION_COMMAND_mxs = "generate_mxs_sdcard"
 SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard"
 SDCARD_GENERATION_COMMAND_mx6 = "generate_imx_sdcard"
 
+#
+# Create an image that can by written onto a SD card using dd for use
+# with i.MX SoC family
+#
+# External variables needed:
+#   ${SDCARD_ROOTFS}    - the rootfs image to incorporate
+#   ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
+#
+# The disk layout used is:
+#
+#    0  - 1M                  - reserved to bootloader and other data
+#    1M - BOOT_SPACE          - kernel
+#    BOOT_SPACE - SDCARD_SIZE - rootfs
+#
 generate_imx_sdcard () {
        # Create partition table
        parted -s ${SDCARD} mklabel msdos
@@ -85,6 +85,20 @@ generate_imx_sdcard () {
        dd if=${SDCARD_ROOTFS} of=${SDCARD} conv=notrunc seek=1 bs=${BOOT_SPACE}
 }
 
+#
+# Create an image that can by written onto a SD card using dd for use
+# with i.MXS SoC family
+#
+# External variables needed:
+#   ${SDCARD_ROOTFS}    - the rootfs image to incorporate
+#   ${IMAGE_BOOTLOADER} - bootloader to use {u-boot, barebox}x
+#
+# The disk layout used is:
+#
+#    1M - 2M                  - reserved to bootloader and other data
+#    2M - BOOT_SPACE          - kernel
+#    BOOT_SPACE - SDCARD_SIZE - rootfs
+#
 generate_mxs_sdcard () {
        # Create partition table
        parted -s ${SDCARD} mklabel msdos