LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-05-2007, 03:16 AM   #1
nareshn.87
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
merging kernel and root fs into one image


hey,
I am using an ARM mup with a montavista distro with the kernel and rfs on a compact flash. The kernel accesses the rfs from the flash each time which slows down boot up and operation. Can u please tell me how to combine the kernel and rfs into one image so that the rfs is always residing in memory and hence working faster?..
thanks..
naresh
 
Old 06-05-2007, 07:46 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Are you saying that the system is actually installed to the CF, or that the CF card is holding the kernel and initrd file?

I think what you want to be doing is using an initrd file on the card, but it sounds like you have the system just installed directly onto a partition of the card. Is that correct?
 
Old 06-05-2007, 08:36 AM   #3
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
What you're looking for is pretty common with some livecds or pendrive installations......

The general procedure is to have a kernel with enough drivers built in and/or have modules on an initial ramdisk (initrd) which is loaded in memory, along with the kernel, for the bootup process.......At the end of the boot process, the kernel looks for a file, usually called linuxrc, which then has instructions to replace the initrd with a compressed root filesystem..........The root filesystem can be loaded in memory, but it depends on the instructions contained in linuxrc on how this is accomplished.......There are a few different ways to accomplish this......This works well with embedded systems, of which quite a few use an ARM architecture, among others......

Here's a Wikipedia page explaining about initrd, and the boot up process.....This should give you an introduction, to start with.....

HTH
---thegeekster
 
Old 06-06-2007, 01:56 AM   #4
nareshn.87
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MS3FGX
Are you saying that the system is actually installed to the CF, or that the CF card is holding the kernel and initrd file?
hey..i don get what u mean by installed to the cf?..i mean jus present as two images for initrd and the kernel on the flash..
 
Old 06-06-2007, 02:01 AM   #5
nareshn.87
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by thegeekster
The general procedure is to have a kernel with enough drivers built in and/or have modules on an initial ramdisk (initrd) which is loaded in memory, along with the kernel, for the bootup process.......At the end of the boot process, the kernel looks for a file, usually called linuxrc, which then has instructions to replace the initrd with a compressed root filesystem..........The root filesystem can be loaded in memory, but it depends on the instructions contained in linuxrc on how this is accomplished.......There are a few different ways to accomplish this......This works well with embedded systems, of which quite a few use an ARM architecture, among others......

---thegeekster
hey..thank god i finally found someone who knows what i'm talkin about..i've tried looking everywhere but everyone just seems to mention that it is 'possible' to load the root file system into memory by merging the kernel and the rfs into one image so that the rfs always resides in memory. How exactly is this done?..i need info both on how to load the rfs onto memory ( which im guessing is by modifying the linuxrc file) and how to combine the kernel and the initial rfs into one image..
It'll be great if u could help me!!
thanks a lot
naresh
 
  


Reply



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
kernel image 2.6.16: /root/proc failed xucaen Debian 1 10-09-2006 12:24 PM
difference netween linux-image and kernel image? mariogarcia Linux - Software 2 06-19-2006 08:01 AM
Merging driver w/ kernel question Palamides Slackware 4 05-20-2005 03:02 AM
After compiling Kernel 2.6.7 when I boot the image it sez it cannot mount root fs gibiman Linux - Software 2 08-07-2004 06:23 AM
Merging empty hard drive with root partion on ext3? crayolarx Linux - General 11 03-06-2004 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:25 PM.

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