Martin,<br><br>Some observations ::<br><br>a)<br>All observations (appearance/non-appearance of mesh-icons) is inert to the presence/absence of the following packages ::<br><br> * dracut<br> * dracut-modules-olpc<br>
* dracut-modules-ceibal<br><br><br>b)<br>I could only see one initramfs image, on any of the signed/unsigned builds ::<br> <br> * olpcrd.img (with "initrd.img" being a symbolic link to it)<br>
<br><br><br><br><br><br>So, some queries ::<br><br><br>a)<br>Is the (singular) RAM FS image (olpcrd.img) generated for every kind of build (but loaded into memory only when ALL of the following are met) ::<br><br> * laptop is secured<br>
* image is signed<br> * there is no developer key, either in pendrive, or on SD at "/security/develop.sig".<br><br><br>b)<br>I could not find the place where this (singular) RAM FS image is generated, in the osbuilder (presumably via dracut).<br>
Doing some greps, gave me the following results ::<br><br>##########################################################################################<br>[ajay@localhost bleeding-edge]$ grep -r -i -s "initrd" .<br>
./modules/xo1_5/kspost.50.xo15-tweaks.inc: " ${DN}${PN}\initrd.img" expand$ to ramdisk<br>./modules/signing/preimage.40.sign-os.sh:if [ -e "$fsmount/boot/initrd.img" ]; then<br>./modules/signing/<a href="http://preimage.40.sign-os.sh">preimage.40.sign-os.sh</a>: ./sign-os.sh $okey $fsmount/boot/initrd.img $fsmount/boot/runrd.zip<br>
./modules/signing/preimage.10.extract.sh:if [ -e "$fsmount/boot/initrd.img" ]; then<br>./modules/signing/<a href="http://preimage.10.extract.sh">preimage.10.extract.sh</a>: cp $fsmount/boot/initrd.img $tgt/data.img<br>
./modules/signing/README: - if found, the initramfs at /boot/initrd.img (or /boot/olpcrd.img) will be<br>./modules/signing/README:found at /boot/initrd.img will be signed into runos.zip and runrd.zip<br>./modules/xo1/kspost.50.xo1-tweaks.inc:# FIXME: old olpc.fth looks for olpcrd.img, but we now use initrd.img<br>
./modules/xo1/kspost.50.xo1-tweaks.inc:[ -e "/boot/olpcrd.img" ] || ln -s initrd.img /boot/olpcrd.img<br><br><br><br><br>[ajay@localhost bleeding-edge]$ grep -r -i -s "olpcrd" .<br>./modules/signing/preimage.10.extract.sh:elif [ -e "$fsmount/boot/olpcrd.img" ]; then<br>
./modules/signing/<a href="http://preimage.10.extract.sh">preimage.10.extract.sh</a>: cp $fsmount/boot/olpcrd.img $tgt/data.img<br>./modules/signing/README: - if found, the initramfs at /boot/initrd.img (or /boot/olpcrd.img) will be<br>
./modules/xo1/kspost.50.xo1-tweaks.inc:# FIXME: old olpc.fth looks for olpcrd.img, but we now use initrd.img<br>./modules/xo1/kspost.50.xo1-tweaks.inc:[ -e "/boot/olpcrd.img" ] || ln -s initrd.img /boot/olpcrd.img<br>
./modules/xo1/kspost.50.xo1-tweaks.inc: " ${DN}${PN}\olpcrd.img" expand$ to ramdisk<br>##########################################################################################<br><br><br><br>Looking forward to a reply (especially to the first query).<br>
<br><br><br>Thanks and Regards,<br>Ajay<br> <br><br><div class="gmail_quote">On Sat, May 12, 2012 at 2:26 PM, Ajay Garg <span dir="ltr"><<a href="mailto:ajay@activitycentral.com" target="_blank">ajay@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">On Sat, May 12, 2012 at 2:08 PM, Ajay Garg <span dir="ltr"><<a href="mailto:ajay@activitycentral.com" target="_blank">ajay@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks Martin.<br>Very neatly explained !!!! :)<br><br>I tried the "rmmod/modprobe" hack in "olpc-configure", and it worked (obviously because, this time the "/etc.modprobe.d/libertas.conf" could be fetched/read from persistent storage). Mesh-icons were no more visible in the neighborhood-view (both during reboot, and resume-from-suspend).<br>
<br>But I too felt that this is more of a hack, and not a clean solution.<br><br><br>So, I ventured out exploring dracut.<br>I created a initramfs image on my home/work laptop, hosting Fedora-14, via the command ::<br><br>
"dracut test.img"<br><br>and then listed the contents of it<br><br> "lsinitrd test.img"<br><br>I saw that "/etc/modprobe.d/*" files were a part of "test.img".<br>
So, I think that these files _are_ included as part of the initramfs image, as per say.<br><br><br>So,<br><br>"""<br>Is this observation (that /etc/modprobe.d/* files are included, as per say) in line with what is expected?<br>
If yes, that is kind of a relief, since that would mean that only "/etc/modprobe.d/libertas.conf" is not being included (in initramfs that is).<br>"""<br></blockquote></div><div><br>Well, just inspected "lsinitrd olpcrd.img" (assuming "olpcrd.img" _is_ the initramfs image in the signed build :D )<br>
"olpcrd.img", in fact, does not contain any /etc/modprobe/* files.<br><br><br>Am looking into exploring customized dracut-modules-olpc..<br><br><br>Thanks and Regards,<br>Ajay<br><br> </div><div><div class="h5">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br><br><br>Thanks and Regards,<br>Ajay<div><div><br>
<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 3:33 AM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com" target="_blank">martin.langhoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>On Thu, May 10, 2012 at 1:23 PM, Ajay Garg <<a href="mailto:ajay@activitycentral.com" target="_blank">ajay@activitycentral.com</a>> wrote:<br>
> If I boot with "/security/develop.sig" folder in my pendrive,<br>
> a)<br>
> mesh-icons are observed in neighborhood-view, both during reboot and<br>
> resume-from-suspend.<br>
<br>
</div>Welcome to the initramfs stage of your journey! When the laptop needs<br>
activation, it loads a different initramfs that among other things<br>
loads the libertas module.<br>
<br>
You need to get your /etc/modprobe.d/ files into the initramfs. For<br>
your vanilla build, look into dracut-modules-olpc. If you're hoping to<br>
get this integrated into a build with an alternative initramfs (hint:<br>
Ceibal) that build will have a custom version of dracut-modules-olpc.<br>
<br>
That is the right way. When the laptop is in secure mode, olpc.fth is<br>
_ignored_, so no chance to set a kernel cmdline there.<br>
<br>
An easier alternative might be to check for those flags under /sys,<br>
and if they are there, rmmod/modprobe libertas for example in<br>
olpc-configure (so during early boot).<br>
<div><div><br>
<br>
<br>
<br>
m<br>
--<br>
<a href="mailto:martin.langhoff@gmail.com" target="_blank">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org" target="_blank">martin@laptop.org</a> -- Software Architect - OLPC<br>
- ask interesting questions<br>
- don't get distracted with shiny stuff - working code first<br>
- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>