Re: QEMU Uncompressing Linux.... stalls

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

 



On Fri, Dec 10, 2010 at 02:06, Prasad Joshi <prasadjoshi124@xxxxxxxxx> wrote:
> After trying most of the block devices to boot the kernel under QEMU,
> I added few printks around the code that does the mounting.
>
> The function mount_root() in file init/do_mounts.c, mounts the root
> file system. Using following code
>
>        printk("\n\nmajor=%d minor=%d\n\n", MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
>        create_dev("/dev/root", ROOT_DEV);
>        mount_block_root("/dev/root", root_mountflags);
>
> Question 1: Why is it creating a new device file with name /dev/root
> and mounting the /dev/root? I am specifying my root device to be
> /dev/hda1 as a boot parameter.

I think it's like unwritten rule...however, if you check /proc/mounts
in working Linux boxes, it will surely shows /dev/root.

OK, about the problem? Let's see....have you check your kernel config
and confirm that these two options are enabled?
CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y

In short, it's a way to make "old" userspace tools understand the new
way of Linux kernel represents device structures....Kindly try it and
tell us if it does fix the problem..


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux