LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2008, 03:22 AM   #1
dynalogproject
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
deployment of linux system on compact flash


I am working on an embedded linux project which requires me to deploy a kernel image onto a compact flash.. i have come to the part where i have the image,bootloader,filesystem and busybox ready with the required init script...

what i want help with is the actual deployment of all of these onto the compact flash,., its been decided that there are going to be 3 partitions.. first for the image,bootloader,busybox and script.. second for the file system.. and the third available for the user as a workspace..

can someone please help me with the procedure to deploy the whole thing onto the flash.. its a 128 MB compact flash...

thanks in advance..
 
Old 03-06-2008, 09:15 PM   #2
rosspy
Member
 
Registered: Feb 2008
Distribution: debian
Posts: 45

Rep: Reputation: 15
Maybe you can find the information you need at :

 
Old 03-06-2008, 09:21 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
So you are going to use a partition on the card as the root filesystem, rather than using an initrd and running from RAM? It should be noted that mounting flash as a root filesystem is discouraged, as flash does not handle as many repetitive write cycles as magnetic media. You might want to reconsider that approach as you move forward with the project.

As for the boot partition, the easiest way would be to use syslinux to boot the kernel from a FAT32 partition. You can then point the kernel at either your initrd or root partition.

Once your card is built and working properly, you can simply image the entire thing with dd and then use that to write more of them (I am assuming you want to duplicate this configuration for multiple devices).
 
Old 03-10-2008, 11:38 AM   #4
dynalogproject
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you Rosspy and MS3FGX..your help is appreciated..
 
Old 03-10-2008, 11:45 AM   #5
dynalogproject
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Can dd be directly used to image the bootloader,initscript and the kernel onto a flash card??
 
Old 03-10-2008, 12:45 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
dd copies a device bit for bit, regardless of what is actually on it. So when you make an image of a card and write it to a new one, it will be a 100% accurate copy, regardless of whatever the actual files or partitions are.
 
Old 03-13-2008, 11:14 AM   #7
dynalogproject
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you very much..
 
  


Reply


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
linux on Compact Flash swatisameerp Linux - Hardware 3 04-05-2006 08:30 AM
xilinx system ace driver for compact flash on a fpga based pci card doesnt work urwithsudheer Programming 0 03-22-2006 03:28 AM
pcmcia compact flash reader file system errors drmcc Linux - Hardware 0 01-30-2006 12:33 AM
Linux on a Compact Flash ducksew Linux - General 7 11-23-2004 04:40 PM
linux on compact flash tomank Linux - General 3 04-26-2004 04:08 PM


All times are GMT -5. The time now is 12:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration