beagleboard-test-scripts: Add a script flash-fs.sh for flashing NAND.
PATCH 1/1 beagleboard-test-scripts: Add a script flash-fs.sh for flashing NAND.
This script flashes the NAND of a beagleboard if it exists, and if there is a valid image to flash.
--- .../beagleboard/beagleboard-test-scripts_git.bb | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
recipes/beagleboard/beagleboard-test-scripts_git.bb +5 -2
@@ -3,10 +3,10 @@ DESCRIPTION = "BeagleBoard test scripts" HOMEPAGE = "http://beagleboad.org/support" PR = "r2" -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 = "${AUTOREV}" S = "${WORKDIR}/git" do_install() {
@@ -28,4 +28,7 @@ do_install() { for i in ${TEST_FILES}; do install -m 0755 ${S}/${i} ${D}/${bindir} done + # Add script to flash the NAND if it exists and if there is a valid image to flash on bootup. + install -d ${D}/${sysconfdir}/rc5.d/ + install -m 0755 ${S}/flashing/flash-fs.sh ${D}/${sysconfdir}/rc5.d/S99flashfs }
Signature · 1 line
1.7.0.4
Dear Joel,
Am Dienstag, den 05.07.2011, 20:27 -0500 schrieb Joel A Fernandes:
^
• Is in your Name a dot missing after the second name?
• In the commit summary no full stop at the end is used according to the new commit guidelines.
Quoted 1 line
This script flashes the NAND of a beagleboard if it exists, and if there is a valid image to flash.
If you capitalize NAND you could also write BeagleBoard.
recipes/beagleboard/beagleboard-test-scripts_git.bb DESCRIPTION = "BeagleBoard test scripts" · line 4
Quoted 12 lines
Signed-off-by Joel A Fernandes <[email protected]>--- .../beagleboard/beagleboard-test-scripts_git.bb | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)recipes/beagleboard/beagleboard-test-scripts_git.bb +0
-0@@ -3,10 +3,10 @@ DESCRIPTION = "BeagleBoard test scripts" HOMEPAGE = "http://beagleboad.org/support" PR = "r2"
Since the package content changes you have to increase the number.
recipes/beagleboard/beagleboard-test-scripts_git.bb DESCRIPTION = "BeagleBoard test scripts" · line 9
Quoted 6 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +2
-2-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 = "${AUTOREV}"
In OE it is not wanted to use AUTOREV. I do not know though how you can specify a revision for each repository.
recipes/beagleboard/beagleboard-test-scripts_git.bb do_install() { · line 31
Quoted 8 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +1
-0S = "${WORKDIR}/git" do_install() {@@ -28,4 +28,7 @@ do_install() { for i in ${TEST_FILES}; do install -m 0755 ${S}/${i} ${D}/${bindir} done + # Add script to flash the NAND if it exists and if there is a valid image to flash on bootup.
• After »Add a space can be removed.
• »on bootup« is not clear to me. Does the BB have to be rebooted and then the image is flashed?
recipes/beagleboard/beagleboard-test-scripts_git.bb do_install() { · line 34
Quoted 3 lines
recipes/beagleboard/beagleboard-test-scripts_git.bb +2
-0+ install -d ${D}/${sysconfdir}/rc5.d/ + install -m 0755 ${S}/flashing/flash-fs.sh ${D}/${sysconfdir}/rc5.d/S99flashfs }
Thanks,
Paul
Hi Paul,
Thanks for your suggestions. I will make the requested changes,
Quoted 10 lines
Quoted 6 lines
do_install() {
(quoted diff) +0
-0@@ -28,4 +28,7 @@ do_install() {for i in ${TEST_FILES}; do
install -m 0755 ${S}/${i} ${D}/${bindir}
done
+ # Add script to flash the NAND if it exists and if there is a valid image to flash on bootup.• After »Add a space can be removed.
• »on bootup« is not clear to me. Does the BB have to be rebooted and then the image is flashed?
In boards with a NAND device, an image is written to the NAND if the SD Card has an image. This is during startup.
Regards,
Joel