All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel Build] Initrd not getting build out of source dir
@ 2016-09-04  0:07 Vipul Jain
  2016-09-04  8:36 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Vipul Jain @ 2016-09-04  0:07 UTC (permalink / raw)
  To: kernelnewbies

Hi Kernel Alias,

I downloaded latest kernel source from kernel.org and tried to build it
at a directory outside source by giving O=<path option> but I noticed that
initrd image is not getting build but if I execute make inside source
things are fine.

[Build Kernel/Modules etc inside source]
~/linux-stable/> make
~/linux-stable/> make install
~/linux-stable/> make install_modules
~/linux-stable/> su -c "reboot -f"

everything works out fine and system gives me selection to boot from
newly build kernel and system boots up without issues. But if I build as
below I see system OOPS because no file system found for mount. Would
like to know why?

[Build outside]
~/linux-stable/> make O=~/linux-build/
~/linux-stable/> cd ../linux-build/
~/linux-stable/> make install
~/linux-stable/> make install_modules
~/linux-stable/> su -c "reboot -f"

Regards,
Vipul.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Kernel Build] Initrd not getting build out of source dir
  2016-09-04  0:07 [Kernel Build] Initrd not getting build out of source dir Vipul Jain
@ 2016-09-04  8:36 ` Greg KH
  2016-09-08  3:27   ` Vipul Jain
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2016-09-04  8:36 UTC (permalink / raw)
  To: kernelnewbies

On Sat, Sep 03, 2016 at 05:07:20PM -0700, Vipul Jain wrote:
> Hi Kernel Alias,
> 
> I downloaded latest kernel source from kernel.org and tried to build it
> at a directory outside source by giving O=<path option> but I noticed that
> initrd image is not getting build but if I execute make inside source
> things are fine.
> 
> [Build Kernel/Modules etc inside source]
> ~/linux-stable/> make
> ~/linux-stable/> make install
> ~/linux-stable/> make install_modules
> ~/linux-stable/> su -c "reboot -f"
> 
> everything works out fine and system gives me selection to boot from
> newly build kernel and system boots up without issues. But if I build as
> below I see system OOPS because no file system found for mount. Would
> like to know why?
> 
> [Build outside]
> ~/linux-stable/> make O=~/linux-build/
> ~/linux-stable/> cd ../linux-build/

Don't do that.

> ~/linux-stable/> make install

make O=~/linux-build install

> ~/linux-stable/> make install_modules

make O=~/linux-build install_modules

hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Kernel Build] Initrd not getting build out of source dir
  2016-09-04  8:36 ` Greg KH
@ 2016-09-08  3:27   ` Vipul Jain
  0 siblings, 0 replies; 3+ messages in thread
From: Vipul Jain @ 2016-09-08  3:27 UTC (permalink / raw)
  To: kernelnewbies

Hi Greg,

On Sun, Sep 4, 2016 at 1:36 AM, Greg KH <greg@kroah.com> wrote:
> On Sat, Sep 03, 2016 at 05:07:20PM -0700, Vipul Jain wrote:
>> Hi Kernel Alias,
>>
>> I downloaded latest kernel source from kernel.org and tried to build it
>> at a directory outside source by giving O=<path option> but I noticed
that
>> initrd image is not getting build but if I execute make inside source
>> things are fine.
>>
>> [Build Kernel/Modules etc inside source]
>> ~/linux-stable/> make
>> ~/linux-stable/> make install
>> ~/linux-stable/> make install_modules
>> ~/linux-stable/> su -c "reboot -f"
>>
>> everything works out fine and system gives me selection to boot from
>> newly build kernel and system boots up without issues. But if I build as
>> below I see system OOPS because no file system found for mount. Would
>> like to know why?
>>
>> [Build outside]
>> ~/linux-stable/> make O=~/linux-build/
>> ~/linux-stable/> cd ../linux-build/
>
> Don't do that.
>
>> ~/linux-stable/> make install
>
> make O=~/linux-build install

[Vipul] Getting below message wondering why? Did I missing anything? I did
execute make -j4 O=/home/playground/linux/build before executing below.

linux-tssh:/home/vjain/playground/linux/linus-stable # make
O=/home/vjain/playground/linux/build install
     make[1]: Entering directory '/home/vjain/playground/linux/build'
     sh /home/vjain/playground/linux/linus-stable/arch/x86/boot/install.sh
4.8.0-rc5-42-desktop arch/x86/boot/bzImage \
        System.map "/boot"
   *  You may need to create an initial ramdisk now.*
      make[1]: Leaving directory '/home/vjain/playground/linux/build'

>
>> ~/linux-stable/> make install_modules
>
> make O=~/linux-build install_modules
>
> hope this helps,
>
> greg k-h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160907/ae5bc8dd/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-08  3:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-04  0:07 [Kernel Build] Initrd not getting build out of source dir Vipul Jain
2016-09-04  8:36 ` Greg KH
2016-09-08  3:27   ` Vipul Jain

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.