Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-16-2010, 11:40 PM   #1
LQ Newbie
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Question Deploying packages during kernel image build process

Good day, citizens.

Development Distro(s): Debian 5.0 Lenny, Ubuntu Lucid 10.4
Target kernel: 2.6.3x
Kernel build methods:

Debian: command line using make method directives

Ubuntu: Ubuntu Customization Kit

I am attempting to construct a customized 2.6.3x kernel image using kernel source obtained from the repository. At the time of image construction, I would also like to deploy several apps / utilities available in the format of .deb packages. In this way, when the initial image installation is performed, these app / utility packages will simultaneously be installed.

Using the Ubuntu Customization Kit, this is achievable as there is a break in the build process that allows packages to be added / removed / upgraded on the fly. Actually, I believe that UCK performs this package survey before the image construction actually starts. Unfortunately, this approach is not efficient because regardless of how many "packages" are removed, the size of the image is still uncontrolled due to other excessive overhead (drivers, object files, unwanted system directives, etc) being passed into the new image....

On the other hand, when using command line build utilities (build-essential tools) I can scale the kernel image according to my specific need - which is very helpful when building for embedded applications. Using this method also allows me to build the kernel modules per the .config file being referenced for the build. Unfortunately, in this case I do not see a means to simultaneously deploy any additional .deb packages that I want installed in my new kernel.

For example: I would like to create an embedded so-called RTOS environment using the available RTAI package. One of the constraints of my system is the capacity of the primary storage flash ROM where my OS will reside - 64MB. As such, I want to stip out all unneeded resources / references from my kernel. Additionally, I do not want end users to have to manually deploy any packages after boot.

I have an idea how to do this, but am unsure with the exact implementation. My thoughts....

1. extract kernel soruce to build directory
2. create filesystem (?)
3. chroot to filesystem root (?)
4. use package manager (dpkg, apt-get, aptitude, etc) to download and install package on chroot'd filesystem
5. exit chroot
6. use build tools to build new kernel image.

Any help on this would be much appreciated. Thanks in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Last 10% of uImage content is changing each time i build kernel image santa001 Linux - Newbie 2 10-20-2008 07:08 AM
Unable to build the NVIDIA kernel module(linux-image-2.6.21-2-686) Mathsniper Debian 5 08-04-2007 02:53 AM
image file of Debian 3.0 Woody base build on kernel 2.6 harlemno1 Linux - Software 1 03-09-2005 04:37 PM
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
kernel build process on SuSE 9 questions. Pcghost Linux - Distributions 9 12-05-2003 04:49 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration