RE: Psim and kickstart

Jan Stoess <[email protected]> Thu, 24 Feb 2011 15:19:11 +0000
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
--_000_0453D4730CA16449B61476A072CC48BC056ED20Di30s6osukade_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have the  kernel running on an Ebony Platform; it's Simics simulated but =
that shouldn't matter. I guess the main issue for you is to get U-Boot runn=
ing on your hardware. I'd suggest you to search http://www.denx.de/wiki/U-B=
oot to find out how to get that done; since it's platform-dependent, I can'=
t really be of help here. Once you have U-Boot running, the rest is rather =
trivial; with Simics, you can directly poke stuff into memory; with your pl=
atform you will have to find out how to get the binaries loaded. Essentiall=
y, you'll have to get kickstart, kernel, sigma0, roottask into memory and t=
hen launch kickstart; kickstart will then ELF-load all other l4 binaries an=
d boot the kernel.

We currently use the flattened device tree
http://elinux.org/Device_Trees
http://repository.timesys.com/buildsources/d/dtc/dtc-1.2.0/
to pass information about hardware and kernel to the kernel and to user-lev=
el. You may be required to get a device tree source for your particular pla=
tform and embed that into u-boot; u-boot's shell has support for manipulati=
ng the tree, which you will need to poke L4-specific values into. For ebony=
, I took the platform dts from in the Linux kernel. Once you have u-boot ru=
nning and have found yourself into FDT concepts, contact me and I can get y=
ou the code for ebony-uboot. We're in the process of releasing the ebony u-=
boot patches anyway.

Finally, you will need u-boot to execute some hush script commands to get k=
ickstart booted.

Best,
-Jan




--
Dr.-Ing. Jan Stoess
KIT/UKa System Architecture Group
Phone: +49 (721) 6084 4056
Fax: +49 (721) 6084 7664
http://os.ibds.kit.edu/stoess


--_000_0453D4730CA16449B61476A072CC48BC056ED20Di30s6osukade_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.apple-style-span
	{mso-style-name:apple-style-span;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">I have the&nbsp; kernel r=
unning on an Ebony Platform; it&#8217;s Simics simulated but that shouldn&#=
8217;t matter. I guess the main issue for you is to get U-Boot running on
 your hardware. I&#8217;d suggest you to search </span><a href=3D"http://ww=
w.denx.de/wiki/U-Boot">http://www.denx.de/wiki/U-Boot</a>
<span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-=
serif&quot;;color:#1F497D">to find out how to get that done; since it&#8217=
;s platform-dependent, I can&#8217;t really be of help here. Once you have =
U-Boot running, the rest is rather trivial; with Simics, you can directly
 poke stuff into memory; with your platform you will have to find out how t=
o get the binaries loaded. Essentially, you&#8217;ll have to get kickstart,=
 kernel, sigma0, roottask into memory and then launch kickstart; kickstart =
will then ELF-load all other l4 binaries
 and boot the kernel. <o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">We currently use the flat=
tened device tree
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><a href=3D"http://elinux.org/Device_Trees">http://el=
inux.org/Device_Trees</a><span style=3D"font-size:11.0pt;font-family:&quot;=
Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><a href=3D"http://repository.timesys.com/buildsource=
s/d/dtc/dtc-1.2.0/">http://repository.timesys.com/buildsources/d/dtc/dtc-1.=
2.0/</a><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">to pass information about=
 hardware and kernel to the kernel and to user-level. You may be required t=
o get a device tree source for your particular platform
 and embed that into u-boot; u-boot&#8217;s shell has support for manipulat=
ing the tree, which you will need to poke L4-specific values into. For ebon=
y, I took the platform dts from in the Linux kernel. Once you have u-boot r=
unning and have found yourself into FDT
 concepts, contact me and I can get you the code for ebony-uboot. We&#8217;=
re in the process of releasing the ebony u-boot patches anyway.<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Finally, you will need u-=
boot to execute some hush script commands to get kickstart booted.<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Best,<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">-Jan<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">--<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Dr.-Ing. Jan Stoess<o:p><=
/o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">KIT/UKa System Architectu=
re Group<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Phone: &#43;49 (721) 6084=
 4056<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Fax: &#43;49 (721) 6084 7=
664<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><a href=3D"http://os.ibds=
.kit.edu/stoess">http://os.ibds.kit.edu/stoess</a>
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_0453D4730CA16449B61476A072CC48BC056ED20Di30s6osukade_--