Can't open root device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux