>Thank you! It worked and I finally got a working kernel. Here is the kernel boot log:Sound great ! Though I ended with error from log below. Had no chance to fix it yet: ? CPU: AMD QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: 0x3) Performance Events: PMU not available due to virtualization, using software events only. ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 ..MP-BIOS bug: 8254 timer not connected to IO-APIC ...trying to set up timer (IRQ0) through the 8259A ... ..... (found apic 0 pin 2) ... ....... failed. ...trying to set up timer as Virtual Wire IRQ... ..... failed. ...trying to set up timer as ExtINT IRQ... ..... failed :(. Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with apic=debug and send a report. Then try booting with the 'noapic' option. ---[ end Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with apic=debug and send a report. Then try booting with the 'noapic' option. random: fast init done Did you see something alike ? Looks there is nothing in your log about these timers. I suppose you disabled those ? George. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170221/2ead967c/attachment.html>
Dmitry Golovin via llvm-dev
2017-Feb-21 11:35 UTC
[llvm-dev] Linking Linux kernel with LLD
<div>Yes, I use the tinyconfig with only few options turned on. I also add 'noapic' to the kernel command line, so the booting process goes on. Unfortunately, the kernel is not yet capable of running init, but it is a great progress.</div><div> </div><div>Regards,</div><div>Dmitry</div><div><br /></div><div><br /></div><div>21.02.2017, 13:25, "George Rimar" <grimar@accesssoftek.com>:</div><blockquote type="cite"> <div dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;"> <p><span style="color:rgb(33,33,33);font-size:12pt;">>Thank you! It worked and I finally got a working kernel. Here is the kernel boot log:</span><br /> </p> <div style="color:rgb(33,33,33);"> <div> <div> <br /> </div> <div>Sound great ! Though I ended with error from log below. Had no chance to fix it yet:</div> <div> <p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"><br /> </p> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> CPU: AMD QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: 0x3)</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> Performance Events: PMU not available due to virtualization, using software events only.</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ..MP-BIOS bug: 8254 timer not connected to IO-APIC</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ...trying to set up timer (IRQ0) through the 8259A ...</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ..... (found apic 0 pin 2) ...</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ....... failed.</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ...trying to set up timer as Virtual Wire IRQ...</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ..... failed.</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ...trying to set up timer as ExtINT IRQ...</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ..... failed :(.</div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with apic=debug and send a report. Then try booting with the 'noapic' option.<br /> </div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> ---[ end Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with apic=debug and send a report. Then try booting with the 'noapic' option.<br /> </div> <div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"> random: fast init done<br /> </div> <p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;"><br /> </p> <p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;">Did you see something alike ? Looks there is nothing in your log about these timers. I suppose you disabled those ?<br /> </p> <br /> </div> <div>George.<br /> </div> </div> </div> </div> </blockquote>
Wow, congratulations! On Tue, Feb 21, 2017 at 3:35 AM, Dmitry Golovin <dima at golovin.in> wrote:> Yes, I use the tinyconfig with only few options turned on. I also add > 'noapic' to the kernel command line, so the booting process goes on. > Unfortunately, the kernel is not yet capable of running init, but it is a > great progress. > > Regards, > Dmitry > > > 21.02.2017, 13:25, "George Rimar" <grimar at accesssoftek.com>: > > >Thank you! It worked and I finally got a working kernel. Here is the > kernel boot log: > > Sound great ! Though I ended with error from log below. Had no chance to > fix it yet: > > > CPU: AMD QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: > 0x3) > Performance Events: PMU not available due to virtualization, using > software events only. > ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 > ..MP-BIOS bug: 8254 timer not connected to IO-APIC > ...trying to set up timer (IRQ0) through the 8259A ... > ..... (found apic 0 pin 2) ... > ....... failed. > ...trying to set up timer as Virtual Wire IRQ... > ..... failed. > ...trying to set up timer as ExtINT IRQ... > ..... failed :(. > Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with > apic=debug and send a report. Then try booting with the 'noapic' option. > ---[ end Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot > with apic=debug and send a report. Then try booting with the 'noapic' > option. > random: fast init done > > > Did you see something alike ? Looks there is nothing in your log about > these timers. I suppose you disabled those ? > > George. > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170221/22b4c706/attachment.html>