linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Can I run Linux without a file system?
@ 2002-06-21 19:22 Hihn Jason
  2002-06-21 19:35 ` Tim Lai
  0 siblings, 1 reply; 6+ messages in thread
From: Hihn Jason @ 2002-06-21 19:22 UTC (permalink / raw)
  To: 'Tim Lai', linuxppc-embedded


There are people here who can help you more than I, but I'll take a gander.
This is what I believe to be correct:
Yes. You will always have SOME kind of filesystem. But this begs another
question. How much do you know about Linux, and what are you really asking?
The /proc filesystem is not really on any disk, just like /dev (I think)
isn't on any disk, though they look like to us users that they are
filesystems.

If you want to run a program, where will it come from? There are filesystems
made for RAM, like cramfs or ramdisks, or flash filesystems complete with
wear-leveling. Maybe you can just jump to an offset and start executing code
if all you have is just a kernel and a program. If that is the case then
maybe you'll have to call your program 'init' or change the source of the
kernel to invoke your program.

Does this help?

I reserve the right to be wrong.


-----Original Message-----
From: Tim Lai [mailto:laitingwai@yahoo.com]
Sent: Friday, June 21, 2002 11:09 AM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Can I run linux without a file system?



I am porting linux on a custom board.
I am using the bootrom to load vmlinux onto
RAM, and I am in the middle of getting the console/
serial driver to work.
All the documents I read have refer the console as
/dev/ttyS, and state that to communicate to the
console, I have to set it up with open("/dev/ttyS").

Does that means I have to have some sort of file
system in linux?

Thanks.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Can I run linux without a file system?
@ 2002-06-21 19:42 Tim Lai
  2002-06-21 19:59 ` Re[2]: " Ricardo Scop
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Lai @ 2002-06-21 19:42 UTC (permalink / raw)
  To: linuxppc-embedded


I am interested in both input/output operation
on the console. If I just set CONFIG_SERIAL_CONSOLE,
will I be able read input from the console?
The main application will be started from init(),
and the application will need to read and write
to the console. Are there are method to communicate
to the serial port other than open("/dev/ttyS0")?


>
> You don't need a filesystem to get output on the
> serial console
> you just need to enable the console with
> CONFIG_SERIAL_CONSOLE=y
> in your kernel configuration (atleast for mpc860
> that all)
> but you will have a hard time producing much more
> than a blinking
> cursor if you boot a Linux kernel and have no
> application that
> it then can run on the root-filesystem - what would
> be the point
> of such a setup - 1MB kernel code for a blinking
> cursor on a
> serial port seems expensive.
>
> hofrat


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-21 20:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-21 19:22 Can I run Linux without a file system? Hihn Jason
2002-06-21 19:35 ` Tim Lai
2002-06-21 19:46   ` Re[2]: " Ricardo Scop
2002-06-21 19:50   ` Dan Malek
2002-06-21 20:18     ` Tim Lai
  -- strict thread matches above, loose matches on Subject: below --
2002-06-21 19:42 Can I run linux " Tim Lai
2002-06-21 19:59 ` Re[2]: " Ricardo Scop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).