LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   about toolchain (https://www.linuxquestions.org/questions/linux-kernel-70/about-toolchain-520503/)

nesta 01-18-2007 08:44 AM

about toolchain
 
hi folks
i really want to know want to know what is the toolchain and why it is used for what?
also the use of :
image
busybox
boatloader


just want to know the use of each one.

thanks in advance.

gilead 01-19-2007 06:43 PM

I won't pretend to be an expert, but the toolchain is the compiler, assembler, linker, libraries, and utilities that form the core of your system. If you want to know how a Linux system is constructed, have a read through (and try) Linux From Scratch. Chapter 5 talks about the contents of the toolchain.

sundialsvcs 01-22-2007 10:11 AM

That's not quite right, but very close.

When you are building a new system, you are creating what must be a self-contained and completely independent software environment. You are doing so under the auspices of an existing, running system, but when you are finished, the result must have no ties whatsoever to that system. Furthermore, you must ensure that, once the new system is built and components are built under it, those new components will have been built in exactly the same environment as those which were not. "The bootstrap must fit the boot," so to speak.

So, the toolchain is the set of tools that is built under the old system to be used in building the new one. The toolchain is built and then the chroot command is used to enter an environment in which nothing but the toolchain exists. Within this environment you build the final kernel, libraries, compilers and so-on.

Image, busybox, and so-on are basic tools, so-called "core tools," that are used in any Linux environment and without which the system cannot be used. They are built by and as part of the toolchain.

Linux from scratch is indeed the best exercise to go through to really see this for yourself.

gilead 01-22-2007 01:12 PM

Thanks for clarifying that sundialsvcs...

Nishant Desai 01-23-2007 05:30 AM

Quote:

Originally Posted by sundialsvcs
That's not quite right, but very close.

When you are building a new system, you are creating what must be a self-contained and completely independent software environment. You are doing so under the auspices of an existing, running system, but when you are finished, the result must have no ties whatsoever to that system. Furthermore, you must ensure that, once the new system is built and components are built under it, those new components will have been built in exactly the same environment as those which were not. "The bootstrap must fit the boot," so to speak.

So, the toolchain is the set of tools that is built under the old system to be used in building the new one. The toolchain is built and then the chroot command is used to enter an environment in which nothing but the toolchain exists. Within this environment you build the final kernel, libraries, compilers and so-on.

Image, busybox, and so-on are basic tools, so-called "core tools," that are used in any Linux environment and without which the system cannot be used. They are built by and as part of the toolchain.

Linux from scratch is indeed the best exercise to go through to really see this for yourself.

Hii, sundialsvcs,

I want to know that what is the Busybox utility? wats the use of it? pls tell me i am eager to know that from the times... but couldnt find any description about it? is it a toolchain kind of utility?

Thanks,
Nishant


All times are GMT -5. The time now is 05:41 AM.