You are not logged in.

#1 2010-08-25 21:25:08

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

build very minimal system with arch/ABS

I've gotten one of my "brilliant" ideas again. Something that I just need to checkout.

Would it be possible to make a mini system with only a kernel and a command line? And nothing else?

I made some tests with just booting the kernel and initrd from a virtual machine. I'm of course dropped in a shell with an error that /sbin/init can not be found.
But could I expand on this?

What I would try to do is make it boot directly to bash instead of /sbin/init. But I am unsure how to get started.
I was thinking about compiling the needed files with static libraries.

Can I use ABS for this? Or do I need to use LFS for something like this?
I am working on a 64bit architecture. Can I tell ABS to make it usable on i686?


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#2 2010-08-25 21:31:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: build very minimal system with arch/ABS

Alternatively you can check
http://minimalinux.org/ttylinux/ - ramdisk instead of initrd
http://tinycorelinux.com/ - small and smaller (microcore)

Offline

#3 2010-08-25 21:33:07

xc1024
Member
Registered: 2009-11-10
Posts: 51

Re: build very minimal system with arch/ABS

LFS is really just a how-to with bells and whistles for making a basic system. And yes, I think it would be a good place to start.

Command line is just a shell. It has some built-in commands but overall is useless by itself. You would need to compile and include some good stuff to make it useful. Stuff like nano, links, top, et cetera.

Offline

#4 2010-08-25 21:38:38

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: build very minimal system with arch/ABS

Another good source of informations for small systems is K. Mandla's Blog


To know or not to know ...
... the questions remain forever.

Offline

#5 2010-08-25 21:52:31

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: build very minimal system with arch/ABS

Will check them out. Thanks.


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#6 2010-08-25 21:57:34

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: build very minimal system with arch/ABS

xc1024 wrote:

LFS is really just a how-to with bells and whistles for making a basic system. And yes, I think it would be a good place to start.

Command line is just a shell. It has some built-in commands but overall is useless by itself. You would need to compile and include some good stuff to make it useful. Stuff like nano, links, top, et cetera.

That is correct, but your examples are quite "high level".  First things like rm, mv, cp, ls are needed, i.e. the package "coreutils" or equivalents.

Offline

#7 2010-08-25 22:08:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: build very minimal system with arch/ABS

ttylinux can be "remastered" with their build system http://minimalinux.org/ttylinux/source.html
I'm not sure if those add-ons work w/ current versions, but you can give it a shot http://devel.zzl.org/ttyl/8/

Offline

Board footer

Powered by FluxBB