OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 11:04 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 8:54 am 
Offline

Joined: Sun Jan 29, 2017 11:37 am
Posts: 16
Hello everyone,

I am wanting to debug the Vmware UEFI x64 bios.

I have been following this guide,
https://wiki.osdev.org/Debugging_UEFI_a ... s_with_GDB


and Here is the BIOS https://files.fm/f/sm5ccrd7 that I am working with.


When running the following item in the Qemu environment
Code:
qemu-system-x86_64 -enable-kvm -bios EFI64.ROM -m 800 -cpu kvm64 -vga cirrus  -enable-kvm -serial tcp::8000,server -s -monitor stdi

I get nothing on the screen and I have no clue if this is even working or not.

Can I debug this ? if so, how can I debug this? I have read a ton and really haven't gotten anywhere apart from a few coreboot roms emulated .

I would like ultimately decompress it and make my own version of it. I would like to debug this though at this stage of study.


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 9:52 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
What is the switch "-monitor stdi" intended to do?

Have you tried connecting via the serial console (as detailed in your link)?

Have you tried connecting with gdb?


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 10:19 am 
Offline

Joined: Sun Jan 29, 2017 11:37 am
Posts: 16
I have . and the screen is completely blank. There should be a display of some sort anyway right?


You can download the file if you want to try...


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 10:34 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
What about my first question?


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 3:00 pm 
Offline

Joined: Sun Jan 29, 2017 11:37 am
Posts: 16
Its supposed to multiplex outputs to terminal and the monitor


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 7:11 pm 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8561
Location: At his keyboard!
Hi,

Krash wrote:
I am wanting to debug the Vmware UEFI x64 bios.

Krash wrote:
When running the following item in the Qemu environment


Why not try putting petrol/gasoline in a horse, plugging an American 110v toaster into an Australian 240v power outlet, using salt instead of sugar in coffee, or cross breeding crocodiles and rabbits?


Cheers,

Brendan

_________________
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Fri Mar 30, 2018 11:40 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
Try "stdio" instead of "stdi".


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Mon Apr 02, 2018 12:25 am 
Offline

Joined: Sun Jan 29, 2017 11:37 am
Posts: 16
No difference.

Mate, did you try to download the file and try for yourself? Maybe it's much to ask to try to help me find an answer, but perhaps it might be better thank taking guesses :D


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Mon Apr 02, 2018 1:44 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
Mate, I'm happy to point you to ways that you can solve your problems for yourself, but I don't do free consultations.


Top
 Profile  
 
 Post subject: Re: How can I Debug VMware UEFI Bios
PostPosted: Mon Apr 02, 2018 2:11 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
Krash wrote:
No difference.

Mate, did you try to download the file and try for yourself? Maybe it's much to ask to try to help me find an answer, but perhaps it might be better thank taking guesses :D


And maybe it is too much to ask us to trust a binary file from an unvetted source. Just because you say it is the VMware BIOS doesn't mean it is.

Not that it matters, since you don't link to source code, and presumably don't have access to it (since VMware isn't a FOSS package), which is what you'd actually need to in order to debug it, even if this weren't a fool's errand in the first place (as Brendan already pointed out ). The page you linked to is about debugging applications which call on the UEFI services, not the BIOS itself.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 221 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group