* [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation
@ 2014-06-02 13:24 Alexey Ignatov
2014-06-02 13:24 ` [PATCH 2/2] imx28evk: add MXSBOOT_ARGS Alexey Ignatov
2014-06-02 21:49 ` [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Otavio Salvador
0 siblings, 2 replies; 4+ messages in thread
From: Alexey Ignatov @ 2014-06-02 13:24 UTC (permalink / raw)
To: meta-freescale; +Cc: Alexey Ignatov
---
classes/image_types_fsl.bbclass | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index dfa55e4..d585512 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -59,6 +59,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_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] 4+ messages in thread* [PATCH 2/2] imx28evk: add MXSBOOT_ARGS
2014-06-02 13:24 [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Alexey Ignatov
@ 2014-06-02 13:24 ` Alexey Ignatov
2014-06-02 21:52 ` Otavio Salvador
2014-06-02 21:49 ` [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Otavio Salvador
1 sibling, 1 reply; 4+ messages in thread
From: Alexey Ignatov @ 2014-06-02 13:24 UTC (permalink / raw)
To: meta-freescale; +Cc: Alexey Ignatov
---
conf/machine/imx28evk.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/conf/machine/imx28evk.conf b/conf/machine/imx28evk.conf
index d4f1ad6..23d4bd8 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_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] 4+ messages in thread
* Re: [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation
2014-06-02 13:24 [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Alexey Ignatov
2014-06-02 13:24 ` [PATCH 2/2] imx28evk: add MXSBOOT_ARGS Alexey Ignatov
@ 2014-06-02 21:49 ` Otavio Salvador
1 sibling, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2014-06-02 21:49 UTC (permalink / raw)
To: Alexey Ignatov; +Cc: meta-freescale@yoctoproject.org
Hello Alexey,
Thanks for sending this for upstreaming. Please see the comments below...
On Mon, Jun 2, 2014 at 10:24 AM, Alexey Ignatov <lexszero@gmail.com> wrote:
Please describe it more extensively in the commitlog, something as:
image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28
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:...
> diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
> index dfa55e4..d585512 100644
> --- a/classes/image_types_fsl.bbclass
> +++ b/classes/image_types_fsl.bbclass
...
> +IMAGE_CMD_uboot.mxsboot-nand = "mxsboot ${MXSBOOT_ARGS} nand \
...
Change it to MXSBOOT_NAND_ARGS as we may want MXSBOOT_SD_ARGS or others later.
You need to add a week definition of MXSBOOT_NAND_ARGS in the began of
the class as:
# Extra params to pass for MXSBOOT_NAND_ARGS
MXSBOOT_NAND_ARGS ?= ""
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-02 21:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 13:24 [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Alexey Ignatov
2014-06-02 13:24 ` [PATCH 2/2] imx28evk: add MXSBOOT_ARGS Alexey Ignatov
2014-06-02 21:52 ` Otavio Salvador
2014-06-02 21:49 ` [PATCH 1/2] image_types_fsl.bbclass: add uboot.mxsboot-nand image generation Otavio Salvador
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.