All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 1/2] image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28
@ 2014-06-05 10:21 Alexey Ignatov
  2014-06-05 10:22 ` [PATCHv2 2/2] imx28evk: Add U-Boot NAND image generation support Alexey Ignatov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Ignatov @ 2014-06-05 10:21 UTC (permalink / raw)
  To: meta-freescale; +Cc: Alexey Ignatov

This adds support to generate the U-Boot image for use with NAND
(uboot.mxsboot-nand) and allows for custom params to be given for
mxsboot using the MXSBOOT_NAND_ARGS variable which should be defined
in the machine definition file.

Signed-off-by: Alexey Ignatov <lexszero@gmail.com>
---
 classes/image_types_fsl.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index dfa55e4..c0fa9b6 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -10,6 +10,7 @@ UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
 #
 # Handles i.MX mxs bootstream generation
 #
+MXSBOOT_NAND_ARGS ?= ""
 
 # IMX Bootlets Linux bootstream
 IMAGE_DEPENDS_linux.sb = "elftosb-native:do_populate_sysroot \
@@ -59,6 +60,12 @@ IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native:do_populate_sysroot
 IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
                                              ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-sdcard"
 
+IMAGE_DEPENDS_uboot.mxsboot-nand = "u-boot-mxsboot-native:do_populate_sysroot \
+                                      u-boot:do_deploy"
+IMAGE_CMD_uboot.mxsboot-nand = "mxsboot ${MXSBOOT_NAND_ARGS} nand \
+                                             ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
+                                             ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-nand"
+
 # Boot partition volume id
 BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"
 
-- 
1.8.2.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCHv2 2/2] imx28evk: Add U-Boot NAND image generation support
  2014-06-05 10:21 [PATCHv2 1/2] image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28 Alexey Ignatov
@ 2014-06-05 10:22 ` Alexey Ignatov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Ignatov @ 2014-06-05 10:22 UTC (permalink / raw)
  To: meta-freescale; +Cc: Alexey Ignatov

This defines NAND parameters for u-boot.mxsboot-nand image creation
similar to those used for UBI image (for K9LBG08U0D-PCB chip):
- page size: 4 k
- OOB size: 218 bytes
- erase size: 512 k

Signed-off-by: Alexey Ignatov <lexszero@gmail.com>
---
 conf/machine/imx28evk.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conf/machine/imx28evk.conf b/conf/machine/imx28evk.conf
index d4f1ad6..c25e54b 100644
--- a/conf/machine/imx28evk.conf
+++ b/conf/machine/imx28evk.conf
@@ -29,6 +29,7 @@ MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen"
 
 MKUBIFS_ARGS = "--min-io-size 4096 --leb-size 516096 --max-leb-cnt 8139"
 UBINIZE_ARGS = "--min-io-size 4096 --peb-size 524288 --sub-page-size 4096"
+MXSBOOT_NAND_ARGS = "-w 4096 -o 218 -e 524288"
 
 ## To determine parameters' values, run "ubiattach -m 6 /dev/ubi_ctrl"
 ## (assuming the rootfs device is /dev/mtd6).  Here's an example:
-- 
1.8.2.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-05 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05 10:21 [PATCHv2 1/2] image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28 Alexey Ignatov
2014-06-05 10:22 ` [PATCHv2 2/2] imx28evk: Add U-Boot NAND image generation support Alexey Ignatov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.