diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2012-05-17 09:04:24 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-05-17 22:48:00 -0300 |
| commit | bcf83fbee4656fe11fd7dc8c957e49312ccc6cec (patch) | |
| tree | 584d0c9bee8c804582ec2391d27acbdb9ecc9790 /meta-fsl-arm/classes | |
| parent | 3113c0787754655d4e9323d03aeb93fedf93432b (diff) | |
| download | meta-freescale-bcf83fbee4656fe11fd7dc8c957e49312ccc6cec.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 'meta-fsl-arm/classes')
| -rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 89bab5a6e..8471da2d5 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass | |||
| @@ -16,20 +16,6 @@ IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native u-boot" | |||
| 16 | IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ | 16 | IMAGE_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 |
| 34 | SDCARD_SIZE ?= "3400" | 20 | SDCARD_SIZE ?= "3400" |
| 35 | 21 | ||
| @@ -48,6 +34,20 @@ SDCARD_GENERATION_COMMAND_mxs = "generate_mxs_sdcard" | |||
| 48 | SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard" | 34 | SDCARD_GENERATION_COMMAND_mx5 = "generate_imx_sdcard" |
| 49 | SDCARD_GENERATION_COMMAND_mx6 = "generate_imx_sdcard" | 35 | SDCARD_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 | # | ||
| 51 | generate_imx_sdcard () { | 51 | generate_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 | # | ||
| 88 | generate_mxs_sdcard () { | 102 | generate_mxs_sdcard () { |
| 89 | # Create partition table | 103 | # Create partition table |
| 90 | parted -s ${SDCARD} mklabel msdos | 104 | parted -s ${SDCARD} mklabel msdos |
