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-23-2008, 08:16 AM   #1
sepultureno666
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
Linux on compact flash


hey guys... I am trying to install linux onto a compact flash card of 128 MB and try and get an embedded system to boot from it..

I used the following link for the same:

http://julian.coccia.com/article-37.html

As you can see, the bootloader used here is grub. While booting the compact flash,i get the following page with errors:
========================
Making device-mapper control node
scanning logical volumes
reading all physical volumes.This may take a while......
foung volume group "VolGroup00" using metadata type lvm2
Activating logical volumes
2 logical volumes in volume group "VolGroup00" now active
Trying to resume from /dev/VolGroup00/LogVol01
No suspend signature on swap, not resuming
Creating root device
Mounting root filesystem
Cant find ext3 filesystem on /dev/sdb1
mount:Error mounting /dev/root on /sysroot as ext3:Invalid argument
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
No fstab.sys, mounting internal defaults
setuproot: error mounting /proc: no such file or directory
setuproot: error mounting /sys: no such file or directory
switching to new root and running init
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: no such file or directory
Booting has failed
kernel Panic-not syncing:Attempted to kill init!!

=========================

i used the following grub.conf file :
========
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Dyna-linux
root (hd0,0)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 rw root=/dev/sda1 init=/bin/sh
initrd /boot/initrd-2.6.21-1.3194.fc7.img

========

Since this did not work, i tried using other bootloaders like syslinux and lilo too.. one of the references we used is

http://www.linfire.net/Build.html

Using this method, the system does not even boot. The booting process stalls with the cursor blinking on the screen without any other messages.
====
Please correct me if i am going wrong with the procedure or if any other modifications need to be done or if any other procedure is to be followed altogether.

Any help will be greatle appreciated. Thank you in advance
 
Old 03-23-2008, 08:26 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The problem is your initrd file, it contains instructions that are used to boot a fedora system which are not suited to booting an embedded system.

Remove the initrd line from your grub configuration
 
Old 03-24-2008, 01:16 PM   #3
sepultureno666
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
No success yet

Thank you for replying promptly...as you said initrd of the system might not work for an embedded system, i tried booting without the initrd.img file...here is what i got:

VFS:Cannot open root device "sdb1" or unknown block(0,0)
Please append a correct "root=" boot option
Kernel panic-not syncing:VFS:Unable to mount rootfs on unknownblock (0,0).

I then tried to modify the existing initrd.img...I just changed all ext3 options to ext2 in some mounting commands...when i tried booting from the compact flash again i encountered the same errors as given above, which suggests that grub is not executing initrd at all.

When i try giving "kernel /boot/vmlinuz-2.6.21-1.3194.fc7" command without any "root=" option i got a message saying:

VFS:Cannot open root device "NULL" or unknown block(202,3)

The unknown block(202,3) surprises me as all the other devices give unknown block(0,0)...so,don't know where i m going wrong..any suggestions??
 
Old 03-24-2008, 01:26 PM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Thats because the root you are providing the kernel is incorrect, have you tried /dev/sda1, as i am guessing you have only one compact flash disk with one partition.

Also try /dev/hda1 the last time i ran embedded of a CF the kernel picked up the disk as hd not sd
 
  


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 and compact flash drive calhal Linux - General 7 01-06-2008 08:01 PM
linux on Compact Flash swatisameerp Linux - Hardware 3 04-05-2006 07:30 AM
Linux on a Compact Flash ducksew Linux - General 7 11-23-2004 03:40 PM
linux doesn't read compact flash wazilian Linux - Hardware 0 10-22-2004 12:20 PM
linux on compact flash tomank Linux - General 3 04-26-2004 03:08 PM


All times are GMT -5. The time now is 05:48 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