Rolling your own linux

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Rolling your own linux

Post by Zacariaz »

Well, i never really got into that osdev thingy, but ill try again at some point, but for now i'm more into linux, how it works and stuff.

I have been looking into what it takes to tailor you own kernel and core enviroment and it seems that, given enough time, even i can do it. However i have yet to figure out "where to start".

I'm sure many of you have played around with this and there for i ask your advice.

"Why?" You ask? Well, i bet it's a great way to learn, so i'll take a wack at it, but for now i have trouble even figuring out what to google for.

Anyway, thanks at least for reading this ;)
This was supposed to be a cool signature...
com1
Member
Member
Posts: 105
Joined: Sat Apr 28, 2007 11:57 am
Location: TN

ok

Post by com1 »

ok so i am thinking that you are wanting to 'roll your own linux' just as you stated in your title. have you checked out LFS (Linux From Scratch) ? they have great resources for people wanting to learn about Linux internals, and if you follow the tutorial correctly, you end up with a Linux OS you made yourself. also, there are some online docs that you can find on the Linux website that describe Linux internals. if you are looking for in depth studying, may i recommend 'The Linux Kernel' (cant remember author hehe), i believe it is published by O'Reilly publishers. have fun.
oh microsoft, microsoft, what souls you have dismayed
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

i actually had visited the lfs homepage, but i didnt really find any usefull information, however after i visited it again i figured out that it was just me being blind and confused over the navigation or something, anyway thanks.

Ill be sure to get back on this,
This was supposed to be a cool signature...
com1
Member
Member
Posts: 105
Joined: Sat Apr 28, 2007 11:57 am
Location: TN

your welcome

Post by com1 »

your welcome, good luck! i once tried LFS once on my Ubuntu box and actually got pretty far w/it
oh microsoft, microsoft, what souls you have dismayed
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

don't mean to sound at all rude, but with 500+ posts and you dont get osdev??

do i not understand?
~ Lukem95 [ Cake ]
Release: 0.08b
Image
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

I think he means he didn't get really interested in in. :)
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

lukem_95 wrote:don't mean to sound at all rude, but with 500+ posts and you dont get osdev??

do i not understand?
This is not a strictly osdev related forum.

IIRC, most of his posts are in General Programming anyway.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

Oh im interested allright, but i think i lag some skill in certain areas and i might not be dedicated enough.

And its true, most of my posts are is generel ramblings, i hope you dont mind, but this is a really great forum and i'd rather ask my questions here where im sure to get a useable answer.
This was supposed to be a cool signature...
User avatar
binutils
Member
Member
Posts: 214
Joined: Thu Apr 05, 2007 6:07 am

Post by binutils »

wayttd?

i mean if you are good at c programming, try to see the kernel source code, and sources of base system utilities listed in lfs, for example, binutils, coreutils, findutils, grep, m4, bison, flex, grub etc.

else if you just want familiar with user-level linux base, just use it as your daily os, for example, web surfing, installing software, etc.

--
PS: use perl.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Creating ur Linux distro ..

Post by DeletedAccount »

Hi ,
May be i can help you with creating your own linux distro ... The easiest way is to use busybox and UCLibc to build your own linux ... Compiling from sources is very frustrtating and takes a looong time ... The first thing you need is an empty partition preferablly formatted in ext fs ...
fdisk or cfdisk (whatever to create a partition);
the mke2fs part_name

now download the roofsxxxxx.ext2 from the uClibc , busbox ... extract this into the partition you just created ... and mount it ..
eg mount /dev/hdaxx my_directory
and then do a chroot
eg chroot my_directory ...
copy a recent version of linux kernel into the partion ..compile it and install lilo or grub for loading it ... you should now make modifications to essential files like fstab initab etc .. see how it is done in your host linux system ...
now compile and install the apps you really need ...Now you are done!!
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

That's not creating your own linux, it's using a prebuilt set of binaries and libraries and building your own kernel. Plus, you still have to build from source to get apps you need, and if you want to, say, use it as a desktop OS, uClibc really isn't suitable. You'd be far better off with LFS, IMO.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Yes its using prebuilt binaries

Post by DeletedAccount »

Yes ,
You are correct ... But nothing is to be gained by building everything from scratch ( i have done this and wasted a lot of time .... ) There is no point in wasting a lot of time for this ... time i think is better spent in modifying an existing system like knoppix or debian ... This saves a lot of time and effort :) If you are that particular .. you can build uClibc and gcc toolchain etc from the source itself ... I just somehow assumed that original creator of the thread just wanted to create a simple linux distro for his purpose ..... LFS is good if you have lot of time and patience .....
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

Yes, well LFS is way better to learn from - the book is great at explaining how each individual part of a Linux system works, and how they link together. I learned a lot the first time I built LFS (wow, LFS 3.0... long time ago ;) ).
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

I dont want to create a simple linux dist i want to create the PERFECT ONE! MUHAHAHA.

Anyway, its all about learning how things work.
This was supposed to be a cool signature...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Nope... making a distro (as in "distributing to others") is about having the know-how, manpower, and infrastructure to keep up with "upstream".

A new version of package X is released, fixing - among others - a critical security bug. You have to make this new package available to your users, but it breaks compatibility with package Y, so you have to make an update to that available too - if it exists yet, and if you catch the problem before you release the X update.

Otherwise, your users will have to figure out themselves, and won't be pleased with that.

Check out http://bugs.gentoo.org to see the amount of headaches this can result in - and I consider the Gentoo package handling / maintaining system to be the best in the field.
Every good solution is obvious once you've found it.
Post Reply