<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.E-MailFormatvorlage17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=DE vLink=purple link=blue>
<DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>Yes it 
is.</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>There 
are basically two ways in doing it</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>One is 
to create a binary "blob" where each part (kernel and &nbsp;fs) &nbsp;is placed 
at a certain location and the space between them is padded</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>These 
location should match exactly the kernel mtd partition settings in terms of 
size.</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>The 
other method i have used, uses some "magic bytes" at the end of a jffs2 
filesystem to mark it</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>Then 
kernel and the fs are joint and a kernel patch is used to find where the 
filesystem starts/ends</FONT></SPAN></DIV>
<DIV><SPAN class=671155022-03062007><FONT face=Arial color=#0000ff size=2>This 
is the method used by Openwrt (in the kamikaze 
version)</FONT></SPAN></DIV></DIV>
<DIV>&nbsp;</DIV>
<P><FONT size=2>Stelios S. Koroneos<BR><BR>Digital OPSiS - Embedded 
Intelligence<BR><A href="http://www.digital-opsis.com/" 
target=_blank>http://www.digital-opsis.com</A><BR></FONT></P>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  linuxppc-embedded-bounces+stelios=stelioscellar.com@ozlabs.org 
  [mailto:linuxppc-embedded-bounces+stelios=stelioscellar.com@ozlabs.org]<B>On 
  Behalf Of </B>Frank Prepelica<BR><B>Sent:</B> Friday, June 01, 2007 2:15 
  PM<BR><B>To:</B> linuxppc-embedded@ozlabs.org<BR><B>Subject:</B> Kernel and 
  rootfs in ONE image?<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi 
  all,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">in normal case you have got a 
  kernel image and a rootfs image. Place<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">that images into flash memory, set 
  correct bootargs and it should work.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">But, is it possible to generate 
  one image which includes the linux kernel <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">and a rootfs, place that single 
  image into flash memory and it should also work?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in 
  advance!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Beste 
  regrads<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Frank<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>