Subject: File System Startup
To: , <tech-kern@netbsd.org>
From: Kyle Unice <kyle@midnighttech.com>
List: tech-embed
Date: 12/31/2002 06:47:54
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C2B098.8BACF240
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

We have NetBSD 1.5.2 running on an embedded system with a RAM disk.  We
gzip the ramdisk in flash then gunzip it to ram.  The issue is that the
embedded system needs to get to a state quickly to service interrupts
etc. and the gunzip is a lengthy process.  We want to move the gunzip to
the point after all the devices are initialized and interrupts are
enabled. I have tried moving it but I get the prompts asking where to
mount things.   The file systems are started early in main
(init_main.c), but they appear not to be used till start_init
(init_main.c).   

 

Is it possible to move all the file system startup code to a point after
the device drivers are setup and interrupts enabled, or would this break
a fundamental operating assumption for NetBSD?   

 

Thx,

kyle


------=_NextPart_000_000E_01C2B098.8BACF240
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Comic Sans MS";
	panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:"Comic Sans MS";
	color:blue;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>We =
have NetBSD
1.5.2 running on an embedded system with a RAM disk.&nbsp; We gzip the =
ramdisk
in flash then gunzip it to ram.&nbsp; The issue is that the embedded =
system
needs to get to a state quickly to service interrupts etc. and the =
gunzip is a
lengthy process.&nbsp; We want to move the gunzip to the point after all =
the
devices are initialized and interrupts are enabled. I have tried moving =
it but
I get the prompts asking where to mount things. &nbsp;&nbsp;The file =
systems
are started early in main (init_main.c), but they appear not to be used =
till start_init
(init_main.c).&nbsp;&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>Is it =
possible
to move all the file system startup code to a point after the device =
drivers
are setup and interrupts enabled, or would this break a fundamental =
operating
assumption for NetBSD?&nbsp;&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>Thx,</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>kyle</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_000E_01C2B098.8BACF240--