Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types
@ 2012-08-02  7:16 Andrea Adami
  2012-08-02  7:16 ` [meta-handheld][PATCH 2/2] zaurus.inc: ensure formfactor is installed in every image Andrea Adami
  2012-08-02 22:07 ` [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Paul Eggleton
  0 siblings, 2 replies; 3+ messages in thread
From: Andrea Adami @ 2012-08-02  7:16 UTC (permalink / raw)
  To: openembedded-devel

* In preparation for the next kexecboot release.
* tested on poodle, c7x0 and spitz 3200
* (the different partitioning btw spitz models will be
* detected by kexecbot)

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 conf/machine/include/zaurus.inc |   47 ++++++++++++++++++++++++++++++++++-----
 1 files changed, 41 insertions(+), 6 deletions(-)

diff --git a/conf/machine/include/zaurus.inc b/conf/machine/include/zaurus.inc
index 45c82d3..899664a 100644
--- a/conf/machine/include/zaurus.inc
+++ b/conf/machine/include/zaurus.inc
@@ -2,22 +2,57 @@
 # Zaurus common settings
 ########################
 
+IMAGE_FSTYPES ?= "tar.gz jffs2 sum.jffs2 ubifs"
+INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
+IMAGE_DEVICE_TABLES = ""
+
 ERASEBLOCKSIZE = "0x4000"
 ERASEBLOCKSIZE_akita = "0x20000"
+ERASEBLOCKSIZE_spitz = "0x20000"
 
 # Warning! SL-C3000 has "0x4000" (16MiB NAND) 
 # C3100 and C3200 have same 128MiB NAND device as akita
-ERASEBLOCKSIZE_spitz = "0x20000"
-
-IMAGE_FSTYPES ?= "tar.gz jffs2 sum.jffs2"
-INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
+#
+# SL-C3000 (16-7 MiB = 576 PEBs)
+# 9 x 1024 : 16 = 576 PEBs
+# MKUBIFS_ARGS_spitz = "-m 512 -e 15872 -c 576 -x zlib"
+# UBINIZE_ARGS_spitz = "-m 512 -p 16384 -s 256"
+# ERASEBLOCKSIZE_spitz = "0x4000"
+
+# UBI: max collie (14.125 = 904 PEBs)
+# 14.125 x 1024 : 16 = 904 PEBs
+MKUBIFS_ARGS_collie = "-m 512 -e 15872 -c 904 -x zlib"
+UBINIZE_ARGS_collie = "-m 512 -p 16384 -s 256"
+
+# UBI: max poodle (64-7 MiB = 3648 PEBs)
+# 57 x 1024 : 16 = 3648 PEBs
+MKUBIFS_ARGS_poodle = "-m 512 -e 15872 -c 3648 -x zlib"
+UBINIZE_ARGS_poodle = "-m 512 -p 16384 -s 256"
+
+# UBI: max c7x0 (128-7 MiB = 7744 PEBs)
+# 121 x 1024 : 16 = 7744 PEBs
+MKUBIFS_ARGS_c7x0 = "-m 512 -e 15872 -c 7744 -x zlib"
+UBINIZE_ARGS_c7x0 = "-m 512 -p 16384 -s 256"
+
+# UBI: max tosa (128-7 MiB = 7744 PEBs)
+# 121 x 1024 : 16 = 7744 PEBs
+MKUBIFS_ARGS_tosa = "-m 512 -e 15872 -c 7744 -x zlib"
+UBINIZE_ARGS_tosa = "-m 512 -p 16384 -s 256"
+
+# UBI: max akita (128-7 MiB = 968 PEBs)
+# 121 x 1024 : 128 = 968 PEBs
+MKUBIFS_ARGS_akita = "-m 2048 -e 129024 -c 968 -x zlib"
+UBINIZE_ARGS_akita = "-m 2048 -p 131072 -s 512"
+
+# UBI: max spitz (128-7 MiB = 968 PEBs)
+# 121 x 1024 : 128 = 968 PEBs
+MKUBIFS_ARGS_spitz = "-m 2048 -e 129024 -c 968 -x zlib"
+UBINIZE_ARGS_spitz = "-m 2048 -p 131072 -s 512"
 
 # kernel now supports favourlzo
 EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
 EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
 
-IMAGE_DEVICE_TABLES = ""
-
 #########
 # xserver
 #########
-- 
1.7.8.6




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

* [meta-handheld][PATCH 2/2] zaurus.inc: ensure formfactor is installed in every image
  2012-08-02  7:16 [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Andrea Adami
@ 2012-08-02  7:16 ` Andrea Adami
  2012-08-02 22:07 ` [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Andrea Adami @ 2012-08-02  7:16 UTC (permalink / raw)
  To: openembedded-devel

* formfactor.bbappend of meta-handheld will provide rotation reading for psplash.
* This will be removed once formfactor will be a runtime dependency
* of oe-core's psplash.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 conf/machine/include/zaurus.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/conf/machine/include/zaurus.inc b/conf/machine/include/zaurus.inc
index 899664a..cfcee14 100644
--- a/conf/machine/include/zaurus.inc
+++ b/conf/machine/include/zaurus.inc
@@ -110,8 +110,8 @@ MACHINE_EXTRA_RDEPENDS_collie = "zaurusd"
 # If set here, each image will also build linux-yocto-tiny-kexecboot and the updater
 # EXTRA_IMAGEDEPENDS += "zaurus-installer"
 
-# Install /boot/boot.cfg in target images
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_append = " kexecboot-cfg "
+# Install /boot/boot.cfg in target images and formfactor (psplash checks rotation)
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_append = " kexecboot-cfg formfactor"
 
 # Install kernel and symlink in /boot
-MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = " kernel-base kernel-image "
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = " kernel-base kernel-image"
-- 
1.7.8.6




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

* Re: [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types
  2012-08-02  7:16 [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Andrea Adami
  2012-08-02  7:16 ` [meta-handheld][PATCH 2/2] zaurus.inc: ensure formfactor is installed in every image Andrea Adami
@ 2012-08-02 22:07 ` Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2012-08-02 22:07 UTC (permalink / raw)
  To: openembedded-devel

On Thursday 02 August 2012 09:16:48 Andrea Adami wrote:
> * In preparation for the next kexecboot release.
> * tested on poodle, c7x0 and spitz 3200
> * (the different partitioning btw spitz models will be
> * detected by kexecbot)
> 
> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
>  conf/machine/include/zaurus.inc |   47
> ++++++++++++++++++++++++++++++++++----- 1 files changed, 41 insertions(+),
> 6 deletions(-)
> 
> diff --git a/conf/machine/include/zaurus.inc
> b/conf/machine/include/zaurus.inc index 45c82d3..899664a 100644
> --- a/conf/machine/include/zaurus.inc
> +++ b/conf/machine/include/zaurus.inc
> @@ -2,22 +2,57 @@
>  # Zaurus common settings
>  ########################
> 
> +IMAGE_FSTYPES ?= "tar.gz jffs2 sum.jffs2 ubifs"
> +INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
> +IMAGE_DEVICE_TABLES = ""
> +
>  ERASEBLOCKSIZE = "0x4000"
>  ERASEBLOCKSIZE_akita = "0x20000"
> +ERASEBLOCKSIZE_spitz = "0x20000"
> 
>  # Warning! SL-C3000 has "0x4000" (16MiB NAND)
>  # C3100 and C3200 have same 128MiB NAND device as akita
> -ERASEBLOCKSIZE_spitz = "0x20000"
> -
> -IMAGE_FSTYPES ?= "tar.gz jffs2 sum.jffs2"
> -INITRAMFS_FSTYPES ?= "cpio.gz cpio.lzma"
> +#
> +# SL-C3000 (16-7 MiB = 576 PEBs)
> +# 9 x 1024 : 16 = 576 PEBs
> +# MKUBIFS_ARGS_spitz = "-m 512 -e 15872 -c 576 -x zlib"
> +# UBINIZE_ARGS_spitz = "-m 512 -p 16384 -s 256"
> +# ERASEBLOCKSIZE_spitz = "0x4000"
> +
> +# UBI: max collie (14.125 = 904 PEBs)
> +# 14.125 x 1024 : 16 = 904 PEBs
> +MKUBIFS_ARGS_collie = "-m 512 -e 15872 -c 904 -x zlib"
> +UBINIZE_ARGS_collie = "-m 512 -p 16384 -s 256"
> +
> +# UBI: max poodle (64-7 MiB = 3648 PEBs)
> +# 57 x 1024 : 16 = 3648 PEBs
> +MKUBIFS_ARGS_poodle = "-m 512 -e 15872 -c 3648 -x zlib"
> +UBINIZE_ARGS_poodle = "-m 512 -p 16384 -s 256"
> +
> +# UBI: max c7x0 (128-7 MiB = 7744 PEBs)
> +# 121 x 1024 : 16 = 7744 PEBs
> +MKUBIFS_ARGS_c7x0 = "-m 512 -e 15872 -c 7744 -x zlib"
> +UBINIZE_ARGS_c7x0 = "-m 512 -p 16384 -s 256"
> +
> +# UBI: max tosa (128-7 MiB = 7744 PEBs)
> +# 121 x 1024 : 16 = 7744 PEBs
> +MKUBIFS_ARGS_tosa = "-m 512 -e 15872 -c 7744 -x zlib"
> +UBINIZE_ARGS_tosa = "-m 512 -p 16384 -s 256"
> +
> +# UBI: max akita (128-7 MiB = 968 PEBs)
> +# 121 x 1024 : 128 = 968 PEBs
> +MKUBIFS_ARGS_akita = "-m 2048 -e 129024 -c 968 -x zlib"
> +UBINIZE_ARGS_akita = "-m 2048 -p 131072 -s 512"
> +
> +# UBI: max spitz (128-7 MiB = 968 PEBs)
> +# 121 x 1024 : 128 = 968 PEBs
> +MKUBIFS_ARGS_spitz = "-m 2048 -e 129024 -c 968 -x zlib"
> +UBINIZE_ARGS_spitz = "-m 2048 -p 131072 -s 512"
> 
>  # kernel now supports favourlzo
>  EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
>  EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
> 
> -IMAGE_DEVICE_TABLES = ""
> -
>  #########
>  # xserver
>  #########

Merged these two to meta-handheld master (with typo kexecbot -> kexecboot in 
commit message fixed), thanks.

Cheers,
Paul
-- 

Paul Eggleton
Intel Open Source Technology Centre



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

end of thread, other threads:[~2012-08-02 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02  7:16 [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Andrea Adami
2012-08-02  7:16 ` [meta-handheld][PATCH 2/2] zaurus.inc: ensure formfactor is installed in every image Andrea Adami
2012-08-02 22:07 ` [meta-handheld][PATCH 1/2] zaurus.inc: add framework for ubifs image types Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox