Re: [coreboot] coreboot debugging with qemu-x86
Hi Greg, > > That is the reset vector, i.e. something going seriously wrong on the > very first instruction executed. rom image being garbage or something > like that. Check your build environment. Broken toolchain? Disk full? > Thanks for the help. I figured out there was something wrong with my build environment...fixed it. Now I am able to run and debug with qemu. -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
On Sa, 2015-05-09 at 16:28 +0530, Saket Sinha wrote: > HI Ajay, > > > Try giving > > -m 1g > > > > > Doesn't help. Same output. > > > saket@saket-Notebook-PC:~/coreboot$ qemu-system-x86_64 -L . -bios > build/coreboot.rom -nographic > qemu: fatal: Trying to execute code outside RAM or ROM at 0x000a > > EAX=0001 EBX= ECX= EDX=0663 > ESI= EDI= EBP= ESP=fffa > EIP=0009ffd6 EFL=0082 [--S] CPL=0 II=0 A20=1 SMM=0 HLT=0 > ES = 9300 > CS = 9b00 No, its not the same output. Quoting original post: EIP=fff0 EFL=0002 [---] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES = 9300 CS =f000 9b00 That is the reset vector, i.e. something going seriously wrong on the very first instruction executed. rom image being garbage or something like that. Check your build environment. Broken toolchain? Disk full? The new crash is at some completely different place, so coreboot at least starts executing. Try this ... qemu -bios coreboot.rom \ -chardev stdio,id=log \ -device isa-debugcon,iobase=0x402,chardev=log ... to see the coreboot log (assuming coreboot comes far enough to actually produce log output). cheers, Gerd -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
> Didi u try using qemu-system-i386 ? > saket@saket-Notebook-PC:~/coreboot$ qemu-system-i386 -L . -bios build/coreboot.rom -nographic qemu: fatal: Trying to execute code outside RAM or ROM at 0x000a EAX=0001 EBX= ECX= EDX=0663 ESI= EDI= EBP= ESP=fffa EIP=0009fff4 EFL=0082 [--S] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES = 9300 CS = 9b00 SS = 9300 DS = 9300 FS = 9300 GS = 9300 LDT= 8200 TR = 8b00 GDT= IDT= CR0=6010 CR2= CR3= CR4= DR0= DR1= DR2= DR3= DR6=0ff0 DR7=0400 CCS=0001 CCD=00fb CCO=ADDB EFER= FCW=037f FSW= [ST=0] FTW=00 MXCSR=1f80 FPR0= FPR1= FPR2= FPR3= FPR4= FPR5= FPR6= FPR7= XMM00= XMM01= XMM02= XMM03= XMM04= XMM05= XMM06= XMM07= Aborted (core dumped) Regards, Saket Sinha -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
Didi u try using qemu-system-i386 ? Thanks Ajoy On Sat, May 9, 2015 at 4:52 PM, Saket Sinha wrote: > > can u try with qemu-system-x86 > > > > I do not have qemu-system-x86 on my machine. I either have > qemu-system-x86_64 or qemu-system-i386 to the closest. > > My machine configuration - > > saket@saket-Notebook-PC:~/coreboot$ uname -a > Linux saket-HP-Pavilion-g6-Notebook-PC 3.19.0-16-generic #16-Ubuntu > SMP Thu Apr 30 16:09:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
> can u try with qemu-system-x86 > I do not have qemu-system-x86 on my machine. I either have qemu-system-x86_64 or qemu-system-i386 to the closest. My machine configuration - saket@saket-Notebook-PC:~/coreboot$ uname -a Linux saket-HP-Pavilion-g6-Notebook-PC 3.19.0-16-generic #16-Ubuntu SMP Thu Apr 30 16:09:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
can u try with qemu-system-x86 Ajoy On Sat, May 9, 2015 at 4:28 PM, Saket Sinha wrote: > HI Ajay, > > > Try giving > > -m 1g > > > > > Doesn't help. Same output. > > > saket@saket-Notebook-PC:~/coreboot$ qemu-system-x86_64 -L . -bios > build/coreboot.rom -nographic > qemu: fatal: Trying to execute code outside RAM or ROM at > 0x000a > > EAX=0001 EBX= ECX= EDX=0663 > ESI= EDI= EBP= ESP=fffa > EIP=0009ffd6 EFL=0082 [--S] CPL=0 II=0 A20=1 SMM=0 HLT=0 > ES = 9300 > CS = 9b00 > SS = 9300 > DS = 9300 > FS = 9300 > GS = 9300 > LDT= 8200 > TR = 8b00 > GDT= > IDT= > CR0=6010 CR2= CR3= CR4= > DR0= DR1= DR2= > DR3= > DR6=0ff0 DR7=0400 > CCS=0001 CCD=00ec CCO=ADDB > EFER= > FCW=037f FSW= [ST=0] FTW=00 MXCSR=1f80 > FPR0= FPR1= > FPR2= FPR3= > FPR4= FPR5= > FPR6= FPR7= > XMM00= > XMM01= > XMM02= > XMM03= > XMM04= > XMM05= > XMM06= > XMM07= > Aborted (core dumped) > saket@saket-HP-Pavilion-g6-Notebook-PC:~/images/coreboot$ > > Regards, > Saket Sinha > -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
HI Ajay, > Try giving > -m 1g > Doesn't help. Same output. saket@saket-Notebook-PC:~/coreboot$ qemu-system-x86_64 -L . -bios build/coreboot.rom -nographic qemu: fatal: Trying to execute code outside RAM or ROM at 0x000a EAX=0001 EBX= ECX= EDX=0663 ESI= EDI= EBP= ESP=fffa EIP=0009ffd6 EFL=0082 [--S] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES = 9300 CS = 9b00 SS = 9300 DS = 9300 FS = 9300 GS = 9300 LDT= 8200 TR = 8b00 GDT= IDT= CR0=6010 CR2= CR3= CR4= DR0= DR1= DR2= DR3= DR6=0ff0 DR7=0400 CCS=0001 CCD=00ec CCO=ADDB EFER= FCW=037f FSW= [ST=0] FTW=00 MXCSR=1f80 FPR0= FPR1= FPR2= FPR3= FPR4= FPR5= FPR6= FPR7= XMM00= XMM01= XMM02= XMM03= XMM04= XMM05= XMM06= XMM07= Aborted (core dumped) saket@saket-HP-Pavilion-g6-Notebook-PC:~/images/coreboot$ Regards, Saket Sinha -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] coreboot debugging with qemu-x86
Try giving -m 1g Ajoy On Fri, May 8, 2015 at 3:55 PM, Saket Sinha wrote: > Hi, > > I am trying to debug coreboot with qemu-x86 with the following command - > > qemu-system-x86 -L . -bios coreboot.rom -nographic > > I am getting output something like this - http://pastebin.com/Ae2X5sPe > > (Also pasted below) > EAX= EBX= ECX= EDX=0633 > ESI= EDI= EBP= ESP= > EIP=fff0 EFL=0002 [---] CPL=0 II=0 A20=1 SMM=0 HLT=0 > ES = 9300 > CS =f000 9b00 > SS = 9300 > DS = 9300 > FS = 9300 > GS = 9300 > LDT= 8200 > TR = 8b00 > GDT= > IDT= > CR0=6010 CR2= CR3= CR4= > DR0= DR1= DR2= DR3= > DR6=0ff0 DR7=0400 > > I have build coreboot.rom with the following option in .config - > > Payload ---> Add a payload ---> FILO ; > Payload ---> FILO version ---> HEAD > > Kindly let me know if I am missing something here. > > Regards, > Saket Sinha > > -- > coreboot mailing list: coreboot@coreboot.org > http://www.coreboot.org/mailman/listinfo/coreboot > -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
[coreboot] coreboot debugging with qemu-x86
Hi, I am trying to debug coreboot with qemu-x86 with the following command - qemu-system-x86 -L . -bios coreboot.rom -nographic I am getting output something like this - http://pastebin.com/Ae2X5sPe (Also pasted below) EAX= EBX= ECX= EDX=0633 ESI= EDI= EBP= ESP= EIP=fff0 EFL=0002 [---] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES = 9300 CS =f000 9b00 SS = 9300 DS = 9300 FS = 9300 GS = 9300 LDT= 8200 TR = 8b00 GDT= IDT= CR0=6010 CR2= CR3= CR4= DR0= DR1= DR2= DR3= DR6=0ff0 DR7=0400 I have build coreboot.rom with the following option in .config - Payload ---> Add a payload ---> FILO ; Payload ---> FILO version ---> HEAD Kindly let me know if I am missing something here. Regards, Saket Sinha -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot