LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 06-03-2013, 01:31 AM   #1
poplinux
Member
 
Registered: May 2012
Posts: 59

Rep: Reputation: Disabled
initramfs fail on Marvell 88F6281 EVB


Dear Sir.

I have a quesion for initramfs

My ENV. see below.
Code:
  SoC : Marvell 88F6281
  kernel : Linux-2.6.31.8(Apply marvell patch)
  rootfs : initramfs
  bootloader : u-boot-1.1.4(apply marvell patch)

I'm already boot success. use nfs root.

But have a fail use initramfs.

First. I'm create rootfs use by cpio
[code]
find | cpio --quiet -o -H newc >../rootfs.cpio
[code]


Second.

My Kernel config. see below

Code:
  64 CONFIG_BLK_DEV_INITRD=y
  65 CONFIG_INITRAMFS_SOURCE="/home/poplinux/work/vf50/sdk_build/rootfs.cpio"
  66 CONFIG_INITRAMFS_ROOT_UID=0
  67 CONFIG_INITRAMFS_ROOT_GID=0
  68 CONFIG_RD_GZIP=y
  69 CONFIG_RD_BZIP2=y
  70 CONFIG_RD_LZMA=y
  71 # CONFIG_INITRAMFS_COMPRESSION_NONE is not set
  72 # CONFIG_INITRAMFS_COMPRESSION_GZIP is not set
  73 CONFIG_INITRAMFS_COMPRESSION_BZIP2=y
.
.
.
 424 # Boot options
 425 #
 426 CONFIG_ZBOOT_ROM_TEXT=0x0
 427 CONFIG_ZBOOT_ROM_BSS=0x0
 428 CONFIG_CMDLINE="console=ttyS0,115200 init=/linuxrc root=/dev/ram0 rw"
 429 # CONFIG_XIP_KERNEL is not set
 430 # CONFIG_KEXEC is not set
And i'm use this command in u-boot
Code:
u-boot >> tftpboot 0x200000 test.img
u-boot >> tftpboot 0x200000
## Booting image at 02000000 ...
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux...................................................................................................................................
Linux version 2.6.31.8 (poplinux@HWserver) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #37 Mon Jun 3 15:27:36 KST 2013
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
Kernel command line: console=ttyS0,115200 init=/linuxrc root=/dev/ram0 -o rw
.
.
.
.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "ram0" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0095cf4>] (unwind_backtrace+0x0/0xdc) from [<c043a4f4>] (panic+0x40/0x108)
[<c043a4f4>] (panic+0x40/0x108) from [<c0008d48>] (mount_block_root+0x25c/0x2ac)
[<c0008d48>] (mount_block_root+0x25c/0x2ac) from [<c0008f2c>] (prepare_namespace+0x130/0x188)
[<c0008f2c>] (prepare_namespace+0x130/0x188) from [<c0008418>] (kernel_init+0xd4/0x108)
[<c0008418>] (kernel_init+0xd4/0x108) from [<c0090f58>] (kernel_thread_exit+0x0/0x8)

I don't understand. Why occured this problem to me.


Please help me.

Thank you.

Last edited by poplinux; 06-03-2013 at 01:38 AM.
 
Old 06-03-2013, 11:02 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Does your initramfs image include a /dev/ram0 device node?

--- rod.
 
Old 07-13-2014, 11:42 PM   #3
poplinux
Member
 
Registered: May 2012
Posts: 59

Original Poster
Rep: Reputation: Disabled
Yes, my initramfs image already into /dev/ram0.

This issus was solved.
 
Old 07-25-2014, 04:37 AM   #4
SIG_SEGV
Member
 
Registered: Jul 2012
Location: Banglore, INDIA
Distribution: Fedora-Core
Posts: 70

Rep: Reputation: 11
The panic has occured at linux_source/init/do_mounts.c
function: mount_block_root

Better check there why is this panic... using the debug msg you hve got
"VFS: Cannot open root device "ram0" or unknown-block(0,0)"
 
  


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
Problem with initramfs pmil Linux - Kernel 6 12-02-2009 07:35 PM
Questions of uClinux with MINI2440 s3c2440 EVB uclinux2 Linux - Embedded & Single-board computer 3 03-20-2009 07:05 AM
initramfs on 2.4 kernel sailwind Linux - General 0 02-06-2009 04:44 PM
initramfs !! Ashhere Linux - Newbie 3 08-24-2008 09:00 AM
kernel 2.6 initramfs ashlesha Linux - Newbie 10 07-27-2006 09:07 PM


All times are GMT -5. The time now is 10:56 AM.

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