LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-26-2017, 01:39 AM   #1
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Rep: Reputation: Disabled
Finding an opensource GNU Unix kernel to install from scratch for low memory systems?


Hello,

Quote:
"Here I start really from zero operating system. Hopefully opensource kernels and source will give me light."
First, I am glad to post. I am look for an opensource Unix kernel for low memory systems.

Linux is too large to compile. FreeBSD, Netbsd, Openbsd are not intended for scratch. GNU Hurd is not for me. FreeDOS, no no. Secondly, I would like to find a kernel which is not LINUX, which is not Netbsd, not Openbsd, and not FreeBSD.

I would like to install it directly from scratch, using a small C compiler. I would like to unroll it only from source. I don't want Linux, but something else, if the kernel is small, reliable and opensource. In other words, the kernel shall be C programmed, available in a tarball, and it shall be GNU.

I would be happy to boot for instance an SD, USB-pendrive,... get a small system, and to run a compiler to compile GRUB (512 bytes) boot, the holy kernel, the binaries, and to compile the small shell interpreter.

Would you know such a dreamt kernel or Unix system?

Thank you for your help !

Last edited by bsdrootkit; 12-26-2017 at 01:45 AM.
 
Old 12-26-2017, 02:21 AM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
You seem to be confusing some things in your post. You want "an opensource Unix kernel" but say "Linux is too large to compile" In what sense is it "too large"?

You also say "the kernel shall be C programmed, available in a tarball, and it shall be GNU" after having just said "GNU Hurd is not for me."

GNU Hurd is about your best option if you are opposed to linux.
 
Old 12-26-2017, 03:40 AM   #3
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TheEzekielProject View Post
You seem to be confusing some things in your post. You want "an opensource Unix kernel" but say "Linux is too large to compile" In what sense is it "too large"?

You also say "the kernel shall be C programmed, available in a tarball, and it shall be GNU" after having just said "GNU Hurd is not for me."

GNU Hurd is about your best option if you are opposed to linux.
The Linux kernel takes too long to compile (meaning of too large). I would dream if it could take few minutes only (<2-3 min) to be compiled.

FreeBSD takes at least 1GB of space.
Without X: 1.1G disk, 64M RAM, Pentium II or newer.
With X: 6G disk, 256M RAM, Pentium II or newer.
With X plus hungry desktop environment: 12G disk, 512M RAM, Pentium 4 or newer.
I would have a dream to have a minimum installation using less than 300Mb (kernel + unix directories + init + SH/CSH shell).

Sorry my mistake concerning GNU. I meant that I want Opensource. I meant that I would like Opensource /Free /... i.e. with source code of kernel which would be freely available (public license).

Low memory systems: about 500M or less if possible.
Low harddisk space : 4 GB only (max) !!

Last edited by bsdrootkit; 12-26-2017 at 06:31 AM.
 
Old 12-26-2017, 04:08 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Linux can be compiled for much smaller image than you have in your desktop. It requires configuring the kernel to fit your system/needs. This is routinely done on ARM and other embedded platforms. 500MB of memory and 4GB is a standard ARM embedded system. You can look at the Yocto project to have a way to compile a configurable Linux distro for your platform.
 
Old 12-26-2017, 04:19 AM   #5
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mara View Post
Linux can be compiled for much smaller image than you have in your desktop. It requires configuring the kernel to fit your system/needs. This is routinely done on ARM and other embedded platforms. 500MB of memory and 4GB is a standard ARM embedded system. You can look at the Yocto project to have a way to compile a configurable Linux distro for your platform.
The kernel of Linux takes too much time to compile. I would like to find a small portable kernel (UNIX-like).
 
Old 12-26-2017, 04:30 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
you need to configure your kernel before build and you can exclude every piece (driver) you do not need. portable means it will "almost" work everywhere, so will contain "almost" everything imaginable.
If you want to speed up the build process you need to optimize it for your own system.
 
Old 12-26-2017, 04:32 AM   #7
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you need to configure your kernel before build and you can exclude every piece (driver) you do not need. portable means it will "almost" work everywhere, so will contain "almost" everything imaginable.
If you want to speed up the build process you need to optimize it for your own system.
I am not so much interested by Linux kernel, because of numerous reasons. Alternative to Linux would be perfect.
 
Old 12-26-2017, 05:09 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
maybe you want to look at micro OSs like kolibri, minix...
 
Old 12-26-2017, 06:17 AM   #9
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
maybe you want to look at micro OSs like kolibri, minix...
Thank you. I had a look.

- Kolibri isn't that much Unix like (architectures?).
- Minix looks to me a sort of Linux system, with X11, startx,...

Further, I looked at :
- RISC OS (Cambridge origin), good for ARM, Beagle...
- HAIKU OS (BeOS Origin), excellent for desktop, but it does only support x86-32.

