Re: Booting off msdos, AND using initrd?

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

 



Jim> Do you have /linuxrc in an initial ramdisk?

No, it is in the msdos filesystem which the kernel is mounting.
The kernel says:

  VFS: Mounted root (msdos filesystem).
  Mounted devfs on /dev
  Freeing unused kernel memory: 240k freed
  Kernel panic: No init found.  Try passing init= option to kernel.

Of course, I *am* passing "init=/linuxrc" to the kernel.  The linuxrc
program is in the root directory of the msdos filesystem that VFS is
mounting.

Dave

>> I would like my kernel to read a ramdisk file off of an msdos
>> partition.  I think the way to do this is to put the following on an
>> msdos partition:
>> 
>> 1.  vmlinux (linux kernel)
>> 2.  /dev directory (to mount devfs on)
>> 3.  ramdisk.img (the 
>> 4.  linuxrc program (see below)
>> 
>> My bootloader finds vmlinux on the dos partition and boots it.
>> The linuxrc program loads the ramdisk and does a pivot root.
>> 
>> I think the above will work.  I have two questions:
>> 
>> 1.  is there an easier way?
>> 2.  my kernel is not finding linuxrc.  Here are the arguments I'm using:
>> go vmlinux devfs=only root=301 rw init=/linuxrc
>> Is there some special path syntax I need for the init=<path>?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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