Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
On Mon, Jul 18, 2011 at 1:35 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? Jason's patch passes it in the radio button element imagetype. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
Op 18 jul 2011, om 21:18 heeft Joel A Fernandes het volgende geschreven: On Mon, Jul 18, 2011 at 1:35 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? Jason's patch passes it in the radio button element imagetype. Can you please send all the related patches as a series please? I've lost track which version those what and which extra patches are needed. ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
On Mon, Jul 18, 2011 at 2:19 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 21:18 heeft Joel A Fernandes het volgende geschreven: On Mon, Jul 18, 2011 at 1:35 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? Jason's patch passes it in the radio button element imagetype. Can you please send all the related patches as a series please? I've lost track which version those what and which extra patches are needed. Sure Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel