On Wednesday, March 7, 2012, Koen Kooi wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This script adds ~10s to the boot time, doesn't have error checking and prevents loading the storage gadget 3 out of 10 times.<br>
</blockquote><div><br></div><div>What is the root cause? Would it be better to add error checking?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Remove it from ExecStartPre to get a fast, consistent boot. The functionality should be moved to bone101.<br></blockquote><div><br></div><div>If the drive is already mounted, is it valid to edit this file? (I would think not.)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Koen Kooi <<a href="javascript:;" onclick="_e(event, 'cvml', 'koen@dominion.thruhere.net')">koen@dominion.thruhere.net</a>><br>
---<br>
recipes-ti/beagleboard/<a href="http://gadget-init.bb" target="_blank">gadget-init.bb</a> | 2 +-<br>
.../gadget-init/storage-gadget-init.service | 1 -<br>
2 files changed, 1 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/recipes-ti/beagleboard/<a href="http://gadget-init.bb" target="_blank">gadget-init.bb</a> b/recipes-ti/beagleboard/<a href="http://gadget-init.bb" target="_blank">gadget-init.bb</a><br>
index 016877d..1a6a336 100644<br>
--- a/recipes-ti/beagleboard/<a href="http://gadget-init.bb" target="_blank">gadget-init.bb</a><br>
+++ b/recipes-ti/beagleboard/<a href="http://gadget-init.bb" target="_blank">gadget-init.bb</a><br>
@@ -1,6 +1,6 @@<br>
DESCRIPTION = "Units to initialize usb gadgets"<br>
<br>
-PR = "r18"<br>
+PR = "r19"<br>
<br>
LICENSE = "MIT"<br>
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"<br>
diff --git a/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service b/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service<br>
index 601e0d7..9a8513e 100644<br>
--- a/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service<br>
+++ b/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service<br>
@@ -4,7 +4,6 @@ After=dev-mmcblk0p1.device<br>
<br>
[Service]<br>
RemainAfterExit=yes<br>
-ExecStartPre=/usr/bin/update-image-info-on-mmcblk0p1.sh<br>
ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1<br>
ExecStop=/sbin/rmmod g_mass_storage<br>
<br>
--<br>
1.7.2.5<br>
<br>
</blockquote>