Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760848AbZANIr1 (ORCPT ); Wed, 14 Jan 2009 03:47:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755437AbZANIrP (ORCPT ); Wed, 14 Jan 2009 03:47:15 -0500 Received: from mx03.syneticon.net ([78.111.66.105]:47855 "EHLO mx03.syneticon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753711AbZANIrP (ORCPT ); Wed, 14 Jan 2009 03:47:15 -0500 Message-ID: <496DA678.1090701@wpkg.org> Date: Wed, 14 Jan 2009 09:46:48 +0100 From: Tomasz Chmielewski User-Agent: Thunderbird 2.0.0.18 (X11/20081120) MIME-Version: 1.0 To: LKML , phdm@macqel.be Subject: Re: linux kernel without file system Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 25 > I need to design a very small embedded system that must only control > one ethernet port and two serial lines and must fit in a very small flash > memory. So I thought about replacing the call to /etc/init by my application > program and removing all the file-system part of linux. > > Is that doable ? > > Is there a 'standard' way of doing that ? > > The first problem I see is accessing my serial lines. How could I do that > without using open("/dev/ttySx"), which requires a file system ? > > Is there a way to access devices that does not require a file-system ? You could put everything in initramfs (and embed it in the kernel). -- Tomasz Chmielewski http://wpkg.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/