... scanning OSes foss in progress...
 
Old 12-26-2017, 08:01 AM   #10
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Linux kernel has a variable build time and size, check out tiny core, you can get it as small as 10mb or 16mb for gui version. http://tinycorelinux.net
Quote:
The Core Project is a highly modular based system with community build extensions.
It starts with a recent Linux kernel, vmlinuz, and our root filesystem and start-up scripts packaged with a basic set of kernel modules in core.gz. Core (11MB) is simply the kernel + core.gz - this is the foundation for user created desktops, servers, or appliances. TinyCore is Core + Xvesa.tcz + Xprogs.tcz + aterm.tcz + fltk-1.3.tcz + flwm.tcz + wbar.tcz
TinyCore becomes simply an example of what the Core Project can produce, an 16MB FLTK/FLWM desktop.
CorePlus ofers a simple way to get started using the Core philosophy with its included community packaged extensions enabling easy embedded frugal or pendrive installation of the user's choice of supported desktop, while maintaining the Core principal of mounted extensions with full package management.
It is not a complete desktop nor is all hardware completely supported. It represents only the core needed to boot into a very minimal X desktop typically with wired internet access.
The user has complete control over which applications and/or additional hardware to have supported, be it for a desktop, a netbook, an appliance, or server, selectable by the user by installing additional applications from online repositories, or easily compiling most anything you desire using tools provided.

However you seem set against Linux so check out these... And please announce your release when you get done

https://www.google.com/search?client...YIQ1QJ6BAgNEAI
 
Old 12-26-2017, 08:08 AM   #11
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
And haiku does support x86 64!
Quote:
Haiku 64-bit (Modern, Fast)
Architecture: x86_64
BeOS Binary Compatibility: No
Compiler: gcc 5.4.0
Download: nightly images
Also check out Plan9 a cool Unix clone https://plan9.io/plan9/

Last edited by Mill J; 12-26-2017 at 08:10 AM.
 
Old 12-26-2017, 08:20 AM   #12
bsdrootkit
LQ Newbie
 
Registered: Dec 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
Linux kernel has a variable build time and size, check out tiny core, you can get it as small as 10mb or 16mb for gui version. http://tinycorelinux.net



However you seem set against Linux so check out these... And please announce your release when you get done

https://www.google.com/search?client...YIQ1QJ6BAgNEAI
To build own kernel is likely not necessary since there are already many opensource OSes.

Linux is not my favorite OS. Sorry. TinyCore Linux is not intended to be built from scratch. Besides, it is Linux. Haiku is mostly for x86. Haiku is not yet mature enough for various architectures: MIPS, m86k, ARM, ...
 
Old 12-26-2017, 09:31 AM   #13
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
So plan9?
 
Old 12-26-2017, 10:57 PM   #14
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
You keep referring to linux as if it is an Operating System. Linux IS NOT an Operating System, it is ONLY A KERNEL. The Operating System of most any "Linux" distro is, GNU with Linux as the kernel
 
Old 12-27-2017, 12:31 AM   #15
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by bsdrootkit View Post
To build own kernel is likely not necessary since there are already many opensource OSes.

Linux is not my favorite OS. Sorry. TinyCore Linux is not intended to be built from scratch. Besides, it is Linux. Haiku is mostly for x86. Haiku is not yet mature enough for various architectures: MIPS, m86k, ARM, ...


You keep asking for things and shooting down solutions.

"To build own kernel is likely not necessary" when specifically asking the ability "to install it directly from scratch, using a small C compiler. I would like to unroll it only from source." is entirely contradictory and makes no sense whatsoever.

You also say "The kernel of Linux takes too much time to compile" when there are entire "linux" distros under 10mb! Unless you are including every possible driver and compiling on a very resource limited system, your claim makes no sense!

The statement "Haiku is not yet mature enough for various architectures: MIPS, m86k, ARM, ..." is irrelevant. (BTW, HAIKU supports IA-32, ARM, and x86-64) If it supports your architecture, that's all you need! The ability to support architectures you're not running benefits you in no way whatsoever!

So, that being said, what is your opposition to linux?

Last edited by TheEzekielProject; 12-27-2017 at 12:39 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The best tools and techniques for finding data on Unix systems LXer Syndicated Linux News 0 07-08-2015 11:15 PM
What about Debian Testing with KERNEL-LOW-MEMORY in the repos? frenchn00b Debian 7 08-10-2010 02:28 AM
LXer: Cool Command Line Apps for GNU/Linux and other Unix Systems LXer Syndicated Linux News 0 11-29-2008 10:50 AM
format large disk when kernel memory is low emilio68 Programming 2 11-15-2006 09:24 AM
install suse 8.1 with low memory alaios Linux - General 3 04-19-2003 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration