LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded
User Name
Password
Linux - Embedded This forum is for the discussion of Linux and embedded devices.

Notices

Reply
 
LinkBack Search this Thread
Old 12-20-2011, 01:05 AM   #1
kaylessa
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Fail to pass .cpio.gz into kernel


Hi,

I currently trying to use external initramfs image. But it fail. Anyone got any advise?

below is the error log.

VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

But if i embed the initramfs into my kernel it work.
 
Old 12-23-2011, 07:55 PM   #2
jb_gpk
Member
 
Registered: Dec 2010
Distribution: Debian
Posts: 30

Rep: Reputation: 13
Quote:
I currently trying to use external initramfs image. But it fail. Anyone got any advise?
what do you mean by "external initramfs image"?


Quote:
Please append a correct "root=" boot option
this tells what is the cause of the error: you did not passed the root= boot option
if you do not pass this option the kernel doesn't know where is your "/" directory

Quote:
But if i embed the initramfs into my kernel it work.
what do you mean by "embed the initramfs into the kernel"?
 
Old 12-27-2011, 12:32 PM   #3
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,504

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
Quote:
Originally Posted by kaylessa View Post
I currently trying to use external initramfs image. But it fail.
Please show us how you are using the external initramfs. In my experience, it is normally the role of the bootloader to load the RAM fileystem before loading and launching the kernel. How that is accomplished is bootloader-specific.

--- rod.
 
Old 12-29-2011, 02:11 AM   #4
kaylessa
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have initramfs.cpio.gz. I combine this .cpio.gz with my kernel. It boot up successfully.

Now i want to separate it. By loading initramfs..cpio.gz and kernel. But it keep failing.

I tried uboot command. 'bootm $(default_kernel_addr) $(default_initrd_addr)'. It have bad magic number.

Could anyone advise?

I also tried the traditonal method by using initrd. It fail too.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Initrd Crash: No CPIO Magic btbx Linux - Kernel 0 04-13-2009 07:44 PM
kernel panic - no cpio magic mavs Debian 1 10-24-2007 06:21 PM
Kernel panic - not syncing: no cpio magic StanleyP Linux - Newbie 2 09-20-2006 05:35 PM
How to use cpio to extract a cpio archive? linx win Debian 4 06-17-2005 01:53 PM
Burnt discs, 1 machine says pass other fail 80g Fedora 5 06-24-2004 02:06 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration