On Wed, Jul 6, 2011 at 12:15 PM, Joel A Fernandes <agnel.j...@gmail.com> wrote:
> This script flashes the NAND of a BeagleBoard if it exists, and if there is a 
> valid image to flash
>
> Signed-off-by: Joel A Fernandes <agnel.j...@gmail.com>

Acked-by: Jason Kridner <jkrid...@beagleboard.org>

I will eventually merge your changes into the mainline, but I believe
it is helpful to get these updates in OE for BeagleBoard users who
want to reproduce the shipping images.

Can you update the process to only flash the boards if the USER button
is held or some other similar strategy?  It seems that enabling this
script would make the SD card image useless for non-flashing
activities.  Of course, Gerald would need to sign-off on any flashing
process changes.

> ---
> Changes since v1:
> * Bumped PR
> * Using commit revision number instead of AUTOREV
> * Using update-rc.d class instead of copying init script to /etc/rc5.d/
> * Removed full stops from the commit summary
> * Made comment on the init script in do_install more clear
>
>  .../beagleboard/beagleboard-test-scripts_git.bb    |   14 +++++++++++---
>  1 files changed, 11 insertions(+), 3 deletions(-)
>
> diff --git a/recipes/beagleboard/beagleboard-test-scripts_git.bb 
> b/recipes/beagleboard/beagleboard-test-scripts_git.bb
> index be0d059..4e0f54f 100644
> --- a/recipes/beagleboard/beagleboard-test-scripts_git.bb
> +++ b/recipes/beagleboard/beagleboard-test-scripts_git.bb
> @@ -1,14 +1,18 @@
>  ## Reminder:  The correct spacing for a variable is FOO = "BAR"  in : PR="r1"
>  DESCRIPTION = "BeagleBoard test scripts"
>  HOMEPAGE = "http://beagleboad.org/support";
> -PR = "r2"
> +PR = "r3"
>
> -SRC_URI = 
> "git://gitorious.org/beagleboard-validation/scripts.git;protocol=git \
> +SRC_URI = 
> "git://gitorious.org/~joelf/beagleboard-validation/validation-scripts.git;protocol=git
>  \
>  "
>
> -SRCREV = "473dd2ab20d866be6168c9f992c2c9e74e485c9d"
> +SRCREV = "c482b7cb6caaa986a86d360d39e9040c77667d6b"
>  S = "${WORKDIR}/git"
>
> +inherit update-rc.d
> +INITSCRIPT_NAME = "flash-fs.sh"
> +INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
> +
>  do_install() {
>   TEST_FILES=" \
>     testaudio \
> @@ -28,4 +32,8 @@ do_install() {
>   for i in ${TEST_FILES}; do
>     install -m 0755 ${S}/${i} ${D}/${bindir}
>   done
> +  # A script to flash NAND if the board has it, and if there is valid image 
> to flash on the SD Card.
> +  # We also register it as an init script so that the SD Card auto-flashes 
> to NAND during boot.
> +  install -d ${D}/${sysconfdir}/init.d/
> +  install -m 0755 ${S}/flashing/flash-fs.sh 
> ${D}/${sysconfdir}/init.d/flash-fs.sh
>  }
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to