OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:21 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [n00b Question] Accessing framebuffer information on grub cl
PostPosted: Sat May 22, 2021 3:57 am 
Offline
Member
Member
User avatar

Joined: Fri Feb 23, 2007 1:41 am
Posts: 106
Location: Italy & Ireland
I'm wondering if there is a way to access framebuffer information from grub cli

I tried several commands and i can see there are some information using vbeinfo command, video info, etc
But what i need is the address of the framebuffer assigned. Is it possible? (it could be useful in case i need to debug the os on real hw)

Thanks

_________________
Elen síla lúmenn' omentielvo
- DreamOS64 - My latest attempt with osdev: https://github.com/dreamos82/Dreamos64
- Osdev Notes - My notes about osdeving! https://github.com/dreamos82/Osdev-Notes
- My old Os Project: https://github.com/dreamos82/DreamOs


Top
 Profile  
 
 Post subject: Re: [n00b Question] Accessing framebuffer information on gru
PostPosted: Wed May 26, 2021 6:42 am 
Offline
Member
Member
User avatar

Joined: Sun Mar 21, 2021 1:09 pm
Posts: 38
Location: current location
sorry, my answer cannot answer all of your request. however if you are willing to use multiboot as you are using grub, it is possible to setup the graphics. so if you have a boot.S file, you need to push %ebx. it contains the address of the multiboot structure. this structure includes framebuffer information. make a struct multiboot_info, and put a pointer to it into the parameters of your main function e.g. kmain (multiboot_struct *multiptr)
more here https://www.gnu.org/software/grub/manual/multiboot/multiboot.html

_________________
iustitiae iniustos iudicat


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 80 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