All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't open root device
@ 2001-06-20  0:13 Ian Thompson
  0 siblings, 0 replies; only message in thread
From: Ian Thompson @ 2001-06-20  0:13 UTC (permalink / raw)
  To: linux-mips@oss.sgi.com

Hi,

I'm having some issues trying to open a ROM fs via initrd.  It seems
like kind of a paradox: mount_root() calls blkdev_get(), which calls
rd_open().  In blkdev_get(), the comments mention that the block device
->open() method is not supposed to access anthing in the 'inode'
argument except ->i_rdev.  However, rd_open() checks inode->i_bdev when
->i_rdev isn't INITRD_MINOR (->i_rdev is set to bd_dev in blkdev_get). 
Currently my minor number is 0 (major is 1).  Am I using the correct
major/minor numbers?  Should I use INITRD_MINOR instead of 0?  If I am
ok with 0, it appears that there is an inconsistency in the code...

Also, is there another driver I should try using instead of the ramdisk
driver?  uClinux has a blkmem driver, but I haven't seen that here...

Thanks for your time,
-ian

-- 
----------------------------------------
Ian Thompson           tel: 408.952.2023
Firmware Engineer      fax: 408.570.0910
Palmchip Corporation   www.palmchip.com
This message resent by the uclinux-dev@uclinux.org list server
http://www.uClinux.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-20  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-20  0:13 Can't open root device Ian Thompson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.