<div dir="ltr"><div class="gmail_extra">I'll try it out with 4.11 and 4.12-rc1.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Aditya</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 22, 2017 at 11:43 AM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 22, 2017 at 11:29:29AM -0400, Aditya Basu wrote:<br>
><br>
> On Fri, May 05, 2017 at 04:58:27PM -0400, Aditya Basu wrote:<br>
> > I am trying to compile and boot Linux Kernel v3.19 (64-bit version) using<br>
> -<br>
> ><br>
> > make defconfig<br>
> > make kvmconfig<br>
> > make -j8<br>
> ><br>
> > The compilation works out without any errors but it doesn't boot<br>
> > inside qemu or my host machine.<br>
> > I use the following command line parameters to linux: "debug<br>
> > earlyprintk loglevel=7"<br>
> ><br>
> > # The boot hangs at the point -<br>
> > ##############################<wbr>######<br>
> > Booting from ROM...<br>
> > early console in setup code<br>
> > early console in decompress_kernel<br>
> ><br>
> > Decompressing Linux... Parking ELF... done.<br>
> > Booting the kernel .<br>
> > ##############################<wbr>######<br>
> ><br>
> > # Things I have tried so far:<br>
> > - Interestingly if I uncheck the 64-bit build in config (from make<br>
> > menuconfig), the resulting 32-bit kernel boots correctly.<br>
> ><br>
> > - Have tried running qemu with different cpus (host) + with & without<br>
> kvm.<br>
> ><br>
> > sudo qemu-system-x86_64 -m 4G -append 'debug earlyprintk loglevel=7'<br>
> > -kernel arch/x86/boot/bzImage -cpu host -enable-kvm<br>
> ><br>
> > I know the kernel will panic because of no root filesystem, but it<br>
> > happens later in the boot process. I am basing this from booting the<br>
> > 32 bit version of the kernel which prints out a lot of stuff and then<br>
> > panics due to no vfs_root.<br>
> ><br>
> > - The 64-bit versions of kernel v4.2 and above don't have this issue -<br>
> > meaning they boot correctly.<br>
><br>
> Great! Stick with newer kernels, 3.19 is really old, as is 4.2, lots<br>
> and lots of things have been fixed since then, you aren't going to be<br>
> able to get any help from anyone in the community if you use old kernels<br>
> like that, sorry.<br>
><br>
><br>
> My primary goal is to build and boot LLVM Linux (http://<br>
> <a href="http://llvm.linuxfoundation.org/index.php/Main_Page" rel="noreferrer" target="_blank">llvm.linuxfoundation.org/<wbr>index.php/Main_Page</a>). This project has patches<br>
> available only till kernel v3.19. That's why I am trying to use the older<br>
> version 3.19.<br>
<br>
</div></div>4.11 should build/boot using llvm, or if not, I think 4.12-rc1 can, as<br>
the remaining changes went in then.<br>
<br>
No need to stick with an obsolete kernel version just to try out an<br>
alternative compiler :)<br>
<br>
good luck!<br>
<br>
greg k-h<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,<br></div>Aditya Basu<br></div></div>
</div></div>