Am I in the right direction for a linux os?

listed in answer

Am I in the right direction for a linux os?
0 votes, 0.00 avg. rating (0% score)

ANSWER:

Did I do something wrong?

Doesn’t look like it. Compiling a recent kernel is very resource-consuming. If your CPU isn’t recent, and you don’t have a lot of RAM, it can take very long.
Make sure you only select the modules/features you actually need, and if you have a multi-core/thread machine with a bit of RAM, use the -jX option to make so that it can run the build in parallel. e.g.

make -j4

will use four cores for most of the build.

What will the output be?

It will be a compressed kernel image. It is not an ELF file, nor really an executable in the ordinary sense. It is in a format appropriate for your platform’s bootloader to handle.

What should I do next?

Depends on what you’re up to… (See here for a simple HOWTO to install the modules and the kernel image, assuming you’re using Grub. There are plenty of other ones available with a quick search, and you’re better off looking in your current distribution’s documentation if you plan on actually running a mainstream distribution with your new kernel – there are feature requirements, and potentially initrd specificities that need to be taken into account.)

[My goal is to build my own OS]

I’m afraid you’re very far from that. Building an OS is a very, very complex task – and getting the kernel to build is one of the very easy parts.

I’d suggest you head over to Linux From Scratch and read current stable “book”. Also look on distrowatch, and search the “Source-based” category of distributions, some might be of interest to you.

by Mat from http://unix.stackexchange.com/questions/35391