Build an Embedded Linux System in Few Steps
by mdipaolo in Circuits > Linux
14362 Views, 23 Favorites, 0 Comments
Build an Embedded Linux System in Few Steps
Once you have gone through the process of deliberating over which Linux distribution to use, what hardware etc. and decided on the things and tools that you need, comes the next step – actually building the Embedded Linux system. Again, there is a lot of similarity between a traditional Linux and an Embedded Linux system. These are pretty much the things that are absolutely necessary for any operating system (boot-loader, kernel, file system). For day to day functioning other things such as a shell, libraries etc. will also be necessary. We look at this process step by step:
Boot-loader
It is not necessary to have a boot-loader installed, but it is always a good idea to have one as it enables you to have flexibility. You may re-build your kernel, and may need to switch between the different versions of the kernel and a boot-loader will help you do so.
File System
Before installing a Linux Kernel it is necessary to have space where the Linux kernel (and the rest of the Linux system) can reside. Building a file system consists first of partitioning the hard disk according to your requirements and then populating the file system.
Kernel
The task of the kernel is to run a hardware check and then mount the /root directory. The init process is executed from the /root partition and it is the parent process which then loads the rest of the Linux system. To install the kernel therefore it is necessary to install the init process (an executable file on disk) and inittab, a file which links to other files that are necessary for setting up the system
Login Module
Once the main pieces of the Linux OS have been installed it’s a good idea to install a Login module that will allow you to administer who gets to use the system.
Shell and Libraries
A shell makes it easy for you or someone else who is the typical user for the system to communicate with the OS, and get useful work done. Finally, you need to install all the libraries that you are likely to need. When installing a compiler you may get a set of libraries bundled with it. Nevertheless, because of space constraints you need to pick and choose what you actually need. Part of this decision making needs to have already been done during the planning, and deciding the dependencies stag
Additional Packages
Now you have everything that is necessary to maintain and operate the Embedded Linux system. If space permits, it makes sense to install additional packages and utilities that you may need (networking, backing-up utilities etc.). If you are not planning on rebuilding your Kernel then it may make sense to delete things that you don’t need, but beware of those dependencies before you do so. A full documentation on the following link: http://dev.emcelettronica.com/build-an-embedded-linux-system-in-8-steps