<HTML dir=3Dltr><HEAD><TITLE>[Gumstix-users] Replacing the filesystem =
image from a web browser?</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText82865 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>The wiki =
contains details behind updating the file system image through the =
/dev/mtd device (</FONT><FONT face=3DArial size=3D2><A =
href=3D"http://docwiki.gumstix.org/Replacing_the_filesystem_image">http:/=
/docwiki.gumstix.org/Replacing_the_filesystem_image</A> -- search =
for flashcp on that page).</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>As long as your ram disk has =
enough space to hold the incoming flash image and you can make certain =
the image is valid and not too large, you should be able to do this via =
CGI.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>A few caveats to =
consider...</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>First, Verdex has an =
interesting flash process regarding the file system and kernel, since =
the kernel is no longer in the file system. (I would expect the Connex =
to adopt this method soon as well.) In that environment, you first erase =
flash (from 40000 and higher), you then program in the file system, you =
then erase the top 1MB of flash, and finally you place the kernel into =
that space. (The last two steps are done with a single command, =
katinstall, while in U-Boot.)</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Second, if you've got an =
older U-Boot configuration (where bootargs includes "root=3D1f02") and =
you install a new kernel that requires a bootargs change (such as =
"root=3D1f01"), you could leave the system unable to boot without manual =
(serial) intervention.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Finally, when you're =
programming the new file system, you will need to be certain that no =
running process has an open file handle to any file on the flash file =
system. If anything has an open handle to the old (erased) file system =
and then reads from it, it will receive corrupted data. Worse, if =
something writes to an old (stale) file handle, it will possibly corrupt =
your newly programmed file system.</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> =
gumstix-users-bounces@... on behalf of Carl =
Douglas<BR><B>Sent:</B> Thu 6/28/2007 5:38 AM<BR><B>To:</B> =
gumstix-users@...> [Gumstix-users] =
Replacing the filesystem image from a web browser?<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>Hi,<BR><BR>I would like to provide the ability to =
replace the file system image<BR>through a web page<BR>and CGI hosted on =
the gumstix. Is this possible, and if so, could<BR>someone give me =
a clue on to do it?<BR><BR>If others are interested perhaps we could =
create an open source<BR>project to develop the =
CGI.<BR><BR>Thanks,<BR>Carl<BR><BR>--------------------------------------=
-----------------------------------<BR>This SF.net email is sponsored by =
DB2 Express<BR>Download DB2 Express C - the FREE version of DB2 express =
and take<BR>control of your XML. No limits. Just data. Click to get it =
now.<BR><A =
href=3D"http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powe=
rbar/db2/</A><BR>_______________________________________________<BR>gumst=
ix-users mailing list<BR>gumstix-users@... =
href=3D"https://lists.sourceforge.net/lists/listinfo/gumstix-users">https=
://lists.sourceforge.net/lists/listinfo/gumstix-users</A><BR></FONT></P><=
/DIV></BODY><!--[object_id=3D#authentec.com#]--><DIV class=3DSection1>
<P class=3DMsoNormal><FONT size=3D2>
<HR>
NOTE: The information in this message is intended for the personal and =
confidential use of the designated recipient(s) named above. To the =
extent the recipient(s) is/are bound by a non-disclosure agreement, or =
other agreement that contains an obligation of confidentiality, with =
AuthenTec, then this message and/or any attachments shall be considered =
confidential information and subject to the confidentiality terms of =
that agreement.<SPAN style=3D"mso-spacerun: yes"> </SPAN>If the =
reader of this message is not the intended recipient named above, you =
are notified that you have received this document in error, and any =
review, dissemination, distribution or copying of this message is =
strictly prohibited. If you have received this document in error, please =
delete the original message and notify the sender =
immediately.<?xml:namespace prefix =3D o ns =3D =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></P>
<P class=3DMsoNormal><FONT size=3D2>Thank you.<o:p></o:p></FONT></P>
<P class=3DMsoNormal><FONT size=3D2><o:p> </o:p>AuthenTec, =
Inc.<SPAN style=3D"mso-spacerun: yes"> </SPAN></FONT><A =
href=3D"http://www.authentec.com/"><FONT =
size=3D2>http://www.authentec.com</FONT></A></P>
<P class=3DMsoNormal><o:p> </o:p></P></DIV></HTML>
|