LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2010, 03:25 AM   #1
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Rep: Reputation: Disabled
Can not get my root file system booted from NAND


Hi,
This is what I have given as bootargs... Kernel is working fine with filesystem if booted from pendrive /dev/sda1...

But as I want to make that work from NAND, where already uboot and uImage are located...

I used nand_erase and ubiformat to write ubi image on NAND...

But after applying this, on uboot

setenv console 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)'

setenv bootargs $(console) ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs fb=xgifb

nand read 0x1000000 0x100000 0x400000

bootm 0x1000000

I am getting like this,



VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 1024 mtdblock0 (driver?)
1f01 4096 mtdblock1 (driver?)
1f02 1043456 mtdblock2 (driver?)
b300 7761920 mmcblk0 driver: mmcblk
b301 7759363 mmcblk0p1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c002db08>] (unwind_backtrace+0x0/0xe0) from [<c003d9f4>] (panic+0x64/0x138)
[<c003d9f4>] (panic+0x64/0x138) from [<c0008f44>] (mount_block_root+0x1d4/0x214)
[<c0008f44>] (mount_block_root+0x1d4/0x214) from [<c0009110>] (prepare_namespace+0x90/0x180)
[<c0009110>] (prepare_namespace+0x90/0x180) from [<c00088e4>] (kernel_init+0xe0/0x114)
[<c00088e4>] (kernel_init+0xe0/0x114) from [<c0029454>] (kernel_thread_exit+0x0/0x8)
 
Old 12-10-2010, 02:12 AM   #2
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
Is ubifs built into the kernel (not as a module) ?
 
Old 12-10-2010, 03:02 AM   #3
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Yes it has been
 
Old 12-10-2010, 03:18 AM   #4
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Im through the problem...
although have got another one.


UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd2


and have no clue this time ... ( (
 
  


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
Unable to mount root fs: s3c2410 based board, Nand flash swapnilborg Linux - Embedded & Single-board computer 4 10-07-2011 11:43 AM
LXer: db4objects Demos Car Navigation System with NAND Drive at JavaOne LXer Syndicated Linux News 0 05-08-2007 02:46 PM
software RAID1 hangs when booted as root (/) lgs Linux - General 9 02-24-2007 04:46 PM
booted from CD, cant mount root partition frankie_DJ Linux - Newbie 1 08-26-2006 07:29 PM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 10:50 AM

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

All times are GMT -5. The time now is 01:31 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
Open Source Consulting | Domain Registration