beagleboard-test-scripts: Add a script flash-fs.sh for flashing NAND
PATCH v3 1/1 beagleboard-test-scripts: Add a script flash-fs.sh for flashing NAND
This script flashes the NAND of a BeagleBoard if:
* The user-button is pressed
* There is a valid image on the SD Card to flash
* The board has NAND
---
Changes since v2:
User button is checked before flashing of the board
This is based on Jason's review:
http://groups.google.com/group/beagleboard/msg/835de9a37c3a340a
.../beagleboard/beagleboard-test-scripts_git.bb | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
recipes/beagleboard/beagleboard-test-scripts_git.bb +11 -3
@@ -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 = "513bfa2e99822150ea5845f3a33c349029cb7c13" 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 }
Signature · 1 line
1.7.0.4
Quoted 6 lines · Joel A Fernandes
This script flashes the NAND of a BeagleBoard if:
* The user-button is pressed
* There is a valid image on the SD Card to flash
* The board has NANDSigned-off-by Joel A Fernandes <[email protected]>
Quoted 25 lines
---
Changes since v2:
User button is checked before flashing of the boardThis is based on Jason's review:
http://groups.google.com/group/beagleboard/msg/835de9a37c3a340a.../beagleboard/beagleboard-test-scripts_git.bb | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-0@@ -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"recipes/beagleboard/beagleboard-test-scripts_git.bb +2
-2-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 \"
recipes/beagleboard/beagleboard-test-scripts_git.bb line 9
Quoted 2 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +1
-1-SRCREV = "473dd2ab20d866be6168c9f992c2c9e74e485c9d" +SRCREV = "513bfa2e99822150ea5845f3a33c349029cb7c13"
Thanks!
Quoted 20 lines
S = "${WORKDIR}/git"
recipes/beagleboard/beagleboard-test-scripts_git.bb +4
-0+inherit update-rc.d +INITSCRIPT_NAME = "flash-fs.sh" +INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." +do_install() {
TEST_FILES=" \
testaudio \recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-0@@ -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
Quoted 42 lines · Jason Kridner
Quoted 6 lines · Joel A Fernandes
This script flashes the NAND of a BeagleBoard if:
* The user-button is pressed
* There is a valid image on the SD Card to flash
* The board has NANDSigned-off-by Joel A Fernandes <[email protected]>Acked-by Jason Kridner <[email protected]>Quoted 17 lines
---
Changes since v2:
User button is checked before flashing of the boardThis is based on Jason's review:
http://groups.google.com/group/beagleboard/msg/835de9a37c3a340a.../beagleboard/beagleboard-test-scripts_git.bb | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-0@@ -1,14 +1,18 @@ ## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1" DESCRIPTION = "BeagleBoard test scripts"recipes/beagleboard/beagleboard-test-scripts_git.bb line 9
Quoted 10 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +3
-3HOMEPAGE = "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 = "513bfa2e99822150ea5845f3a33c349029cb7c13"Thanks!
Quoted 2 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-0S = "${WORKDIR}/git"
Quoted 15 lines
Quoted 8 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +4
-0+inherit update-rc.d +INITSCRIPT_NAME = "flash-fs.sh" +INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." + do_install() { TEST_FILES=" \ testaudio \recipes/beagleboard/beagleboard-test-scripts_git.bb do_install() { · line 38
Quoted 7 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +4
-0@@ -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
Would it be better to call it flash-nand-fs.sh ? Or have NAND somewhere in it's name
Quoted 8 lines
Quoted 3 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-1} --1.7.0.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel