Rolling your own linux
Rolling your own linux
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
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...
ok
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
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,
Ill be sure to get back on this,
This was supposed to be a cool signature...
your welcome
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
- crazygray1
- Member
- Posts: 168
- Joined: Thu Nov 22, 2007 7:18 pm
- Location: USA,Hawaii,Honolulu(Seriously)
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.
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...
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.
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.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Creating ur Linux distro ..
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!!
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!!
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Yes its using prebuilt binaries
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 .....
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 .....
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.
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.